[pygnulib] initial merge (including some small bug fixes)
[gnulib.git] / ChangeLog
blob68d320501954ce09c48b95305a5890bc7f0675aa
1 2017-09-08  Bruno Haible  <bruno@clisp.org>
3         stddef: Avoid conflict with system-defined max_align_t.
4         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5         Reported by Werner Lemberg <wl@gnu.org> in
6         <https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00185.html>.
7         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
8         (max_align_t): Define as a macro.
9         (GNULIB_defined_max_align_t): New macro. Guards against multiple
10         definitions of rpl_max_align_t in different copies of gnulib-generated
11         <stddef.h>.
13 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15         libc-config: port to MSVC
16         Problems reported by Gisle Vanem in:
17         http://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00016.html
18         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
19         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20         * m4/__inline.m4: New file.
21         * modules/libc-config (Files): Add it.
22         (Depends-on): Use it.
24         glob: Use enum for __glob_pattern_type result
25         From a patch proposed by Adhemerval Zanella in:
26         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
27         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
29         * lib/glob_internal.h (__glob_pattern_type):
30         * lib/glob.c (glob):
31         * lib/glob_pattern_p.c (__glob_pattern_p):
32         Use them.
34         glob: fix for use in glibc
35         Problem reported by Adhemerval Zanella in:
36         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
37         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
38         Do not redefine if _LIBC.
40 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
42         glob: fix bugs with long login names
43         Problem reported by Adhemerval Zanella in:
44         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
45         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
46         (glob): Use the same scratch buffer for both getlogin_r and
47         getpwnam_r.  Don’t require preallocation of the login name.  This
48         simplifies storage allocation, and corrects the handling of
49         long login names.
51 2017-09-02  Bruno Haible  <bruno@clisp.org>
53         dirent: Update doc.
54         * doc/posix-headers/dirent.texi: More concrete list of platforms.
56 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58         glob: fix getpwnam_r errno typo
59         * lib/glob.c (glob): Fix longstanding misuse of errno after
60         getpwnam_r, which returns an error number rather than setting
61         errno.
63         glob: fix typo in recent change
64         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
65         Fix recently-introduced typo.
67 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69         glob: don't save and restore errno unnecessarily
70         * lib/glob.c (glob): Don't save and restore errno
71         merely because we have getpwnam_r.
73         glob: don't assume getpwnam_r
74         * lib/glob.c (glob): Port recent patches to platforms
75         lacking getpwnam_r.
77         scratch_buffer: don’t use private glibc API
78         Suggested by Florian Weimer in:
79         http://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00004.html
80         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
81         * lib/scratch_buffer_grow.c: Rename to
82         lib/malloc/scratch_buffer_grow.c.
83         * lib/scratch_buffer_grow_preserve.c: Rename to
84         lib/malloc/scratch_buffer_grow_preserve.c.
85         * lib/scratch_buffer_set_array_size.c: Rename to
86         lib/malloc/scratch_buffer_set_array_size.c.
87         * lib/scratch_buffer.h: New file.
88         * modules/scratch_buffer (Files, Makefile.am):
89         Adjust to source-file renaming.
91 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93         glob: use scratch_buffer instead of extend_alloca
94         Much of the lib/glob.c part of this patch comes from a glibc patch
95         proposed by Adhemerval Zanella in:
96         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
97         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
98         included via glob.h, does this for us now.
99         (__set_errno): Remove, as libc-config does this for us now.
100         Include <scratch_buffer.h>.
101         (GETPW_R_SIZE_MAX): Remove.
102         (glob): Use struct scratch_buffer instead of extend_alloca.
103         * lib/glob.in.h: Include libc-config.h rather than
104         including <sys/cdefs.h> conditionally.
105         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
106         (__glibc_unlikely, __restrict, weak_alias):
107         Remove, as libc-config does this for us now.
108         * m4/glob.m4 (gl_PREREQ_GLOB):
109         Remove sys/cdefs.h tests; no longer needed.
110         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
111         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
113         scratch_buffer: new module
114         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
115         * lib/scratch_buffer_grow_preserve.c:
116         * lib/scratch_buffer_set_array_size.c:
117         New files, copied from glibc with very minor changes that can be
118         copied back.
119         * modules/scratch_buffer: New file.
121         libc-config: new module
122         * MODULES.html.sh: Add libc-config.
123         * lib/cdefs.h: New file, copied from the GNU C Library with very
124         minor changes that can be copied back.
125         * lib/libc-config.h, modules/libc-config: New files.
127 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
129         glob: match dangling symlinks
130         This fixes a bug I inadvertently introduced to Gnulib when I
131         merged glibc glob back into gnulib on 2007-10-16.  This fix is
132         inspired by a patch proposed for glibc by Adhemerval Zanella in:
133         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
134         * doc/posix-functions/glob.texi: Update list of affected platforms.
135         * lib/glob.c (__lstat64): New macro.
136         (is_dir): New function.
137         (glob, glob_in_dir): Match symlinks even if they are dangling.
138         (link_stat, link_exists_p): Remove.  All uses removed.
139         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
140         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
141         * modules/glob-tests (Depends-on): Add symlink.
142         * tests/test-glob.c: Include errno.h, unistd.h.
143         (BASE): New macro.
144         (main): Test dangling symlinks, if symlinks are supported.
146         glob, backupfile: inode 0 is a valid inode number
147         * doc/posix-functions/readdir.texi (readdir):
148         * doc/posix-headers/dirent.texi (dirent.h):
149         Document more readdir portability issues.
150         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
151         (numbered_backup): Don’t treat inode 0 any differently from
152         other inode values.
153         * lib/glob.c (struct readdir_result): Remove skip_entry member.
154         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
155         All uses removed.
156         * modules/glob (Depends-on): Remove d-ino.
158         glob: simplify symlink detection
159         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
160         uint8_t, as C99 does not require uint8_t.
161         (struct readdir_result): Use it.  Do not define skip_entry unless
162         it is needed; this saves a byte on platforms lacking d_ino.
163         (readdir_result_type, readdir_result_skip_entry):
164         New functions, replacing ...
165         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
166         ... these functions, which were removed.  This makes the callers
167         easier to read.  All callers changed.
168         (D_INO_TO_RESULT): Now empty if there is no d_ino.
170 2017-08-30  Pádraig Brady  <P@draigBrady.com>
172         fts-tests: tag as a longrunning-test so not included by default
173         * modules/fts-tests: This test takes about 20s on current systems,
174         and uses about 285M of space on ext4.
176 2017-08-30  Pádraig Brady  <P@draigBrady.com>
178         renameat2: fix compilation on alpine linux
179         * m4/renameat.m4: Check for <linux/fs.h> presence.
180         * lib/renameat2.h: Only include <linux/fs.h> if present.
181         Reported by Assaf Gordon on Alpine Linux.
183 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
185         glob: try to port recent changes to MS-Windows
186         Problem reported by Bruno Haible in:
187         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00170.html
188         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
189         * lib/glob.in.h (__glob_pattern_p): ... to here.
191 2017-08-24  Eric Blake  <eblake@redhat.com>
193         warnings: fix compilation with old autoconf
194         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
195         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
196         AC_DEFUN.
197         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
198         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
200 2017-08-24  Bruno Haible  <bruno@clisp.org>
202         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
203         * modules/glob (Depends-on): Add c99.
205 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
207         glob: fix typo that broke platforms lacking d_ino
208         This typo also hurt performance on GNU/Linux and similar hosts.
209         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
210         in previous change.
212 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
214         glob: merge from glibc with Zanella glob changes
215         Merge glob from glibc, with changes for glob proposed
216         by Adhemerval Zanella in the thread starting here:
217         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
218         plus some fixes for this merge.
219         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
220         New files, ported from glibc.
221         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
222         with __restrict.
223         (__size_t): Remove.  All uses replaced by size_t.
224         (size_t): Define by defining __need_size_t and including <stddef.h>.
225         This should work even in non-glibc platforms, where any name
226         pollution is OK.
227         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
228         (struct stat64): Don’t worry about __GLOB_GNULIB.
229         (glob, globfree, glob_pattern_p): Remove macros for
230         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
231         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
232         but set errno.
233         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
234         removed since the glibc behavior works on null pointers.
235         Do not include stdio.h; old SunOS is irrelevant now.
236         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
237         Include glob_internal.h.
238         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
239         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
240         worked only coincidentally.
241         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
242         Remove macros; now done in glob.in.h.
243         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
244         (glob): Properly initialize glob structure with
245         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
246         Remove old code using SHELL since Bash no longer
247         uses this.
248         (glob, prefix_array): Separate MS code better.
249         (glob, glob_in_dir): Use C99 decls before statements when glibc
250         does.
251         (glob_in_dir): Remove old Amiga and VMS code.
252         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
253         separate files.
254         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
255         (__glibc_unlikely):
256         Move here from glob.c.
257         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
258         (weak_alias): New macro.
259         (__size_t): Remove.  All uses replaced by size_t.
260         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
261         * modules/glob (Files): Add +lib/glob_internal.h,
262         lib/glob_pattern_p.c, lib/globfree.c.
263         (Depends-on): Remove snippet/arg-nonnull.
265 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
267         glob: port to clang's Undefined Sanitizer
268         Problem reported by Tim Rühsen in:
269         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00144.html
270         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
271         (glob_in_dir): Do not rely on undefined behavior in accessing
272         struct members beyond their bounds.  Use a flexible array member
273         instead.
275 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
277         vc-list-files: port to Solaris 10
278         * build-aux/vc-list-files: Don't assume test -e works.
280 2017-08-21  Karl Berry  <karl@freefriends.org>
282         * doc/posix-functions/srandom.texi (srandom): typo }.
284 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
286         git-version-gen: port to Solaris 10
287         Problem reported by Dagobert Michelsen in:
288         http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html
289         * build-aux/git-version-gen (v_from_git):
290         Use expr instead of shell substitution.
292 2017-08-19  Bruno Haible  <bruno@clisp.org>
294         host-cpu-c-abi: Improve detection of MIPS ABI.
295         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
296         _MIPS_SIM.
298 2017-08-17  Bruno Haible  <bruno@clisp.org>
300         hypot tests: Fix test failure on FreeBSD 11.0/x86.
301         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
303 2017-08-17  Bruno Haible  <bruno@clisp.org>
305         float: Fix LDBL_MIN value on FreeBSD/x86.
306         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
308 2017-08-17  Bruno Haible  <bruno@clisp.org>
310         random: Fix test compilation failure on Cygwin 1.5.25.
311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
312         HAVE_DECL_SETSTATE.
313         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
314         declared.
315         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
316         HAVE_DECL_SETSTATE.
317         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
318         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
319         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
320         * doc/posix-functions/random.texi: Likewise.
321         * doc/posix-functions/setstate.texi: Likewise.
322         * doc/posix-functions/srandom.texi: Likewise.
324 2017-08-16  Bruno Haible  <bruno@clisp.org>
326         stdnoreturn: Fix test compilation failure on Cygwin.
327         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
328         <stdnoreturn.h> replacement.
329         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
330         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
332 2017-08-16  Bruno Haible  <bruno@clisp.org>
334         thread: Fix conflict with pthread_sigmask module.
335         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
336         it's defined as a macro.
337         * modules/thread (Depends-on): Add pthread_sigmask.
339 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
341         rename: port better to NetBSD
342         * doc/posix-functions/rename.texi (rename): NetBSD 7
343         does not have the link-count bug.
344         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
345         broken merely because rename ("a", "b") removes "a" when the two
346         names are hard links to the same file.
348 2017-08-16  Bruno Haible  <bruno@clisp.org>
350         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
351         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
352         the target file names with '$(srcdir)/'.
353         * modules/unicase/locale-language (Makefile.am): Likewise.
354         * modules/unicase/special-casing (Makefile.am): Likewise.
355         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
356         * modules/unictype/category-byname (Makefile.am): Likewise.
357         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
358         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
359         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
360         * modules/unictype/property-byname (Makefile.am): Likewise.
361         * modules/unictype/scripts (Makefile.am): Likewise.
362         * modules/uninorm/composition (Makefile.am): Likewise.
364 2017-08-16  Bruno Haible  <bruno@clisp.org>
366         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
367         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
368         value for OpenBSD.
370 2017-08-16  Bruno Haible  <bruno@clisp.org>
372         rename, renameat: Update doc regarding NetBSD.
373         * doc/posix-functions/rename.texi: Clarify that when using
374         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
375         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
376         version.
378 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
380         renameat2: port better to macOS
381         * lib/renameat2.c (renameat2): Use renameatx_np if available.
383         futimens: don’t assume struct timespec layout
384         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
385         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
386         * tests/test-fdutimensat.c (main):
387         * tests/test-futimens.h (test_futimens):
388         * tests/test-lutimens.h (test_lutimens):
389         * tests/test-utimens.h (test_utimens):
390         * tests/test-utimensat.c (main):
391         Don’t assume that struct timespec is a two-member structure in
392         tv_sec, tv_nsec order.  Although this is true on all platforms we
393         know about, POSIX does not guarantee it.
395         rename: document+test NetBSD rename
396         Test failure reported by Bruno Haible in:
397         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00104.html
398         This is an area where NetBSD is better-behaved than POSIX,
399         so allow the NetBSD behavior in tests.
400         * doc/posix-functions/rename.texi:
401         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
402         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
404 2017-08-15  Bruno Haible  <bruno@clisp.org>
406         renameat: Ensure declaration in <stdio.h> on NetBSD.
407         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
408         * doc/posix-functions/renameat.texi: Mention this problem.
410 2017-08-15  Bruno Haible  <bruno@clisp.org>
412         duplocale: Work around NetBSD 7.0 bug.
413         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
414         * lib/duplocale.c: Add comment about NetBSD problem.
415         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
417 2017-08-15  Bruno Haible  <bruno@clisp.org>
419         duplocale tests: Verify use with *_l functions.
420         * modules/duplocale-tests (configure.ac): Test for uselocale and
421         some *_l functions.
422         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
423         from main.
424         (get_locale_dependent_values_from, test_with_locale_parameter): New
425         functions.
426         (main): Test both test_with_uselocale and test_with_locale_parameter.
428 2017-08-15  Bruno Haible  <bruno@clisp.org>
430         extensions: Enable NetBSD specific extensions.
431         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
433 2017-08-14  Bruno Haible  <bruno@clisp.org>
435         open, openat: Update doc about O_CLOEXEC.
436         * doc/posix-functions/open.texi: More concrete list of platforms.
437         * doc/posix-functions/openat.texi: Likewise.
439 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
441         open: support O_CLOEXEC
442         * NEWS, doc/posix-functions/open.texi:
443         * doc/posix-functions/openat.texi: Document this.
444         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
445         (GNULIB_defined_O_CLOEXEC): New symbol.
446         * lib/open.c: Include cloexec.h.
447         (open): Support O_CLOEXEC.
448         * lib/openat.c: Include cloexec.h.
449         (rpl_openat): Support O_CLOEXEC.
450         * lib/popen-safer.c: Do not include cloexec.h.
451         (open_noinherit): Remove.
452         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
453         * lib/save-cwd.c: Do not include cloexec.h.
454         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
455         * m4/open-cloexec.m4: New file.
456         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
457         Replace 'open' if O_CLOEXEC is not present.
458         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
459         Replace 'openat' if O_CLOEXEC is not present.
460         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
461         * modules/open (Files): Add m4/open-cloexec.m4.
462         (Depends-on): Depend on cloexec if replacing 'open'.
463         * modules/openat (Files): Add m4/open-cloexec.m4.
464         (Depends-on): Depend on cloexec if replacing openat.
465         * modules/popen-safer (Depends-on): Remove cloexec.
466         * modules/save-cwd (Depends-on): Remove cloexec, and add
467         fd-safer-flag and 'open'.
469 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
471         reallocarray: minor fixes
472         * doc/glibc-functions/reallocarray.texi: Update version numbers.
473         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
474         * modules/reallocarray (License): Change from GPL to LGPL.
475         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
476         Indent properly and don't use tabs.
478 2017-08-13  Darshit Shah  <darnir@gnu.org>
480         reallocarray: New module
481         reallocarray is a new function in glibc 2.26 to safely allocate an array
482         of memory locations with integer overflow protection.
483         * MODULES.html.sh: Add reallocarray.
484         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
485         * lib/reallocarray.c: New file to implement module reallocarray.
486         * lib/stdlib.in.h: Add function declarations for reallocarray.
487         * m4/reallocarray.m4: New file.
488         * m4/stdlib_h.m4: Declare reallocarray.
489         * modules/reallocarray: New file.
490         * modules/reallocarray-test: New file.
491         * modules/stdlib: Coerce stdlib.h to export reallocarray.
492         * tests/test-reallocarray.c: New test.
494 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
496         dirent-safer: fix cloexec race
497         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
498         (opendir_safer): Use F_DUPFD_CLOEXEC.
499         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
500         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
501         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
502         instead of dup_safer.
504         fts: fix cloexec races
505         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
506         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
507         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
508         (fd_ring_check): Set cloexec flag on new file descriptors.
509         (fts_build, fd_ring_check): While we’re at it, make sure the
510         resulting file descriptor is not 0, 1, or 2, since that is easy.
512 2017-08-11  Bruno Haible  <bruno@clisp.org>
514         fts tests: Fix link error.
515         Reported by Tom G. Christensen in
516         https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00078.html
517         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
519 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
521         fts: port recent changes to CentOS 6
522         Problem reported by Tom G. Christensen in:
523         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00064.html
524         * lib/fts.c (fsword): New type.
525         (struct dev_type, filesystem_type): Use it.
526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
527         Also, check for f_type only if fstatfs and sys/vfs.h work.
529 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
531         tempname: do not depend on secure_getenv
532         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
533         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
534         * modules/tempname (Depends-on): Remove secure_getenv.
536 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
538         extensions: add _OPENBSD_SOURCE
539         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
541 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
542             Bruno Haible  <bruno@clisp.org>
544         manywarnings: Add support for C++.
545         * build-aux/g++-warning.spec: New file.
546         * m4/manywarnings-c++.m4: New file.
547         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
548         redirects to manywarnings-c++.m4.
549         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
551 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
553         git-version-gen: another fix for tags with "-"
554         * build-aux/git-version-gen: Improve fix for tags containing "-".
555         Suggested by Markus Armbruster in:
556         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00034.html
558 2017-08-06  Bruno Haible  <bruno@clisp.org>
560         warnings, manywarnings: Add support for multiple languages, not just C.
561         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
562         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
563         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
564         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
565         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
566         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
567         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
568         of the current language. If C++ is the current language, modify
569         WARN_CXXFLAGS instead of WARN_CFLAGS.
570         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
571         gl_MANYWARN_ALL_GCC.
572         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
574 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
576         git-version-gen: Fix for tags containing '-'
578         Really old versions of git-describe (before v1.5.0, Feb 2007)
579         don't have the number of commits in their long format output,
580         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
581         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
582         recognizes both patterns, and normalizes the old format to the new one.
584         Unfortunately, this normalization code gets confused when the tag
585         contains '-'.  Reproducer:
587             $ git-tag -m test v0.2-rc1
588             $ build-aux/git-version-gen .tarball-version; echo
589             build-aux/git-version-gen: WARNING: git rev-list failed
590             UNKNOWN
592         We take exact tag "v0.2-rc1" for the old format, extract the presumed
593         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
594         commits since tha tag.  Fails, because tag "v0.2" does not exist.
596         * git-version-gen: We could perhaps drop support for versions from
597         more than a decade ago.  But tightening the pattern match is easy
598         enough, so do that.  Still breaks when you use version tags ending in
599         something matching -g????, but you arguably get what you deserve then.
601 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
603         valgrind-tests: use ls, and cache
604         * m4/valgrind-tests.m4: Test ls, not bash.
605         Problem reported by Reuben Thomas.
606         Also, cache the result so that it can be overridden.
608 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
610         manywarnings: port to 64-bit GCC builds of Emacs
611         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
612         object size rather than hardwiring 2147483647.  This is needed to
613         build GNU Emacs, which has one conditional (and used
614         only-in-theory) call to malloc with a literal greater than
615         2147483647.
617 2017-08-04  Bruno Haible  <bruno@clisp.org>
619         Relax the license of some modules with no runtime code.
620         * modules/std-gnu11 (License): Set to 'unlimited'.
621         * modules/c99 (License): Likewise.
622         Reported by Reuben Thomas <rrt@sc3d.org>.
623         * modules/d-ino (License): Set to 'LGPL'.
624         * modules/host-os (License): Likewise.
625         * modules/longlong (License): Likewise.
627 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
629         renameat2: port to RHEL 7 + NFS
630         * lib/renameat2.c (renameat2) [SYS_renameat2]:
631         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
632         http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00082.html
634 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
636         renameat2: port to non-renameat platforms
637         Problem reported for MSVC-2015 by Gisle Vanem in:
638         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00001.html
639         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
640         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
642 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
644         manywarnings: port to 32-bit GCC bug
645         Problem reported by Pino Toscano in:
646         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00150.html
647         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
648         not 2**63 - 1, to work around the following GCC bug:
649         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
651 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
653         backupfile: new function to validate backup suffix
654         * lib/backupfile.c (set_simple_backup_suffix): New function.
655         (backupfile_internal): Use it.
657         canonicalize: fix EOVERFLOW commentary
658         Problem reported by Bruno Haible in:
659         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00147.html
660         * lib/canonicalize.c (canonicalize_filename_mode):
661         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
663         Don't interpret EOVERFLOW to mean nonexistence
664         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
665         may be EOVERFLOW; this is likely more useful than reporting the
666         stat errno.
667         * lib/glob.c (link_stat): Rename from link_exists2_p and
668         return -1/0 instead of 0/1.  Caller changed.
669         * lib/glob.c (link_exists_p):
670         * lib/renameat2.c (rename_noreplace, renameat2):
671         * lib/tempname.c (try_nocreate):
672         If errno == EOVERFLOW then the directory entry exists, so do not
673         act as if it does not exist.
675         backup-rename: new module
676         It is like backupfile, except it avoids some race conditions,
677         and it does not output to stderr or exit.
678         * MODULES.html.sh: Add backup-rename.
679         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
680         * modules/backup-rename: New files.
681         * lib/backupfile.c: Turn this into an internals file, which
682         contains code common to backupfile and backup_rename.  Include
683         backupfile-internal.h instead of backupfile.h.  Do not include
684         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
685         renameat2.h and fcntl.h.
686         (BACKUP_NOMEM): New constant.
687         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
688         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
689         (backupfile_internal): Rename from find_backup_file_name.
690         Support new arg RENAME.
691         (backup_args, backup_types, get_version, xget_version):
692         Move to lib/backup-find.c.
693         * lib/backupfile.h (backup_file_rename): New decl.
694         * modules/backupfile (Files): Add lib/backup-internal.h,
695         lib/backup-find.c.
696         (Depends-on): Add dirfd, fcntl, renameat2.
697         (lib_SOURCES): Add backup-find.c.
699         renameat2: port better to older Solaris
700         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
701         Add goto to use a label, to silence picky compilers.
703         fts-tests: port to gcc -Wwrite-strings
704         * tests/test-fts.c (base, base_d): New static vars.
705         (argv, remove_tree, main): Use them.
707 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
709         relocatable-lib{,-lgpl}: improve documentation
710         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
711         Various other updates.
713 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
714             Bruno Haible  <bruno@clisp.org>
716         relocatable-lib{,-lgpl}: add Valgrind suppressions
717         * lib/relocatable.valgrind: New file.
718         * modules/relocatable-lib (Files): Add relocatable.valgrind.
719         * modules/relocatable-lib-lgpl: Likewise.
721 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
723         relocatable: Make the license on the sources the GPL.
724         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
725         LGPL, which was a special case so that the relocatable source files
726         could be used without gnulib-tool, to GPL. They can still be used under
727         the LGPL, using the --lgpl option to gnulib-tool.
729 2017-07-30  Bruno Haible  <bruno@clisp.org>
731         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
732         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
733         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
734         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
735         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
737 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
739         faccessat: document AT_SYMLINK_NOFOLLOW issue
740         * doc/posix-functions/faccessat.texi: Modernize platform list.
741         Document AT_SYMLINK_NOFOLLOW limitation.
743         renameat2: port to Solaris 10
744         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
745         with AT_SYMLINK_NOFOLLOW (which is not portable).
746         (renameat): Undef before using, to avoid endless recursion when
747         the replacement renameat calls renameat2 which calls the
748         replacement renameat.
749         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
750         * modules/renameat2 (Depends-on): Remove faccessat.
751         * modules/renameat-tests (test_renameat_LDADD):
752         * modules/renameat2-tests (test_renameat2_LDADD):
753         Remove $(LIB_EACCESS).
755         renameat2: new module
756         Although the Linux syscall renameat2 is not in glibc (yet?), it is
757         useful to have access to its RENAME_NOREPLACE flag.
758         * MODULES.html.sh (func_all_modules): Add renameat2.
759         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
760         * modules/renameat2-tests, tests/test-renameat2.c: New files.
761         * lib/renameat.c (renameat): Move most of the implementation
762         to renameat2, and just call renameat2.
763         * modules/renameat (Files): Remove lib/at-func2.c.
764         (Depends-on): Depend only on renameat2.
765         (Include): Remove <fcntl.h>.
766         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
767         since renameat (via renameat2) might use faccessat.
769 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
771         vc-list-files: Adjust the script to support git worktrees
772         * build-aux/vc-list-files: Require existence, not directory.
774 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
776         doc: bring MODULES.html.sh up to date
777         Somehow a few months ago we stopped updating MODULES.html.sh.
778         I don’t recall explicitly deciding this, so I updated it now.
779         Alternatively I suppose we could remove it.
780         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
781         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
782         truncate, utime, utime-h, windows-stat-inodes,
783         windows-stat-override, windows-stat-timespec, year2038.  Sort.
785 2017-07-26  Jim Meyering  <meyering@fb.com>
787         fprintftime: fix build-break caused by recent renaming
788         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
789         "strftime.c".
790         * modules/fprintftime: Depend directly on nstrftime.
792 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
794         regex: work with GCC7's -Werror=implicit-fallthrough=
795         * lib/regex_internal.h (FALLTHROUGH): New macro.
796         * lib/regcomp.c (peek_token_bracket, parse_expression):
797         * lib/regexec.c (check_node_accept): Use it.
799 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
801         fts: simplify fts_build
802         * lib/fts.c (fts_build): Simplify, and be lazier about
803         calling leaf_optimization.
805         fts: three levels of leaf optimization
806         * lib/fts.c (enum leaf_optimization): New type with three values.
807         (S_MAGIC_AFS): New macro.  Sort them.
808         (leaf_optimization): Rename from leaf_optimization_applies, and
809         return enum leaf_optimization instead of bool.  All uses changed.
810         Add cases for unknown type and for AFS.
811         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
813         fts: cache dirent_inode_sort_may_be_useful too
814         * lib/fts.c (struct dev_type): New struct.
815         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
816         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
817         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
818         Now takes FTSENT const *, not int.  All uses changed.  Use
819         filesystem_type to cache.
820         (link_count_optimize_ok): Remove.  Caller changed to use
821         leaf_optimization_applies, which now uses shared cache.
823         fts: introduce MIN_DIR_NLINK
824         * lib/fts.c (MIN_DIR_NLINK): New constant.
825         Use it instead of 2, whenever we are talking about link counts.
827         fts: nlink_t signedness fixups
828         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
829         so that root need not be a special case later.
830         (fts_read): Remove now-redundant test for fts_level.
831         Do not assume that nlink_t is signed.
832         (fts_build): Remove useless decrement of nlinks.
833         (fts_stat): Avoid unlikely signed integer overflow later, if
834         nlink_t is signed.
836         fts-tests: new module
837         * modules/fts-tests, tests/test-fts.c: New files.
839 2017-07-23  Bruno Haible  <bruno@clisp.org>
841         Rename module 'strftime' to 'nstrftime'.
842         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
843         * lib/nstrftime.c: Renamed from lib/strftime.c.
844         * modules/nstrftime: Renamed from modules/strftime.
845         (Files, Makefile.am): Update.
846         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
847         Fix comment.
848         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
849         (Files, Makefile.am): Update.
850         * modules/strftime: New file, an obsolete indirection.
851         * doc/posix-functions/strftime.texi: Update reference.
852         * config/srclist.txt: Update info.
853         * NEWS: Mention the change.
855 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
857         malloca: Silence a warning from clang's memory sanitizer.
858         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
859         (freea): Use it.
861 2017-07-18  Bruno Haible  <bruno@clisp.org>
863         host-cpu-c-abi: Fix detection of MIPS ABI.
864         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
865         ABI, not the CPU instruction set.
867 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
869         explicit_bzero: new module
870         The explicit_bzero function has been added to glibc.
871         This module is intended to supports its use in GNU programs.
872         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
873         * m4/explicit_bzero.m4, modules/explicit_bzero:
874         New files.
875         * doc/gnulib.texi (Glibc string.h): Link to new doc.
876         * lib/string.in.h (explicit_bzero): Declare.
877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
878         * modules/string (string.h): Substitute its vars.
880 2017-07-16  Bruno Haible  <bruno@clisp.org>
882         threadlib: Support static linking.
883         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
884         set gl_cv_have_weak to 'no'.
886 2017-07-16  Bruno Haible  <bruno@clisp.org>
888         unicase/locale-language: Fix link dependencies.
889         * modules/unicase/locale-language (Link): New section.
890         * modules/unicase/locale-language-tests (Makefile.am): Link
891         test-locale-language program with $(LIBTHREAD).
893 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
895         sys_socket: Add support for OpenVMS.
896         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
897         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
899 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
901         sys_resource: Add support for OpenVMS.
902         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
903         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
905 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
906             Bruno Haible  <bruno@clisp.org>
908         math: Add support for OpenVMS.
909         * lib/math.in.h [__VMS]: Include <fp.h>.
910         * doc/posix-headers/math.texi: Mention OpenVMS issues.
912 2017-07-15  Bruno Haible  <bruno@clisp.org>
914         getdtablesize: Add minimal support for OpenVMS.
915         Reported by John E. Malmberg <wb8tyw@qsl.net>.
916         * modules/getdtablesize (Description): Fix.
917         * lib/getdtablesize.c: Fix comment.
918         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
919         getdtablesize() function, even though the test fails.
920         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
921         limitation on OpenVMS.
923 2017-07-13  Bruno Haible  <bruno@clisp.org>
925         Revisit cross-compilation guesses.
926         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
928 2017-07-13  Bruno Haible  <bruno@clisp.org>
930         Improve cross-compilation guesses for native Windows.
931         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
932         Windows.
933         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
934         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
935         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
936         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
937         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
938         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
939         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
940         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
941         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
942         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
943         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
944         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
945         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
946         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
947         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
948         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
949         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
951         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
952         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
953         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
954         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
955         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
956         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
957         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
958         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
959         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
960         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
961         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
962         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
963         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
964         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
965         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
966         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
967         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
968         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
969         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
970         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
971         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
972         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
974         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
975         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
976         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
977         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
978         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
979         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
980         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
981         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
982         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
983         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
984         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
985         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
986         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
987         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
988         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
989         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
990         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
991         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
992         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
993         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
994         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
995         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
996         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
997         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
999         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
1000         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
1001         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
1002         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
1003         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
1004         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1005         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1006         * m4/regex.m4 (gl_REGEX): Likewise.
1007         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1008         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
1009         gl_FUNC_REMAINDERF_WORKS): Likewise.
1010         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
1011         gl_FUNC_REMAINDERL_WORKS): Likewise.
1012         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1013         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1014         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1015         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1017         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1018         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1019         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1020         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
1021         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1022         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
1023         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
1024         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1025         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1026         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1027         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1028         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1030         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1031         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1032         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1033         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1034         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1035         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
1036         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1038         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1039         Likewise.
1040         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1041         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
1042         Windows. Enable also on Autoconf 2.70.
1043         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1044         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1045         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1046         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
1047         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1048         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
1049         for native Windows.
1050         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1051         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
1053 2017-07-13  Bruno Haible  <bruno@clisp.org>
1055         Improve cross-compilation guesses for native Windows.
1056         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
1057         Windows.
1058         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
1059         memchr.m4.
1060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1062 2017-07-13  Bruno Haible  <bruno@clisp.org>
1064         Improve cross-compilation guesses for native Windows.
1065         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
1066         native Windows.
1067         (gl_FUNC_FFLUSH): Update accordingly.
1068         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
1069         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1071 2017-07-11  Bruno Haible  <bruno@clisp.org>
1073         More systematic m4 quoting and indentation.
1074         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
1075         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
1076         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
1077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1078         * m4/host-os.m4 (gl_HOST_OS): Likewise.
1079         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
1080         gl_WINSIZE_IN_PTEM): Likewise.
1081         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
1082         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1083         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1084         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
1085         Correct indentation.
1086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1088         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
1089         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1090         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1091         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1093 2017-07-10  Bruno Haible  <bruno@clisp.org>
1095         round, roundf: Avoid compiler warning in configure test.
1096         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
1097         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1099 2017-07-10  Bruno Haible  <bruno@clisp.org>
1101         getlogin tests: Avoid #ifdefs when sharing code between modules.
1102         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
1103         * modules/getlogin-tests (Files): Likewise. Remove
1104         tests/test-getlogin_r.c.
1105         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
1106         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
1107         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
1108         getlogin().
1110 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1112         getlogin: don’t assume one name per uid
1113         Problem reported by Wolfgang F. Muthmann (Bug#27640).
1114         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
1115         (ttyname): Remove test.
1116         * modules/getlogin_r-tests (ttyname): Remove test.
1117         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
1118         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
1119         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
1120         getlogin rather than getlogin_r.  This avoids code duplication.
1121         (main): Use isatty and fstat rather than ttyname and stat.
1122         Use getpwnam instead of getpwuid, to be portable to test platforms
1123         that have multiple login names for the same uid.
1125 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
1126             Bruno Haible  <bruno@clisp.org>
1128         glob: Fix more memory leaks.
1129         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
1130         returning.
1131         Reported by Tim Rühsen.
1133 2017-07-10  Bruno Haible  <bruno@clisp.org>
1135         Make sure $host and $host_os are defined when used.
1136         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
1137         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
1138         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1139         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1140         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1141         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
1142         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
1143         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
1144         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1145         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1146         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
1147         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
1148         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1149         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
1150         m4_ifdef block.
1152 2017-07-09  Bruno Haible  <bruno@clisp.org>
1154         *printf: Fix cross-compilation guess for Solaris.
1155         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
1156         2010-12-21.
1158 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1159             Bruno Haible  <bruno@clisp.org>
1161         vasnprintf: port to macOS 10.13
1162         Problem reported by comex in:
1163         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html
1164         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
1166 2017-07-06  Bruno Haible  <bruno@clisp.org>
1168         imaxdiv tests: Fix logic.
1169         * tests/test-imaxdiv.c (main): Use == instead of =.
1170         Reported by Coverity.
1172 2017-07-06  Bruno Haible  <bruno@clisp.org>
1174         uninorm/filter: Fix use-after-free bug.
1175         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
1176         sortbuf == filter->sortbuf invariant.
1177         Reported by Coverity.
1179 2017-07-06  Bruno Haible  <bruno@clisp.org>
1181         glob: Fix more memory leaks.
1182         * lib/glob.c (glob): Free dirname before returning.
1183         Reported by Coverity and Tim Rühsen.
1185 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1187         parse-datetime: fix uninit var bug
1188         Reported by Bruno Haible in:
1189         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00038.html
1190         * lib/parse-datetime.y (parse_datetime2): Do not use
1191         uninitialized.
1193 2017-07-05  Bruno Haible  <bruno@clisp.org>
1195         doc: Update for MSVC 14.
1196         * doc/posix-headers/*.texi: Add info about MSVC 14.
1197         * doc/posix-functions/*.texi: Likewise.
1198         * doc/pastposix-functions/*.texi: Likewise.
1199         * doc/glibc-headers/*.texi: Likewise.
1200         * doc/glibc-functions/*.texi: Likewise.
1202 2017-07-05  Bruno Haible  <bruno@clisp.org>
1204         sched: Fix build failure on native Windows (regression from 2017-06-19).
1205         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
1207 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
1209         stdioext: Port to OpenVMS.
1210         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
1211         * lib/fpending.c (fpending): Remove non-working VMS specific code.
1212         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
1213         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
1214         * lib/fpurge.c (fpurge): Likewise.
1215         * lib/freadable.c (freadable): Likewise.
1216         * lib/freadahead.c (freadahead): Likewise.
1217         * lib/freading.c (freading): Likewise.
1218         * lib/freadptr.c (freadptr): Likewise.
1219         * lib/freadseek.c (freadseek): Likewise.
1220         * lib/fseeko.c (fseeko): Likewise.
1221         * lib/fseterr.c (fseterr): Likewise.
1222         * lib/fwritable.c (fwriteable): Likewise.
1223         * lib/fwriting.c (fwriting): Likewise.
1225 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
1227         glob: Declare variables at the very start of their scope.
1228         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
1229         its separate scope, so the functions will compile on Haiku.
1231 2017-07-01  Bruno Haible  <bruno@clisp.org>
1233         logbl: Work around a glibc bug on PowerPC64LE.
1234         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
1235         numbers.
1236         * doc/posix-functions/logbl.texi: Update.
1238 2017-06-29  Bruno Haible  <bruno@clisp.org>
1240         stat, fstat: Compile stat-w32.c only on platforms that need it.
1241         Suggested by Paul Eggert.
1242         * modules/stat (configure.ac): Request stat-w32.o only on native
1243         Windows.
1244         * modules/fstat (configure.ac): Likewise.
1246 2017-06-25  Bruno Haible  <bruno@clisp.org>
1248         stat: Improve last change.
1249         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
1251 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1253         stat: port to xlc 12.01
1254         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
1255         12.01 complains "Compilation unit is empty."
1257 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
1259         xalloc-oversized: port to icc
1260         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
1261         __builtin_mul_overflow if ICC is defined, as this results in
1262         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
1263         20170213.
1265 2017-06-19  Bruno Haible  <bruno@clisp.org>
1267         classpath: Avoid including config.h twice, as it produces warnings.
1268         Reported by John E. Malmberg <wb8tyw@gmail.com>.
1269         * lib/classpath.h: Conditionalize the include of config.h.
1271 2017-06-19  Bruno Haible  <bruno@clisp.org>
1272             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
1274         sched: Fix compilation failure on OpenVMS.
1275         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
1276         test whether <pthread.h> exists and defines struct sched_param.
1277         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
1279 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1281         diffseq: port to GCC 7 with --enable-gcc-warnings
1282         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
1283         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
1284         not complain about big_snake being defined but not used.
1286 2017-06-15  Bruno Haible  <bruno@clisp.org>
1288         gettext-h: Update theoretical condition for use of variable size arrays.
1289         Reported by Paul Eggert.
1290         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
1291         to include the theoretical condition for availability of variable size
1292         arrays, if we could trust the value of __STDC_VERSION__.
1294 2017-06-12  Bruno Haible  <bruno@clisp.org>
1296         Relicense some modules under LGPLv2+.
1297         Daiki Ueno's approval is in
1298         https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00058.html.
1299         * modules/uniwidth/base (License): Change to LGPLv2+.
1300         * modules/uniwidth/width (License): Likewise.
1302 2017-06-11  Bruno Haible  <bruno@clisp.org>
1304         localename: Fix test failure on DragonFly BSD.
1305         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
1306         like FreeBSD.
1308 2017-06-11  Bruno Haible  <bruno@clisp.org>
1310         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
1311         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
1312         * lib/float.in.h: Likewise.
1313         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
1315 2017-06-11  Bruno Haible  <bruno@clisp.org>
1317         gnulib-tool: Clean up after autotools.
1318         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
1319         useless directory left over by the Autotools.
1321 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1323         getopt-posix: port to glibc 2.25.90
1324         Problem reported by Daniel P. Berrange in:
1325         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
1326         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
1327         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
1328         #undef if __GETOPT_PREFIX is defined.
1330 2017-06-11  Bruno Haible  <bruno@clisp.org>
1332         strtod-obsolete: Fix license.
1333         * modules/strtod-obsolete (License): Change to LGPL.
1335 2017-06-10  Jim Meyering  <meyering@fb.com>
1337         maint: update to work with GCC7's -Werror=implicit-fallthrough=
1338         * lib/savewd.c (FALLTHROUGH): Define.
1339         (savewd_save, savewd_restore): Use this, rather than a comment,
1340         whenever one switch case falls through into the next.
1342 2017-06-08  Bruno Haible  <bruno@clisp.org>
1344         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
1345         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
1346         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
1347         case.
1349 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
1351         doc: remove robots, add prereqs
1352         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
1353         builds.  Simon's robot site does not seem to be up, so remove
1354         mentions of it for now.
1356 2017-06-08  Bruno Haible  <bruno@clisp.org>
1358         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
1359         * gnulib-tool (func_symlink_target): New function, extracted from
1360         func_symlink.
1361         (func_symlink, func_symlink_if_changed): Use it.
1363 2017-06-08  Bruno Haible  <bruno@clisp.org>
1365         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
1366         * gnulib-tool (func_ln_s): Determine cp_src correctly.
1368 2017-06-07  Bruno Haible  <bruno@clisp.org>
1370         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
1371         Reported by John E. Malmberg <wb8tyw@gmail.com> in
1372         <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
1373         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
1374         override, pass 2 arguments to getcwd, not 3.
1376 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
1378         same-inode: port better to VMS 8.2 and later
1379         Problem reported by John E. Malmberg in:
1380         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
1381         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
1382         Use the usual POSIX definition.
1383         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
1385 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1387         error: fix POSIX violation for va_end
1388         Problem reported by Bruno Haible in:
1389         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
1390         * lib/error.c (error_tail): Do not call va_end here.
1391         (error, error_at_line): Call it here instead.
1393 2017-05-28  Bruno Haible  <bruno@clisp.org>
1395         c-strtod: Make it usable in C++ mode.
1396         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
1398 2017-05-25  Jim Meyering  <meyering@fb.com>
1400         quotearg: fix compilation failure due to FALLTHROUGH misuse
1401         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
1402         macro back to /* fall through */ comment.  The macro can apply only
1403         to a following case statement.  Reported by Assaf Gordon.
1405 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1407         intprops: port to recent icc
1408         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
1409         but does not support __builtin_add_overflow etc.
1410         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
1411         Define to 0.
1413 2017-05-23  Karl Berry  <karl@freefriends.org>
1415         * config/srclist.txt (iconv.m4): sync broken, comment out
1416         until (hopefully) the next gettext release.
1418 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1420         Remove repeated words in comments.
1422 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
1424         fallthrough: reinstate a FALLTHROUGH instance in quotearg
1425         quotearg.c: Reinstate this instance which is significant
1426         when the if branch is not taken.
1428 2017-05-21  Bruno Haible  <bruno@clisp.org>
1430         gnulib-tool: Add options to create hard links.
1431         * gnulib-tool (func_usage): Document options --hardlink,
1432         --local-hardlink, --more-hardlinks.
1433         (func_symlink): Renamed from func_ln.
1434         (func_symlink_if_changed): Renamed from func_ln_if_changed.
1435         (func_hardlink): New function.
1436         (copymode, lcopymode): New variables.
1437         (symbolic, lsymbolic): Remove variables.
1438         (Options): Implement options --hardlink, --local-hardlink,
1439         --more-hardlinks.
1440         (func_should_link): Renamed from func_should_symlink. Set copyaction.
1441         (func_add_file, func_update_file): Update invocation of
1442         func_should_link. Invoke func_hardlink when appropriate.
1443         (func_import): Update comments.
1444         (func_create_testdir): Update invocation of func_should_link. Invoke
1445         func_hardlink when appropriate.
1446         Finally, invoke 'git update-index --refresh' to mitigate the effects of
1447         the hard links on git.
1449 2017-05-20  Bruno Haible  <bruno@clisp.org>
1451         argp: Simplify bit manipulation.
1452         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
1453         on a signed integer type.
1455 2017-05-20  Bruno Haible  <bruno@clisp.org>
1457         Avoid wrong configure results with gcc -fsanitize=address.
1458         This completes the work done on 2016-02-06 on this topic.
1459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
1460         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1462         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1463         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
1464         returning.
1465         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1466         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1467         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1468         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1469         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1470         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
1472         free allocated memory before returning.
1473         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1474         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
1475         objects before returning.
1476         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
1477         returning.
1479 2017-05-20  Bruno Haible  <bruno@clisp.org>
1481         gnulib-tool: Don't create hard links between gnulib and its testdirs.
1482         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
1484 2017-05-20  Bruno Haible  <bruno@clisp.org>
1486         argp, tsearch tests: Fix file list.
1487         * modules/argp-tests (Files): Add tests/macros.h.
1488         * modules/tsearch-tests (Files): Likewise.
1490 2017-05-20  Bruno Haible  <bruno@clisp.org>
1492         getopt-posix tests: Remove redundant include.
1493         * tests/test-getopt.h: Don't include "macros.h". It's already included
1494         by tests/test-getopt-main.h.
1496 2017-05-19  Jim Meyering  <meyering@fb.com>
1498         dfa: two small simplifications
1499         * lib/dfa.c (build_state): Avoid repeating longer expressions.
1501 2017-05-18  Jim Meyering  <meyering@fb.com>
1503         fallthrough: update for GCC 7/8
1504         * lib/quotearg.c (FALLTHROUGH): New macro.
1505         Use it whenever one switch case falls through into the next,
1506         replacing "/* Fall through */" comments.  This exposed one
1507         instance of an unwarranted "fall through" comment: unwarranted
1508         because it preceded a "goto" label not a case statement.
1509         * lib/freopen-safer.c (freopen_safer): Likewise.
1510         * lib/fts.c (leaf_optimization_applies): Likewise.
1511         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
1512         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
1513         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
1514         tests/macros.h for the definition.
1515         * tests/test-argp.c (group1_parser): Likewise.
1516         * tests/test-getopt.h (getopt_loop): Likewise.
1518 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1520         argp: fix shift bug
1521         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
1522         behavior on shift overflow, caught by gcc -fsanitize=undefined.
1524         argp: fix pointer-subtraction bug
1525         * lib/argp-help.c (hol_append): Don’t subtract pointers to
1526         different arrays, as this can run afoul of -fcheck-pointer-bounds.
1527         See the thread containing Bruno Haible’s report in:
1528         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html
1530 2017-05-19  Bruno Haible  <bruno@clisp.org>
1532         printf-posix tests: Avoid test failure with "gcc --coverage".
1533         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1534         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
1535         than 5000000.
1536         * tests/test-fprintf-posix2.c (main): Likewise.
1538 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1540         closeout: don’t close stderr when sanitizing
1541         * NEWS: Document this.
1542         * lib/closeout.c (__has_feature): New macro, if not already defined.
1543         (SANITIZE_ADDRESS): New constant.
1544         (close_stdout): Don’t close stderr if sanitizing addresses.
1546 2017-05-19  Bruno Haible  <bruno@clisp.org>
1548         get-rusage-data tests: Avoid failure on Linux/glibc.
1549         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
1550         on glibc systems.
1552 2017-05-18  Bruno Haible  <bruno@clisp.org>
1554         localename: Include necessary header files on Cygwin.
1555         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
1556         where NL_LOCALE_NAME is defined.
1558 2017-05-18  Bruno Haible  <bruno@clisp.org>
1560         gettext: Update macros from gettext git.
1561         * m4/intldir.m4: Require Autoconf >= 2.60.
1562         * m4/progtest.m4: Fix typos in copyright notice.
1564 2017-05-18  Bruno Haible  <bruno@clisp.org>
1566         copy-file tests: Fix link error (regression from 2017-05-01).
1567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1568         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
1569         $(LIB_CLOCK_GETTIME).
1571 2017-05-18  Bruno Haible  <bruno@clisp.org>
1573         unicase/special-casing: Fix incompatibility with gperf-3.0.4
1574         (regression from 2017-02-13).
1575         * lib/unicase/special-casing.in.h: Renamed from
1576         lib/unicase/special-casing.h.
1577         * modules/unicase/special-casing (Files): Add
1578         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
1579         (Makefile.am): Add rule for generating unicase/special-casing.h.
1580         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
1581         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
1582         not "special-casing.h".
1583         * lib/unicase/u*.c: Likewise.
1585 2017-05-17  Bruno Haible  <bruno@clisp.org>
1587         README: Don't ask people to read a TeXinfo file.
1588         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1589         * README: Tell people how to read the HTML formatted manual.
1591 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
1593         parse-datetime: Fix memleak
1594         * lib/parse-datetime.y (parse_datetime2): Cleanup on
1595         localtime_rz() failure.
1597 2017-05-16  Bruno Haible  <bruno@clisp.org>
1599         javacomp: Fix handle leak.
1600         Found by Coverity.
1601         * lib/javacomp.c (get_classfile_version): Close fd before returning.
1603 2017-05-16  Bruno Haible  <bruno@clisp.org>
1605         relocate: Make it easier to reclaim allocated memory.
1606         * lib/relocatable.h (relocate2): New declaration/macro.
1607         * lib/relocatable.c (relocate2): New function.
1608         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
1609         relocate2 function.
1610         * lib/localcharset.c (relocate2): Define fallback.
1611         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
1612         allocated memory.
1613         * lib/javaversion.c (relocate2): Define fallback.
1614         (javaexec_version): Invoke relocate2 instead of relocate. Free the
1615         allocated memory.
1617 2017-05-16  Bruno Haible  <bruno@clisp.org>
1619         relocate: Simplify EMX specific code.
1620         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
1621         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
1623 2017-05-16  Bruno Haible  <bruno@clisp.org>
1625         sigpipe tests: Fix file list.
1626         * modules/sigpipe-tests (Files): Add tests/macros.h.
1628 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1630         manywarnings: update for GCC 7
1631         * build-aux/gcc-warning.spec:
1632         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1633         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
1634         requires a non-comment fallthrough attribute.  This is a bit
1635         cleaner than the comment versions.
1636         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
1637         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
1638         Use it whenever one switch case falls through into the next.
1639         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
1640         Use FALLTHROUGH macro.
1642 2017-05-15  Bruno Haible  <bruno@clisp.org>
1644         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
1645         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
1646         @ALLOCA@, not @LTALLOCA@.
1648 2017-05-15  Bruno Haible  <bruno@clisp.org>
1650         sys_select: Avoid "was expanded before it was required" warning.
1651         * modules/sys_select (configure.ac): Require, not invoke,
1652         gl_HEADER_SYS_SELECT.
1654 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1656         gnulib-tool: improve GNU Make debugging
1657         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
1658         Report autoconf diagnostics when it fails, in the output makefile.
1660 2017-05-14  Bruno Haible  <bruno@clisp.org>
1662         stat-time tests: Improve comment.
1663         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
1665 2017-05-14  Bruno Haible  <bruno@clisp.org>
1667         same-inode: Adapt for windows-stat-inodes.
1668         * lib/same-inode.h: Include <sys/types.h>.
1669         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
1670         * modules/same-inode (Depends-on): Add sys_types.
1672 2017-05-14  Bruno Haible  <bruno@clisp.org>
1674         windows-stat-inodes: New module.
1675         * m4/windows-stat-inodes.m4: New file.
1676         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
1677         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
1678         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
1679         (_GL_WINDOWS_STAT_INODES): New macro.
1680         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
1681         (GetFileInformationByHandleExFunc): New variable.
1682         (initialize): Initialize it.
1683         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
1684         st_ino appropriately.
1685         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
1686         a fallback, because it does not provide st_dev and st_ino values.
1687         * modules/fstat (Depends-on): Add 'verify'.
1688         * modules/windows-stat-inodes: New file.
1689         * doc/windows-stat-inodes.texi: New file.
1690         * doc/gnulib.texi: Include it.
1691         * doc/posix-headers/sys_stat.texi: Mention the new module.
1693 2017-05-14  Bruno Haible  <bruno@clisp.org>
1695         stat-time tests: Workaround for native Windows.
1696         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
1697         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
1698         New variables.
1699         (initialize_filenames): New function.
1700         (main): Invoke it.
1701         (cleanup, prepare_test): Update.
1703 2017-05-14  Bruno Haible  <bruno@clisp.org>
1705         stat-time: Adapt for windows-stat-timespec.
1706         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
1707         entire st_ctim field.
1709 2017-05-13  Jim Meyering  <meyering@fb.com>
1711         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
1712         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
1713         file that uses the assume macro, claiming that verify.h is unused.
1715 2017-05-13  Bruno Haible  <bruno@clisp.org>
1717         Use symbolic values for _WIN32_WINNT.
1718         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
1719         * lib/sethostname.c (_WIN32_WINNT): Likewise.
1721 2017-05-13  Bruno Haible  <bruno@clisp.org>
1723         year2038: New module.
1724         * m4/year2038.m4: New file.
1725         * modules/year2038: New file.
1726         * doc/year2038.texi: New file.
1727         * doc/gnulib.texi: Include it.
1729 2017-05-13  Bruno Haible  <bruno@clisp.org>
1731         largefile: Simplify.
1732         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
1733         of _GL_WINDOWS_64_BIT_ST_SIZE.
1735 2017-05-13  Bruno Haible  <bruno@clisp.org>
1737         largefile: Improve and document.
1738         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
1739         the mingw headers already define 'stat' appropriately.
1740         * modules/largefile (Description): Clarify.
1741         * doc/largefile.texi: New file.
1742         * doc/gnulib.texi: Include it.
1743         * doc/posix-headers/sys_types.texi: Update.
1745 2017-05-13  Bruno Haible  <bruno@clisp.org>
1747         truncate: New module.
1748         * lib/unistd.in.h (truncate): New declaration.
1749         * lib/truncate.c: New file.
1750         * m4/truncate.m4: New file.
1751         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
1752         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
1753         REPLACE_TRUNCATE.
1754         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
1755         HAVE_TRUNCATE, REPLACE_TRUNCATE.
1756         * modules/truncate: New file.
1757         * tests/test-unistd-c++.cc (truncate): Test signature.
1758         * doc/posix-functions/truncate.texi: Mention the new module.
1760         * tests/test-truncate.c: New file.
1761         * modules/truncate-tests: New file.
1763 2017-05-13  Bruno Haible  <bruno@clisp.org>
1765         windows-stat-timespec: New module.
1766         * modules/windows-stat-timespec: New file.
1767         * m4/windows-stat-timespec.m4: New file.
1768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
1769         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
1770         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
1771         fields st_atim, st_mtim, st_ctim.
1772         (st_atime, st_mtime, st_ctime): Define as macros.
1773         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
1774         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
1775         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
1776         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
1777         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
1778         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
1779         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
1780         FILETIME to 'struct timespec', not 'time_t'.
1781         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
1782         FILETIME to 'struct timespec', not 'time_t'.
1783         * lib/stat-time.h (STAT_TIMESPEC): Define also if
1784         _GL_WINDOWS_STAT_TIMESPEC.
1785         * doc/windows-stat-timespec.texi: New file.
1786         * doc/gnulib.texi: Include it.
1788 2017-05-13  Bruno Haible  <bruno@clisp.org>
1790         windows-stat-override: New module.
1791         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
1792         definition. Define GNULIB_defined_struct_stat.
1793         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
1794         link error if this symbol is used and the corresponding module is not
1795         in use.
1796         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
1797         GNULIB_OVERRIDES_STRUCT_STAT.
1798         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1799         GNULIB_OVERRIDES_STRUCT_STAT.
1800         * modules/sys_stat (Makefile.am): Substitute
1801         GNULIB_OVERRIDES_STRUCT_STAT.
1802         * modules/windows-stat-override: New file.
1804 2017-05-13  Bruno Haible  <bruno@clisp.org>
1806         fstat: Fix module dependency conditions.
1807         * modules/fstat (Depends-on): Fix typo.
1809 2017-05-13  Bruno Haible  <bruno@clisp.org>
1811         stat, fstat: Complete removal of old native Windows code.
1812         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
1813         * lib/fstat.c: Likewise.
1814         * lib/stat-w32.c: Likewise.
1816 2017-05-13  Bruno Haible  <bruno@clisp.org>
1818         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
1819         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
1821 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1823         getopt-posix: port to mingw
1824         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
1825         Problem reported by Daniel P. Berrage in:
1826         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
1828 2017-05-11  Bruno Haible  <bruno@clisp.org>
1830         gettimeofday: Increase precision on mingw.
1831         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
1832         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
1833         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
1834         GetSystemTimePreciseAsFileTime based implementation always.
1835         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
1836         mingw.
1838 2017-05-11  Bruno Haible  <bruno@clisp.org>
1840         poll: Fix confusion between SOCKETs and FDs on native Windows.
1841         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
1842         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
1844 2017-05-11  Bruno Haible  <bruno@clisp.org>
1846         doc: Clarify doc about socket functions on native Windows.
1847         This reworks doc that was added on 2008-09-29.
1848         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
1849         clearer wording.
1850         * doc/posix-functions/accept.texi: Use clearer wording.
1851         * doc/posix-functions/bind.texi: Likewise.
1852         * doc/posix-functions/connect.texi: Likewise.
1853         * doc/posix-functions/getpeername.texi: Likewise.
1854         * doc/posix-functions/getsockname.texi: Likewise.
1855         * doc/posix-functions/getsockopt.texi: Likewise.
1856         * doc/posix-functions/ioctl.texi: Likewise.
1857         * doc/posix-functions/listen.texi: Likewise.
1858         * doc/posix-functions/recv.texi: Likewise.
1859         * doc/posix-functions/recvfrom.texi: Likewise.
1860         * doc/posix-functions/send.texi: Likewise.
1861         * doc/posix-functions/sendto.texi: Likewise.
1862         * doc/posix-functions/setsockopt.texi: Likewise.
1863         * doc/posix-functions/shutdown.texi: Likewise.
1864         * doc/posix-functions/socket.texi: Likewise.
1866 2017-05-10  Bruno Haible  <bruno@clisp.org>
1868         poll: Fix link error on native Windows.
1869         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
1871 2017-05-10  Bruno Haible  <bruno@clisp.org>
1873         time: Fix missing initialization of HAVE_TIMEZONE_T.
1874         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
1875         here...
1876         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
1877         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
1878         gl_HEADER_SYS_TIME_H_DEFAULTS.
1879         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
1880         (configure.ac): Remove useless quoting.
1882 2017-05-10  Bruno Haible  <bruno@clisp.org>
1884         Implement a way to opt out from MSVC support, part 2.
1885         * modules/msvc-inval (Include): Document recommended idiom.
1886         * modules/msvc-nothrow (Include): Likewise.
1888         Implement a way to opt out from MSVC support.
1889         This is useful for Emacs.
1890         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
1891         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
1892         * lib/error.c: Likewise.
1893         * lib/fcntl.c: Likewise.
1894         * lib/flock.c: Likewise.
1895         * lib/fstat.c: Likewise.
1896         * lib/fsync.c: Likewise.
1897         * lib/ioctl.c: Likewise.
1898         * lib/isapipe.c: Likewise.
1899         * lib/lseek.c: Likewise.
1900         * lib/nonblocking.c: Likewise.
1901         * lib/poll.c: Likewise.
1902         * lib/select.c: Likewise.
1903         * lib/sockets.h: Likewise.
1904         * lib/sockets.c: Likewise.
1905         * lib/stdio-read.c: Likewise.
1906         * lib/stdio-write.c: Likewise.
1907         * lib/utimens.c: Likewise.
1908         * lib/w32sock.h: Likewise.
1909         * lib/w32spawn.h: Likewise.
1910         * tests/test-cloexec.c: Likewise.
1911         * tests/test-dup-safer.c: Likewise.
1912         * tests/test-dup2.c: Likewise.
1913         * tests/test-dup3.c: Likewise.
1914         * tests/test-fcntl.c: Likewise.
1915         * tests/test-pipe.c: Likewise.
1916         * tests/test-pipe2.c: Likewise.
1917         * lib/ftruncate.c: Likewise.
1918         (chsize_nothrow): Renamed from chsize.
1919         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
1920         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1921         * lib/close.c: Likewise.
1922         * lib/dup.c: Likewise.
1923         * lib/fclose.c: Likewise.
1924         * lib/raise.c: Likewise.
1925         * tests/test-fgetc.c: Likewise.
1926         * tests/test-fputc.c: Likewise.
1927         * tests/test-fread.c: Likewise.
1928         * tests/test-fwrite.c: Likewise.
1929         * lib/getdtablesize.c: Likewise.
1930         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
1931         * lib/isatty.c: Don't include msvc-inval.h if
1932         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1933         Include <io.h> as an alternative to msvc-nothrow.h.
1934         * lib/read.c: Likewise.
1935         * lib/write.c: Likewise.
1936         * lib/dup2.c: Likewise.
1937         (dup2_nothrow): New function.
1938         (ms_windows_dup2): Use it.
1939         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
1940         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
1941         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1942         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1943         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
1944         * m4/read.m4 (gl_FUNC_READ): Likewise.
1945         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
1946         * doc/windows-without-msvc.texi: New file.
1947         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
1948         section.
1950 2017-05-10  Bruno Haible  <bruno@clisp.org>
1952         wait-process: Adjust native Windows support.
1953         * lib/wait-process.c: Use the usual condition for recognizing a native
1954         Windows platform.
1956 2017-05-10  Bruno Haible  <bruno@clisp.org>
1958         doc: New chapter "Native Windows Support".
1959         * doc/gnulib.texi (Native Windows Support): New chapter.
1960         * doc/windows-libtool.texi: Small wording changes.
1961         * doc/windows-sockets.texi: Small wording and formatting changes.
1963 2017-05-10  Bruno Haible  <bruno@clisp.org>
1965         doc: Move section "Library version handling".
1966         * doc/gnulib.texi: Move section "Library version handling"
1967         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
1969 2017-05-10  Bruno Haible  <bruno@clisp.org>
1971         doc: Move section "Running self-tests under valgrind".
1972         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
1973         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
1975 2017-05-10  Bruno Haible  <bruno@clisp.org>
1977         doc: New chapter "Build Infrastructure Modules".
1978         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
1980 2017-05-10  Bruno Haible  <bruno@clisp.org>
1982         Prepare for reordering sections in the manual.
1983         * doc/gnulib.texi: Move several sections to separate files. Include
1984         these files.
1985         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
1986         * doc/obsolete.texi: Likewise.
1987         * doc/extra-tests.texi: Likewise.
1988         * doc/transversal.texi: Likewise.
1989         * doc/namespace.texi: Likewise.
1990         * doc/check-version.texi: Likewise.
1991         * doc/windows-sockets.texi: Likewise.
1992         * doc/windows-libtool.texi: Likewise.
1993         * doc/licenses-texi.texi: Likewise.
1994         * doc/build-automation.texi: Likewise.
1995         * doc/c-locale.texi: Likewise.
1997 2017-05-10  Bruno Haible  <bruno@clisp.org>
1999         Fix instructions how to update manual on www.gnu.org.
2000         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
2002 2017-05-09  Bruno Haible  <bruno@clisp.org>
2004         tzset: Expand comment about TZ problem on native Windows.
2005         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
2006         Paul Eggert.
2007         * lib/ctime.c (rpl_ctime): Likewise.
2008         * lib/localtime.c (rpl_localtime): Likewise.
2009         * lib/mktime.c (mktime): Likewise.
2010         * lib/strftime-fixes.c (rpl_strftime): Likewise.
2011         * lib/wcsftime.c (rpl_wcsftime): Likewise.
2013 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2015         intprops: don’t depend on ‘verify’
2016         Problem reported by Ævar Arnfjörð Bjarmason in:
2017         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00054.html
2018         * lib/intprops.h: Do not include verify.h, and move compile-time
2019         checks from here ...
2020         * tests/test-intprops.c (main): ... to here, if they’re not here
2021         already.  Check widths of other standard integer types.
2022         * modules/intprops (Depends-on): Remove ‘verify’.
2024 2017-05-07  Bruno Haible  <bruno@clisp.org>
2026         utimens: On native Windows, support 100ns resolution also if fd < 0.
2027         * lib/utime.in.h: Include <time.h>.
2028         (_gl_utimens_windows): New declaration.
2029         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
2030         (utime): Invoke it.
2031         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
2032         instead of utime.
2033         * modules/utime (Depends-on): Add 'time'.
2035 2017-05-07  Bruno Haible  <bruno@clisp.org>
2037         utimens: Improve error code on native Windows.
2038         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
2039         error code EACCES, not EINVAL.
2041 2017-05-07  Bruno Haible  <bruno@clisp.org>
2043         utime: Handle more Windows error codes.
2044         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
2045         Based on explanations by Billy O'Neal.
2047 2017-05-05  Bruno Haible  <bruno@clisp.org>
2049         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
2050         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
2051         union.
2052         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
2053         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
2054         value of cipher->IV.
2056 2017-05-05  Bruno Haible  <bruno@clisp.org>
2058         wctype-h-c++-tests: Update.
2059         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
2061 2017-05-05  Bruno Haible  <bruno@clisp.org>
2063         wchar-c++-tests: Update.
2064         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
2066 2017-05-05  Bruno Haible  <bruno@clisp.org>
2068         utime-h-c++-tests: New module.
2069         * tests/test-utime-h-c++.cc: New file.
2070         (utime): Declare, missing since 2017-04-30.
2071         * modules/utime-h-c++-tests: New file.
2073 2017-05-05  Bruno Haible  <bruno@clisp.org>
2075         unistd-c++-tests: Update.
2076         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
2077         (read): Declare, missing since 2011-04-15.
2078         (sethostname): Declare, missing since 2011-12-03.
2080 2017-05-05  Bruno Haible  <bruno@clisp.org>
2082         time-c++-tests: Update.
2083         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
2084         (localtime, gmtime): Declare, missing since 2017-04-30.
2085         (ctime): Declare, missing since 2017-04-30.
2086         (strftime): Declare, missing since 2017-04-30.
2087         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
2088         2015-07-24.
2090 2017-05-05  Bruno Haible  <bruno@clisp.org>
2092         sys_resource-c++-tests: New module.
2093         * tests/test-sys_resource-c++.cc: New file.
2094         (getrusage): Declare, missing since 2012-04-13.
2095         * modules/sys_resource-c++-tests: New file.
2097 2017-05-05  Bruno Haible  <bruno@clisp.org>
2099         strings-c++-tests: New module.
2100         * tests/test-strings-c++.cc: New file.
2101         (ffs): Declare, missing since 2011-07-12.
2102         * modules/strings-c++-tests: New file.
2104 2017-05-05  Bruno Haible  <bruno@clisp.org>
2106         string-c++-tests: Update.
2107         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
2108         (ffsll): Declare, missing since 2011-07-15.
2110 2017-05-05  Bruno Haible  <bruno@clisp.org>
2112         stdlib-c++-tests: Update.
2113         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
2114         2011-10-18.
2115         (ptsname_r): Declare, missing since 2011-11-07.
2116         (qsort_r): Declare, missing since 2014-08-29.
2117         (random, srandom, initstate, setstate): Declare, missing since
2118         2012-01-14.
2119         (secure_getenv): Declare, missing since 2013-02-05.
2121 2017-05-05  Bruno Haible  <bruno@clisp.org>
2123         stdio-c++-tests: Update.
2124         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
2126 2017-05-05  Bruno Haible  <bruno@clisp.org>
2128         signal-h-c++-tests: Update.
2129         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
2131 2017-05-05  Bruno Haible  <bruno@clisp.org>
2133         math-c++-tests: Update.
2134         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
2135         (fma): Declare, missing since 2011-10-17.
2136         (fmal): Declare, missing since 2011-10-17.
2138 2017-05-05  Bruno Haible  <bruno@clisp.org>
2140         locale-c++-tests: Update.
2141         * tests/test-locale-c++.cc (localeconv): Declare, missing since
2142         2012-03-25.
2144 2017-05-05  Bruno Haible  <bruno@clisp.org>
2146         inttypes-c++-tests: New module.
2147         * tests/test-inttypes-c++.cc: New file.
2148         (strtoimax): Declare, missing since 2012-01-05.
2149         (strtoumax): Declare, missing since 2012-01-05.
2150         * modules/inttypes-c++-tests: New file.
2152 2017-05-05  Bruno Haible  <bruno@clisp.org>
2154         dirent-c++-tests: Update.
2155         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
2156         (rewinddir): Declare, missing since 2011-09-13.
2157         (dirfd): Declare, missing since 2010-03-08.
2159 2017-05-04  Bruno Haible  <bruno@clisp.org>
2161         argp: Fix mistake in 2017-04-23 commit.
2162         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
2163         assume that strerror_r returns 'int', not 'char *'.
2165 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
2167         argp: Fix typo.
2168         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
2170 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2172         utimens: port to Emacs + MS-Windows
2173         Skip the new MS-Windows-specific code if Emacs.
2174         * lib/utimens.c [EMACS_CONFIGUATION]:
2175         Avoid new MS-Windows-specific code.
2176         (USE_SETFILETIME): New macro.
2177         (fdutimens): Use it.
2179 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
2181         tzset: update doc for TZ problems on MS-Windows
2182         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
2183         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
2184         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
2185         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
2186         * doc/posix-functions/wcsftime.texi:
2187         Mention some issues with TZ under MS-Windows.
2189 2017-05-01  Bruno Haible  <bruno@clisp.org>
2191         copy-file: Fix build error on mingw.
2192         * modules/copy-file (Depends-on): Add 'close'.
2194 2017-05-01  Bruno Haible  <bruno@clisp.org>
2196         tzset: Work around TZ problem on native Windows.
2197         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
2198         Windows, set REPLACE_TZSET to 1.
2199         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
2200         invoke '_tzset' instead of 'tzset'.
2201         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
2203         * modules/time_rz (Depends-on): Add tzset.
2204         * lib/time_rz.c (tzset): Remove fallback definition.
2205         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
2207 2017-05-01  Bruno Haible  <bruno@clisp.org>
2209         mktime: Fix dependencies.
2210         * modules/mktime (Depends-on): Add 'time'.
2212 2017-05-01  Bruno Haible  <bruno@clisp.org>
2214         New module 'localtime-buffer', split off from module 'gettimeofday'.
2215         * lib/localtime-buffer.h: New file.
2216         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
2217         * lib/time.in.h (tzset): New declaration.
2218         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
2219         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
2220         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
2221         moved to lib/localtime-buffer.c or lib/tzset.c.
2222         * m4/localtime-buffer.m4: New file.
2223         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
2224         HAVE_TZSET, REPLACE_TZSET.
2225         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
2226         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
2227         gl_LOCALTIME_BUFFER_NEEDED.
2228         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
2229         since 2007-01-18.
2230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
2231         tzset.
2232         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
2233         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
2234         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
2235         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
2236         * modules/localtime-buffer: New file.
2237         * modules/time (Depends-on): Remove 'gettimeofday'.
2238         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
2239         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
2240         * modules/tzset (Description): Enable hyperlink to POSIX spec.
2241         (Files): Add lib/tzset.c.
2242         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
2243         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
2244         gl_TIME_MODULE_INDICATOR.
2245         * modules/gettimeofday (Depends-on): Add localtime-buffer.
2247 2017-05-01  Bruno Haible  <bruno@clisp.org>
2249         copy-file: Preserve sub-second time stamps.
2250         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
2251         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
2252         transport the time stamps from the original file to the destination
2253         file.
2254         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
2255         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
2256         utime-h.
2258 2017-05-01  Bruno Haible  <bruno@clisp.org>
2260         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
2261         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
2262         also on MSVC.
2263         Reported by Eli Zaretskii <eliz@gnu.org>.
2265 2017-05-01  Bruno Haible  <bruno@clisp.org>
2267         wchar: Fix compilation error with the original mingw.org mingw.
2268         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
2269         <stddef.h> instead.
2270         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
2271         gl_WCTYPE_H.
2272         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
2273         gl_TYPE_WINT_T_PREREQ instead.
2274         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
2275         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
2276         Reported by Eli Zaretskii <eliz@gnu.org>.
2278 2017-04-30  Bruno Haible  <bruno@clisp.org>
2280         utimecmp: Add support for native Windows.
2281         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
2283 2017-04-30  Bruno Haible  <bruno@clisp.org>
2285         utimens: Add support for native Windows.
2286         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
2287         (fdutimens): Provide a native Windows implementation, like utime.c with
2288         added tv_nsec support.
2289         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
2290         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
2292 2017-04-30  Bruno Haible  <bruno@clisp.org>
2294         wcsftime: New module.
2295         * lib/wchar.in.h (wcsftime): New declaration.
2296         * lib/wcsftime.c: New file.
2297         * m4/wcsftime.m4: New file.
2298         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
2299         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
2300         HAVE_WCSFTIME, REPLACE_WCSFTIME.
2301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
2302         HAVE_WCSFTIME, REPLACE_WCSFTIME.
2303         * modules/wcsftime: New file.
2304         * doc/posix-functions/wcsftime.texi: Mention the new module.
2306 2017-04-30  Bruno Haible  <bruno@clisp.org>
2308         strftime-fixes: New module.
2309         * lib/time.in.h (strftime): New declaration.
2310         * lib/strftime-fixes.c: New file.
2311         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
2312         (gl_FUNC_STRFTIME): Remove macro.
2313         * m4/strftime-fixes.m4: New file.
2314         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
2315         REPLACE_STRFTIME.
2316         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
2317         REPLACE_STRFTIME.
2318         * modules/strftime-fixes: New file.
2319         * doc/posix-functions/strftime.texi: Mention the new module.
2321 2017-04-30  Bruno Haible  <bruno@clisp.org>
2323         mktime: Work around TZ problem on native Windows.
2324         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
2325         from the native Windows workaround.
2326         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
2327         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
2328         'guessing no'.
2329         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
2330         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
2331         NEED_MKTIME_WINDOWS.
2332         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
2333         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
2334         NEED_MKTIME_INTERNAL.
2335         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
2336         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
2337         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
2338         not REPLACE_MKTIME.
2339         * doc/posix-functions/mktime.texi: Mention the native Windows
2340         workaround.
2342 2017-04-30  Bruno Haible  <bruno@clisp.org>
2344         localtime: New module.
2345         * lib/time.in.h (localtime): Declare also if requested by module
2346         'localtime'.
2347         * lib/localtime.c: New file.
2348         * m4/localtime.m4: New file.
2349         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
2350         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
2351         * modules/localtime: New file.
2352         * doc/posix-functions/localtime.texi: Mention the new module.
2354 2017-04-30  Bruno Haible  <bruno@clisp.org>
2356         ctime: New module.
2357         * lib/time.in.h (ctime): New declaration.
2358         * lib/ctime.c: New file.
2359         * m4/ctime.m4: New file.
2360         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
2361         REPLACE_CTIME.
2362         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
2363         * modules/ctime: New file.
2364         * doc/posix-functions/ctime.texi: Mention the new module.
2366 2017-04-30  Bruno Haible  <bruno@clisp.org>
2368         gettimeofday: Provide higher resolution on native Windows.
2369         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
2370         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
2371         (initialize): Initialize it.
2372         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
2373         'struct timeval'. Don't use _ftime().
2374         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
2375         <sys/timeb.h> and _ftime.
2377 2017-04-30  Bruno Haible  <bruno@clisp.org>
2379         Document the problem with the Cygwin environment variable TZ.
2380         * doc/posix-functions/tzset.texi: Add note about TZ.
2381         * doc/posix-functions/ctime.texi: Likewise.
2382         * doc/posix-functions/localtime.texi: Likewise.
2383         * doc/posix-functions/mktime.texi: Likewise.
2384         * doc/posix-functions/strftime.texi: Likewise.
2385         * doc/posix-functions/wcsftime.texi: Likewise.
2386         * doc/pastposix-functions/ftime.texi: Likewise.
2388 2017-04-30  Bruno Haible  <bruno@clisp.org>
2390         utime-tests: New module.
2391         * tests/test-utime.c: New file, based on tests/test-utimens.h.
2392         * tests/test-utimens-common.h: Include <sys/stat.h>.
2393         * modules/utime-tests: New file.
2395 2017-04-29  Bruno Haible  <bruno@clisp.org>
2397         utime: New module.
2398         * lib/utime.in.h: Add comment for snippets.
2399         (utime): New declaration.
2400         * lib/utime.c: New file.
2401         * m4/utime.m4: New file.
2402         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
2403         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
2404         REPLACE_UTIME.
2405         * modules/utime-h (Depends-on): Add snippets.
2406         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
2407         Insert snippets.
2408         * modules/utime: New file.
2409         * doc/posix-functions/utime.texi: Mention the new module.
2411 2017-04-29  Bruno Haible  <bruno@clisp.org>
2413         utime-h: Modernize handling of 'struct utimbuf'.
2414         * lib/utime.in.h: Include next <utime.h> if it exists.
2415         (utimbuf): Define to _utimbuf on native Windows.
2416         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
2417         Set UTIME_H on native Windows.
2418         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
2419         * modules/utime-h (Depends-on): Add include_next.
2420         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
2421         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
2423         * lib/utimens.c (utimbuf): Remove fallback definition.
2424         * m4/utimens.m4 (gl_UTIMENS): Don't require
2425         gl_CHECK_TYPE_STRUCT_UTIMBUF.
2426         * m4/utimbuf.m4: Remove file.
2427         * modules/utimens (Files): Remove m4/utimbuf.m4.
2429 2017-04-29  Bruno Haible  <bruno@clisp.org>
2431         Make use of module 'utime-h'.
2432         * modules/copy-file (Depends-on): Add utime-h.
2433         * lib/copy-file.c: Assume that <utime.h> exists.
2434         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
2436         * modules/utimens (Depends-on): Add utime-h.
2437         * lib/utimens.c: Assume that <utime.h> exists.
2439 2017-04-29  Bruno Haible  <bruno@clisp.org>
2441         utime-h: New module.
2442         * m4/utime_h.m4: New file.
2443         * lib/utime.in.h: New file.
2444         * modules/utime-h: New file.
2445         * doc/posix-headers/utime.texi: Mention the new module.
2447         * tests/test-utime-h.c: New file.
2448         * modules/utime-h-tests: New file.
2450 2017-04-30  Bruno Haible  <bruno@clisp.org>
2452         Fix a few typos.
2453         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
2454         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
2455         * doc/posix-functions/fstat.texi: Fix a plural typo.
2456         * doc/posix-functions/stat.texi: Likewise.
2457         * m4/include_next.m4: Update comments.
2459 2017-04-29  Bruno Haible  <bruno@clisp.org>
2461         error: Fix mistake in 2017-04-23 commit.
2462         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
2463         assume that strerror_r returns 'int', not 'char *'.
2465 2017-04-29  Bruno Haible  <bruno@clisp.org>
2467         stat: Fix time_t values and other problems on native Windows platforms.
2468         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
2469         implementations of stat().
2470         * lib/stat.c: Include filename.h instead of dosname.h. Include
2471         malloca.h, stat-w32.h.
2472         (is_unc_root): New function.
2473         (rpl_stat): New implementation for native Windows. Remove
2474         REPLACE_FUNC_STAT_DIR code.
2475         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
2476         Don't define REPLACE_FUNC_STAT_DIR.
2477         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
2478         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
2479         (Depends-on): Remove dosname. Add filename, malloca.
2480         (configure.ac): Also compile lib/stat-w32.c.
2482 2017-04-29  Bruno Haible  <bruno@clisp.org>
2484         fstat: Fix time_t values on native Windows platforms.
2485         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
2486         * lib/stat-w32.h: New file.
2487         * lib/stat-w32.c: New file.
2488         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
2489         stat-w32.h instead.
2490         (fstat_nothrow): Remove function.
2491         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
2492         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
2493         always.
2494         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
2495         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
2496         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
2497         (configure.ac): Also compile lib/stat-w32.c.
2499 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2501         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
2502         Problem reported by Assaf Gordon and Gavin Smith in:
2503         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html
2504         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
2505         #define this, too.
2507 2017-04-29  Bruno Haible  <bruno@clisp.org>
2509         strerror_r-posix: Fixes for MSVC 14.
2510         * lib/strerror_r.c: Include <stdarg.h>.
2511         (strerror_r): Provide error messages for errno values 100...140.
2512         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
2514 2017-04-28  Bruno Haible  <bruno@clisp.org>
2516         noreturn: New module.
2517         * lib/noreturn.h: New file.
2518         * modules/noreturn: New file.
2519         * tests/test-noreturn.c: New file.
2520         * modules/noreturn-tests: New file.
2521         * tests/test-noreturn-c++.cc: New file.
2522         * modules/noreturn-c++-tests: New file.
2524 2017-04-27  Bruno Haible  <bruno@clisp.org>
2526         wctype-h: Fix compilation error with the original mingw.org mingw.
2527         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
2528         HAVE_CRTDEFS_H.
2529         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
2530         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
2531         <stddef.h> instead.
2532         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
2534 2017-04-26  Pádraig Brady  <P@draigBrady.com>
2536         nap.h: Fix compilation on non windows platforms
2537         * tests/nap.h: Move misplaced endif.
2539 2017-04-26  Pádraig Brady  <P@draigBrady.com>
2540         and Paul Eggert  <eggert@cs.ucla.edu>
2542         time_rz: fix heap buffer overflow vulnerability
2543         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
2544         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
2545         whether there is enough buffer space available, thus avoiding
2546         the problematic promotion of signed to unsigned causing an invalid
2547         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
2548         the start of the buffer.
2549         * tests/test-parse-datetime.c (main): Add a test case written by
2550         Paul Eggert, which overwrites enough of the heap so that
2551         standard glibc will fail with "free(): invalid pointer"
2552         without the patch applied.
2554 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2556         xalloc: add missing integer overflow check
2557         * lib/xalloc.h (x2nrealloc): Also check for multiplication
2558         overflow when P is null.
2560 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2562         parse-datetime: make it standalone
2563         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
2564         (_GL_ATTRIBUTE_FORMAT): New macro.
2565         These are needed to get './gnulib-tool --test parse-datetime' to work.
2567 2017-04-23  Bruno Haible  <bruno@clisp.org>
2569         nap.h: Port to native Windows.
2570         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
2571         use nap_fd instead. On native Windows, close and reopen nap_fd.
2572         (nap_works): Don't compare the ctimes, because on native Windows, these
2573         are the creation times.
2574         (nap): Update.
2576 2017-04-23  Bruno Haible  <bruno@clisp.org>
2578         nap.h: Fix logic.
2579         * tests/nap.h (nap): Avoid signed integer overflow in loop.
2581 2017-04-23  Bruno Haible  <bruno@clisp.org>
2583         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
2584         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
2585         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
2586         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
2587         * lib/argp-help.c (__argp_failure): Likewise.
2589 2017-04-23  Bruno Haible  <bruno@clisp.org>
2591         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
2592         * m4/strerror_r.m4: Revert changes since 2016-10-16.
2593         * lib/strerror_r.c: Likewise.
2595 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2597         Target a C99 subset, not a C89 subset
2598         For many years Gnulib has targeted C89 and has resisted using C99
2599         features, as some Gnulib-using programs still wanted to target
2600         C89.  As this no longer seems to be the case, relax the porting
2601         requirements to allow some C99 features.  This is merely a change
2602         to the documentation, to give other Gnulib developers a chance to
2603         weigh in on the topic.
2604         * doc/extern-inline.texi (extern inline):
2605         * doc/gnulib-readme.texi (Portability guidelines):
2606         * doc/gnulib-tool.texi (Initial import):
2607         * doc/gnulib.texi (Header files):
2608         Modernize to talk about C99 and C11 instead of C89 and C99.
2609         * doc/gnulib-readme.texi (Portability guidelines):
2610         Now a section, not merely a subsection, so that it
2611         can be split up.  Modernize a bit.
2612         (C language versions, C99 features assumed)
2613         (C99 features avoided):
2614         New sections.
2616 2017-04-23  Bruno Haible  <bruno@clisp.org>
2618         doc: New section "Modules that modify the way other modules work".
2619         * doc/gnulib.texi (Modules that modify the way other modules work): New
2620         section.
2622 2017-04-23  Bruno Haible  <bruno@clisp.org>
2624         stat-time: Update comments.
2625         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
2626         * tests/test-utimens-common.h: Add reference regarding st_ctime on
2627         Windows.
2629 2017-04-01  Bruno Haible  <bruno@clisp.org>
2631         glob: Fix more memory leaks.
2632         * lib/glob.c (glob): Free allocated memory before returning.
2633         Reported by Coverity via Tim Rühsen.
2635 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2637         poll: improve fast check for out-of-range NFD
2638         * lib/poll.c: Do not include intprops.h.
2639         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
2640         * modules/poll (Depends-on): Remove intprops.
2642         ftoastr: cite a newer paper
2643         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
2644         instead of Loitsch 2010.
2646 2017-04-22  Bruno Haible  <bruno@clisp.org>
2648         poll: Enable argument check also in the Windows implementation.
2649         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
2650         Reported by Paul Eggert.
2652 2017-04-22  Bruno Haible  <bruno@clisp.org>
2654         getlogin_r: Work around bug in Mac OS X 10.12.
2655         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
2656         bug.
2657         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
2658         given size minus 1, call getlogin_r a second time, on a larger buffer.
2659         * modules/getlogin_r (Depends-on): Add malloca.
2660         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
2662 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2664         parse-datetime: fix %z and prefer signed int
2665         %z problem reported by Pádraig Brady in:
2666         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
2667         While fixing it, I decided to prefer signed ints to size_t, as
2668         they are less error-prone (e.g., ubsan catches overflow).
2669         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
2670         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
2671         counts, since signed integers make for better debugging.
2672         (date): Don’t assume %z works in printf formats.
2673         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
2674         sizes of buffers known to be small, e.g., because we’re using snprintf.
2675         (parse_datetime2): Simplify call to debug_mktime_not_ok.
2677 2017-04-22  Bruno Haible  <bruno@clisp.org>
2679         *printf: Work around rounding bug on Mac OS X.
2680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
2681         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
2682         Mac OS X and FreeBSD.
2683         * doc/glibc-functions/*printf.texi: Likewise.
2685 2017-04-22  Bruno Haible  <bruno@clisp.org>
2687         vasnprintf tests: Avoid warnings.
2688         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
2689         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
2690         test.
2692 2017-04-22  Bruno Haible  <bruno@clisp.org>
2694         sys_file tests: Avoid warning.
2695         * tests/test-sys_file.c (main): Add a default clause to the switch
2696         statement.
2698 2017-04-22  Bruno Haible  <bruno@clisp.org>
2700         sethostname: Update doc.
2701         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
2702         Mac OS X.
2704 2017-04-22  Bruno Haible  <bruno@clisp.org>
2706         quotearg tests: Avoid warnings.
2707         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
2708         false.
2710 2017-04-22  Bruno Haible  <bruno@clisp.org>
2712         poll: Enable argument check.
2713         * lib/poll.c: Include intprops.h.
2714         (poll): Check value of nfd correctly.
2715         * modules/poll (Depends-on): Add intprops.
2717 2017-04-22  Bruno Haible  <bruno@clisp.org>
2719         get-rusage-data: Avoid warnings on Mac OS X.
2720         * lib/get-rusage-data.c: On Mac OS X, don't define
2721         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
2722         (get_rusage_data) [Mac OS X]: Just return 0.
2724 2017-04-22  Bruno Haible  <bruno@clisp.org>
2726         xbinary-io: Fix build error.
2727         * modules/xbinary-io (Depends-on): Add gettext-h.
2728         * lib/xbinary-io.c: Include gettext.h and define _().
2729         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2730         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
2732 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2734         parse-datetime: overflow and debug cleanups
2735         This long patch was triggered by this bug report from Ruediger Meier:
2736         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
2737         I fixed the bug he noted, then found some others nearby, and then
2738         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
2739         up some of the code to follow GNU standards while I was at it.
2740         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
2741         use c_isdigit.
2742         (EPOCH_YEAR): Remove; unused.
2743         (TM_YEAR_BASE): Now an enum rather than a macro.
2744         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
2745         time zone offset, since timezones now are in terms of seconds and
2746         not minutes.
2747         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
2748         appropriate.  Verify that intmax_t is wide enough.
2749         (time_overflow, time_zone_str): New functions, used to deal
2750         more reliably with overflow.
2751         (dbg_printf): Add printf attribute, to help catch integer width errors.
2752         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
2753         (%union, to_hour, yylex, parse_datetime2):
2754         Use intmax_t instead of long int and/or long_time_t.
2755         All uses changed.
2756         (DBGBUFSIZE): Move earlier.
2757         (relative_time, set_hhmmss, parser_control):
2758         Just use int for nanoseconds and for time zones; that’s wide enough.
2759         (parser_control): Use bool for members like year_seen that can
2760         be booleans instead of counters.  All uses changed.
2761         Remove debug_default_input_timezone; no longer needed.
2762         All uses removed.
2763         (apply_relative_time): Return a bool overflow flag.
2764         All uses changed to check for overflow.
2765         (apply_relative_time, zone, date, relunit, relunit_snumber)
2766         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
2767         Check for integer overflow portably.
2768         (str_days): Use just int for N, as it’s wide enough.
2769         Prefer 2D char arrays to arrays of char * when it looks like
2770         2D is a win on typical platforms.
2771         Prefer snprintf to strncpy/strncat, for simplicity;
2772         all buffers are smaller than INT_MAX so this is safe.
2773         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
2774         (debug_print_current_time): Don’t assume tv_nsec is of type long,
2775         as this is not true on x32.  Output "." before any nanoseconds.
2776         (debug_print_current_time, parse_datetime2):
2777         Output local zones using a more-consistent format.
2778         (debug_print_current_time, date, parse_datetime2):
2779         (main) [TEST]:
2780         Don’t assume time_t is the same width as long.
2781         (print_rel_part): New function, replacing ...
2782         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
2783         (debug_print_relative_time): Use bool for boolean.
2784         (local_zone): dsts_seen now counts only tDST instances.
2785         (date): Fix printf of size_t to use %z.  Do not assume numeric
2786         tokens have negative values merely because the context suggests
2787         a syntax with "-" separating tokens.
2788         (time_zone_hhmm): Return bool success indicator, which checks for
2789         overflow.  Store result into PC->time_zone instead.  All callers
2790         changed.
2791         (tm_year_str): New function.  Return a bool success indicator and
2792         store the result into a buffer.  All callers changed.  Output the
2793         numerically correct string even if adding 1900 to the year would
2794         overflow.
2795         (to_tm_year): New function, replacing the old to_year.  All
2796         callers changed.
2797         (tm_diff): Sync with glibc.
2798         (lookup_word): Use to_uchar instead of doing it by hand.
2799         (TZBUFSIZE): Now local to the only function that needs it.
2800         (debug_strfdatetime): Simplify now that time zones are int seconds.
2801         (debug_strfdate): Work even if tm_year + 1900 would overflow.
2802         (get_effective_timezone): Remove.  All uses removed.
2803         (parse_datetime2): Use fprintf in pieces instead of snprintfing
2804         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
2805         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
2806         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
2807         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
2808         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
2809         * modules/parse-datetime (Depends-on): Add inttypes.
2811 2017-04-21  Bruno Haible  <bruno@clisp.org>
2813         gettext-h: Avoid -Wundef warning.
2814         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
2815         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2816         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
2818 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
2820         error: Avoid "function declaration isn't a prototype" warning.
2821         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
2823 2017-04-21  Bruno Haible  <bruno@clisp.org>
2825         vasnprintf: Fix for MSVC 14.
2826         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
2827         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
2828         of !HAVE_SNPRINTF_RETVAL_C99.
2830 2017-04-21  Bruno Haible  <bruno@clisp.org>
2832         mbrtowc tests: Fix test failures on MSVC 14.
2833         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
2834         behaviour for invalid input.
2836 2017-04-21  Bruno Haible  <bruno@clisp.org>
2838         mbsinit: Fix for MSVC 14.
2839         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
2840         implementation that is in sync with mbrtowc.c. On other platforms, use
2841         an adequate ad-hoc implementation.
2843 2017-04-21  Bruno Haible  <bruno@clisp.org>
2845         Fix test-mbrtowc5.sh failure on native Windows.
2846         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
2847         "C".
2849 2017-04-21  Bruno Haible  <bruno@clisp.org>
2851         Avoid accidental use of native Windows APIs on Cygwin.
2852         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
2853         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
2854         * lib/localename.c (WINDOWS_NATIVE): Likewise.
2856 2017-04-20  Bruno Haible  <bruno@clisp.org>
2858         Remove red warnings from the generated MODULES.html.
2859         * modules/fcntl (Description): Disambiguate function references.
2860         * modules/getcwd-lgpl (Description): Likewise.
2861         * modules/hostent (Description): Likewise.
2862         * modules/servent (Description): Likewise.
2863         * modules/tempname (Description): Likewise.
2865 2017-04-20  Bruno Haible  <bruno@clisp.org>
2867         verify tests: Fix spurious failure with parallel make.
2868         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
2869         EXTRA_PROGRAMS.
2870         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
2871         * tests/test-verify-try.c: New file.
2872         * modules/verify-tests (Files): Add it.
2873         (EXTRA_PROGRAMS): Add test-verify-try.
2874         (MOSTLYCLEANFILES): Update accordingly.
2875         Reported by Adam James Stewart <ajstewart@anl.gov>.
2877 2017-04-18  Bruno Haible  <bruno@clisp.org>
2879         vma-iter: Fix compilation error on Solaris 7.
2880         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
2881         like on IRIX, OSF/1.
2882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2884 2017-04-18  Bruno Haible  <bruno@clisp.org>
2886         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
2887         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
2888         included.
2889         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
2890         <sys/procfs.h>.
2891         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
2892         <sys/procfs.h> cannot be included.
2893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2895 2017-04-18  Bruno Haible  <bruno@clisp.org>
2897         getopt-gnu: Add comments.
2898         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
2899         * modules/getopt-gnu (configure.ac): Likewise.
2901 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
2903         regex: port better to Solaris 10
2904         Solaris 10 <locale.h> includes <libintl.h>, which #defines
2905         gettext, and this causes a double #define.
2906         Problem reported by Gavin Smith in:
2907         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
2908         * lib/regex_internal.h (gettext): #undef before #defining.
2910 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2912         intprops: improve comments
2913         * lib/intprops.h: Improve and shorten commentary.
2914         For the record, if we ever run into a pedantic compiler that
2915         behaves differently from GCC when converting an out-of-range value
2916         to a signed integer, we can work around the problem with something
2917         like the following code, where UCT is the signed counterpart of T
2918         (UCT is sometimes narrower than UT) and all callers are changed
2919         accordingly:
2920         #if __SUNPRO_C <= 0x5120
2921         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2922            ((t) ((ut) (a) op (ut) (b)))
2923         #else
2924         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2925            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
2926             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
2927                + TYPE_MINIMUM (t)) \
2928             : (t) (uct) ((ut) (a) op (ut) (b)))
2929         #endif
2931 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2933         intprops: try to avoid tickling similar bugs
2934         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
2935         needs to be the same width as T; it can be wider.
2936         Change callers so that UT is at least as wide as unsigned int,
2937         as I suspect that this is less likely to run into compiler bugs.
2939         intprops: port to Oracle Studio 12.3 x86
2940         Problem reported by Gavin Smith in:
2941         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
2942         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
2943         Convert unsigned to signed via the usual rather than the standard way,
2944         to avoid a compiler bug in Oracle Studio 12.3 x86.
2946 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2948         getopt: prefer - to _ in new file names
2949         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
2950         * lib/getopt-core.h: Rename from lib/getopt_core.h.
2951         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
2952         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
2953         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
2954         All uses changed.
2956         getopt: port recent getopt changes to macOS
2957         Problem reported by Harald Maier (Bug#26398).
2958         The macOS C compiler uses __nonnull for its own purposes and that
2959         clashes with glibc's __nonnull.
2960         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
2961         * lib/getopt_cdefs.in.h (__nonnull): Remove.
2962         * lib/getopt_core.h (getopt):
2963         * lib/getopt_ext.h (getopt_long, getopt_long_only):
2964         Use _GL_ARG_NONNULL, not __nonnull.
2965         * lib/unistd.in.h: Move snippet hooks to before where the getopt
2966         .h files are included, so that _GL_ARG_NONNULL is defined in time.
2967         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
2968         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
2970 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2972         getopt-gnu: omit some duplicate code
2973         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
2974         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
2975         gnulib-tool already does this.
2976         * modules/getopt-gnu (configure.ac): Omit code duplicated from
2977         getopt-posix, which we depend on.
2979         getopt-posix: use angle-bracket include
2980         * lib/getopt1.c: Include <config.h>, not "config.h".
2982 2017-04-06  Zack Weinberg  <zackw@panix.com>
2984         getopt: annotate files with relationship to glibc
2986         As the final act in this patchset, adjust the message at the top of
2987         each file to indicate which files are synced with glibc.  (This has
2988         already been done for most of the headers.)
2990         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
2991         Mention in top-of-file boilerplate that these files are shared
2992         between glibc and gnulib.
2995         getopt: split up getopt.in.h and eliminate __need_getopt
2997         Over in glibc, all of the __need macros are being phased out in favor
2998         of small headers that declare only the necessary components, as this
2999         is much simpler and less prone to bugs.  As getopt is shared with
3000         glibc, gnulib needs to do the same for __need_getopt.
3002         __need_getopt is misnamed; what it really means is "we want only the
3003         getopt features specified in POSIX, not the GNU extensions".  glibc
3004         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
3005         these files can be shared verbatim with gnulib.  The portability
3006         wrapper, on the other hand, they have renounced altogether; glibc's
3007         getopt.h will no longer be shared with gnulib at all.  In exchange,
3008         certain glibc-specific quirks (having to do with __posix_getopt) no
3009         longer need appear in gnulib's headers at all.
3011         This patch merges getopt_core.h and getopt_ext.h from glibc, and
3012         splits up the current gnulib-side portability wrapper into three
3013         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
3014         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
3015         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
3016         unistd.in.h just use them.  All new files are clearly marked with
3017         whether they are shared with glibc.
3019         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
3020         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
3021         with glibc, and ...
3022         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
3023         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
3024         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
3025         instead of defining __need_getopt and including the full getopt.h.
3027         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
3028         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
3029         * modules/getopt-posix (Files): Add new headers and sort list.
3030         (Depends-on): No longer need snippet/arg-nonnull.
3031         (Makefile.am): Generate getopt_cdefs.h.
3034         getopt: better handling of ambiguous options
3036         glibc's getopt uses alloca to construct a linked list of possibilities
3037         for an "ambiguous" long option.  In gnulib, malloc should be used
3038         instead.  Providing for both cases complicates things a fair bit.
3040         This patch rewrites ambiguous-option handling to use a boolean vector
3041         instead of a linked list.  There is then only one allocation that
3042         might need freeing; in glibc it can honor __libc_use_alloca as usual,
3043         and in gnulib we define __libc_use_alloca to always be false, so we
3044         don't need ifdefs in the middle of the function.  This should also be
3045         slightly more efficient in the normal case of long options being fully
3046         spelled out -- I think most people aren't even aware they _can_
3047         sometimes abbreviate long options.
3049         One interesting consequence is that the list of possibilities is now
3050         printed in exactly the order they appear in the list of long options,
3051         instead of the first possibility being shuffled to the end.
3053         (The patch looks bigger than it really is because there's a fair bit
3054         of reindentation and code rearrangement.)
3056         * lib/getopt.c: When used standalone, define __libc_use_alloca
3057         as always false and alloca to abort if called.
3058         (process_long_option): Rewrite handling of ambiguous long options
3059         to use a single boolean vector, not a linked list; use
3060         __libc_use_alloca to decide whether to allocate this using alloca.
3063         getopt: refactor long-option handling
3065         There were two copies of the bulk of the code to handle long options.
3066         Now there is only one.
3068         This change temporarily removes the logic to avoid using alloca when
3069         standalone; the next patch in the series will restore it.
3071         * lib/getopt.c (process_long_option): New function split out
3072         from _getopt_internal_r.
3073         (_getopt_internal_r): Replace both copies of the long-option
3074         processing code with calls to process_long_option.
3077         getopt: tidy up _getopt_initialize a bit
3079         _getopt_data.__posixly_correct is completely redundant to
3080         _getopt_data.__ordering, and some work that logically belongs in
3081         _getopt_initialize was being done by _getopt_internal_r, making the
3082         code harder to understand.
3084         As a side effect, getenv will no longer be called if the first
3085         character of the options string is '+' or '-', which is probably a
3086         Good Thing.  (Perhaps we should have a flag character that
3087         specifically asks for the permutation behavior?)
3089         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
3090         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
3091         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
3094         getopt: merge from glibc: repetition reduction
3096         The definitions of the entry point functions 'getopt' and
3097         '__posix_getopt' can be made substantially less repetitive with a
3098         helper macro.
3100         While I was merging the const-correctness changes from gnulib into
3101         glibc I noticed there are still some unnecessary casts in
3102         _getopt_internal_r.
3104         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
3105         a macro.  Consistently cast 'argv' to 'char **' when calling
3106         _getopt_internal.
3107         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
3110         getopt: clean up error reporting
3112         getopt can print a whole bunch of error messages, and when used
3113         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
3114         cancellation point and getopt isn't, and also applying fprintf to a
3115         stream in wide-character mode is not allowed.  So every single error
3116         reporting case has an #ifdef _LIBC block in which it calls internal
3117         libc functions instead.  The counterpart patch series in glibc makes
3118         it possible to simplify all of that down to a set of #defines at the
3119         top of the file; core code is written as if it is safe to just call
3120         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
3121         call any *other* stdio functions.)
3123         * lib/getopt.c: When _LIBC is defined, define fprintf to
3124         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
3125         to _IO_funlockfile.  When neither _LIBC nor
3126         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
3127         funlockfile as no-ops.
3128         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
3129         standalone error-printing code can now be used for libc as well.
3130         Add an flockfile/funlockfile pair around one case where the error
3131         message is printed in several chunks.  Don't use fputc.
3134         getopt: fix fencepost error in ambiguous-W-option handling
3136         getopt_long contains an undocumented (AFAICT) feature in which, if you
3137         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
3138         treated as equivalent to '--foo'.  This is implemented with a partial
3139         second copy of the code for handling long options, and that code
3140         increments optind one too many times when recovering from an ambiguous
3141         abbreviated option, which can cause the main loop to walk past the end
3142         of argv and crash.
3144         I discovered this while writing a test case that tries to exercise all
3145         of getopt's error reporting paths; I wouldn't be surprised to learn
3146         that this feature is never used by real applications.
3148         * lib/getopt.c (_getopt_internal_r): Don't increment
3149         d->optind a second time when reporting ambiguous -W options.
3152         getopt: clean up getopt.c and getopt1.c file headers
3154         In getopt.c, there is no need to include wchar.h at all, and it is
3155         safe nowadays to assume that stdlib.h does declare getenv (several
3156         other gnulib modules make this assumption).
3158         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
3159         by using "" inclusions consistently, and there is no actual need to
3160         include stdlib.h (except in the #ifdef TEST block, where it should be
3161         unconditional), nor to provide a backup definition of NULL at all.
3163         * lib/getopt1.c: Simplify #ifdeffage at top of file.
3164         Move inclusion of stdlib.h to #ifdef TEST block and make
3165         unconditional.  Do not define NULL.
3166         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
3167         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
3168         * modules/getopt-gnu, modules/getopt-posix: Don't call
3169         gl_PREREQ_GETENV.
3172         getopt: harmonize comments with glibc
3174         The comments explaining how the behavior of 'getopt' varies depending
3175         on whether it's the standalone version and whether there are special
3176         characters at the beginning of the options string were inconsistent
3177         between gnulib and glibc, and also out of sync with the code.
3179         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
3182         getopt: remove USE_NONOPTION_FLAGS
3184         getopt includes code to parse an environment variable named
3185         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
3186         in decimal); but all of it has been #ifdefed out since 2001, with no
3187         official way to turn it back on.
3189         According to commentary in glibc's config.h.in, bash version 2.0
3190         set this environment variable to indicate argv elements that were
3191         the result of glob expansion and therefore should not be treated
3192         as options, but the feature was "disabled later" because "it
3193         caused problems".  According to bash's CHANGES file, "later" was
3194         release 2.01; it gives no more detail about what the problems
3195         were.
3197         Version 2.0 of bash was released on the last day of 1996, and version
3198         2.01 in June of 1997.  Twenty years later, I think it is safe to
3199         assume that this environment variable isn't coming back.
3201         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
3202         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
3203         __libc_argc and __libc_argv externs, which were only used by
3204         #ifdef USE_NONOPTION_FLAGS blocks.
3207         getopt: tabify, in preparation for merge with glibc
3209         glibc sticks to the GNU default of indenting with a mix of
3210         8-column tabs and spaces; make the gnulib copy match.
3212         getopt.h is not included because it is *not* going to be merged in its
3213         present form.
3215         * getopt.c, getopt1.c, getopt_int.h: Tabify.
3217 2017-04-02  Bruno Haible  <bruno@clisp.org>
3219         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
3220         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
3221         like it was done in modules/relocatable-lib on 2011-05-21 and in
3222         modules/relocatable-prog on 2011-08-15.
3223         Reported by Reuben Thomas <rrt@sc3d.org>.
3225 2017-03-31  Bruno Haible  <bruno@clisp.org>
3227         glob: Fix invalid free() call.
3228         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
3229         static storage to home_dir.
3230         Reported by Coverity via Tim Rühsen.
3232 2017-03-31  Bruno Haible  <bruno@clisp.org>
3234         glob: Fix memory leaks.
3235         * lib/glob.c (glob): Free allocated memory before returning.
3236         Reported by Coverity via Tim Rühsen.
3238 2017-03-31  Bruno Haible  <bruno@clisp.org>
3240         md5, sha1, sha256, sha512: Add comments regarding correctness.
3241         * lib/md5.h (buflen): Add comments regarding range.
3242         * lib/sha1.h (buflen): Likewise.
3243         * lib/sha256.h (buflen): Likewise.
3244         * lib/sha512.h (buflen): Likewise.
3245         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
3246         * lib/sha1.c (sha1_process_bytes): Likewise.
3247         * lib/sha256.c (sha256_process_bytes): Likewise.
3248         * lib/sha512.c (sha512_process_bytes): Likewise.
3249         Reported by Coverity via Tim Rühsen.
3251 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3253         getopt: merge from glibc
3254         This does not change anything substantial; it merely simplifies
3255         hypothetical merges back to glibc.
3256         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
3257         Change copyright notice to match what is in glibc.
3258         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
3259         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
3260         __open_memstream rather than open_memstream and __glibc_likely
3261         instead of __builtin_expect.
3262         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
3264 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3266         dfa: make [0-9] faster in non-C locales
3267         Problem reported by John P. Linderman (Bug#26193).
3268         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
3269         If both ends of the range are ASCII digits, do not worry about
3270         multi-character collating sequences and the like.  Be consistent
3271         about using isalpha as a precondition for setbit_case_fold_c.
3273 2017-03-19  Bruno Haible  <bruno@clisp.org>
3275         lock: Fix compilation error with HP-UX IA64 cc.
3276         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
3277         weak on non-glibc platforms.
3279 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3281         stdalign: tweak version# and test for HP-UX IA64
3282         Problems reported by Bruno Haible in:
3283         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
3284         * lib/stdalign.in.h (_Alignas):
3285         * m4/stdalign.m4 (gl_STDALIGN_H):
3286         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
3287         used octal (as that is how they document it), but it is decimal in
3288         practice now and the ancient implementations no longer matter.
3289         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
3291 2017-03-19  Bruno Haible  <bruno@clisp.org>
3293         vma-iter: Add support for Solaris.
3294         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
3295         approach.
3296         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
3297         * lib/get-rusage-as.c: Update comment about Solaris.
3298         * lib/get-rusage-data.c: Likewise.
3300 2017-03-19  Bruno Haible  <bruno@clisp.org>
3302         vma-iter: Prefer HP-UX specific API on HP-UX.
3303         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
3304         * lib/vma-iter.h: Update.
3305         Just in case HP-UX ever implements mquery().
3307 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
3309         stdalign: restore previous behavior for HP-UX IA64
3310         See Bruno Haible's email in:
3311         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
3312         which cites p 150 of a manual saying that 'aligned' works on Itanium.
3313         * lib/stdalign.in.h (_Alignas):
3314         Assume the '061200' applies to Itanium, not to PA-RISC.
3315         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
3317 2017-03-17  Bruno Haible  <bruno@clisp.org>
3319         stat-time, timespec: Support use of the header files in C++ mode.
3320         * lib/stat-time.h: Add "C" linkage declaration.
3321         * lib/timespec.h: Likewise.
3323 2017-03-17  Bruno Haible  <bruno@clisp.org>
3325         stdalign: Make it work with HP-UX cc.
3326         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
3327         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
3328         for HP-UX cc.
3330 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
3332         flexmember: try to detect HP-UX 11.31 cc bug
3333         Problem reported by Bruno Haible in:
3334         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
3335         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3336         Attempt to detect bug in HP-UX 11.31 cc.
3338 2017-03-16  Bruno Haible  <bruno@clisp.org>
3340         stdint: Fix test compilation failure with HP-UX 11 cc.
3341         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
3342         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
3343         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
3344         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
3346 2017-03-14  Bruno Haible  <bruno@clisp.org>
3348         gnulib-tool: Don't produce a tests directory with only snippet .h files.
3349         * gnulib-tool (func_modules_transitive_closure_separately): If
3350         testsrelated_modules ends up with no "real" modules, aside from
3351         modules with applicability 'all', set it to empty.
3353 2017-03-14  Bruno Haible  <bruno@clisp.org>
3355         vma-iter: Add support for HP-UX.
3356         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
3357         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
3358         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
3359         * lib/get-rusage-as.c: Update comment about HP-UX.
3360         * lib/get-rusage-data.c: Likewise.
3361         (get_rusage_data): Use get_rusage_data_via_setrlimit.
3363 2017-03-14  Bruno Haible  <bruno@clisp.org>
3365         limits-h: Make it work with HP-UX cc.
3366         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
3367         defined.
3369 2017-03-14  Bruno Haible  <bruno@clisp.org>
3371         Fix test failures on DragonFlyBSD.
3372         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
3373         * tests/test-select.h (test_bad_fd): Likewise.
3374         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
3376 2017-03-14  Bruno Haible  <bruno@clisp.org>
3378         freadahead: Silence warning on DragonFlyBSD.
3379         * lib/freadahead.c (__sreadahead): Declare ourselves.
3381 2017-03-14  Bruno Haible  <bruno@clisp.org>
3383         vma-iter: Add comment about AIX.
3384         * lib/vma-iter.c: Add comment about why this module is not implemented
3385         on AIX.
3387 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3389         snippets: move unadjusted snippet sources to lib
3390         Problem reported by Michal Privoznik in:
3391         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
3392         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
3393         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
3394         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
3395         * lib/unused-parameter.h: Rename from
3396         build-aux/snippet/unused-parameter.h.
3397         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
3398         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
3399         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
3400         * modules/snippet/c++defs (Files:, CXXDEFS_H):
3401         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
3402         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
3403         Adjust to file renamings.
3405 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
3407         gnulib-tool: don't automatically distribute files from top/
3408         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
3409         not distribute top/README-release by default, don't distribute files
3410         from top/ unconditionally.
3411         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
3412         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
3414 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3416         gnulib-tool: fix typo in comment output
3417         * gnulib-tool (func_import): Fix typo with previous change.
3419         snippets: work around GNU Make 3.82 VPATH
3420         When using 'gnulib-tool --gnu-make' on Emacs, and building
3421         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
3422         an out-of-source (VPATH) build failed because the sans-copyright
3423         snippet file was not built before the file that used it.
3424         Presumably this is some sort of VPATH thing.  Work around the
3425         problem by using the original snippet, i.e., don’t bother to
3426         remove its copyright notice.
3427         * modules/snippet/_Noreturn, modules/snippet/link-warning:
3428         Don’t assume Automake in comments.  Omit long-incorrect comment.
3429         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
3430         (MOSTLYCLEANFILES):
3431         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
3432         (MOSTLYCLEANFILES):
3433         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
3434         (MOSTLYCLEANFILES):
3435         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
3436         (MOSTLYCLEANFILES):
3437         Remove.
3438         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
3439         * modules/snippet/c++defs (CXXDEFS_H):
3440         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
3441         * modules/snippet/warn-on-use (WARN_ON_USE_H):
3442         Don’t bother to remove the copyright notice; just use the
3443         original snippet as-is.
3445 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
3447         gnulib-tool: minor --gnu-make fixups
3448         * gnulib-tool (func_emit_lib_Makefile_am):
3449         Remove useless code that was a blind alley during implementation.
3450         Problem reported by Thien-Thi Nguyen in:
3451         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
3452         (func_import): Note the "--gnu-make" option in the output comment.
3454 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
3456         gnulib-tool: new option --gnu-make
3457         This is for applications like GNU Emacs that use GNU Make
3458         features instead of Automake.
3459         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
3460         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
3461         Do not assume Automake.
3462         * gnulib-tool (func_determine_path_separator)
3463         (func_modules_transitive_closure, func_update_file)
3464         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
3465         (func_import): Add support for --gnu-make.
3467 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
3469         gnulib-common.m4: avoid aclocal.m4 bloat
3470         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
3471         Hide AM_PROG_AR from aclocal, so that aclocal does not
3472         install irrelevant macro definitions into aclocal.m4.
3474 2017-03-10  Bruno Haible  <bruno@clisp.org>
3476         vma-iter: Let callers know about error.
3477         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
3478         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
3480 2017-03-05  Bruno Haible  <bruno@clisp.org>
3482         Fix value of LD for 64-bit compilers on AIX.
3483         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
3484         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
3486 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
3488         dtotimespec: simplify
3489         * lib/dtotimespec.c (dtotimespec): Simplify.
3491 2017-03-04  Bruno Haible  <bruno@clisp.org>
3493         test-calloc-gnu: Reenable test also for GCC 7.
3494         * tests/test-calloc-gnu.c (eight): New function.
3495         (main): Don't skip test; use eight() instead.
3497 2017-03-04  Jim Meyering  <meyering@fb.com>
3499         test-calloc-gnu: port to GCC7
3500         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
3501         that attempts to calloc more than SIZE_MAX bytes, because GCC7
3502         and newer would detect that at compilation time.
3504 2017-03-04  Bruno Haible  <bruno@clisp.org>
3506         tests: Avoid compiler warning about uses of null_ptr.
3507         * tests/null-ptr.h: New file.
3508         * tests/test-canonicalize.c: Include null-ptr.h.
3509         (null_ptr): Remove function.
3510         * tests/test-canonicalize-lgpl.c: Likewise.
3511         * tests/test-memmem.c: Likewise.
3512         * tests/test-ptsname_r.c: Likewise.
3513         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
3514         * modules/canonicalize-lgpl-tests: Likewise.
3515         * modules/memmem-tests: Likewise.
3516         * modules/ptsname_r-tests: Likewise.
3517         Reported by Jim Meyering.
3519 2017-03-03  Bruno Haible  <bruno@clisp.org>
3521         doc: Mention Mac OS X deficiencies regarding semaphores.
3522         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
3523         * doc/posix-functions/sem_destroy.texi: Likewise.
3524         * doc/posix-functions/sem_getvalue.texi: Likewise.
3526 2017-03-03  Bruno Haible  <bruno@clisp.org>
3528         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
3529         Reported by Assaf Gordon <assafgordon@gmail.com> via
3530         Pádraig Brady <P@draigBrady.com>.
3531         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
3532         semaphores.
3533         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
3534         (atomic_int_semaphore): New macro.
3536 2017-02-28  Bruno Haible  <bruno@clisp.org>
3538         perror tests: Tweak for z/OS.
3539         Reported by Daniel Richard G. <skunk@iskunk.org>.
3540         * tests/test-perror.sh: Don't fail z/OS style perror output.
3542 2017-02-26  Bruno Haible  <bruno@clisp.org>
3544         nproc: Refactor large function.
3545         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
3546         from num_processors.
3547         (num_processors): In this function, only deal with OMP.
3549 2017-02-26  Pádraig Brady  <P@draigBrady.com>
3551         nproc: adjust handling of OpenMP environment variables
3552         to match the return value from omp_get_num_threads(), i.e.:
3553          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
3554          - Treat 0 as an invalid value and ignore
3555         Also remove the call to omp_get_num_threads() because
3556         it's ineffective without the omp pragmas in place.
3557         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
3558         so that it can be ignored.
3559         (num_processors): Honor OMP_THREAD_LIMIT even without
3560         OMP_NUM_THREADS being set.  Also fix a typo in the environment
3561         variable being checked, from the previous recent commit.
3563 2017-02-26  Pádraig Brady  <P@draigBrady.com>
3565         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
3566         * lib/nproc.c (parse_omp_threads): A new function refactored
3567         from num_processors() to support parsing both of the
3568         above environment variables.
3569         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
3570         to accurately reflect the current OpenMP nesting level.
3571         Also support the OMP_THREAD_LIMIT environment variable
3572         to limit the max value determined from OMP_NUM_THREADS.
3573         * modules/nproc: Depend on minmax header.
3574         Suggested by Oliver Heimlich.
3576 2017-02-25  Bruno Haible  <bruno@clisp.org>
3578         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
3579         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
3581 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3583         ftoastr: port to -Wdouble-promotion
3584         Work around -Wdouble-promotion false alarm in recent GCCs.
3585         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
3586         (ftoastr_snprintf, FTOASTR): Use it.
3588 2017-02-21  Bruno Haible  <bruno@clisp.org>
3590         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
3591         Reported by Rene Saavedra <rennes@openmailbox.org> in
3592         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
3593         * lib/glthread/lock.h: On glibc systems without
3594         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
3595         implementation of rwlocks.
3596         * lib/glthread/lock.c: Likewise.
3598 2017-02-20  Bruno Haible  <bruno@clisp.org>
3600         lock tests: Fix build failure on z/OS.
3601         Reported by Daniel Richard G. <skunk@iskunk.org>.
3602         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
3603         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
3604         exist.
3606 2017-02-19  Bruno Haible  <bruno@clisp.org>
3608         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
3609         This helps when CC=clang.
3610         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
3611         of /usr/bin/gcc.
3613         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
3614         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
3616 2017-02-19  Bruno Haible  <bruno@clisp.org>
3618         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
3619         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
3620         --with-tests --single-configure is specified.
3622 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3624         users.txt: Update links, use HTTPS where possible
3625         * users.txt: Updated to HTTPS where possible,
3626         fixed some links to new locations.
3628 2017-02-16  Bruno Haible  <bruno@clisp.org>
3630         xbinary-io: Fix inlining.
3631         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
3633 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3635         xbinary-io: rename from xsetmode
3636         This patch is taken from suggestions by Bruno Haible in:
3637         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
3638         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
3639         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
3640         not ENOTTY, when it is an inappropriate device.
3641         * lib/binary-io.h (SET_BINARY): Resurrect.
3642         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
3643         (xset_binary_mode_error): Rename from xsetmode_error.
3644         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
3645         (xset_binary_mode): Rename from xsetmode.
3646         All uses changed.
3647         * modules/xbinary-io: Rename from modules/xsetmode.
3648         Update file names.
3649         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
3650         * NEWS: Update to match revised behavior.
3652 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3654         tests: Adjust to recent SET_BINARY change
3655         * tests/test-binary-io.c (main):
3656         * tests/test-binary-io.sh: Remove test for SET_BINARY.
3657         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
3658         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
3659         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
3661         xsetmode: new module
3662         This is to fix a problem noted by Eric Blake.
3663         Code was using xfreopen to change files to binary mode, but this
3664         fails for stdout when in append mode.  Such code should use
3665         xsetmode instead.
3666         * NEWS: Document incompatible changes to binary-io module.
3667         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
3668         New function.
3669         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
3670         (set_binary_mode): New function, which also checks for tty.
3671         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
3673 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
3675         headers: fix begin-end typos
3676         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
3677         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
3679         selinux-h: port to PGI 16.10
3680         * lib/se-selinux.in.h: Don't assume that include_next skips over
3681         duplicate -I DIR options.
3683         argp: port to PGI 16.10
3684         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
3686 2017-02-13  Darshit Shah  <darnir@gnu.org>
3688         unicase: Update function protoype to match definition.
3689         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
3690         uses 'size_t' as the datatype for the 'len' parameter in the functions
3691         it generates. Update the prototype specified here to match the newly
3692         generated function.
3694 2017-02-12  Bruno Haible  <bruno@clisp.org>
3696         times test: Avoid gcc warnings on Linux/x32.
3697         * tests/test-times.c (main): Really cast printf arguments from clock_t
3698         to 'long int'.
3700 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3702         glob: port better to emscripten
3703         Problem reported by Bruno Haible in:
3704         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
3705         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
3707 2017-02-11  Bruno Haible  <bruno@clisp.org>
3709         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
3710         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
3711         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
3712         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
3713         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
3714         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
3715         Distinguish hppa64 from hppa.
3717 2017-02-10  Bruno Haible  <bruno@clisp.org>
3719         search: Don't assume that tsearch() exists if 'VISIT' is defined.
3720         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
3721         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
3722         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
3724 2017-02-09  Bruno Haible  <bruno@clisp.org>
3726         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
3727         * doc/gnulib.texi (Libtool and Windows): Recommend
3728         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
3729         Reported by Reuben Thomas <rrt@sc3d.org>.
3731 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3733         stddef-tests: port to SIZE_MAX <= INT_MAX
3734         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
3735         Do not assume that INT_MAX < SIZE_MAX.
3737 2017-02-01  Bruno Haible  <bruno@clisp.org>
3739         lock tests: Fix link error.
3740         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
3741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3743 2017-01-31  Bruno Haible  <bruno@clisp.org>
3745         lock: Fix link error (regression from 2017-01-05).
3746         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
3747         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
3748         pthread_rwlockattr_destroy weak.
3749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3751 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3753         Port to PGI 16.10 x86-64
3754         This patch fixes one real bug in gl_anylinked_list2.h, along with
3755         some minor glitches that are not bugs.  It does not silence PGI’s
3756         thousands of bogus warnings when compiling test-intprops.c.
3757         Fortunately, the warnings do not cause a failure.
3758         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
3759         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
3760         My goodness, PGI goes back a long ways - this predates C89!
3761         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
3762         For example, ASYNCSAFE (const void *) should expand to
3763         ‘const void *volatile’, not to ‘volatile const void *’.
3764         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
3765         * lib/verify.h (verify) [!__GNUC__]:
3766         Use shorter albeit meaningless string to bypass silly compiler limits.
3767         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
3768         * tests/nan.h (NaNf, NaNd, NaNl):
3769         Use static functions to avoid misguided compiler diagnostics.
3770         Is there some reason we don’t use static functions on all platforms?
3772 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
3774         parse-datetime: handle timezones reentrantly
3775         This API change was prompted by a report by Pádraig Brady in:
3776         https://bug.debian.org/851934#10
3777         To help fix the bug, make parse_datetime2 more reentrant.
3778         * NEWS: Document this incompatible change.
3779         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
3780         Add two arguments, the timezone and the timezone name.
3781         All callers changed.  If TZ="..." is specified, use it for
3782         calculating defaults.
3783         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
3784         this code should be usable in a library.
3785         (mktime_ok, get_effective_timezone):
3786         Accept timezone arg too.  All callers changed.
3787         (get_tz): Remove.
3788         (get_effective_timezone): Check for failures.
3790 2017-01-20  Eric Blake  <eblake@redhat.com>
3792         localename: port to cygwin 2.6
3793         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
3794         Cygwin.
3795         * modules/localename (Depends-on): Add extensions, since
3796         NL_LOCALE_NAME() is not visible without it.
3798 2017-01-17  Pádraig Brady  <P@draigBrady.com>
3800         parse-datetime: fix dependence on AC_PROG_SED
3801         * modules/parse-datetime: Use `sed` directly like all other modules.
3802         Reported by J William Piggott
3804 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
3806         intprops: update doc URLs
3807         * doc/intprops.texi (Integer Range Overflow): Update URLs.
3809 2017-01-16  Bruno Haible  <bruno@clisp.org>
3811         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
3812         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
3813         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
3814         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
3815         distinguish s390 and s390x.
3816         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
3817         * NEWS: Mention the change regarding 'armel'.
3819 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3821         localeinfo: case_folded_counterparts and WEOF
3822         * NEWS: Document this.
3823         * lib/localeinfo.c (case_folded_counterparts):
3824         First arg is now wint_t, not wchar_t.  This generalizes the
3825         function to also work on WEOF, where it returns 0.
3827         dfa: port to gcc -fsanitize=undefined
3828         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
3829         as this runs afoul of gcc -fsanitize=undefined.
3831 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
3833         strftime: %z is -00 if unknown
3834         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
3835         the caller's responsibility to set 'negative_number'.  All uses changed.
3836         (__strftime_internal): Put '-' before a zero UTC offset if the time
3837         zone abbreviation starts with "-", which is the recently-introduced
3838         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
3839         * tests/test-strftime.c: Test for this.
3841 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3843         dfa: port to older GCC
3844         Problem reported by Assaf Gordon in:
3845         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
3846         * modules/c99: New module.  This merely attempts to use the latest
3847         C version, which should be enough to solve this particular problem.
3848         The idea is to document which Gnulib modules assume C99 or later.
3849         * modules/dfa (Depends-on): Add it.
3851 2017-01-10  Bruno Haible  <bruno@clisp.org>
3853         Update DEPENDENCIES.
3854         * DEPENDENCIES: List only https URLs. Update recommended version for
3855         autoconf, automake, gperf.
3857 2017-01-10  Jim Meyering  <meyering@fb.com>
3859         maint.mk: enforce spelling of "timestamp" (i.e., no space)
3860         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3861         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
3863 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3865         dfa: minor simplification with emptyset
3866         * lib/dfa.c (build_state): Simplify by using emptyset.
3868 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3870         dfa: shrink constraints from 4 bits to 3
3871         * lib/dfa.c (newline_constraint, letter_constraint)
3872         (other_constraint, prev_newline_dependent)
3873         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
3874         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
3875         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
3876         Constraints need only 3 bits, not 4.  Using smaller integers
3877         shrinks the code a bit and makes grep a tad faster on x86-64.
3879         dfa: omit unnecessary ptrdiff_t check
3880         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
3881         overflow, since xnmalloc does that now.
3883         dfa: omit unnecessary allocation
3884         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
3885         an all-zero follow set works just fine.
3887         dfa: omit unused local
3888         * lib/dfa.c (build_state): Fix up recent change.
3890         maint: remove stray .texi files
3891         Although these were superseded by other files like
3892         doc/posix-functions/ctime.texi, the old files were not removed.
3893         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
3895 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
3897         getprogname: fix port to IRIX
3898         * lib/getprogname.c (getprogname) [__sgi]:
3899         Don't dump core if malloc returns NULL.
3901         dfa: fix reallocation bug when matching newlines
3902         Problem reported for sed by S. Gilles (Bug#25390).
3903         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
3904         (dfastate): Reallocate before moving any newline transition ...
3905         (build_state): ... instead of reallocating here, where it is too late.
3907 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3909         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
3910         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
3912 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3914         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
3915         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
3917 2017-01-07  Bruno Haible  <bruno@clisp.org>
3919         stdioext: Port to Minix 3.2 and newer.
3920         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
3921         * lib/fseeko.c (fseeko): Likewise.
3922         Reported by Nelson Beebe via Paul Eggert.
3924 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3926         getprogname: port to IRIX
3927         * lib/getprogname.c (getprogname): Port to IRIX.
3928         Based on an idea by Bastien Roucariès at:
3929         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
3930         via code from Bruno Haible at:
3931         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
3933         localename-tests: port to NetBSD 7
3934         Problem reported by Nelson H. F. Beebe.
3935         * tests/test-localename.c:
3936         Test newlocale and uselocale only if both exist.
3938         glob, intprops, xalloc: work around Clang bug
3939         Work around LLVM bug 16404, which is still not fixed.
3940         https://llvm.org/bugs/show_bug.cgi?id=16404
3941         Problem reported by Nelson H. F. Beebe.
3942         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
3943         Remove.
3944         * lib/glob.c (size_add_wrapv):
3945         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
3946         * lib/xalloc-oversized.h (xalloc_oversized):
3947         Do not use overflow builtins if Clang.
3949         dfa: fix 'return' typo
3950         Problem reported by Nelson H. F. Beebe.
3951         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
3953 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3955         parse-datetime: fix generated paths for coverage files
3956         * modules/parse-datetime: Adjust the paths for parse-datetime.y
3957         within parse-datetime.c, so that gcc generates appropriate .gcno
3958         files, allowing lcov to proceed without error.  Previously it
3959         would error trying to find "lib/lib/parse-datetime.y".
3961 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3963         maint.mk: support parallel execution of coverage
3964         * top/maint.mk (coverage): Run dependencies serially,
3965         thus supporting parallel processing of each one,
3966         particularly build-coverage, which builds and runs tests.
3968 2017-01-05  Bruno Haible  <bruno@clisp.org>
3970         lock tests: Prefer semaphore over mutex.
3971         * tests/test-lock.c (USE_SEMAPHORE): New constant.
3972         (struct atomic_int, init_atomic_int, get_atomic_int_value,
3973         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
3974         Suggested by Torvald Riegel <triegel@redhat.com>.
3976 2017-01-05  Bruno Haible  <bruno@clisp.org>
3978         lock: Provide guarantee to avoid writer starvation for rwlocks.
3979         The rationale is: 1) Read-preferring read-write locks are prone to
3980         writer starvation if the number of reader threads multiplied by the
3981         percentage of time they have the lock held is too high. 2) Write-
3982         preferring read-write locks are the only reliable way to avoid this.
3983         3) There have been reports of 'test-lock' hanging on glibc systems
3984         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
3985         and glibc indeed implements read-preferring rwlocks by default, see
3986         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
3987         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
3988         * m4/pthread_rwlock_rdlock.m4: New file.
3989         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3990         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
3991         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3992         of rwlock initialization on glibc systems without
3993         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3994         of rwlocks altogether on non-glibc systems without
3995         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3996         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
3997         * lib/glthread/lock.c [USE_POSIX_THREADS]
3998         (glthread_rwlock_init_for_glibc): New function.
3999         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
4000         comment.
4001         [USE_PTH_THREADS]: New implementation of rwlocks.
4002         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
4003         readers.
4004         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
4005         (Depends-on): Add 'extensions'.
4006         * tests/test-rwlock1.c: New file.
4007         * lock-tests (Files): Add it.
4008         (Depends-on): Add usleep.
4009         (Makefile.am): Add test-rwlock1 to the tests.
4011 2017-01-05  Bruno Haible  <bruno@clisp.org>
4013         thread: Fix pth port.
4014         * lib/glthread/thread.h (pth_init): Declare weak.
4015         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
4016         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
4017         function.
4019 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
4021         parse-datetime: fix debug message on lone year number
4022         Input dates such as
4023           date -d "Apr 11 22:59:00 2011"
4024         are parsed as date (Apr 11, with default year 2016), then time, then a
4025         number (2011). Based on the combination of previously seen tokens,
4026         'digits_to_date_time' determines 2011 to be a year value.
4027         This fixes the debug messages to correctly show the updated year.
4028         Before:
4029             $ date --debug -d 'Apr 11 22:59:00 2011'
4030             date: parsed date part: (Y-M-D) 2016-04-11
4031             date: parsed time part: 22:59:00
4032             date: parsed number part: today/this/now
4033         After:
4034             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
4035             date: parsed date part: (Y-M-D) 2016-04-11
4036             date: parsed time part: 22:59:00
4037             date: parsed number part: year: 2011
4038         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
4039         'debug_year_seen' member fields.
4040         (digits_to_date_time): Update 'year_seen' as needed.
4041         (debug_print_current_time): Inform about year updates.
4042         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
4044         parse-datetime: fix local timezone debug messages
4045         "Local timezones" are strings that affect only DST relative to the
4046         default timezone. The debug messages in parse-datetime.y printed
4047         wrong information when encountering local timezones.
4048         Examples:
4049         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
4050              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
4051              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
4052         When the default timezone relates to the zone strings, EET/EEST are
4053         parsed as local timezones (tLOCAL_ZONE), and only change the DST
4054         value (0/1, respectively):
4055              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
4056              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
4057         * lib/parse-datetime.y (debug_print_current_time): If local timezone
4058         was seen, inform about DST change, don't print actual timezone.
4059         (debug_strfdatetime): If local timezone was seen, use default timezone
4060         (and adjust as needed) instead of using incorrect timezone.
4061         (parse_datetime2): Use correct time-zone source string, and adjust
4062         default timezone as needed.
4064         parse-datetime: add debug warning about DST changes
4065         Incorrect date arithmetic due to daylight saving time (DST) are a
4066         common (false) bug report in coreutils.
4067         Detect two such cases and print a warning:
4068         1. year/month/day adjustments (performed on 'struct tm'),
4069            where 'mktime' returns a different isdst value.
4070         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
4071            where the result of 'localtime(3)' on the value will return a
4072            different isdst value.
4073         Note: DST changes could be harmless or unnoticeable.
4074         Examples (with 'TZ=America/New_York'):
4075         Unnoticeable: result is 2016-Dec-14
4076            $ date -d '2016-06-15 EDT + 6 months' +%b
4077            Dec
4078         Unnoticeable: result is 2016-Dec-15 11:00:00
4079            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
4080            2016-12-15
4081         This is unexpected:
4082            $ date -d '2016-06-01 EDT + 6 months' +%F
4083            2016-11-30
4084         The new debug warnings will show:
4085            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
4086            ...
4087            date: warning: daylight saving time changed after date adjustment
4088            ...
4089         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
4090         print an appropriate warning message.
4092         parse-datetime: add debug warning about date arithmetic
4093         Date arithmetic are done directly on the fields of 'struct tm',
4094         which can result in invalid dates. Normalization with 'mktime(3)'
4095         will then produce a different date - which might cause unexpected
4096         results.
4097         Examples:
4098           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
4099           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
4100         Note that date normalization is not inherently wrong and not rejected,
4101         as it has legitimate uses:
4102           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
4103         If the user asked to adjust months but 'mday' changed,
4104         or user asked to adjust years but 'month' changed - warn about it.
4105             $ ./src/date --debug -d '2016-10-31 - 1 month'
4106             ...
4107             date: warning: when adding relative months/years, \
4108                            it is recommended to specify the 15th of the month
4109             ...
4110             date: warning: month/year adjustment resulted in shifted dates:
4111             date:      adjusted Y M D: 2016 09 31
4112             date:    normalized Y M D: 2010 10 01
4113             ...
4114         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
4115         a warning message. Improve recommendation of when to use 15 of the
4116         month or noon for date arithmetic.
4118         parse-datetime: fix debug message of relative part after timezone
4119         Relative part (e.g '+8 days') after a timezone string was not
4120         reported (was only reported after a timezone number). Due to the
4121         parser's structure, timezone strings with numbers were handled
4122         separately.
4123         before:
4124              # Timezone number + relative part: OK
4125              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
4126              ...
4127              date: parsed relative part: -8 day(s)
4128              # Timezone string + relative part: missing
4129              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
4130              [ missing message ]
4131         After: messages are printed in both cases.
4132         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
4134         parse-datetime: fix incorrect debug message on lone number
4135         A lone number is an absolute value, not a relative time part.
4136         before:
4137            $ date --debug -d '20130101'
4138            date: parsed number part: today/this/now
4139         After:
4140            $ ./src/date --debug -d '20130101'
4141            date: parsed number part: (Y-M-D) 2013-01-01
4142         * lib/parse-datetime.y ('item'/'number' tokens): Call
4143         'debug_print_current_time' instead of 'debug_print_relative_time'.
4145 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4147         doc: modernize for C11 etc.
4148         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
4149         for C11, MinGW, etc.  This responds to Paul Smith's question in:
4150         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
4152         dfa: prefer functions to FETCH_WC macro
4153         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
4154         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
4155         wint_t result into DFA->lex.wctok instead of to a separate arg.
4156         All callers changed.  Move more local decls closer to where
4157         they're used.
4159         dfa: narrow more local var scopes
4160         * lib/dfa.c: Move more local decls to be more local.
4162         dfa: remove duplicate assignment
4163         Problem reported by Bruno Haible in:
4164         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
4165         * lib/dfa.c (parse_bracket_exp): Simplify.
4167 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4169         dfa: simplify constraint-dependency checking
4170         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
4171         (prev_other_constraint): Remove.
4172         (prev_newline_dependent, prev_letter_dependent):
4173         Simplify, to avoid an unnecessary bitwise AND operation.
4175         dfa: prefer functions and constants to macros
4176         * lib/dfa.c: Prefer constants to macros where either will do.
4177         (streq, isasciidigit, newline_constraint)
4178         (letter_constraint, other_constraint, succeeds_in_context)
4179         (prev_newline_constraint, prev_letter_constraint)
4180         (prev_other_constraint, prev_newline_dependent)
4181         (prev_letter_dependent, accepting, accepts_in_context):
4182         Now static functions instead of function-like macros.
4183         Use lower-case names accordingly.  All uses changed.
4185         dfa: narrow more local var scopes
4186         * lib/dfa.c: Move some more local decls down to nearer where
4187         they're needed.
4189 2016-12-31  Jim Meyering  <meyering@fb.com>
4191         dfa: narrow the scope of many local variables
4192         * lib/dfa.c: Now that we are no longer constrained to c89, move
4193         declarations of many variables (often indices) "down" into the
4194         scope(s) where used or to the point of definition.  This is a
4195         no-semantic-change diff.
4197 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4199         version-etc: new year
4200         * build-aux/gendocs.sh (version):
4201         * doc/gendocs_template:
4202         * doc/gendocs_template_min:
4203         * doc/gnulib.texi:
4204         * lib/version-etc.c (COPYRIGHT_YEAR):
4205         Update copyright dates by hand in templates and the like.
4206         * all files: Run 'make update-copyright'.
4208 2016-12-31  Eric Blake  <eblake@redhat.com>
4210         do-release-commit-and-tag: avoid shell syntax error
4211         * build-aux/do-release-commit-and-tag (curr_br): $branch can
4212         contain spaces when rebasing.
4214         maint.mk: hoist gnulib_dir definition earlier
4215         * top/maint.mk (gnulib_dir): Move near top of file.
4217 2016-12-31  Jim Meyering  <meyering@fb.com>
4219         maint.mk: do not always evaluate intprops-related shell
4220         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
4221         using gnulib_dir undefined (gnulib_dir is defined later in the
4222         file, which will be fixed separately), and besides, there is no
4223         need to incur the cost of this shell invocation for every single
4224         use of this .mk file.  Reported by Eric Blake in
4225         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
4227 2016-12-30  Jim Meyering  <meyering@fb.com>
4229         maint.mk: improve sc_prohibit_intprops_without_use
4230         * top/maint.mk (_intprops_names): Don't hard-code the list of
4231         symbol names.  Instead, derive it on the fly.
4233 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4235         dfa: shorten sbit, success
4236         * lib/dfa.c (struct regex_syntax.sbit):
4237         (struct dfa.success): Use char, not int, for array elements, since
4238         they are all in the range 0..7.
4240         dfa: simplify multibyte_prop etc.
4241         This follows up on a change made when dfa.c was in grep, namely grep
4242         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
4243         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
4244         That earlier simplification allows for some more simplification
4245         and trimming down here.
4246         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
4247         (struct lexer_state): New mamber brack.
4248         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
4249         since they must be in the range 0..3 now.
4250         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
4251         the brack member now supersedes them.
4252         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
4253         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
4254         (dfaparse): Remove unnecessary initializations of already-0 storage.
4255         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
4256         (dfassbuild): No need to clear sup->mbcsets.
4258         dfa: minor performance tweak
4259         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
4261         dfa: wrap charclass inside a struct
4262         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
4263         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
4264         about 5% faster, where list.txt is generated by 'aspell dump
4265         master | head -n 100000 >list.txt'.  See Bug#22239.
4266         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
4267         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
4268         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
4269         Adjust to this, e.g., by using charclass * rather than charclass.
4270         All callers changed as needed.
4271         (copyset): Remove.  All uses changed to simple assignment.
4272         (parse_bracket_exp): Use zeroset instead of memset.
4274 2016-12-30  Jim Meyering  <meyering@fb.com>
4276         maint.mk: update list of intprops.h symbol names
4277         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
4278         This avoids a false failure of the sc_prohibit_intprops_without_use
4279         rule in grep.
4281 2016-12-29  Eric Blake  <eblake@redhat.com>
4283         getopt: fix parallel test failure
4284         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
4285         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
4286         * tests/test-getopt-main.h (main): Use different file names
4287         in case test-getopt-gnu and test-getopt-posix run in parallel.
4289 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4291         xalloc: x2nrealloc check for ptrdiff_t overflow
4292         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
4293         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
4295 2016-12-24  Bruno Haible  <bruno@clisp.org>
4297         lock test: Fix performance problem on multi-core machines.
4298         * tests/test-lock.c (USE_VOLATILE): New macro.
4299         (struct atomic_int): New type.
4300         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
4301         functions.
4302         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
4303         as 'struct atomic_int'.
4304         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
4305         reclock_checker_thread, test_recursive_lock): Use the new functions.
4306         Reported by Eric Blake in
4307         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
4308         and by Pádraig Brady in
4309         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
4311 2016-12-19  Bruno Haible  <bruno@clisp.org>
4313         vma-iter: Fix endless loop on 64-bit Windows.
4314         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
4315         'unsigned long'.
4317 2016-12-19  Bruno Haible  <bruno@clisp.org>
4319         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
4320         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
4321         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
4322         Invoke gt_TYPE_WINT_T instead.
4323         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
4324         * modules/stdint (Files): Add m4/wint_t.m4.
4325         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
4326         * modules/wctype-h (Makefile.am): Likewise.
4327         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
4328         not only on MSVC.
4329         * lib/wctype.in.h (wint_t): Likewise.
4331 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4333         getopt-posix-tests: fix Makefile typo
4334         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
4335         Fix typo: the last ‘_’ was missing in the name.
4336         I suspect that the typo explains this build failure:
4337         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
4338         although I can’t reproduce the problem on Solaris 10 sparc.
4340 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4342         dfa: improve worst-case 'replace' performance
4343         See my note in Bug#22357#71.
4344         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
4345         (merge_constrained): New function, which is like
4346         the old 'merge' function, except with a new argument C2.
4347         Simplify the body by avoiding the need for different sections
4348         of code depending on whether one input is exhausted.
4349         (merge): Use the new function.
4350         (delete): Return the constraint of the deleted position,
4351         not the entire position.  Caller changed.
4352         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
4354 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4356         dfa: performance improvement for removal of epsilon closure
4357         See Bug#22357#32.
4358         * lib/dfa.c (delete): Use binary search to find deleted index.
4359         (replace): New function.  It replaces a position with the followed set.
4360         (epsclosure): Replace it with a new algorithm.  Update caller.
4362 2016-12-18  Bruno Haible  <bruno@clisp.org>
4364         Split tests for getopt-posix and getopt-gnu.
4365         * tests/test-getopt-posix.c: New file.
4366         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
4367         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
4368         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
4369         GNULIB_TEST_GETOPT_GNU.
4370         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
4371         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
4372         (Makefile.am): Test test-getopt-posix instead of test-getopt.
4373         * modules/getopt-gnu-tests: New file.
4374         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
4376 2016-12-18  Bruno Haible  <bruno@clisp.org>
4378         posix-modules: Add options for specific platforms.
4379         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
4380         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
4381         Invoke func_tmpdir. Filter out the excludes.
4383 2016-12-18  Bruno Haible  <bruno@clisp.org>
4385         getopt: Fix link error for users of getopt() in <unistd.h>.
4386         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
4387         __need_getopt is defined. Undefine all macros before defining them.
4388         * modules/getopt (Include): Clarify that including <unistd.h> is also
4389         OK.
4390         * tests/test-getopt.c: Add comment.
4392 2016-12-17  Bruno Haible  <bruno@clisp.org>
4394         getaddrinfo tests: Avoid compilation error on MSVC.
4395         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
4396         getaddrinfo on native Windows.
4398 2016-12-17  Bruno Haible  <bruno@clisp.org>
4400         getlogin, getlogin_r: Fix link errors on MSVC.
4401         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
4402         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
4403         (Link): New section.
4404         * modules/getlogin_r (Files): Add m4/getlogin.m4.
4405         (configure.ac): Require gl_LIB_GETLOGIN.
4406         (Link): New section.
4407         * NEWS: Mention the new link requirements.
4408         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
4409         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
4411 2016-12-17  Bruno Haible  <bruno@clisp.org>
4413         Un-deprecate the 'progname' module.
4414         * NEWS: Describe the appropriate use-cases of 'progname' versus
4415         'getprogname'. Based on discussion summary at
4416         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
4418 2016-12-17  Bruno Haible  <bruno@clisp.org>
4420         Reorganize NEWS a bit.
4421         * NEWS: Move some not so important changes away from section
4422         "Important Notes".
4424 2016-12-17  Bruno Haible  <bruno@clisp.org>
4426         tanhf: Avoid redefinition error on MSVC.
4427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
4428         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
4429         may be defined as an inline function.
4430         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
4431         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
4433 2016-12-17  Bruno Haible  <bruno@clisp.org>
4435         tanf: Avoid redefinition error on MSVC.
4436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
4437         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
4438         may be defined as an inline function.
4439         * modules/math (Makefile.am): Substitute REPLACE_TANF.
4440         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
4442 2016-12-17  Bruno Haible  <bruno@clisp.org>
4444         sqrtf: Avoid redefinition error on MSVC.
4445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
4446         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
4447         may be defined as an inline function.
4448         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
4449         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
4451 2016-12-17  Bruno Haible  <bruno@clisp.org>
4453         sinhf: Avoid redefinition error on MSVC.
4454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
4455         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
4456         may be defined as an inline function.
4457         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
4458         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
4460 2016-12-17  Bruno Haible  <bruno@clisp.org>
4462         sinf: Avoid redefinition error on MSVC.
4463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
4464         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
4465         may be defined as an inline function.
4466         * modules/math (Makefile.am): Substitute REPLACE_SINF.
4467         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
4469 2016-12-17  Bruno Haible  <bruno@clisp.org>
4471         logf: Avoid redefinition error on MSVC.
4472         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
4473         may be defined as an inline function.
4475 2016-12-17  Bruno Haible  <bruno@clisp.org>
4477         log10l: Avoid redefinition error on MSVC.
4478         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
4479         may be defined as an inline function.
4481 2016-12-17  Bruno Haible  <bruno@clisp.org>
4483         log10f: Avoid redefinition error on MSVC.
4484         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
4485         may be defined as an inline function.
4487 2016-12-17  Bruno Haible  <bruno@clisp.org>
4489         hypotl: Avoid redefinition error on MSVC.
4490         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
4491         may be defined as an inline function.
4493 2016-12-17  Bruno Haible  <bruno@clisp.org>
4495         hypotf: Avoid redefinition error on MSVC.
4496         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
4497         may be defined as an inline function.
4499 2016-12-17  Bruno Haible  <bruno@clisp.org>
4501         fmodl: Avoid redefinition error on MSVC.
4502         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
4503         may be defined as an inline function.
4505 2016-12-17  Bruno Haible  <bruno@clisp.org>
4507         fmodf: Avoid redefinition error on MSVC.
4508         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
4509         may be defined as an inline function.
4511 2016-12-17  Bruno Haible  <bruno@clisp.org>
4513         expf: Avoid redefinition error on MSVC.
4514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
4515         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
4516         may be defined as an inline function.
4517         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
4518         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
4520 2016-12-17  Bruno Haible  <bruno@clisp.org>
4522         coshf: Avoid redefinition error on MSVC.
4523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
4524         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
4525         may be defined as an inline function.
4526         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
4527         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
4529 2016-12-17  Bruno Haible  <bruno@clisp.org>
4531         cosf: Avoid redefinition error on MSVC.
4532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
4533         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
4534         may be defined as an inline function.
4535         * modules/math (Makefile.am): Substitute REPLACE_COSF.
4536         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
4538 2016-12-17  Bruno Haible  <bruno@clisp.org>
4540         atan2f: Avoid redefinition error on MSVC.
4541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
4542         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
4543         may be defined as an inline function.
4544         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
4545         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
4547 2016-12-17  Bruno Haible  <bruno@clisp.org>
4549         atanf: Avoid redefinition error on MSVC.
4550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
4551         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
4552         may be defined as an inline function.
4553         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
4554         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
4556 2016-12-17  Bruno Haible  <bruno@clisp.org>
4558         asinf: Avoid redefinition error on MSVC.
4559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
4560         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
4561         may be defined as an inline function.
4562         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
4563         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
4565 2016-12-17  Bruno Haible  <bruno@clisp.org>
4567         acosf: Avoid redefinition error on MSVC.
4568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
4569         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
4570         may be defined as an inline function.
4571         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
4572         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
4574 2016-12-17  Bruno Haible  <bruno@clisp.org>
4576         Avoid redefinition errors on MSVC.
4577         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
4578         the function may be defined as an inline function.
4579         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
4580         the function may be defined as an inline function.
4582 2016-12-17  Bruno Haible  <bruno@clisp.org>
4584         Avoid redefinition errors on MSVC.
4585         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
4586         * lib/unistd.in.h: Include <stdio.h> when necessary.
4588 2016-12-17  Bruno Haible  <bruno@clisp.org>
4590         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
4591         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
4592         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
4593         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
4594         WINT_MAX.
4596 2016-12-17  Bruno Haible  <bruno@clisp.org>
4598         Avoid autoconf warning.
4599         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
4600         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
4602 2016-12-17  Bruno Haible  <bruno@clisp.org>
4604         fpending: Revert workaround against Emacs bug.
4605         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
4606         The Emacs bug is fixed by Eli Zaretskii in
4607         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
4609 2016-12-17  Bruno Haible  <bruno@clisp.org>
4611         getlogin_r tests: Port to mingw.
4612         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
4613         regression introduced on 2014-05-19.
4615 2016-12-17  Bruno Haible  <bruno@clisp.org>
4617         getlogin: Port to newer mingw.
4618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
4619         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
4620         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
4621         HAVE_GETLOGIN.
4622         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
4623         HAVE_GETLOGIN.
4624         * doc/posix-functions/getlogin.texi: Mention the issue.
4625         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
4626         regression introduced on 2014-05-14.
4628 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4630         builtin-expect: improve port to IBM XL C
4631         Problem reported for z/OS by Daniel Richard G. in:
4632         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
4633         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
4634         Test for <builtins.h> directly.
4636         builtin-expect: port to IBM XL C
4637         Problem reported for z/OS by Daniel Richard G. in:
4638         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
4639         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
4640         Also allow __builtin_expect defined via a standard include file.
4642         regex: fix dependency
4643         Problem reported by Bruno Haible in:
4644         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
4645         * modules/regex: Depend on builtin-expect.
4647         builtin-expect: new module
4648         Fix fnmatch to use it.
4649         Problem reported for z/OS by Daniel Richard G.
4650         * lib/fnmatch.c (__builtin_expect):
4651         * lib/glob.c (__builtin_expect):
4652         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
4653         * lib/memmem.c (__builtin_expect) [!_LIBC]:
4654         * lib/scandir.c (__builtin_expect):
4655         * lib/strstr.c (__builtin_expect) [!_LIBC]:
4656         Remove macro; config.h now does this.
4657         * lib/gl_anytreehash_list1.h (add_to_bucket):
4658         * lib/regex_internal.h (BE):
4659         Assume __builtin_expect.
4660         * m4/builtin-expect.m4, modules/builtin-expect: New files.
4661         * modules/avltreehash-list, modules/fnmatch, modules/glob:
4662         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
4663         * modules/scandir, modules/strstr-simple:
4664         Depend on builtin-expect.
4666 2016-12-15  Bruno Haible  <bruno@clisp.org>
4668         init.sh: Add possibility to not delete temporary files.
4669         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
4670         to yes, don't erase the temporary directory.
4672 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4674         regex: fix integer-overflow bug in never-used code
4675         Problem reported by Clément Pit–Claudel in:
4676         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
4677         * lib/regex_internal.h: Include intprops.h.
4678         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
4679         behavior on integer overflow.
4680         * modules/regex (Depends-on): Add intprops.
4682         fpending: fix port to MinGW on Emacs
4683         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
4684         Problem reported by Eli Zaretskii in:
4685         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
4686         Is Plan 9 still a valid porting target, anyway?
4688 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4690         safe-alloc: use xalloc-oversized
4691         * lib/safe-alloc.c: Include xalloc-oversized.h.
4692         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
4693         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
4695         xalloc: do not exceed PTRDIFF_MAX
4696         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
4697         xalloc_oversized check, since objects larger than PTRDIFF_MAX
4698         bytes have pointer-subtraction problems.
4700         malloca: do not exceed PTRDIFF_MAX
4701         * lib/malloca.h: Include xalloc-oversized.
4702         (nmalloca): Use xalloc_oversized instead of rolling our own.
4703         * modules/malloca (Depends-on):
4704         * modules/relocatable-prog-wrapper (Depends-on):
4705         Add xalloc-oversized.
4707         quotearg: pacify GCC better
4708         * modules/quotearg (Depends-on): Add minmax, stdint.
4709         * lib/quotearg.c: Include minmax.h, stdint.h.
4710         (nslots): Now int, as there seems little point to going to extra
4711         work merely to support the INT_MAX slot, which nobody ever uses.
4712         (quotearg_n_options): Redo size-overflow checks to pacify GCC
4713         and to catch (mostly-theoretical) ptrdiff_t problems too.
4714         This can be done via one comparison.
4716 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
4718         xalloc-oversized: check for PTRDIFF_MAX too
4719         This avoids undefined behavior when subtracting pointers to
4720         objects containing more than PTRDIFF_MAX bytes.
4721         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
4722         Also return 1 if the result would exceed PTRDIFF_MAX>
4723         * modules/xalloc-oversized (Depends-on):
4724         Add stdint.
4726         dfa: fix glitches in previous commit
4727         Sorry, I don't know how I managed to commit the wrong version.
4728         * lib/dfa.c (MIN): Move up.
4729         (xpalloc): Now static.
4731         dfa: fix some unlikely integer overflows
4732         I found these while reviewing the recent Coverity-related fix.
4733         This patch changes part of dfa.c to prefer ptrdiff_t instead of
4734         size_t for object counts.  Using ptrdiff_t is the style typically
4735         used in Emacs; although it wastes a sign bit as sizes can never be
4736         negative, it makes -fsanitize=undefined more likely to catch
4737         integer overflows in index calculation, and nowadays the upside is
4738         typically more important than the downside.  Although perhaps the
4739         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
4740         of dfa.c already does, since it uses state_num which is signed),
4741         that is a bigger change and is not needed to fix the bugs I found.
4742         * lib/dfa.c: Include stdint.h and intprops.h.
4743         (TOKEN_MAX): New macro.
4744         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
4745         (charclass_index, parse_bracket_exp, addtok, insert, merge)
4746         (realloc_trans_if_necessary, free_mbdata):
4747         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
4748         This is safe because xpalloc checks that the sizes do not exceed
4749         either SIZE_MAX or PTRDIFF_MAX.
4750         (xpalloc): New function, mostly taken from Emacs.
4751         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
4752         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
4753         (charclass_index): Check for integer overflow in computing
4754         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
4755         added to it later.
4756         (alloc_position_set): Check for integer overflow.  On typical
4757         platforms this check has zero overhead, since the constant
4758         expression is false.
4759         (realloc_trans_if_necessary):
4760         Remove assertion, which I hope Coverity no longer needs.
4762         * modules/dfa (Depends-on): Add intprops, stdint.
4764 2016-12-12  Jim Meyering  <meyering@fb.com>
4766         dfa: add an assertion to avoid coverity false positive
4767         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
4768         warned that "newalloc1 - 2" could overflow.
4770 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
4772         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
4773         * dfa.h (DFA_CASE_FOLD): Remove.
4774         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
4776 2016-12-13  John W. Eaton  <gnu@jweaton.org>
4778         link: fix test to declare use of rename()
4779         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
4780         -Werror=implicit-function-declaration
4782 2016-12-12  Bruno Haible  <bruno@clisp.org>
4784         fpending: Port to native Windows with MSVC.
4785         * lib/fpending.c: Include stdio-impl.h.
4786         (__fpending): Include all known implementations. Err out if it's not
4787         ported.
4788         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
4789         * modules/fpending (Files): Add lib/stdio-impl.h.
4790         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
4792 2016-12-12  Bruno Haible  <bruno@clisp.org>
4794         stdioext: Port to native Windows with MSVC.
4795         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
4796         (struct _gl_real_FILE): New type.
4797         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
4798         Windows.
4799         * lib/fbufmode.c (fbufmode): Add code for native Windows.
4800         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
4801         other SystemV derived implementations.
4802         * lib/fpurge.c (fpurge): Likewise.
4803         * lib/freadable.c (freadable): Likewise.
4804         * lib/freadahead.c (freadahead): Likewise.
4805         * lib/freading.c (freading): Likewise.
4806         * lib/freadptr.c (freadptr): Likewise.
4807         * lib/freadseek.c (freadptrinc): Likewise.
4808         * lib/fseeko.c (fseeko): Likewise.
4809         * lib/fseterr.c (fseterr): Likewise.
4810         * lib/fwritable.c (fwritable): Likewise.
4811         * lib/fwriting.c (fwriting): Likewise.
4812         Reported by Gisle Vanem <gvanem@yahoo.no>.
4814 2016-12-11  Jim Meyering  <meyering@fb.com>
4816         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
4817         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
4818         to work with most shells, but not with the one provided by many
4819         Solaris 10 systems, so running configure with such a /bin/sh evokes
4820         e.g., "./configure: syntax error at line 33602: `(' unexpected".
4821         Reported by Assaf Gordon in
4822         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
4824 2016-12-10  Bruno Haible  <bruno@clisp.org>
4826         threadlib: Optimize out runtime test on Solaris >= 10.
4827         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
4828         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
4829         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
4831 2016-12-10  Bruno Haible  <bruno@clisp.org>
4833         stdint: Update doc about Solaris 9.
4834         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
4836 2016-12-09  Bruno Haible  <bruno@clisp.org>
4838         c-ctype tests: Fix link error on Solaris 9.
4839         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
4840         Reported at <https://savannah.gnu.org/bugs/?46827>.
4842 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4844         dfa: fix performance bug that recomputes trans
4845         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
4846         25 on-demand changes.  The bug caused build_state to reset all
4847         d->trans elements to -2 even when d->trans was already non-null.
4848         Use C99 style decls after statements in this function.
4850         same-inode: port to MinGW
4851         Here st_ino is always 0, so change the definition of SAME_INODE so
4852         that 1 means the two files are the same, 0 with st_ino != 0 means
4853         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
4854         reported by Bruno Haible (Bug#25146).
4855         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
4856         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
4858 2016-12-04  Bruno Haible  <bruno@clisp.org>
4860         javacomp: Support Java 7 and 8.
4861         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
4862         target-version 1.7, 1.8.
4864 2016-12-02  Daiki Ueno  <ueno@gnu.org>
4866         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
4867         GPLv2" rewriting.
4869 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
4871         * gnulib-tool (func_import): Adhere to the license guideline when
4872         rewriting the license text to "LGPLv3+ or GPLv2":
4873         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
4875 2016-12-02  Bruno Haible  <bruno@clisp.org>
4877         localcharset: Avoid theoretical buffer overrun.
4878         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
4879         return value from setlocale if it would lead to a buffer overrun.
4881 2016-12-01  Bruno Haible  <bruno@clisp.org>
4883         Relicense some modules under LGPLv2+.
4884         Kevin Cernekee's approval is in
4885         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
4886         * modules/fseterr (License): Change to LGPLv2+.
4887         * modules/mbchar (License): Likewise.
4888         * modules/mbiter (License): Likewise.
4889         * modules/mbsnlen (License): Likewise.
4890         * modules/wcwidth (License): Likewise.
4892 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4894         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
4895         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
4896         OS/2 kLIBC.
4898 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4900         alphasort, scandir: Port to OS/2 kLIBC
4901         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
4902         declaration.
4903         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
4905 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4907         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
4908         * lib/relocatable.c (relocate): Do not touch pathname if it is started
4909         with '/@unixroot'.
4911 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4913         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
4914         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
4915         OS/2 kLIBC unless TCPV40HDRS is defined.
4917 2016-11-29  Jim Meyering  <meyering@fb.com>
4919         dfa: avoid new infinite loop
4920         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
4921         * lib/dfa.c (dfastate): When constructing a new state table, we could
4922         initially declare that we had found a match, and later find that
4923         constraints eliminate that possibility, yet continue to use the
4924         now stale "matched" indicator.  That would lead to an infinite loop.
4925         The solution is to update "matched" when necessary.
4926         Introduced by commit v0.1-983-g403adf1.
4928 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4930         dfa: avoid match middle in multibyte character
4931         * lib/dfa.c (transit_state): If fails in matching single byte characters
4932         on a state including period expression in non-UTF8 multibyte locales,
4933         skip trailing bytes.
4934         (dfa_supported): Revert previous change.
4936 2016-11-27  Jim Meyering  <meyering@fb.com>
4938         dfa: avoid false match in non-UTF8 multibyte locales
4939         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
4940         as "not supported" so that callers will resort to using regex-based
4941         matcher.  This will surely hurt performance, but correctness trumps
4942         performance here, and the affected locales are less and less relevant,
4943         these days.  See grep's bug report https://bugs.gnu.org/24975.
4945 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
4947         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
4948         * lib/ptsname_r.c: Include the appropriate headers.
4949         [__sun]: Delete sys/sysmacros.h include.
4950         [_AIX || __osf__]: Likewise.
4951         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
4953 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4955         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
4956         * lib/md4.c (md4_process_bytes): The existing define is made internal
4957         in recent versions of glibc, so also use this new public define.
4958         * lib/md5.c (md5_process_bytes): Likewise.
4959         * lib/sha1.c (sha1_process_bytes): Likewise.
4960         * lib/sha256.c (sha256_process_bytes): Likewise.
4961         * lib/sha512.c (sha512_process_bytes): Likewise.
4963 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4965         maint: use a more standard return from mbrtowc test
4966         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
4967         from the test program as this often indicates an
4968         unhandled case in the test program.
4969         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
4970         (gl_MBRTOWC_SANITYCHECK): Likewise.
4971         (gl_MBRTOWC_NULL_ARG2): Likewise.
4972         (gl_MBRTOWC_NUL_RETVAL): Likewise.
4974 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4976         freopen: work around glibc bug with closed fd
4977         Work around glibc bug#15589, where freopen mishandles the case
4978         where stdin etc. are already closed.
4979         * doc/posix-functions/freopen.texi (freopen): Document the bug.
4980         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
4981         instead of __need_FILE, as the latter does not work with glibc.
4982         Include <fcntl.h>, for open flags.
4983         (rpl_freopen): Work around glibc bug.
4984         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
4985         * modules/freopen (Depends-on): Add fcntl-h.
4986         * tests/test-freopen.c (main): Test for bug.
4988 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4990         fnmatch: fix typo introduced on 2016-08-17
4991         This fixes the port to non-GCC compilers that lack __builtin_expect.
4992         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
4994         dfa: simplify with new function fillset
4995         * lib/dfa.c (fillset): New function.
4996         Use it for clarity when applicable.
4998         dfa: fix glitches with on-demand states
4999         Also, adjust commentary to better match new code.
5000         Some of these glitches predate the recent change.
5001         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
5002         only non-initial states.
5003         (dfastate): Rename locals to better match new roles.
5004         Move them into nested scopes if this is easy.
5005         Omit unnecessary calls to zeroset.
5006         Simplify test for whether to throw in the positions of state 0.
5007         Omit C99-ism (decl after statement) since Gawk still wants C89.
5008         (build_state): Omit unnecessary test and assignment.
5009         Fix some confusion that counted transition tables inaccurately
5010         and could cause a memory leak.
5011         (dfaexec_main): Redo to make it clearer to the compiler that
5012         -1 and -2 are the only negative state numbers here.
5014 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5016         dfa: addition of new state on demand
5017         * src/dfa.c (dfastate): Add argument UC, the current input character.
5018         Fill only a group including the character in transition table.
5019         (realloc_trans_if_necessary): Add the dummy state which means that a
5020         transition table is assigned but the next state is not assigned.
5021         (build_state): Return the next state.  All callers updated.
5022         (transit_state_singlebyte): If we get the dummy state,
5023         fill the transition table.
5024         (dfaexec_main): Handle the dummy state.
5025         (free_mbdata, dfafree): Consider the dummy state.
5027 2016-11-24  Daiki Ueno  <ueno@gnu.org>
5029         srclist: sync with released gettext
5030         * config/srclist.txt: Set "release" option to the files under
5031         $GETTEXT.
5033 2016-11-24  Daiki Ueno  <ueno@gnu.org>
5035         srclist: add "release" option
5036         * config/srclist.txt: Change the format so that the first column
5037         of each line points to the top-level directory of the source
5038         archive.
5039         * config/srclist-update: Accept "release" option that checks files
5040         from the most recently tagged revision in the source archive.
5042 2016-11-21  Bruno Haible  <bruno@clisp.org>
5044         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
5045         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
5046         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
5047         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
5048         Inline and remove member function 'rpl ()' of the wrapper struct.
5050 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5052         dfa: fix logic typo
5053         Problem reported by Stephane Chazelas (Bug#24973).
5054         * lib/dfa.c (using_simple_locale): Fix typo that caused some
5055         non-simple locales like fr_FR to be treated as simple.
5057 2016-11-20  Jim Meyering  <meyering@fb.com>
5059         fix test driver leaks: exclude, malloc, realloc
5060         * tests/test-exclude.c (main): Fix trivial leak.
5061         * tests/test-malloc-gnu.c (main): Likewise.
5062         * tests/test-realloc-gnu.c (main): Likewise.
5063         With these changes, grep's tests are now leak free.
5064         I.e., running them with ASAN elicits no failure:
5065           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
5066             AM_LDFLAGS='-fsanitize=address -static-libasan' check
5068 2016-11-11  Bruno Haible  <bruno@clisp.org>
5070         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
5071         * modules/libunistring: (License): Change from LGPL to
5072         "LGPLv3+ or GPLv2".
5073         * modules/libunistring-optional: Likewise.
5074         * modules/unicase/*: Likewise.
5075         * modules/uniconv/*: Likewise.
5076         * modules/unictype/*: Likewise.
5077         * modules/unigbrk/*: Likewise.
5078         * modules/unilbrk/*: Likewise.
5079         * modules/uniname/*: Likewise.
5080         * modules/uninorm/*: Likewise.
5081         * modules/unistdio/*: Likewise.
5082         * modules/unistr/*: Likewise.
5083         * modules/uniwbrk/*: Likewise.
5084         * modules/uniwidth/*: Likewise.
5086 2016-11-12  Bruno Haible  <bruno@clisp.org>
5088         Relicense some modules under LGPLv2+.
5089         Paul Eggert's approval is in
5090         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
5091         Eric Blake's approval is in
5092         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
5093         Ludovic Courtès's approval is in
5094         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
5095         * modules/isnand-nolibm (License): Change to LGPLv2+.
5096         * modules/isnanf-nolibm (License): Likewise.
5097         * modules/isnanl-nolibm (License): Likewise.
5099 2016-11-19  Bruno Haible  <bruno@clisp.org>
5101         Relicense some modules under LGPLv2+.
5102         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
5103         modules/vasnprintf.
5104         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
5105         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
5106         All other significant changes to the files in lib/ of these modules
5107         are from me.
5108         * modules/memcmp2 (License): Change to LGPLv2+.
5109         * modules/amemxfrm (License): Likewise.
5110         * modules/fpieee (License): Likewise.
5111         * modules/fpucw (License): Likewise.
5112         * modules/frexp-nolibm (License): Likewise.
5113         * modules/frexpl-nolibm (License): Likewise.
5114         * modules/printf-frexp (License): Likewise.
5115         * modules/printf-frexpl (License): Likewise.
5116         * modules/printf-safe (License): Likewise.
5117         * modules/signbit (License): Likewise.
5119 2016-11-17  Bruno Haible  <bruno@clisp.org>
5121         Enable Unicode decoder safety unconditionally.
5122         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
5123         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
5124         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5125         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5126         * lib/unistr/u8-prev.c (u8_prev): Likewise.
5127         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
5128         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
5129         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
5130         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
5131         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
5132         * lib/unistr/u16-prev.c (u16_prev): Likewise.
5133         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
5134         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
5135         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
5136         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
5137         * lib/unistr/u32-prev.c (u32_prev): Likewise.
5138         * lib/unistr/u32-next.c (u32_next): Likewise.
5139         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
5140         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
5141         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5142         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
5143         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
5144         CONFIG_UNICODE_SAFETY tests unconditionally.
5145         * tests/unistr/test-u32-mblen.c (main): Likewise.
5146         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
5147         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
5148         * tests/unistr/test-u32-next.c (main): Likewise.
5149         * tests/unistr/test-u32-strmblen.c (main): Likewise.
5150         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
5151         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
5152         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
5153         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
5154         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5155         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
5156         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
5157         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
5158         * lib/unistr/u16-check.c (u16_check): Update comment.
5159         * NEWS: Mention the changes that callers should be aware of.
5161 2016-11-19  Bruno Haible  <bruno@clisp.org>
5163         relocatable-prog-wrapper: Fix breakage on Cygwin.
5164         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
5165         (Depends-on): Remove intprops.
5166         * lib/relocwrapper.c: Update dependency tree.
5167         (strerror): Undefine.
5168         * build-aux/install-reloc (func_create_wrapper): Do not compile
5169         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
5171 2016-11-19  Bruno Haible  <bruno@clisp.org>
5173         strerror: Make it compile in C++ mode.
5174         * lib/strerror.c (strerror): Ignore the return value of memcpy().
5176 2016-11-15  Pedro Alves  <palves@redhat.com>
5178         sys_time: add gnulib::timeval for C++
5179         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
5180         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
5181         timeval macro.
5183 2016-11-14  Pedro Alves  <palves@redhat.com>
5185         snippet/c++defs: fix real-floating arg functions in C++ mode
5186         Also, define isfinite, isinf, isnan, signbit in the gnulib
5187         namespace instead of in the global namespace.
5188         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
5189         (_GL_END_NAMESPACE): New.
5190         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
5191         (isfinite, isinf, isnan, signbit) [__cplusplus &&
5192         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
5193         instead of in the global namespace.
5194         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
5195         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
5196         of in the global namespace.
5198 2016-11-13  Jim Meyering  <meyering@fb.com>
5200         strftime: don't use __THROW
5201         Each use of __THROW would provoke this from gcc-7-to-be:
5203           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
5204             on unit local functions [-Wattributes]
5205           static int iso_week_days (int, int) __THROW;
5206           ^~~~~~
5207         * lib/strftime.c (__THROW): Don't define.
5208         Remove each use of __THROW.
5209         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
5210         (tm_diff, iso_week_days, __strftime_internal): Likewise.
5212 2016-11-14  Paul Eggert  <eggert@union>
5214         obstack: port to gcc -fcheck-pointer-bounds
5215         Problem found by 'make check' failure on bleeding-edge coreutils
5216         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
5217         6.2.0-5ubuntu12), configured via "./configure
5218         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
5219         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
5220         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
5221         New macro, copied from fts_.h.
5222         (struct _obstack_chunk.contents): Use it.
5224 2016-11-14  Eric Blake  <eblake@redhat.com>
5226         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
5227         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
5228         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
5230 2016-11-14  Pádraig Brady  <P@draigBrady.com>
5232         strptime: fix compile error in recent change
5233         * lib/strptime.c (__strptime_internal): Fix ported code.
5235 2016-11-11  Bruno Haible  <bruno@clisp.org>
5237         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
5238         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
5239         (func_import): Extend determination of license_incompatibilities.
5240         (func_create_testdir): Extend table of license compatibility. Handle
5241         also the licenses GPLv3+, GPL, LGPLv3+.
5243 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
5245         strftime: tune %q
5246         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
5248         Merge strftime.c changes from glibc
5249         This incorporates:
5250         2007-10-16 [BZ #5184] Add tzset_called argument
5251         2008-06-13 [BZ #6612] pass reference to tzset_called around
5252         2009-10-30 Implement Burmese language locale for Myanmar
5253         2010-01-09 Add support for XPG7 testing
5254         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
5255         2015-10-20 Convert miscellaneous function definitions to prototype style
5256         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
5257         it anyway and this lessens the difference between gnulib and glibc.
5258         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
5259         (__THROW): Define if standard headers do not.
5260         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
5261         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
5262         Declare with __THROW.
5263         (__strftime_internal): Rename from strftime_case_. Add arg for
5264         whether tzset is called.  All uses changed.  Call tzset at most
5265         once.  Allow %OC, for Burmese.
5266         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
5267         Don't assume values are in range.
5269 2016-11-12  Eric Blake  <eblake@redhat.com>
5271         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
5272         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
5273         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
5274         different value.
5276 2006-11-12  Pedro Alves  <palves@redhat.com>
5278         Fix gnulib C++ namespace support and std::frexp
5279         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
5280         _GL_CXXALIASWARN.
5282 2006-11-12  Pedro Alves  <palves@redhat.com>
5284         GNULIB_NAMESPACE::func need not pull in rpl_func
5285         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
5286         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
5287         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
5288         struct instead of a function pointer.
5290 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
5292         manywarnings: fix -Wno-missing-field-initializers detection
5293         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
5294         to be independent of -Wunused-variable.  I.E. ensure the latter
5295         warning doesn't occur so that detection of the former is accurate.
5297 2016-11-05  Pádraig Brady  <pbrady@fb.com>
5299         strftime,strptime: support %q to represent the quarter
5300         * lib/strftime.c (strftime_case_): Add %q case.
5301         * lib/strptime.c (__strptime_internal): Likewise.
5302         * tests/test-strftime.c (quarter_test): A new test case.
5304 2016-11-03  Eric Blake  <eblake@redhat.com>
5306         bootstrap: Fix get_version() for AIX 5.3
5307         * build-aux/bootstrap (get_version): Factor out sed script, since
5308         indented comments choke AIX 5.3 sed.
5309         Reported-by: Michael Felt <aixtools@gmail.com>
5311 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
5313         intprops: port to older XL C
5314         Problem reported by Alexander Samoilov in:
5315         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
5316         http://savannah.nongnu.org/bugs/?49448
5317         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
5318         Define to 1 only for XL C 12.1 or later, since this bug
5319         occurs in XL C for AIX 6.0 but not in 12.1.
5321 2016-11-02  Pádraig Brady  <P@draigBrady.com>
5323         backupfile: initialize default suffix within the implementation
5324         * lib/backupfile.c (find_backup_file_name): Initialize the
5325         global variable here, to simplify usage, and to only call
5326         getenv() when needed.
5328 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5330         futimens: remove FIXME for old Linux kernels
5331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
5332         this in 2012" FIXME, like that for utimensat.
5334         utimensat: remove FIXME for old Linux kernels
5335         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
5336         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
5337         this in 2012" FIXME, by assuming the file system bug is absent
5338         unless demonstrated to be present.  We no longer need to worry
5339         about Linux kernel 2.6.32 when building with newer kernels.
5341 2016-10-16  Bruno Haible  <bruno@clisp.org>
5343         qsort_r: Fix macrology for platforms that lack the function.
5344         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
5345         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
5346         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
5347         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
5348         not exist.
5349         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
5350         the function exists.
5351         * modules/qsort_r: Add comments.
5353 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5355         sys_types: fix Texinfo typos
5356         * doc/glibc-functions/gnu_dev_major.texi:
5357         * doc/glibc-functions/gnu_dev_makedev.texi:
5358         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
5360 2016-10-26  John David Anglin  <dave.anglin@bell.net>
5362         getprogname: port to HP-UX
5363         See Bug#24805.
5364         * lib/getprogname.c (getprogname) [__hpux]: Port.
5365         * tests/test-getprogname.c (STREQ) [__hpux]:
5366         Special-case for HP-UX limitations on program name length.
5368 2016-10-20  Bruno Haible  <bruno@clisp.org>
5370         Update doc about target platforms.
5371         * doc/gnulib-intro.texi (Target Platforms): Update list.
5373 2016-10-15  Bruno Haible  <bruno@clisp.org>
5375         opendir, readdir, closedir: Relicense under LGPLv2+.
5376         * modules/opendir (License): Change to LGPLv2+.
5377         * modules/readdir (License): Likewise.
5378         * modules/closedir (License): Likewise.
5380 2016-10-16  Bruno Haible  <bruno@clisp.org>
5382         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
5384         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
5385         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
5386         HAVE_DECL_STRERROR_R.
5388 2016-10-16  Bruno Haible  <bruno@clisp.org>
5390         Make the 'argp' module work without the 'error' module.
5391         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
5393 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5395         diffseq: restore TOO_EXPENSIVE heuristic
5396         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
5397         (Bug#24715).  The simplest solution is to restore the
5398         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
5399         using a higher threshold to avoid Bug#16848 on smaller files.
5400         * lib/diffseq.h (struct context): Restore member too_expensive.
5401         (struct partition): Restore members lo_minimal, hi_minimal.
5402         (diag, compareseq): Restore arg find_minimal.  All uses changed.
5403         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
5404         1993 to make 'diff' run faster (but not as well) on large inputs,
5405         but use a threshold of 4096 instead of the old 256.
5406         * lib/fstrcmp.c (strcmp_bounded):
5407         * lib/git-merge-changelog.c (compute_differences):
5408         Adjust to diffseq.h changes.
5410 2016-10-22  Bruno Haible  <bruno@clisp.org>
5412         iconv: Avoid compilation error when bootstrapping GNU libiconv.
5413         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
5414         declaration yet, define ICONV_CONST to empty.
5416 2016-10-15  Bruno Haible  <bruno@clisp.org>
5418         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
5419         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
5420         module.
5422 2016-10-16  Bruno Haible  <bruno@clisp.org>
5424         system-quote tests: Avoid compiler warning on AIX.
5425         * tests/test-system-quote-child.c (fopen): Redefine like the system's
5426         <stdio.h> does.
5428 2016-10-16  Bruno Haible  <bruno@clisp.org>
5430         Fix some "gcc -Wall" warnings.
5431         * tests/test-ffsl.c (main): Use variable x, not i.
5432         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
5433         freopen.
5434         * tests/test-sethostname1.c (main): Explicitly ignore the return value
5435         of sethostname.
5437 2016-10-16  Bruno Haible  <bruno@clisp.org>
5439         gnulib-tool: Make --create-testdir on all modules work again.
5440         * gnulib-tool (func_create_testdir): Don't include the
5441         non-recursive-gnulib-prefix-hack module.
5443 2016-10-21  Daiki Ueno  <ueno@gnu.org>
5445         libunistring: change the maintainer to 'all'
5446         * modules/gen-uni-tables, modules/libunistring:
5447         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
5448         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
5449         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
5450         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
5451         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
5452         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
5453         * modules/uniwidth/*: Change the maintainer to 'all'.
5455 2016-10-16  Bruno Haible  <bruno@clisp.org>
5457         Simplify "configure: checking ..." messages.
5458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
5459         AC_MSG_NOTICE.
5460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
5462 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
5464         quotearg-tests: pacify gcc -Wall
5465         Problem reported by Bruno Haible in:
5466         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
5467         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
5468         * tests/test-quotearg.h: ... from here.
5470 2016-10-20  Pádraig Brady  <P@draigBrady.com>
5472         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
5473         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
5474         Needed on Centos <= 4.
5476 2016-10-20  Jim Meyering  <meyering@fb.com>
5478         printf.m4: fix a bug in detecting printf %j support
5479         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
5480         uintmax_t is defined in neither stdint.h nor inttypes.h.
5481         Before, this macro might have mistakenly set
5482         gl_cv_func_printf_sizes_c99=yes on such a system.
5483         Spotted by Zev Weiss.
5485 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5487         sched: substitute HAVE_SYS_CDEFS_H too
5488         Problem reported by Tom G. Christensen in:
5489         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
5490         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
5491         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
5493 2016-10-19  Pádraig Brady  <P@draigBrady.com>
5495         quotearg: never write beyond the returned length
5496         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
5497         scan of the string when we initially encounter a single quote when
5498         shell quoting, so that if we then switch to a more concise quoting method
5499         we will not have written beyond that returned length.
5500         This is significant for sh-quote, which has separate routines
5501         to determine the length and do the actual quoting.
5502         * tests/test-quotearg.h: Reinstate the buffer bounds checking
5503         now that we never write more than the returned length.
5505 2016-10-18  Bruno Haible  <bruno@clisp.org>
5507         getprogname tests: Avoid failure in packages that use libtool.
5508         * tests/test-getprogname.c (main): Strip "lt-" prefix.
5509         Based on a patch by Jim Meyering.
5511 2016-10-16  Bruno Haible  <bruno@clisp.org>
5513         getprogname: Fix test failure on Cygwin. Comments.
5514         * lib/getprogname.h: Add comments.
5515         * lib/getprogname.c: Add comments. Fix #elif indentation.
5516         * tests/test-getprogname.c (main): On Cygwin, expect a result without
5517         ".exe" suffix.
5519 2016-10-16  Bruno Haible  <bruno@clisp.org>
5521         Make sure the libunistring detection rejects older versions with a
5522         known bug.
5523         * modules/unistr/u8-strtok (configure.ac): Bump required version.
5524         * modules/unistr/u16-strtok (configure.ac): Likewise.
5525         * modules/unistr/u32-strtok (configure.ac): Likewise.
5527 2016-10-18  Bruno Haible  <bruno@clisp.org>
5529         sh-quote, system-quote: revert regression of unit test.
5530         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
5531         * tests/test-system-quote-main.c (check_one): Likewise.
5533 2016-10-16  Pádraig Brady  <P@draigBrady.com>
5535         quotearg: fix stale tests
5536         * tests/test-quotearg.c [locale_results]: Add the missing str7
5537         entries to the expected results.
5538         * tests/test-system-quote-main.c (check_one): Don't enforce that we
5539         don't write beyond the returned length, since that's no longer the
5540         case if we switch to a more concise quoting style.
5541         * tests/test-sh-quote.c (check_one): Likewise.
5542         (main): Adjust for the new more concise quoting style.
5543         Reported by Bruno Haible.
5545 2016-10-16  Jim Meyering  <meyering@fb.com>
5547         non-recursive-gnulib-prefix-hack: fix inconsequential typo
5548         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
5549         to "$1".  This macro is always invoked with $1 == lib.
5550         Spotted by Bruno Haible
5552 2016-10-16  Bruno Haible  <bruno@clisp.org>
5554         Fix a test crash.
5555         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
5556         fails.
5558 2016-10-16  Pádraig Brady  <P@draigBrady.com>
5560         test-limits-h: suppress -Woverlength-strings
5561         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
5563 2016-10-15  Bruno Haible  <bruno@clisp.org>
5565         gettime, timespec, utimens: Relicense under LGPL.
5566         * modules/gettime (License): Change to LGPL.
5567         * modules/timespec (License): Likewise.
5568         * modules/utimens (License): Likewise.
5570 2016-10-14  Bruno Haible  <bruno@clisp.org>
5571             Pádraig Brady  <P@draigBrady.com>
5573         canonicalize-lgpl: Support the case path_max > INT_MAX.
5574         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
5575         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
5577 2016-10-13  Jim Meyering  <meyering@fb.com>
5579         getprogname: IBM z/OS: avoid NULL-dereference
5580         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
5581         upon strdup failure.
5583 2016-10-12  Jim Meyering  <meyering@fb.com>
5585         test-stdint: use _GL_VERIFY rather than "verify" for some tests
5586         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
5587         and an abbreviated diagnostic rather than verify with the full one,
5588         because the full-length strings would evoke warnings from gcc with
5589         -Woverlength-strings.
5591 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5593         stdint: port SIZE_MAX to glibc s390
5594         Problem reported by Eric Blake in:
5595         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
5596         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
5597         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
5598         correct type, if possible.
5600 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
5602         getprogname: port to IBM z/OS
5603         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
5605 2016-10-11  Jim Meyering  <meyering@fb.com>
5607         maint: remove stray space after "." in AC_DEFINE comment.
5608         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
5609         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5611 2016-10-05  Jim Meyering  <meyering@fb.com>
5613         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
5614         * lib/long-options.c (parse_long_options): Add a break statement
5615         to avoid this new warning/failure:
5616         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
5617           --create-testdir --dir=/t/x --with-tests --test long-options
5618         ../../gllib/long-options.c: In function 'parse_long_options':
5619         ../../gllib/long-options.c:66:12: error: this statement may \
5620           fall through [-Werror=implicit-fallthrough]
5621                    (*usage_func) (EXIT_SUCCESS);
5622                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
5624 2016-10-05  Jim Meyering  <meyering@fb.com>
5626         utimecmp: avoid new GCC 7 warning from -Wbool-operation
5627         Testing this module would fail when using GCC 7 like this:
5628         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
5629           --dir=/tmp/x --with-tests --test utimecmp
5630         ../../gllib/utimecmp.c: In function ‘utimecmp’:
5631         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
5632           [-Werror=bool-operation]
5633                          time_t s = src_s & ~ (res == 2 * BILLION);
5634                                             ^
5635         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
5636           [-Werror=bool-operation]
5637                src_s &= ~ (res == 2 * BILLION);
5638                         ^
5639         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
5640         Instead, make it explicit that we intend to apply it to 0 or 1.
5642 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5644         dfa: save memory for states
5645         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
5646         states if dfa has a lot of caches.
5648 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
5650         wchar, wctype-h: fix for MinGW 3.22.2
5651         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
5652         special invocation, to fix issues with MinGW 3.22.2 wchar.h
5653         when included from <string.h>.
5654         * lib/wctype.in.h [__MINGW32__]: Add special invocation
5655         convention for MinGW 3.22.2, to solve issues with their
5656         wctype.h when included from <ctype.h>.
5658 2016-10-05  Jim Meyering  <meyering@fb.com>
5660         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
5661         * lib/long-options.c (parse_long_options): Add a break statement
5662         to avoid this new warning/failure:
5663         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
5664           --create-testdir --dir=/t/x --with-tests --test long-options
5665         ../../gllib/long-options.c: In function ‘parse_long_options’:
5666         ../../gllib/long-options.c:66:12: error: this statement may \
5667           fall through [-Werror=implicit-fallthrough]
5668                    (*usage_func) (EXIT_SUCCESS);
5669                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
5671         utimecmp: avoid new GCC 7 warning from -Wbool-operation
5672         Testing this module would fail when using GCC 7 like this:
5673         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
5674           --dir=/tmp/x --with-tests --test utimecmp
5675         ../../gllib/utimecmp.c: In function ‘utimecmp’:
5676         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
5677           [-Werror=bool-operation]
5678                          time_t s = src_s & ~ (res == 2 * BILLION);
5679                                             ^
5680         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
5681           [-Werror=bool-operation]
5682                src_s &= ~ (res == 2 * BILLION);
5683                         ^
5684         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
5685         Instead, make it explicit that we intend to apply it to 0 or 1.
5687 2016-10-03  Pádraig Brady  <P@draigBrady.com>
5689         quotearg: minimize shell quoting using double quotes
5690         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
5691         quote in encountered then use double quotes (c style quoting)
5692         when possible, as it simplifies the quoting.
5693         * tests/test-quotearg-simple.c: Add test cases.
5694         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
5695         for the fact we now may write beyond the returned length.
5697 2016-10-02  Jim Meyering  <meyering@fb.com>
5699         vasnprintf.c: avoid spurious warning from GCC 7
5700         The presence of cpp directives renders this "FALLTHROUGH" comment
5701         ineffective, so does not suppress the -Wimplicit-fallthrough warning
5702         from GCC 7 built from git on 2016-10-02.
5703         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
5704         directives, so that it takes effect once again.  This is clearly
5705         not a proper change, and I will revert it once this bug is fixed:
5706         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
5708 2016-10-01  Jim Meyering  <meyering@fb.com>
5710         getprogname: correct the test for a __progname variable
5711         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
5712         and AC_LINK_IFELSE to check for a global __progname.  If found,
5713         define HAVE_VAR___PROGNAME.
5714         * lib/getprogname.c (getprogname): Reflect the new name of the
5715         feature- checked preprocessor symbol:
5716         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
5718 2016-09-28  Jim Meyering  <meyering@fb.com>
5720         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
5721         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
5722         fall-through case with a /* fallthrough */ comment.
5724         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
5725         * lib/dfa.c (dfassbuild): Mark the end of this case with a
5726         /* fallthrough */ comment.
5728         getprogname: avoid __progname vs program_invocation_short_name pitfall
5729         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
5730         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
5731         not with Fedora 24's glibc-2.23.1-10.
5732         * lib/getprogname.c (__progname): Move this declaration down...
5733         (getprogname): ... into the #elif block where used, and make it
5734         explicitly "extern".
5736         getprogname: port to OpenBSD 5.1
5737         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
5738         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
5739         * modules/getprogname (configure.ac): Move most of this code...
5740         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
5741         increment serial number, and add a test for __progname.
5742         https://bugs.gnu.org/24562
5743         Reported by Nelson H. F. Beebe.
5745 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5747         sched: port to GCC 6.2.1 on macOS Sierra
5748         Problem reported by Denis Davydov in:
5749         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
5750         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
5751         Include <sys/cdefs.h> before <sched.h>.
5752         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
5753         so that we needn’t worry about the sched.h include bug here.
5754         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
5755         and include it before <sched.h> if it exists, when
5756         checking for <sched.h>.
5758         tests/init.sh: port Alpine fix to AIX 7.1
5759         * tests/init.sh (compare_): When attempting to use diff -U3,
5760         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
5761         diff -u not outputting a space after leading '+', as the users
5762         of 'compare' should not be that picky about its output format.
5763         In the AIX 7.1 case, return with diff exit status (or with 2 if
5764         trouble), instead of some random nonzero exit status.
5765         * tests/test-init.sh (test_compare): Remove space after leading
5766         '+', so that AIX 7.1 'diff' passes the test.
5768 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5770         nl_langinfo: pacify GCC
5771         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
5772         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
5774         stdint: also set GL_GENERATE_LIMITS_H
5775         Problem reported by Jim Meyering in:
5776         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
5777         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
5779         limits-h, stdint: Don't assume extensions, fix typo
5780         * m4/limits-h.m4 (gl_LIMITS_H):
5781         * m4/stdint.m4 (gl_STDINT_H):
5782         Don't assume AC_USE_SYSTEM_EXTENSIONS.
5783         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
5784         reported by Jim Meyering in:
5785         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
5787 2016-09-21  Jim Meyering  <meyering@fb.com>
5789         getprogname: port to AIX
5790         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
5791         and strdup to obtain a short program name string.  Using code from
5792         Bruno Haible and an idea from Bastien ROUCARIÈS, in
5793         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
5794         Assaf Gordon reported that this new file would fail to compile on
5795         AIX-7.1 32bit.
5797 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5799         extensions: fix typo in comment
5800         * m4/extensions.m4: Sync from Autoconf master.
5802         stdint: support new _WIDTH macros
5803         * doc/posix-headers/stdint.texi: Document this.
5804         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
5805         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
5806         support for INTMAX_WIDTH, etc. as well as for support for just C99.
5807         * modules/stdint (Depends-on): Add limits-h.
5808         (Makefile.am): Substitute HAVE_C99_STDINT_H.
5809         * modules/stdint-tests (Depends-on): Add extensions, so that
5810         INTMAX_MAX etc. are defined.
5811         * tests/test-stdint.c: Verify the new macros.
5813         limits-h: new module
5814         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
5815         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
5816         * doc/posix-headers/limits.texi: Document new module.
5817         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
5818         * modules/limit-h-tests, tests/test-limits-h.c: New files.
5820         stdio: don't redefine __USE_MINGW_ANSI_STDIO
5821         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
5822         if it is already defined.  Apparently GNU Emacs relies on this.  See:
5823         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
5825 2016-09-15  Eric Blake  <eblake@redhat.com>
5827         sys_types: avoid glibc 2.25 warnings about major()
5828         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
5829         older autoconf.
5830         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
5831         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
5832         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
5833         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
5835         mountlist: include sysmacros.h for glibc
5836         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
5837         AC_HEADER_MAJOR.
5838         * lib/mountlist.c (includes): Use correct headers.
5840 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
5842         extensions: port to more ISO C TSes
5843         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
5844         master, to add support for more recent ISO C TRs and TSes.
5846 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5848         intprops: new macro TYPE_WIDTH
5849         * lib/intprops.h (TYPE_WIDTH): New macro.
5850         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
5851         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
5852         * lib/parse-datetime.y (parse_datetime2):
5853         Use it.
5855         extensions: port to recent ISO C TRs
5856         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5857         Sync from Autoconf master, to add support for recent ISO C TRs.
5858         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
5859         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
5860         the MinGW option is not an extension.
5862 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
5864         dfa: port to Solaris 9
5865         Problems reported by Tom G. Christensen in:
5866         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
5867         * modules/dfa (Depends-on): Add isblank.
5868         * modules/dfa-tests (dfa_match_aux_LDADD):
5869         Rename from test_stat_LDADD, to fix typo.
5870         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
5872 2016-09-10  Jim Meyering  <meyering@fb.com>
5874         strverscmp: avoid link failure on OS X
5875         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
5876         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
5878 2016-08-16  Jim Meyering  <meyering@fb.com>
5880         dfa: new module, importing grep's DFA matcher
5881         Since grep's DFA matcher is now being used by two gnulib-enabled
5882         projects, grep and sed, it makes sense to version-control its
5883         sources and unit tests in one place: here.
5884         * modules/dfa: New module.
5885         * modules/dfa-tests: New file.
5886         * lib/dfa.c: New file, from grep.
5887         * lib/dfa.h: Likewise.
5888         * lib/localeinfo.c: Likewise.
5889         * lib/localeinfo.h: Likewise.
5890         * tests/dfa-match-aux.c: Likewise.
5891         * tests/dfa-invalid-char-class.sh: Likewise.
5892         * tests/dfa-match.sh: Likewise, with minor changes.
5893         * MODULES.html.sh (Misc): Add "dfa" to this list.
5895 2016-09-09  Jim Meyering  <meyering@fb.com>
5897         getprogname-tests: don't depend on assert-h
5898         * modules/getprogname-tests (Depends-on): Remove assert-h.
5899         It was not needed, and in fact would cause build failure for
5900         coreutils on some systems.  Reported by Assaf Gordon in https:
5901         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
5903 2016-09-07  Jim Meyering  <meyering@fb.com>
5905         getprogname-tests: work also when EXEEXT is nonempty
5906         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
5907         * tests/test-getprogname.c (main): Use it.
5908         Suggested by Gisle Vanem.
5910 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
5912         getprogname: fix errors in previous change
5913         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
5914         s/program_invocation_name/base/
5915         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
5917 2016-09-08  Pádraig Brady  <P@draigBrady.com>
5919         parse-datetime: restrict debug output to input string
5920         * lib/parse-datetime.y (parse_datetime2): If we parse
5921         all of the input but determine it's invalid, ensure
5922         we don't output the now invalid input pointer.
5923         This issue was seen with `date -d 'now +1'`.
5925 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5927         flexmember: new macro FLEXALIGNOF
5928         * lib/flexmember.h: Include <stddef.h>, for offsetof.
5929         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
5930         this macro.  Update comments.
5932 2016-09-07  Jim Meyering  <meyering@fb.com>
5934         getprogname: port to systems with __argv (mingw, msvc)
5935         * lib/getprogname.c (getprogname): Include "dirname.h" and use
5936         last_component: more general than open coding it with hard-coded "/".
5937         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
5938         * modules/getprogname (Depends-on): Add dirname-lgpl.
5939         (configure.ac): Check for __argv in <stdlib.h>.
5940         * modules/getprogname-tests: New file.
5941         * tests/test-getprogname.c: New file.
5942         Suggested by Gisle Vanem in
5943         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
5945 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5947         flexmember: port better to GCC + valgrind
5948         With a char[] flexible array member in a struct with nontrivial
5949         alignment, GCC-generated code can access past the end of the
5950         array, because GCC assumes there are padding bytes to get the
5951         struct aligned.  So the common idiom of malloc (offsetof (struct
5952         s, m), n) does not properly allocate an n-byte trailing member, as
5953         malloc’s argument should be the next multiple of alignof (struct s).
5954         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
5955         Although C11 apparently permits this GCC optimization (i.e., there
5956         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
5957         See the thread containing:
5958         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
5959         * lib/flexmember.h: New file.
5960         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
5961         * lib/localename.c, lib/time_rz.c:
5962         Include flexmember.h.
5963         * lib/fnmatch_loop.c (struct patternlist):
5964         * lib/localename.c (struct hash_node):
5965         Use FLEXIBLE_ARRAY_MEMBER.
5966         * lib/fnmatch_loop.c (EXT):
5967         * lib/fts.c (fts_alloc):
5968         * lib/glob.c (glob_in_dir):
5969         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
5970         * lib/localename.c (gl_lock_define_initialized):
5971         * lib/time_rz.c (tzalloc):
5972         Use FLEXSIZEOF instead of offsetof.
5973         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5974         Check that the size of the struct can be taken.
5975         * modules/flexmember (Files): Add lib/flexmember.h.
5976         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
5977         Add flexmember.
5979 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5981         getprogname: port to Solaris 10
5982         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
5983         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
5984         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
5986         stdalign: correct mistake in alignof doc
5987         Problem reported by Joseph Myers in:
5988         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
5989         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
5990         alignof(S) where S is a structure containing a flexible array
5991         member.  The Gnulib substitute does not support this, but C11 does.
5993 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5995         main.mk: remove sc_program_name, since there is no more need to
5996         use set_program_name in tools (getprogname is enough for most
5997         of the cases).
5998         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
5999         * top/maint.mk (sc_program_name): Remove.
6001 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6003         Port tests away from progname, since modules that need the
6004         program name already depend on getprogname.
6005         * modules/acl-tests (Depends-on): Remove progname.
6006         * modules/argmatch (Depends-on): Likewise.
6007         * modules/argmatch-tests (Depends-on): Likewise.
6008         * modules/argp-tests (Depends-on): Likewise.
6009         * modules/argp-version-etc-tests (Depends-on): Likewise.
6010         * modules/array-list-tests (Depends-on): Likewise.
6011         * modules/array-oset-tests (Depends-on): Likewise.
6012         * modules/avltree-list-tests (Depends-on): Likewise.
6013         * modules/avltree-oset-tests (Depends-on): Likewise.
6014         * modules/avltreehash-list-tests (Depends-on): Likewise.
6015         * modules/carray-list-tests (Depends-on): Likewise.
6016         * modules/copy-file-tests (Depends-on): Likewise.
6017         * modules/exclude-tests (Depends-on): Likewise.
6018         * modules/fchownat-tests (Depends-on): Likewise.
6019         * modules/fdopendir-tests (Depends-on): Likewise.
6020         * modules/filenamecat-tests (Depends-on): Likewise.
6021         * modules/fstatat-tests (Depends-on): Likewise.
6022         * modules/fstrcmp-tests (Depends-on): Likewise.
6023         * modules/linked-list-tests (Depends-on): Likewise.
6024         * modules/linkedhash-list-tests (Depends-on): Likewise.
6025         * modules/mkdirat-tests (Depends-on): Likewise.
6026         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
6027         * modules/nonblocking-socket-tests (Depends-on): Likewise.
6028         * modules/obstack-printf-tests (Depends-on): Likewise.
6029         * modules/openat-tests (Depends-on): Likewise.
6030         * modules/parse-datetime-tests (Depends-on): Likewise.
6031         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
6032         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
6033         * modules/quotearg-simple-tests (Depends-on): Likewise.
6034         * modules/quotearg-tests (Depends-on): Likewise.
6035         * modules/rbtree-list-tests (Depends-on): Likewise.
6036         * modules/rbtree-oset-tests (Depends-on): Likewise.
6037         * modules/rbtreehash-list-tests (Depends-on): Likewise.
6038         * modules/spawn-pipe-tests (Depends-on): Likewise.
6039         * modules/system-quote-tests (Depends-on): Likewise.
6040         * modules/uniname/uniname-tests (Depends-on): Likewise.
6041         * modules/uninorm/nfc-tests (Depends-on): Likewise.
6042         * modules/uninorm/nfd-tests (Depends-on): Likewise.
6043         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
6044         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
6045         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
6046         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
6047         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
6048         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
6049         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
6050         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
6051         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
6052         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
6053         * modules/unlinkat-tests (Depends-on): Likewise.
6054         * modules/version-etc-tests (Depends-on): Likewise.
6055         * modules/xalloc-die-tests (Depends-on): Likewise.
6056         * modules/xmemdup0-tests (Depends-on): Likewise.
6057         * modules/xprintf-posix-tests (Depends-on): Likewise.
6058         * modules/xvasprintf-tests (Depends-on): Likewise.
6059         * tests/test-argmatch.c: Do not include progname.h.
6060         (main) Stop calling set_program_name.
6061         * tests/test-argp-version-etc.c: Likewise.
6062         * tests/test-argp.c: Likewise.
6063         * tests/test-argv-iter.c: Likewise.
6064         * tests/test-array_list.c: Likewise.
6065         * tests/test-array_oset.c: Likewise.
6066         * tests/test-avltree_list.c: Likewise.
6067         * tests/test-avltree_oset.c: Likewise.
6068         * tests/test-avltreehash_list.c: Likewise.
6069         * tests/test-carray_list.c: Likewise.
6070         * tests/test-copy-acl.c: Likewise.
6071         * tests/test-copy-file.c: Likewise.
6072         * tests/test-exclude.c: Likewise.
6073         * tests/test-fchownat.c: Likewise.
6074         * tests/test-fdopendir.c: Likewise.
6075         * tests/test-filenamecat.c: Likewise.
6076         * tests/test-fstatat.c: Likewise.
6077         * tests/test-fstrcmp.c: Likewise.
6078         * tests/test-linked_list.c: Likewise.
6079         * tests/test-linkedhash_list.c: Likewise.
6080         * tests/test-mkdirat.c: Likewise.
6081         * tests/test-nonblocking-pipe-main.c: Likewise.
6082         * tests/test-nonblocking-socket-main.c: Likewise.
6083         * tests/test-obstack-printf.c: Likewise.
6084         * tests/test-openat.c: Likewise.
6085         * tests/test-parse-datetime.c: Likewise.
6086         * tests/test-pipe-filter-gi1.c: Likewise.
6087         * tests/test-pipe-filter-gi2-main.c: Likewise.
6088         * tests/test-pipe-filter-ii1.c: Likewise.
6089         * tests/test-pipe-filter-ii2-main.c: Likewise.
6090         * tests/test-quotearg-simple.c: Likewise.
6091         * tests/test-quotearg.c: Likewise.
6092         * tests/test-rbtree_list.c: Likewise.
6093         * tests/test-rbtree_oset.c: Likewise.
6094         * tests/test-rbtreehash_list.c: Likewise.
6095         * tests/test-sameacls.c: Likewise.
6096         * tests/test-set-mode-acl.c: Likewise.
6097         * tests/test-spawn-pipe-main.c: Likewise.
6098         * tests/test-system-quote-main.c: Likewise.
6099         * tests/test-unlinkat.c: Likewise.
6100         * tests/test-version-etc.c: Likewise.
6101         * tests/test-xalloc-die.c: Likewise.
6102         * tests/test-xfprintf-posix.c: Likewise.
6103         * tests/test-xmemdup0.c: Likewise.
6104         * tests/test-xprintf-posix.c: Likewise.
6105         * tests/test-xvasprintf.c: Likewise.
6106         * tests/uniname/test-uninames.c: Likewise.
6107         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6108         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6109         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6110         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6111         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6112         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6113         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6114         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6115         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6116         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6117         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6118         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6119         * tests/test-c-stack.c: (program_name): Do not define.
6120         (main): Do not set program_name.
6121         * tests/test-closein.c: Likewise.
6122         * tests/test-xstrtol.c: Likewise.
6123         * tests/test-yesno.c: Likewise.
6125 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6127         Port modules to use getprogname explicitly, instead of requiring
6128         progname to be used (or program_name to be provided).
6129         * lib/argmatch.c: Do not include progname.h.
6130         [TEST] (program_name): Do not define.
6131         [TEST] (main): Call getprogname instead of using program_name.
6132         * lib/c-stack.c: Do not include progname.h.
6133         (program_name): Do not define.
6134         (die): Call getprogname instead of using program_name.
6135         * lib/chdir-long.c: Do not include progname.h.
6136         [TEST_CHDIR] (main): Do not set program_name.
6137         * lib/error.c [!_LIBC]: Include progname.h.
6138         [!_LIBC] (program_name): Define using getprogname.
6139         * lib/euidaccess.c: Do not include progname.h.
6140         [TEST] (main): Do not set program_name.
6141         * lib/git-merge-changelog.c: Include getprogname.h instead of
6142         progname.h.
6143         (usage): Call getprogname instead of using program_name.
6144         (main): Likewise.  Stop calling set_program_name.
6145         * lib/group-member.c: Do not include progname.h.
6146         [TEST] (main): Do not set program_name.
6147         * modules/argmatch (Depends-on): Add getprogname.
6148         * modules/c-stack (Depends-on): Likewise.
6149         * modules/error (Depends-on): Likewise.
6150         * modules/git-merge-changelog (Depends-on): Likewise.
6151         Also remove progname.
6153 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
6155         * NEWS: Document the deprecation of the 'progname' module.
6157 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6159         getprogname: new module
6160         This provides a LGPL module for getting the name of the current
6161         program, using the same API found on *BSD systems.
6162         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
6163         * modules/getprogname: New files.
6164         * MODULES.html.sh (Misc): Add getprogname.
6166 2016-09-02  Jim Meyering  <meyering@fb.com>
6168         manywarnings: add -fno-common
6169         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
6170         to the list.  Quoting the manual, "Compiling with -fno-common is
6171         useful on targets for which it provides better performance, or if
6172         you wish to verify that the program will work on other systems that
6173         always treat uninitialized variable declarations this way [putting
6174         it in the data section]."  If diffutils had been using this sooner,
6175         it would have prevented this duplicate declaration issue:
6176         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
6178 2016-08-31  Simon Josefsson  <simon@josefsson.org>
6180         parse-datetime: Fix typo.
6181         * lib/parse-datetime.y (parse_datetime2): Fix typo.
6183 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6185         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
6186         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
6187         GCC 5 and 6 that have __builtin_sub_overflow but not
6188         __builtin_sub_overflow_p.  With the recent changes, these
6189         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
6190         implementation than with INT_SUBTRACT_OVERFLOW implementation,
6191         since the former needs just one runtime comparison whereas the
6192         latter needs two.
6194         strverscmp: sync with glibc
6195         Although this doesn't exactly synchronize with glibc
6196         byte-for-byte, it makes the code behave the same as glibc.
6197         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
6198         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
6199         difference shouldn't matter in practical use.  All uses changed
6200         back to isdigit.
6201         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
6202         (next_state): Now unsigned char array; redo elements.
6203         (result_type): Now signed char array; redo elements.
6204         (__strverscmp): Fix glibc bug 9913 by using new states.
6205         * tests/test-strverscmp.c (main): Test glibc bug 9913.
6207 2016-08-29  Jim Meyering  <meyering@fb.com>
6209         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
6210         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
6211         similarly to how it was done to intprops.h.
6213 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6215         intprops.h: port recent changes to GCC 6.2.0
6216         * lib/intprops.h (__has_builtin): Move earlier.
6217         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
6218         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
6219         the last argument can be null.  All uses changed.
6220         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
6221         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6222         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
6223         and it's not clear which GCC versions it works for.
6224         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
6225         its definiens.
6227         intprops.h: use __typeof__ with GCC 7
6228         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
6229         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
6230         This avoids computing the expression's value (which might overflow!).
6232 2016-08-29  Jim Meyering  <meyering@fb.com>
6234         intprops.h, xalloc-oversized.h: work with gcc 7
6235         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
6236         __builtin_mul_overflow each accept a NULL pointer as the third
6237         argument.  However in gcc 7, that is no longer accepted.
6238         Instead, one must use the "_p"-suffixed names, with which, the
6239         third parameter is no longer a pointer.
6240         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
6241         the definition: not true for gcc 7 and subsequent.
6242         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
6243         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6244         Provide new definitions for gcc 7 and subsequent.
6245         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
6246         that works with gcc-7.
6248         intprops.h: fix missing-backslash problems
6249         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
6250         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
6252 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6254         intprops: fix paren typo on old platforms
6255         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
6256         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
6257         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
6258         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
6259         && !defined LLONG_MAX]:
6260         Remove stray paren.
6262         intprops: port to OpenVMS
6263         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
6264         * doc/posix-headers/limits.texi: Document the problem.
6265         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
6266         Define if not already defined.
6268 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
6270         parse-datetime: improve debug implementation
6271         Follow-up to commit 12ad79069 ("add optional debug printing").
6272         Improve parse-datetime's debug implementation: remove macros,
6273         replace global debug flag variable with a function parameter,
6274         use nstrftime for formatting.
6275         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
6276         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
6277         (parse_datetime2): New function, accepts 'flags' parameter, supporting
6278         debug flag. Existing interface 'parse_datetime' left unmodified.
6279         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
6280         (struct parser_control): add 'parse_datetime_debug' member variable.
6281         (parse_datetime): Call new function 'parse_datetime2' without debug.
6282         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
6283         pc.parse_datetime_debug variable as needed.
6284         (to_year): Accept new flags parameter, instead of using global variable.
6285         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
6286         use struct 'debug' variable instead of global variable.
6287         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
6288         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
6289         correspnding functions directly instead of using macros.
6290         * modules/parse-datetime: Add gnulib's strftime module.
6292 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
6294         c-strcase-tests: port to EBCDIC
6295         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
6296         which assume ASCII encoding semantics to run only in ASCII
6297         mode, as they fail in EBCDIC.
6299         sigpipe-tests: fix typo
6300         * tests/test-sigpipe.sh: C, not B.
6302 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6304         canonicalize-lgpl: fix errno after malloca fails
6305         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
6306         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
6307         * lib/canonicalize-lgpl.c (__realpath):
6308         Don't assume malloca sets errno on failure.
6310 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6312         strtod: port errno handling to z/OS
6313         * lib/strtod.c (strtod): Save and restore errno more reliably.
6315 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
6317         strtod: port to z/OS
6318         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
6319         implementation.
6321 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6323         strtod: port to z/OS
6324         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
6325         implementation.
6327         regex, string: rename to avoid '__string'
6328         * lib/regex.h, lib/string.in.h: Do not use the identifier
6329         '__string', as it is effectively reserved by string.h on z/OS.
6331         c-strcase-tests, wcwidth-tests: depend on c-ctype
6332         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
6333         Add c-ctype.
6335 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
6337         thread: port to z/OS
6338         * lib/glthread/thread.c, lib/glthread/thread.h:
6339         Rudimentary gl_thread support for z/OS.
6341         maint: port tests to z/OS errno behavior
6342         * tests/test-nonblocking-reader.h:
6343         * tests/test-nonblocking-writer.h:
6344         Accommodate z/OS errno code preferences. (I believe this should
6345         still be within spec; IBM is good at following the letter if not
6346         the spirit of such things.)
6348         maint: preprocessor changes to support z/OS
6349         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
6350         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
6351         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
6352         * tests/test-nonblocking-pipe.h:
6354         fclose, strstr-simple, wchar: port to z/OS
6355         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
6356         Changes to the Autoconf M4 code to support z/OS.  Note that
6357         fclose() is broken in a different way on z/OS than it is on other
6358         systems, thus the special-case in fclose.m4.
6360         iconv_open-utf-tests, iconv-tests: port to EBCDIC
6361         * tests/test-iconv-utf.c, tests/test-iconv.c:
6362         Added appropriately conditional #pragmas so that the test strings
6363         in test-iconv-utf.c are correctly interpreted in ASCII instead of
6364         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
6365         addressed in a more portable way by simply rewriting all the ASCII
6366         literal characters as octal escapes, but then you would lose the
6367         partial readability that the strings have now. Also, iconv_open()
6368         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
6370         c-strcase-tests, wcwidth-tests: port to EBCDIC
6371         * tests/test-c-strcasecmp.c: Include c-ctype.h.
6372         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
6373         * tests/test-wcwidth.c: Likewise.
6375 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6377         stdbool: don't require _Bool for C++
6378         Problem reported by David Seifert in:
6379         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
6380         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
6381         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
6382         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
6383         stricter about checking that bool and _Bool are compatible in C.
6385 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6387         getdelim: remove dependency on realloc-posix
6388         * lib/canonicalize-lgpl.c (alloc_failed)
6389         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
6390         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
6391         Use __set_errno where needed, for consistency.
6392         * lib/getdelim.c (alloc_failed): New function.
6393         (getdelim): Use it.
6395 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
6397         parse-datetime: add optional debug printing
6398         Print parsing information, warnings, and errors to stderr.
6399         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
6400         * lib/parse-datetime.y:
6401         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
6402         (PROGRESS*): Same as DEBUG, for progress reporting.
6403         (dbg_printf): Print message to stderr, with 'date' prefix.
6404         (struct parser_control): Add 'debug_*_seen' variables.
6405         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
6406         (debug_print_current_time, debug_print_relateive_time): Prints the
6407         current/relative date/time value of parser_control.
6408         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
6409         (to_year): Warn about 2-digit year parsing.
6410         (yylex):   Warn about unrecognized words.
6411         (get_effective_timezone): Returns current timezone in minutes.
6412         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
6413         clearly and unambigiously as possible.
6414         (debug_mktime_not_ok): Print detailed information about failed
6415         date/time values.
6416         (parse_datetime): Add DEBUG messages for failures, warnings. Add
6417         PROGRESS messages for status messages.
6418         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
6420 2016-08-06  Jim Meyering  <meyering@fb.com>
6422         tests/init.sh: exclude dash with bad "local" semantics
6423         * tests/init.sh (gl_shell_test_script_): Add a function to
6424         eliminate a shell like "dash" (unlike bash, zsh) that has
6425         surprising/risky "local var='...'" semantics.  Inspired by
6426         the problem and discussion in https://bugs.gnu.org/24116#11.
6428 2016-08-02  Ján Tomko  <jtomko@redhat.com>
6430         maint.mk: expand the prohibit_doubled_word regex
6431         This check has a static list of words that are checked for
6432         repetitions.  Expand it before running the perl script to
6433         avoid using expensive captures.  This decreases the cost
6434         for libvirt from 1.66s to 0.66s.
6435         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
6436         (sc_prohibit_doubled_word): Use it.
6438 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6440         useless-if-before-free: skip non-matching lines early
6441         * build-aux/useless-if-before-free: First match each line with the
6442         simple/quick /\bif\b/ and reject if there is no match. This often
6443         saves the cost of the much more involved regular expression.
6444         For libvirt, this decreases the cost from 1.44s to 1.02s.
6446 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6448         maint.mk: speed up sc_po_check
6449         sc_po_check would skip files based on their names, or on the
6450         existence of files with derived names. Rewrite it to use perl
6451         instead of shell to make the check faster.
6452         * top/maint.mk (perl_translatable_files_list_): Define.
6453         (sc_po_check): Use it.
6455 2016-07-30  Ján Tomko  <jtomko@redhat.com>
6457         maint.mk: speed up require_config_h_first
6458         Instead of spawning three processes per file,
6459         rewrite the check in perl and run it once for all the files.
6460         * top/maint.mk (perl_config_h_first_): Define.
6461         (sc_require_config_h_first): Use it in place of shell code.
6463 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6465         maint.mk: speed up sc_po_check
6466         sc_po_check would skip files based on their names, or on the
6467         existence of files with derived names. Rewrite it to use perl
6468         instead of shell to make the check faster.
6469         * top/maint.mk (perl_translatable_files_list_): Define.
6470         (sc_po_check): Use it.
6472 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6474         obstack: pacify GCC 6 with -Wnull-dereference
6475         Problem reported by Assaf Gordon in:
6476         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
6477         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
6478         Declare with __attribute_noreturn__.
6479         * lib/obstack.h (__attribute_noreturn__): New macro.
6481 2016-07-13  Eric Blake  <eblake@redhat.com>
6483         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
6484         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
6485         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
6487 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
6489         doc: mention glibc SSIZE_MAX buglet
6490         * doc/posix-headers/limits.texi (limits.h): Document the bug.
6492 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
6494         printf-posix: Fix mingw build
6495         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
6496         expression for detecting C symbol prefixes but forgot to qoute square
6497         brackets in the command line arguments for grep.  That way when
6498         building with mingw the condition was false although it ought to be
6499         true instead.  In particular scenarios this led to the following
6500         compile error:
6502             Cannot export rpl_printf: symbol not found
6503             Cannot export rpl_scanf: symbol not found
6504             collect2: error: ld returned 1 exit status
6506         Fix this by properly quoting square brackets.
6508 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6510         mktime: call tzset as per POSIX
6511         Problem reported by Ludovic Courtès in:
6512         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
6513         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
6514         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
6516 2016-06-26  Pádraig Brady  <P@draigBrady.com>
6518         fts: handle readdir() errors
6519         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
6520         but also upon error when it will also set errno.  Therefore
6521         flag the error case from readdir().  We treat the case where
6522         no items are read the same as if the dir can't be accessed,
6523         i.e. by setting fts_errno to FTS_DNR.
6525 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6527         intprops: port better to GCC 7
6528         GCC 7 __builtin_add_overflow supports a new usage form, where the
6529         last argument is a null pointer, and which merely returns 1 if an
6530         overflow would occur.  This is a constant expression if all
6531         arguments are constants, and should generate faster code when code
6532         needs to be generated.
6533         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
6534         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6535         Use builtin operations if available.
6536         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
6537         operations are available, as it's almost surely faster.
6539 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6541         intprops-test: port to GCC 6
6542         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
6543         since the bug is not fixed in GCC 6.1.
6545 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6547         xalloc-oversized: port to GCC 7; fewer warnings
6548         GCC 7 will have a better way to deal with integer overflow.
6549         Plus, fix a warnings problem reported by Tim Ruehsen in:
6550         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
6551         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
6552         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
6553         For GCC 5, use __xalloc_oversized if both args are constants,
6554         or if pedantic.
6556 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6558         regex: port to Sun C
6559         Reported by Daiki Ueno.
6560         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
6561         __restrict, in prototype.  This fixes a problem I introduced in
6562         the 2016-02-19 merge from glibc.
6564 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6566         stdbool: Restore __bool_true_false_are_defined check
6567         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
6568         __bool_true_false_are_defined is still defined, even with C++11.
6570 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
6572         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
6573         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
6575 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
6577         Use GCC_LINT, not lint
6578         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
6579         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
6580         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
6581         Document problem with lint and _Noreturn.
6582         * lib/diffseq.h (IF_LINT, IF_LINT2):
6583         * lib/fts.c (sccsid):
6584         * lib/getndelim2.c (IF_LINT):
6585         * lib/gl_anylinked_list2.h (gl_linked_iterator)
6586         (gl_linked_iterator_from_to):
6587         * lib/gl_anytree_list2.h (gl_tree_iterator)
6588         (gl_tree_iterator_from_to):
6589         * lib/gl_anytree_oset.h (gl_tree_iterator):
6590         * lib/gl_array_list.c (gl_array_iterator)
6591         (gl_array_iterator_from_to):
6592         * lib/gl_array_oset.c (gl_array_iterator):
6593         * lib/gl_carray_list.c (gl_carray_iterator)
6594         (gl_carray_iterator_from_to):
6595         * lib/idcache.c:
6596         * lib/inet_ntop.c (IF_LINT):
6597         * lib/regcomp.c (build_charclass_op, create_tree):
6598         * lib/regex_internal.c (re_acquire_state)
6599         (re_acquire_state_context):
6600         * lib/trigl.c (rcsid):
6601         * lib/trim.c (IF_LINT):
6602         * lib/vasnprintf.c (IF_LINT):
6603         * lib/verify.h (assume):
6604         Treat GCC_LINT like lint.
6606 2016-05-29  Bruno Haible  <bruno@clisp.org>
6608         secure_getenv: Port to many more platforms.
6609         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
6610         functions.
6611         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
6612         for non-BSD Unix platforms and for native Windows.
6613         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
6614         Prompted by a request from Nikos Mavrogiannopoulos.
6616 2016-05-27  Eric Blake  <eblake@redhat.com>
6618         canonicalize: Fix broken probe for realpath.
6619         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
6620         in logic introduced in 54615b95.
6622 2016-05-26  Eric Blake  <eblake@redhat.com>
6624         unsetenv: relax to LGPLv2+
6625         * modules/unsetenv (License): Match setenv license.
6627 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
6629         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
6630         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
6631         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
6632         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
6633         (commonarg, dirargs, dirs, infoarg, generate_ascii)
6634         (generate_html, generate_info, generate_tex, outdir)
6635         (source_extra, split, srcfile, texarg): Move above 'version'.
6636         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
6638 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6640         manywarnings: update for GCC 6.1
6641         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
6642         Add GCC 6.1 options that apply to C.
6643         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
6644         do not apply to C, are obsolescent, etc.
6646 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6648         glob: size_t overflow checks
6649         * lib/glob.c (__has_builtin): New macro.
6650         (size_add_wrapv, glob_use_alloca): New static functions.
6651         (glob, glob_in_dir): Check for size_t overflow in several places,
6652         and fix some size_t checks that were not quite right.
6654         glob: don't assume INT_MAX < SIZE_MAX
6655         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
6656         latter is not portable to (probably theoretical) hosts where
6657         SIZE_MAX <= INT_MAX.
6659 2016-05-09  Bruno Haible  <bruno@clisp.org>
6661         Fix undefined behaviour in gettext.h.
6662         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
6663         pointer's value after the storage it points to has been freed.
6664         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
6665         Spotted by Coverity.
6667 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6669         git-version-gen: avoid undefined shift
6670         Problem reported by Mosè Giordano in:
6671         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
6672         * build-aux/git-version-gen: Avoid undefined behavior if invoked
6673         with --prefix or --fallback but without a later argument.  While
6674         we're at it, omit unnecessary quotes.
6676 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
6678         glob: merge glibc changes into lib/glob.c
6679         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
6680         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
6681         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
6682           struct dirent [BZ #19779]
6683         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
6684           callback gl_readdir
6685         2015-10-20 Convert miscellaneous function definitions to prototype style
6686         2015-10-20 Convert 113 more function definitions to prototype style
6687           (files with assertions)
6688         2015-06-12 Fix getlogin_r namespace (bug 18527).
6689         2014-02-10 Use glibc_likely instead __builtin_expect.
6690         2013-10-20 When glob pattern contains a trailing slash match only
6691           directories. Fixes bug 10278.
6692         2013-09-04 glob: silence -Wattribute warnings
6693         2013-06-07 Avoid use of "register" as optimization hint.
6694         2012-09-25 Use size_t instead of int for internal variables in glob
6695           (bug 14621)
6696         2011-07-20 Check for overflows in expressions
6697         2011-05-28 Remove unused variable
6698         2011-05-22 Add a few more alloca size checks
6699         2010-03-27 Whitespace fixes
6700         2010-03-27 Fix one more issue with the glob patch
6701         2010-03-24 Fix glob with empty pattern
6702         2008-05-27 Remove useless more "if" tests before "free"
6703         * modules/glob (Depends-on): Add stdint.
6705 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6707         mktime: port to stricter signed overflow checking
6708         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
6709         (long_int): Require width for INT_MAX * 3 * (seconds per year),
6710         instead of merely for INT_MAX * 2.  In practice platforms that
6711         do the latter also do the former.
6712         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
6713         (shr): New static function, replacing SHR.  All uses changed.
6714         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
6715         and TIME_T_MAX.  All uses changed.
6716         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6717         Use long_int, not time_t.
6718         (long_int_avg): New static function, replacing time_t_avg.
6719         All uses changed.  Round toward positive infinity, as that
6720         generates slightly better code.
6721         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
6722         by INT_ADD_WRAPV.
6723         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
6724         (convert_time): New static function.
6725         (ranged_convert): Use it
6726         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
6727         Use simpler test for loop exit.
6728         (__mktime_internal): Store negative of guessed offset, to simplify
6729         overflow checking.  Remove no-longer-needed test for small time_t
6730         overflows.
6732         mktime: speed up DEBUG_MKTIME benchmarks
6733         Call tzset just once, at the start, rather than for every test
6734         case.  This lets us measure the CPU cost of mktime as opposed to
6735         that of tzset.  This is relevant when TZ is not set and glibc is
6736         being used.  This speeds up tests by a factor of 40 on my Fedora
6737         23 x86-64 platform.
6738         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
6739         to call tzset and as a sanity check.  Later on, use localtime_r
6740         instead of localtime.
6742         mktime: resurrect DEBUG_MKTIME testing
6743         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
6744         Include <string.h>, for strcmp.
6746         mktime: simplify DEBUG_MKTIME
6747         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
6748         Simplify later usage accordingly.
6750         Port mktime_internal offset to unsigned time_t
6751         This avoids some assumptions about wraparound arithmetic on
6752         signed integer overflow.
6753         * lib/mktime-internal.h (mktime_offset_t): New type.
6754         (mktime_internal): Use it in decl.
6755         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
6757         * lib/mktime.c (__mktime_internal, localtime_offset):
6758         * lib/timegm.c (timegm): Use it.
6759         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
6760         (gl_FUNC_MKTIME): Require it.
6762 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
6764         xstrtol: prohibit monstrosities like "1bB"
6765         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
6766         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
6767         "B" only if the first suffix needs a base.
6768         * tests/test-xstrtol.sh: Test this.
6770 2016-04-21  Pádraig Brady  <P@draigBrady.com>
6772         xstrtod: reinstate setting of *result upon ERANGE
6773         * lib/xstrtod.c (XSTRTOD): The user may decide to use
6774         the returned limits upon ERANGE, so allow and document that.
6776 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
6778         xstrtod: modify *result only if no errors
6779         * lib/xstrtod.c (XSTRTOD).
6781 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6783         btowc: document problems in C locale
6784         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
6785         with mbrtowc.  See: http://bugs.gnu.org/23269#32
6787 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6789         mktime: improve integer overflow checking
6790         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
6791         (WRAPV): Remove; no longer needed.
6792         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
6793         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
6794         Remove.  Use intprops.h defns instead.
6795         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
6796         Use bool for Boolean, for clarity.
6797         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
6798         detect integer overflow.
6799         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
6801         intprops: check two's complement assumption
6802         Suggested by Eric Blake in:
6803         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
6804         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
6805         short, int, long, and (if available) long long are two's complement.
6806         * modules/intprops (Depends-on): Add 'verify'.
6808         intprops, mktime, strtol: assume two's complement
6809         These macros were not portable to every conforming C11 ones'
6810         complement platform.  It's not worth the hassle of porting to some
6811         platforms that use ones' complement or signed magnitude, as such
6812         platforms are almost purely theoretical nowadays and porting even
6813         to some of them makes the code harder to review for little
6814         practical benefit.  Problem reported by Florian Weimer in:
6815         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
6816         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
6817         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
6818         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
6819         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
6820         (TYPE_SIGNED_MAGNITUDE):
6821         Remove.  All uses rewritten to assume two's complement, which is
6822         all we can reasonably test nowadays anyway.
6823         * top/maint.mk (_intprops_names): Remove the removed macros.
6825 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6827         stdint: port to strict C11 left shift
6828         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
6829         Pacify clang -Wshift-negative-value, which should be an issue only
6830         on clang setups where stdint.h does not conform to C11 or to C++11.
6831         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
6833 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
6835         mbrtowc: work around glibc bug#19932
6836         Fix mbrtowc so that it never returns -1 in the C locale,
6837         as this conflicts with a future version of POSIX
6838         http://austingroupbugs.net/view.php?id=663#c2738
6839         and causes problems with GNU grep: http://bugs.gnu.org/23234
6840         See glibc bug 19932:
6841         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
6842         * doc/posix-functions/mbrlen.texi (mbrlen):
6843         * doc/posix-functions/mbrtowc.texi (mbrtowc):
6844         Document the glibc bug.
6845         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
6846         Include hard-locale.h, locale.h.
6847         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
6848         if the bug is possible.
6849         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
6850         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
6851         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
6852         * modules/mbrtowc (Depends-on): Add hard-locale.
6853         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
6854         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
6855         * tests/test-mbrtowc5.sh: New file.
6857 2016-04-03  Pedro Alves  <palves@redhat.com>
6859         stdint: detect good enough pre-C++11 stdint.h in C++ mode
6860         When gnulib is configured in C++ mode for a system with a working C99
6861         implementation of stdint.h that predates C++11, gnulib ends up
6862         substituting stdint.h anyway.  This works on most targets, but on e.g.,
6863         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
6864         MinGW is LLP64.  Instead of trying to detect the right types, detect
6865         good-enough-pre-C++11 stdint.h and in such case define
6866         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
6867         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
6868         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
6869         conforms to C99.  If it does, check whether it hides symbols
6870         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
6871         does, define those macros in config.h.
6873 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
6875         argp: merge changes from glibc
6876         Among other things, this should fix problems found by a Coverity
6877         scan and reported by Andrei Borzenkov:
6878         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
6879         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
6880         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
6881         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
6882         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
6883         * lib/argp.h:
6884         Merge changes from glibc.
6885         * tests/test-argp-2.sh: Adjust to match new behavior.
6887 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
6889         stddef: support configuring with g++
6890         Problem reported by Ángel González in:
6891         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
6892         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
6893         Do not define if _GCC_MAX_ALIGN_T is defined.
6895 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6897         test-framework-sh: minor cleanups
6898         * tests/init.sh (testdir_prefix_): Output a trailing newline,
6899         since strictly speaking POSIX requires this.
6900         (setup_): Do not use the variable 'fail', as that makes the
6901         trace output harder to read ('fail' is typically used by
6902         tests to mean the test failed).  Treat // portably.
6903         Check that new directory is not merely a sibling of the tmp dir.
6904         Avoid unnecessary invocation of tr.
6906         test-framework-sh: revert port to NetBSD 7.0
6907         It was a false alarm; I misinterpreted Assaf Gordon's report.
6908         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6909         Restore.
6910         (test_dir_): Adjust to mktempd_ change.
6911         (mktempd_): Restore 2nd arg.  Use -t again.
6912         (base_template_, template_, nx_): Resurrect old code.
6914         Port better to Alpine Linux
6915         Its diff implementation does not support -c, but does support -U3.
6916         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6917         * tests/init.sh (diff_opt_): New var.
6918         (compare_): Prefer diff -U3 to diff -c to plain diff.
6920 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6922         test-framework-sh: port to NetBSD 7.0
6923         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6924         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6925         Remove.  All uses removed.
6926         (test_dir_): Adjust to mktempd_ change.
6927         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
6928         (base_template_, template_, nx_): Simplify by hardcoding.
6930 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6932         gitlog-to-changelog: suppress ignored chatter
6933         * build-aux/gitlog-to-changelog: Do not warn about skipping
6934         an SHA if it would have been ignored anyway.
6936 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
6938         setlocale: add "sv" to Windows language table
6939         * lib/setlocale.c (language_table) [W32]: Add "sv".
6940         Reported in <https://savannah.gnu.org/bugs/?44588>.
6942 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6944         sys_select: port to new Cygwin
6945         Problem reported by Ken Brown in:
6946         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
6947         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
6948         diagnostics.
6950 2016-03-17  Jim Meyering  <meyering@fb.com>
6952         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
6953         * tests/test-userspec.c (main): Remove unnecessary braces and fix
6954         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
6955           test-userspec.c:176:9: error: statement is indented as if it were \
6956             guarded by... [-Werror=misleading-indentation]
6957                    {
6958                    ^
6959           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
6960                  if (!diag && !T[i].result)
6961                  ^~
6963 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
6965         time_rz: port to clang -Wunused-const-variable
6966         * lib/time_rz.c (TZ): Remove.  All uses removed.
6968         std-gnu11: improve clang support
6969         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
6970         2016-03-15 Also try clang
6971         2016-03-15 Port C11 and C++11 testing to clang
6973         select: port more to Intel 2016.1.150 compiler
6974         Problem reported by Balázs Hajgató in:
6975         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
6976         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
6978 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6980         select: try to port to 2016.1.150 compiler
6981         Problem reported by Balázs Hajgató in:
6982         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
6983         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
6984         POSIX specifies 'restrict'.
6986 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6988         localename-tests: memory allocation fixes
6989         * tests/test-localename.c (test_locale_name)
6990         (test_locale_name_thread): Don't call freelocale on a locale
6991         that was the base of a successful newlocale, as that
6992         results in a double free.  Problem reported by Assaf Gordon.
6993         (test_locale_name_thread): Free saved names after use, to pacify
6994         gcc -fsanitize=address.
6996 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6998         intprops: make .h file license match module
6999         * lib/intprops.h: Change the license wording to match glibc format.
7000         This is what is in modules/intprops anyway.  See:
7001         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
7003 2016-03-08  Eric Blake  <eblake@redhat.com>
7005         acl: fix missing return on Cygwin
7006         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
7007         fall off end of function. Fixes http://bugs.gnu.org/22949
7009 2016-03-05  Bruno Haible  <bruno@clisp.org>
7011         extern-inline: port to PGI CC
7012         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
7013         keyword 'inline'.
7014         Reported by Adam James Stewart in:
7015         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
7017 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7019         signbit: port back to pre-C++11 GCC
7020         * lib/math.in.h (signbit): Do previous change only if
7021         __cplusplus < 201103.  See Jonathan Wakely in:
7022         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
7024 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
7026         mountlist: recognize autofs-mounted remote file systems, too
7027         Originally reported at: https://bugzilla.redhat.com/1309247
7028         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
7029         "-hosts" because it is used by autofs to mount remote file systems.
7031 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7033         signbit: port to C++ with GCC 6
7034         * lib/math.in.h (signbit) [__cplusplus]:
7035         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
7036         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
7038         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
7040         regex: make it closer to libc
7041         Make Idx a signed type, rather than possibly unsigned.
7042         The unsignedness was not really buying us anything, since the code
7043         overflows for other reasons before getting to PTRDIFF_MAX.  Making
7044         it signed allows us to use -1 and -2 with abandon, like libc does,
7045         thus lessening the number of differences between gnulib and libc.
7046         Also, it should help avoid gratuitous warnings like the one
7047         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
7048         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
7051         regex: merge patches from libc
7053         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7054         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7055         Convert miscellaneous function definitions to prototype style.
7056         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
7057         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
7058         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
7059         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
7060         (re_search_internal):
7061         Convert to prototype-style function definition.
7062         Use internal_function for internal functions.
7064 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
7066         stdalign: port to older HP and IBM cc
7067         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
7068         C compilers, by checking their version numbers.  These version
7069         numbers appear in MariaDB and in Qt code that dates way back and
7070         that conditiionally uses the 'aligned' attribute.
7072 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7074         stdalign: port to clang 3.7.0
7075         Problem reported by Herbert J. Skuhra in:
7076         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
7077         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
7078         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
7079         https://llvm.org/bugs/show_bug.cgi?id=26547
7081 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7083         readdir_r: now obsolescent
7084         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
7085         * lib/mountlist.c (read_file_system_list): Add a FIXME.
7087 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7089         misc: port better to gcc -fsanitize=address
7090         Without these patches, ./configure CFLAGS='-fsanitize=address'
7091         would compute incorrect values.  This patch fixes some (but not all)
7092         test failures with recent glibc, with this configuration.
7093         * m4/acl.m4 (gl_ACL_GET_FILE):
7094         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
7095         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
7096         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
7097         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
7098         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
7099         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
7100         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
7101         * m4/getline.m4 (gl_FUNC_GETLINE):
7102         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
7103         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
7104         * m4/regex.m4 (gl_REGEX):
7105         * m4/strndup.m4 (gl_FUNC_STRNDUP):
7106         * tests/test-calloc-gnu.c (main):
7107         * tests/test-duplocale.c (main):
7108         * tests/test-getgroups.c (main):
7109         * tests/test-getline.c (main):
7110         * tests/test-inttostr.c (main):
7111         * tests/test-localename.c (test_locale_name)
7112         (test_locale_name_thread, test_locale_name_environ)
7113         (test_locale_name_default):
7114         * tests/test-regex.c (main):
7115         * tests/test-setlocale1.c (main):
7116         * tests/test-stat.h (test_stat_func):
7117         Free heap-allocated storage before exiting.
7118         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
7119         Don't match *_foo symbols inserted by AddressSanitizer.
7120         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
7122 2016-02-02  Jim Meyering  <meyering@fb.com>
7124         verify-tests: also remove stray test-verify.Tpo
7125         * modules/verify-tests (Makefile.am): Arrange for "make clean"
7126         to remove the test-verify.Tpo file that is left behind by
7127         the automake-generated rule upon compilation failure.
7128         Otherwise, that .Tpo file would cause a failed "make distcheck"
7129         at least for grep.
7131 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7133         std-gnu11: new module
7134         This makes it easier for applications to prefer C11 and C++11
7135         to older variants, when compiling C and C++ code.
7136         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
7137         a nontrivial chunk of GPLed Autoconf source code.
7138         * COPYING: Mention the m4/*.m4 copyright situation.
7139         * MODULES.html.sh (std-gnu11): New module.
7140         * m4/std-gnu11.m4, modules/std-gnu11: New files.
7142 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7144         get-permissions, strftime: fix grammar in comments
7145         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
7146         some grammar fixes Alan Mackenzie made to GNU Emacs.
7148 2016-01-25  Daiki Ueno  <ueno@gnu.org>
7150         gettext: mark as obsolete
7151         Suggested by Paul Eggert in:
7152         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
7153         * modules/gettext (Status): Mark as obsolete.
7154         (Notice): Suggest to use 'gettext-h' instead.
7155         * modules/gettext-h (Description): Suggest GNU gettext, instead of
7156         the 'gettext' module.
7158 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7160         gnulib-tool: don't give up on ln -s so easily
7161         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
7162         because an earlier one failed.  The targets could be on different
7163         file systems.  Problem reported by KO Myung-Hun in:
7164         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
7166         closedir: fix OS/2-related typos
7167         Problem reported by KO Myung-Hun in:
7168         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
7169         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
7170         in the last couple of changes.
7172 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
7174         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
7175         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
7176         copying a directory.
7178 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7180         regex: treat [x] as x if x is a unibyte encoding error
7181         Problem reported by Aharon Robbins in:
7182         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
7183         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
7184         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
7186         closedir, dirfd, opendir: port to OpenSolaris 5.10
7187         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
7188         * m4/dirfd.m4 (gl_FUNC_DIRFD):
7189         * m4/opendir.m4 (gl_FUNC_OPENDIR):
7190         Don't use ${word##pat} substitution, as it doesn't work in
7191         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
7192         http://bugs.gnu.org/22443#11
7194 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7196         bootstrap: use American spelling
7197         * build-aux/bootstrap: Honor American spelling.
7199 2016-01-22  Karl Berry  <karl@freefriends.org>
7201         * doc/posix-functions/localtime.texi,
7202         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
7204 2016-01-21  Bruno Haible  <bruno@clisp.org>
7206         hash-pjw-bare: fix comment
7207         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
7209         wcwidth: Replace also on OpenBSD 5.8
7210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
7211         * doc/posix-functions/wcwidth.texi: Update.
7213 2016-01-20  Pádraig Brady  <P@draigBrady.com>
7215         gnu-web-doc-update: fix addition of new files
7216         If there were already added (emnpty) dirs,
7217         then cvs aborts the add with the message:
7218           cvs [add aborted]: there is a version in <./dirname> already
7219         * build-aux/gnu-web-doc-update: Add directories separately
7220         to the addition of files, to avoid the above issue
7221         impacting the addition of files.
7223 2016-01-19  Daiki Ueno  <ueno@gnu.org>
7225         utimens-tests: avoid pulling gettext .m4 files
7226         Although this is not the right fix to the original problem:
7227         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
7228         it makes it possible again for consumer projects to use arbitrary
7229         version of gettext, through the steps described at:
7230         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
7231         See here for details:
7232         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
7233         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
7234         'gettext'.
7235         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
7236         'gettext'.
7238 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7240         regex: pacify static checkers
7241         Problem and draft fix reported by Aharon Robbins in:
7242         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7243         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
7244         Clear memory to pacify static checkers.
7246         regex: fix [ diagnostic
7247         Problem and fix reported by Aharon Robbins in:
7248         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7249         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
7251         regex: fix memory leaks
7252         Problem and draft fix reported by Aharon Robbins in:
7253         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7254         * lib/regcomp.c (build_range_exp, build_charclass_op)
7255         * lib/regex_internal.c (re_dfa_add_node):
7256         Fix memory leak on failure.
7258 2016-01-18  Pádraig Brady  <P@draigBrady.com>
7260         fts: don't unconditionally use leaf optimization for NFS
7261         NFS st_nlink are not accurate on all implementations,
7262         leading to aborts() if that assumption is made.
7263         See <https://bugzilla.redhat.com/1299169>
7264         * lib/fts.c (leaf_optimization_applies): Remove NFS from
7265         the white list, and document the issue.
7267 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7268             KO Myung-Hun  <komh@chollian.net>
7270         gnulib-tool: don't assume ln -s works
7271         * gnulib-tool (func_ln_s): New function.
7272         (func_ln): Use it.
7274 2016-01-15  KO Myung-Hun  <komh@chollian.net>
7276         utimes: detect utimes() correctly on OS/2 kLIBC
7277         utimes() of OS/2 kLIBC has some limitations.
7278         1. OS/2 itself supports a file date since 1980 year in local time.
7279         2. OS/2 itself supports only even seconds for a file time.
7280         3. utimes() of OS/2 kLIBC does not work on an opened file.
7281         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
7282         * doc/posix-functions/utimes.texi: Document the above limitations of
7283         utimes() on OS/2 kLIBC.
7285 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7286             KO Myung-Hun  <komh@chollian.net>
7288         openat_proc_name: port to OS/2 kLIBC
7289         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
7290         instead of /proc/self/fd.
7291         * lib/openat-proc.c (openat_proc_name):
7292         Don't assume file name length is less than INT_MAX.
7293         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
7295 2016-01-14  KO Myung-Hun  <komh@chollian.net>
7297         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
7298         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
7299         definitions of intptr_t and uintptr_t (which use int and unsigned)
7300         to avoid clashes with declarations of system functions like sbrk.
7301         * lib/stdint.in.h (intptr_t, uintptr_t): Check
7302         _INTPTR_T_DECLARED before defining them.
7304         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
7305         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
7306         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
7307         Declare on kLIBC.
7308         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
7309         fd associated with dirp.
7310         (_gl_register_dirp_fd): New. Register fd associated with dirp to
7311         dirp_fd_list.
7312         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
7313         (dirfd): Implemented for kLIBC.
7314         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
7315         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
7316         succeeds.
7317         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
7318         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7319         (REPLACE_DIRFD): Define to 1 if replaced.
7320         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
7321         * modules/closedir (Depends-on): Add dirfd.
7322         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
7323         condition.
7324         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
7325         * modules/opendir (Depends-on): Add dirfd.
7327         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
7328         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
7329         * lib/dup.c (dup_nothrow): New.
7330         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
7331         (klibc_dup2): New.
7332         * lib/fcntl.c (klibc_fcntl): New.
7333         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
7334         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
7335         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
7336         fd.
7338         pipe_filter_ii_execute: port to OS/2 kLIBC
7339         Pipes on kLIBC do not support O_NONBLOCK like Win32.
7340         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
7341         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
7342         Reuse Win32 code on OS/2 kLIBC.
7343         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
7344         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
7346         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
7347         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
7348         static inline function.  The implementation of wcwidth in wcwidth.c
7349         causes a "conflicting types" error.
7350         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
7352         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
7353         spawn() on OS/2 kLIBC is not silly like one on Windows
7354         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
7355         empty string on OS/2 kLIBC.
7357         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
7358         On OS/2 kLIBC, select() works only on sockets.
7359         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
7361         binary-io: don't put fd in binary mode if it is a console on EMX
7362         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
7363         a console on EMX.
7365 2016-01-15  Pádraig Brady  <P@draigBrady.com>
7367         doc: mention unfixed issues with unsupported localtime() values
7368         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
7369         returns nonsense for localtime(2^56).
7370         * doc/posix-functions/localtime_r.texi: Likewise.
7372 2016-01-14  Pádraig Brady  <P@draigBrady.com>
7374         doc: mention setlocale() issues on OpenBSD
7375         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
7376         never fails, and the need to check categories individually.
7378 2016-01-14  Pádraig Brady  <P@draigBrady.com>
7380         sig2str: list all signals on FreeBSD >= 7
7381         FreeBSD >= 7 is contravening POSIX by not defining NSIG
7382         to the maximal statically defined signal value.
7383         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
7384         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
7385         where available, even when NSIG is defined.
7387 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
7389         acl-permissions: port to USE_ACL==0 platforms
7390         I ran into this problem when building bleeding-edge GNU Emacs
7391         with gcc -fsanitize=address on Fedora 23.  On this platform
7392         the ACL library does not pass the 'configure' test and Emacs
7393         then does not build due in part to what appear to be typos in the
7394         ACL part of Gnulib.
7395         * lib/acl-internal.c (free_permission_context):
7396         * lib/acl-internal.h (struct permission_context):
7397         Test whether USE_ACL is nonzero, not whether it is defined.
7399 2016-01-12  Martin Sebor  <msebor@redhat.com>
7401         mktime: rename macro to avoid glibc clash
7402         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
7403         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
7405 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
7407         Port "$@" to OpenIndiana ksh93
7408         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
7409         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
7410         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
7411         bug long-dead shells, so remove the workaround.
7412         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
7413         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
7414         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
7415         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
7416         Use "$@" instead of ${1+"$@"}.
7418         Port Universal Time settings to strict POSIX
7419         * build-aux/announce-gen, build-aux/bootstrap:
7420         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
7421         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
7422         * build-aux/gnupload, build-aux/mkinstalldirs:
7423         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
7424         * build-aux/update-copyright, build-aux/useless-if-before-free:
7425         * build-aux/vc-list-files, tests/test-strftime.c:
7426         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
7427         but POSIX says the behavior of TZ="UTC" is undefined.
7429 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7431         msvc-inval: fix problem with unset shell var
7432         Problem reported by Karl Berry in:
7433         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
7434         * modules/msvc-inval (Depends-on):
7435         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
7436         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
7438 2016-01-01  Pádraig Brady  <P@draigBrady.com>
7440         tests: for compare_(), use cmp -s where available
7441         * tests/init.sh (compare_): Only fall back to cmp without
7442         the POSIX defined -s option, where this is not available.
7444 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7446         version-etc: new year
7447         * build-aux/gendocs.sh (version):
7448         * doc/gendocs_template:
7449         * doc/gendocs_template_min:
7450         * doc/gnulib.texi:
7451         * lib/version-etc.c (COPYRIGHT_YEAR):
7452         Update copyright dates by hand in templates and the like.
7453         * all files: Run 'make update-copyright'.
7455 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7457         human: fix output buffer overrun by 1
7458         * lib/human.c (human_readable): Fix off-by-one typo in buffer
7459         calculation that could lead to a one-byte buffer overrun.
7461 2015-12-28  Daiki Ueno  <ueno@gnu.org>
7463         maint: fix operator precedence in mbrtowc test
7464         This is a fix for test breakage introduced by commit 45228d96; the
7465         equality expression must be parenthesized when negated with '!',
7466         otherwise we always get:
7468           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
7470         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
7471         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
7473 2015-12-23  James Youngman  <jay@gnu.org>
7475         regexprops-generic: update from regex.h
7476         * doc/regexprops-generic.texi: update by running the regexprops binary
7477         from findutils (the command line is 'regexprops "Regular Expressions"
7478         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
7479         gnulib with GNU grep had made this document out-of-date.
7481 2015-12-23  Pádraig Brady  <P@draigBrady.com>
7483         strftime-tests: avoid false failure on OS X
7484         * tests/test-strftime.c (struct localtime_rz_test): Add an
7485         ahistorical member which is used to warn rather than fail
7486         when tm_isdst isn't set for such entries.  This is the case for
7487         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
7489 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
7491         fts: ensure leaf optimization is used for NFS
7492         NFS provides usable dirent.d_type but not necessarily for all entries
7493         of large directories.  See <https://bugzilla.redhat.com/1252549>
7494         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
7496 2015-12-20  Pádraig Brady  <P@draigBrady.com>
7498         fts: enable leaf optimization for XFS
7499         XFS provides usable dirent.d_type only for DT_DIR,
7500         but the noleaf optimization still applies.
7501         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
7503 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7505         intprops: comment fix
7506         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
7507         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
7509         intprops-test: work around GCC bug 68971
7510         Problem reported by Pádraig Brady in:
7511         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
7512         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
7513         (main): Add a case that better tests 64-bit long in this area.
7515 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
7517         gnulib-tool: allow multiple --local-dir usage
7518         * gnulib-tool: Use --local-dir to construct compound
7519         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
7520         PATH_SEPARATOR early.
7521         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
7522         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
7523         func_determine_path_separator because that needs to be detected
7524         earlier now.
7525         (func_determine_path_separator): New function.
7526         (func_path_foreach, func_path_foreach_inner): New functions.
7527         (func_path_prepend, func_path_append): Likewise.
7528         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
7529         (func_lookup_file, func_all_modules): Use new functions to work
7530         with local_gnulib_path.
7531         (func_modules_in_dir, func_exists_module): New callbacks for
7532         func_path_foreach.
7533         (func_exists_module, func_get_tests_module): Likewise.
7534         (func_is_local_file, func_should_symlink): New helper methods.
7535         (func_add_file, func_update_file): Use new func_should_symlink
7536         instead, DRY.
7537         (func_reconstruct_cached_local_gnulib_path): New helper.
7538         (func_reconstruct_cached_dir): New callback.
7539         (func_import): The cached_local_gnulib_dir renamed to
7540         cached_local_gnulib_path similarly to local_gnulib_dir.
7541         Use new func_reconstruct_cached_local_gnulib_path.
7542         (func_count_relative_local_gnulib_path): New sub-method.
7543         (func_create_testdir): Use func_should_symlink, DRY.
7544         (func_create_megatestdir): Use new functions to work with
7545         local_gnulib_path correctly.
7546         (func_append_local_dir): New helper.
7548 2015-12-08  Pádraig Brady  <P@draigBrady.com>
7550         fix freadptr to work with ungetc on all uClibc configs
7551         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
7552         where GNU coreutils cut(1) generates invalid output on uClibc
7553         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
7554         * lib/freadptr.c (freadptr): Return NULL if there are
7555         ungotten chars.  In this case freadseek() will iterate
7556         again to process the ungotten character.
7558 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
7560         xalloc-oversized: improve performance with GCC 5
7561         * lib/xalloc-oversized.h (xalloc_oversized):
7562         Improve performance with GCC 5 by using __builtin_mul_overflow.
7564 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7566         intprops: new public macro EXPR_SIGNED
7567         Emacs can use this macro, so make it public.
7568         * doc/intprops.texi (Arithmetic Type Properties): Rename from
7569         'Integer Type Determination', since some of these macros apply
7570         to non-integer types.  Clarify what kinds of constant expressions
7571         these macros return.  Say when the arguments can be non-integers.
7572         Mention newly published macro EXPR_SIGNED.
7573         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
7574         make it public.  All uses changed.
7576         intprops: fix typo in clang port
7577         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
7578         '__builtin_add_overflow' that is not caught by compiler.
7580 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
7582         test-timespec: fix typo in previous change
7583         * tests/test-timespec.c (main): Fix typo that reduced test quality.
7585         timespec-sub: fix overflow bug; add tests
7586         * lib/timespec-add.c (timespec_add):
7587         * lib/timespec-sub.c (timespec_sub):
7588         Work even if time_t is narrower than int (a theoretical
7589         possibility).  Redo code for a bit more clarity.
7590         * lib/timespec-sub.c (timespec_sub):
7591         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
7592         * modules/timespec-tests, tests/test-timespec.c: New files.
7594         intprops-test: suppress -Woverlength-strings
7595         Problem reported by Pádraig Brady in:
7596         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
7597         It is not worth the hassle to port this test to compilers that
7598         cannot handle long strings in diagnostics.
7599         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
7601 2015-11-03  Pádraig Brady  <P@draigBrady.com>
7603         quotearg: add quotearg_n_style_colon()
7604         This quotes with default options of the specified style,
7605         but with quoting enabled for instances of ':'.
7606         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
7607         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
7609 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7611         intprops: revise _WRAPV macros, revert _OVERFLOW
7612         The incompatible changes to the _OVERFLOW macros were too much of
7613         a hassle in practice, so revert them.  Instead, change the new
7614         _WRAPV macros to make them closer in behavior to GCC 5's new
7615         builtin_add_overflow etc. functions.  No other software was using
7616         these newly-added macros yet, so this should be OK.
7617         * NEWS: Revert previous change, since the incompatible change
7618         has been reverted, and nobody used the incompatible version.
7619         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
7620         Document revised behavior.
7621         (Integer Range Overflow): Adjust example to match above revisions.
7622         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
7623         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
7624         these can be used in integer constant expressions again.
7625         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
7626         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
7627         needed.
7628         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
7629         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
7630         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
7631         Remove, as they did not seem that useful.
7632         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
7633         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
7634         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
7635         Support new semantics.
7636         (__has_builtin): New macro, if not alreay defined.
7637         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
7638         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
7639         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
7640         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
7641         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
7642         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
7643         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
7644         New macros.
7645         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
7647 2015-11-03  Jim Meyering  <meyering@fb.com>
7649         intprops: add parentheses for when OP has precedence lower than "-"
7650         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
7651         "a OP b" must be parenthesized for when OP is like "<<", which has
7652         lower precedence than the following "-". Reported by Pádraig Brady.
7654 2015-11-03  Pádraig Brady  <P@draigBrady.com>
7656         quotearg: constify get_quoting_style parameters
7657         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
7658         * lib/quotearg.c (get_quoting_style): Likewise.
7660 2015-11-02  Pádraig Brady  <P@draigBrady.com>
7662         quotearg: add support for $'' shell escaping
7663         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
7664         items and descriptions.
7665         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
7666         above types by quoting like "shell", but using $'...' syntax
7667         for non printable characters, which should provide unambiguous
7668         printable output for any input.
7669         * tests/test-quotearg-simple.c: Update accordingly.
7671 2015-11-02  Pádraig Brady  <P@draigBrady.com>
7673         maint: use a more standard return from mbrtowc test
7674         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
7675         from the test program as this is non standard and often
7676         indicates an unhandled case in the test program.
7677         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
7679 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7681         intprops: add WRAPV and const flavors for GCC 5
7682         If available, use GCC 5's builtin functions for efficient integer
7683         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
7684         and safely compute the low-order bits of the correct answer.
7685         A downside of these efficient functions is that they cannot be
7686         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
7687         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
7688         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
7689         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
7690         Document the changes.
7691         (Wraparound Arithmetic): New section.
7692         (Integer Range Overflow):
7693         Put this subsection last, since it's least useful.
7694         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
7695         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
7696         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
7697         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
7698         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
7699         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
7700         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
7701         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
7702         New macros.
7703         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7704         Generate calls to GCC builtins if available, for speed.
7705         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
7706         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
7707         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
7708         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
7709         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
7710         (CHECK_QUOTIENT, CHECK_REMAINDER):
7711         Test WRAPV and CONST flavors (when available) too.
7713 2015-10-30  Pádraig Brady  <P@draigBrady.com>
7715         doc: use extended timezone format in iso-8601 example
7716         * doc/parse-datetime.texi: The standard states that extended format
7717         is to be used consistently throughout.
7718         Note that lib/parse-datetime.y can handle either tz format.
7720 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
7722         stdalign: port to Sun C 5.9
7723         * doc/posix-headers/stdalign.texi: Document this.
7724         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
7725         __attribute__ ((__aligned__ (...))).
7727 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
7729         time_rz: fix comment about tzalloc
7730         * lib/time_rz.c (tzalloc): Fix comment.
7732 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7734         stdalign: work around pre-4.9 GCC x86 bug
7735         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
7736         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
7737         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
7739 2015-10-18  Pádraig Brady  <P@draigBrady.com>
7741         maint.mk: sc_tight_scope: remove extraneous expressions
7742         * top/maint.mk (tight_scope): This is not really required since
7743         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
7744         that matches all nm entries.  But it does remove extraneous entries
7745         that may be confusing or cause issue in future maintenance.
7747 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7749         time_rz: return NULL if localtime_r fails
7750         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
7751         while still attempting to pacify bleeding-edge GCC.
7753         fts: port to C11 alignof
7754         * doc/posix-headers/stdalign.texi (stdalign.h):
7755         Document the C11 restriction.
7756         * lib/fts.c: Include stddef.h, for max_align_t.
7757         (fts_alloc): Align using max_align_t, not FTSENT.
7758         * modules/fts (Depends-on): Add stddef.
7760 2015-10-18  Jim Meyering  <meyering@fb.com>
7762         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
7763         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
7764         would see this:
7766         lib/time_rz.c: In function 'localtime_rz':
7767         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
7768           [-Werror=nonnull]
7769                    if (tm && !save_abbr (tz, tm))
7770                        ^
7772         That was complaining about "tm" because it is a parameter that was
7773         declared with the __nonnull__ attribute.
7774         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
7775         result of localtime_r.
7777 2015-10-17  Jim Meyering  <meyering@fb.com>
7779         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
7780         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
7781         name-extraction regexp mistakenly used \S+, and would mistakenly
7782         extract "*F" from "extern int *F()" rather than the desired "F".
7783         Use \w+ instead.
7785 2015-10-17  Jim Meyering  <meyering@fb.com>
7787         maint.mk: sc_tight_scope: factor and support OS X
7788         * top/maint.mk (_gl_tight_scope): Address three issues:
7789         - factor out four instances of code that wraps a string in "^...$"
7790         - allow nm-reported symbol names to have an optional leading "_"
7791         - add "main" to the list of ignored variable names, because on os x,
7792         "main" has nm-reported type "S" in the variable-checking section.
7794 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
7796         safe-alloc-tests: fix typo in license header
7797         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
7799 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
7801         copy-file: fix mem leak in error case
7802         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
7803         upon error opening or performing I/O to the src and dest files.
7805 2015-10-15  Mike Frysinger  <vapier@chromium.org>
7807         localename: control langinfo.h inclusion
7808         This header is only used to work around buggy behavior in old
7809         versions of glibc, so do not include it all the time.  Otherwise
7810         we get build failures on systems that do not provide langinfo.h.
7811         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
7812         in the source later on.
7813         The patch was originally submitted to gettext as:
7814         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
7816 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7818         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
7819         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
7820         * lib/u64.c, lib/unistd.c:
7821         Append 'typedef int dummy;', to pacify compilers that are picky
7822         about empty translation units.
7824 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
7826         accept4-tests: fix to avoid non portable flags
7827         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
7828         as they are the only documented ones, and passing others may trigger
7829         EINVAL (seen on FreeBSD 10.1-RELEASE).
7830         * doc/glibc-functions/accept4.texi: Mention that we don't provide
7831         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
7833 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
7835         gnulib-tool: fix tests of 'extensions' module
7836         This complements f8fe25fab60e3c687a124 commit.
7837         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
7838         emitting of initial gl_EARLY macros.
7839         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
7840         replaced with func_emit_pre_early_macros call.
7842 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7844         unicase/locale-language: fix typo in utf-8 cookie
7845         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
7846         Problem reported by Zbigniew Jędrzejewski-Szmek.
7848 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7850         xalloc: do not worry about GCC 5 warning on 32 bit
7851         * lib/xalloc.h: Revert previous change.
7852         I found a better way to fix this in coreutils.
7854 2015-10-02  Pádraig Brady  <P@draigBrady.com>
7856         xalloc: avoid GCC 5.1 warning on 32 bit
7857         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
7858         xalloc_oversized(), which was seen to give this warning
7859         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
7860         when simplifying conditional".
7862 2015-10-02  Daiki Ueno  <ueno@gnu.org>
7864         uniname/uniname-tests: avoid compiler warnings
7865         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
7866         unused local variables.
7867         (test_alias_lookup): Fix alias name display in failure cases.
7869 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7871         c-ctype: do not worry about EBCDIC + char signed
7872         Drop support for EBCDIC with char being signed, as this breaks too
7873         many programs.  Problem reported by Ben Pfaff in:
7874         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
7875         * lib/c-ctype.h: Verify that we are not using EBCDIC with
7876         char being signed.
7877         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
7878         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
7879         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
7880         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
7881         * tests/test-c-ctype.c (test_all):
7882         Simplify by assuming standard char values cannot be negative.
7883         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
7885 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7887         c-ctype: port better to z/OS EBCDIC
7888         Problems reported by Daniel Richard G. in:
7889         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
7890         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
7891         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
7892         (_C_CTYPE_OTHER_CNTRL): New macro.
7893         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
7894         from SCHAR_MIN, as the functions are defined only from values
7895         promoted from char or from unsigned char, not necessarily from
7896         signed char.
7898 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
7900         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
7902         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
7903         and ARFLAGS variables.  Doing this unconditionally could break
7904         later Automake's AM_PROG_AR invocation (at least it's
7905         AC_CHECK_TOOLS call to detect correct 'ar' binary).
7907         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
7908         Amsterdam Compiler Kit, so make the previous code to have effects
7909         only on ACK, and rather automatically call the Automake's
7910         AM_PROG_AR as soon as possible to decide other cases.
7912         References:
7913         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
7915         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
7916         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
7917         is possible, keep setting AR/ARFLAGS to reasonable defaults.
7918         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
7919         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
7920         'extensions' module is used.
7921         * modules/extensions (configure.ac-early): Remove as this snippet
7922         is added to gnulib-comp.m4 earlier anyway.
7924 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7926         sockets: MS Windows initalization fixes
7927         Problem reported by Test User in:
7928         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
7929         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
7930         Correct the endianness.
7931         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
7932         number mismatch, not just on <.  Cleanup before any such failure.
7934 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
7936         gc: fix detection of installed libgcrypt version
7937         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
7938         at least as recent as 1.4.4.  The previously used macro is not
7939         available now, since modules were removed in version 1.6.0.
7941 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7943         c-ctype: rewrite to use inline functions
7944         This simplifies maintenance, since it makes for just one
7945         implementation of each function, letting the compiler have the fun
7946         of optimization.  In practice this works well nowadays with GCC.
7947         E.g., c_isascii might need only three instructions even though the
7948         source code lists every ASCII character individually in a large
7949         switch statement.
7950         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
7951         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
7952         * NEWS: Document the API change.
7953         * lib/c-ctype.c: Drastically simplify, since this now just expands
7954         inline functions.
7955         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
7956         (C_CTYPE_INLINE): New macro.
7957         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
7958         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
7959         Verify that either ASCII or EBCDIC is being used.
7960         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
7961         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
7962         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
7963         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
7964         New private macros.
7965         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
7966         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
7967         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
7968         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
7969         (c_tolower, c_toupper): When converting, return the unsigned char,
7970         as that is what z/OS does.
7971         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
7972         of some c-ctype.h macros.
7973         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
7974         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
7975         c_tolower promotion to be compatible with z/OS.
7977 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
7979         gitlog-to-changelog: trim only trailing whitespaces
7980         This is fix for --format regression introduced by commit
7981         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
7982         doubled %n string) had no effect anymore.  This format
7983         specification has been used e.g. by GNU paxuitils (commit
7984         edfd8bcc3).
7986         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
7987         newlines in commmit messages.
7989 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7991         Test that c_iscntrl agrees with iscntrl, etc.
7992         Suggested by Daniel Richard G. in:
7993         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
7994         * modules/c-ctype-tests (Depends-on): Add ctype.
7995         * tests/test-c-ctype.c: Include <ctype.h>.
7996         (NCHARS): New constant.
7997         (test_agree_with_C_locale): New function.
7998         (main): Use it.
7999         (test_all): Use named constants.
8001         c-ctype: improve c_isascii testing
8002         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
8003         Add a test to count the number of ASCII characters.
8005 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8007         savewd: remove SAVEWD_CHDIR_READABLE
8008         It was problematic in the light of file systems that ignore umask.
8009         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
8010         * NEWS: Document this.
8011         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
8012         successful, -1 (setting errno) on failure, rather than something
8013         more complicated than that.
8014         * lib/mkdir-p.c (make_dir_parents):
8015         Do not use SAVEWD_CHDIR_READABLE.
8016         * lib/savewd.c (savewd_chdir):
8017         Remove support for SAVEWD_CHDIR_READABLE.
8018         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
8020         c-ctype: port better to EBCDIC
8021         Problems reported by Daniel Richard G. in
8022         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
8023         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
8024         Include "verify.h".
8025         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
8026         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
8027         Define as enum constants with value false, if not defined, so that
8028         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
8029         code more portable, as both branches of the 'if' are compiled on
8030         all platforms.
8031         (C_CTYPE_EBCDIC): New constant.
8032         Verify that the character set is either ASCII or EBCDIC.
8033         (to_char): New static function.
8034         (c_isascii, c_iscntrl):
8035         Assume standard control-character assignments for EBCDIC.
8036         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
8037         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
8038         Rewrite to use 'if' instead of 'ifdef'.
8039         Use to_char if non-ASCII.  Prefer <= to >=.
8040         Prefer true and false to 1 and 0, for booleans.
8041         (c_iscntrl): Use 'if', not 'ifdef'.
8042         * modules/c-ctype (Depends-on): Add verify.
8043         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
8044         (to_char): New function.
8045         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
8047 2015-09-21  Pádraig Brady  <P@draigBrady.com>
8049         nanosleep: fix return code for interrupted replacement
8050         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
8051         that we return -1 in the case the call is interrupted by a signal,
8052         rather than the current value of 1.
8053         Diagnosed and tested by Daniel Richard G.
8055 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
8057         Diagnose ERE '()|\1'
8058         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
8059         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
8060         track of the set of previously-completed subexpressions available
8061         before the first alternative, and restore this set just before
8062         parsing each subsequent alternative.  This lets us diagnose the
8063         invalid back-reference in the ERE '()|\1'.
8065         regex: merge patches from libc
8067         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
8068         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
8069         * lib/regex_internal.h:
8070         Include <libc-lock.h> instead of <bits/libc-lock.h>.
8072         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
8073         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
8074         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
8075         wcscoll.
8076         * lib/regexec.c (check_node_accept_bytes): Likewise.
8078         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
8079         Fix regex wcrtomb namespace (bug 18496).
8080         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
8081         instead of wcrtomb.
8083         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
8084         Fix regex wctype namespace (bug 18495).
8085         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
8086         instead of towlower.
8087         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
8088         instead of iswlower.  Call __towupper instead of towupper.
8089         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
8090         instead of iswalnum.
8092         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
8093         * lib/regcomp.c (parse_bracket_exp): Initialize type to
8094         COLL_SYM in a couple of places to avoid uninitialized variable
8095         wanings on tilegx gcc 4.8.2.
8097         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8098         * lib/regex_internal.h: Remove NOT_IN_libc.
8100         2014-11-17  Andreas Schwab  <schwab@suse.de>
8101         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
8103         2014-09-11  Roland McGrath  <roland@hack.frob.com>
8104         Move findidx nested functions to top-level.
8105         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
8106         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
8107         Pass new arguments to findidx.
8108         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
8109         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
8110         Don't #include it inside the function.  Pass new arguments to findidx.
8111         * lib/regex_internal.h:
8112         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
8113         (re_string_elem_size_at): Don't #include it inside the function.
8114         Pass new arguments to findidx.
8116         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
8117         Check if DEBUG is defined in regex_internal.c
8118         * lib/regex_internal.c: Check if DEBUG is defined and is set.
8120 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
8122         ceill: detect buggy OpenBSD implementation
8123         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
8124         which returns zero for small values.  Discussed here:
8125         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
8127 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
8129         mountlist: add me_mntroot field on Linux machines
8130         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
8131         mount_entry so Linux machines based on /proc/self/mountinfo can
8132         distinguish between bind mounts and original mounts.  In reality bind
8133         mounts aren't treated differently than mountroot=/ mounts by the
8134         kernel, but the user often wants these bind mounts distinguished.
8135         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
8136         More details at https://pad.lv/1432871
8138 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
8140         doc: Describe to use multiple instances of gnulib
8141         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
8142         instances of gnulib with different modules can be used, for example one
8143         for a lib and another one for associated tools.
8145 2015-09-01  Pádraig Brady  <P@draigBrady.com>
8147         base32: mark function as __attribute__ const
8148         * lib/base32.h (isbase32): Mark __attribute__ const as
8149         suggested by GCC, and consistent with the base64 module.
8151 2015-08-20  Daiki Ueno  <ueno@gnu.org>
8153         gnulib-tool: don't transform binary files with sed
8154         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
8155         .mo and .class files.
8156         Reported by Denis Denisov.
8158 2015-08-10  Daiki Ueno  <ueno@gnu.org>
8160         gperf: respect silent rules
8161         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
8162         V_GPERF_0 for silent rules.
8163         * modules/iconv_open (Makefile.am): Use V_GPERF.
8164         * modules/unicase/locale-language (Makefile.am): Likewise.
8165         * modules/unicase/special-casing (Makefile.am): Likewise.
8166         * modules/unictype/category-byname (Makefile.am): Likewise.
8167         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
8168         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
8169         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
8170         * modules/unictype/property-byname (Makefile.am): Likewise.
8171         * modules/unictype/scripts (Makefile.am): Likewise.
8172         * modules/uninorm/composition (Makefile.am): Likewise.
8174 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
8176         Improve port of stdalign to C++11
8177         Problem reported by Sundaram in:
8178         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
8179         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
8180         (__alignas_is_defined): Define if C++11 or newer.
8182 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
8184         pmccabe2html: fix gawk regex escaping
8185         * build-aux/pmccabe2html: Add one more backslash to properly
8186         escape the gsub replacement value.  Fixes this error:
8187         gawk: ./build-aux/pmccabe2html:425: \
8188         warning: escape sequence `\&' treated as plain `&'
8190 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
8192         time_rz: port to pedantic memcpy
8193         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
8194         that reject memcpy (..., NULL, 0).
8196 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
8198         time_rz: port better to MinGW
8199         Don't change tzname, as this makes MinGW dump core (Bug#21020).
8200         Instead, store the tzname copy in the struct tm_zone object.
8201         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
8202         * lib/strftime.c [!_LIBC]:
8203         * lib/time_rz.c: Include time-internal.h.
8204         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
8205         name from *TZ rather than from TZNAME, doable because *TZ now has
8206         a tzname_copy member.
8207         * lib/time-internal.h: New file, with contents taken from
8208         lib/time_rz.c.  It's separate because strftime.c now accesses
8209         struct tm_zone members.
8210         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
8211         New member tzname_copy.
8212         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
8213         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
8214         Initialize tzname_copy member.
8215         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
8216         in tzname_copy member.
8217         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
8218         (restore_tzname): Remove; no longer needed.  All calls removed.
8219         * modules/time_rz (Files): Add lib/time-internal.h.
8221         time: port __need_time_t to MinGW
8222         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
8223         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
8225 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8227         strftime: fix newly-introduced bug on Solaris
8228         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
8229         consistently at the start, rather than doing some of the setup at
8230         the start and some in the %Z format spec.  This is cleaner, and
8231         works better with time_rz on platforms like Solaris where struct
8232         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
8233         mktime_z and localtime_rz can mess up the tzname cache.
8235         test-strftime: test for Solaris bug
8236         * modules/strftime-tests (Depends-on): Add strerror.
8237         * tests/test-strftime.c: Include <errno.h>.
8238         (posixtm_test): New function, containing the old 'main'.
8239         (struct tzalloc_test, struct localtime_rz_test): New types.
8240         (TZ, LT): New static vars.
8241         (tzalloc_test): New function.
8242         (main): Rewrite in terms of posixtm_test and tzalloc_test.
8244         time_rz: port to Solaris etc.
8245         Works around a tzname problem on platforms like Solaris that have
8246         tzname but not tm_zone, by setting tzname at the appropriate time
8247         and restoring it later.
8248         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
8249         New static vars.
8250         (save_abbr) [HAVE_TZNAME]: Set them.
8251         (revert_tz) [HAVE_TZNAME]: Clear or use them.
8252         (restore_tzname): New function.
8253         (localtime_rz, mktime_z): Use it.
8255         time_rz: now LGPL
8256         * modules/time_rz (License): Now LGPL, because strftime depends on it.
8258         time_rz: make a constant 'const'
8259         * lib/time_rz.c (local_tz): Now const.
8261         time_rz: fix off-by-one typo
8262         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
8264 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8266         fprintftime, strftime: use timezone_t args
8267         * NEWS: Document the change.
8268         * lib/fprintftime.h (fprintftime):
8269         * lib/strftime.c (extra_args) [my_strftime]:
8270         * lib/strftime.h (nstrftime):
8271         Time zone arg is now of type timezone_t, not int.
8272         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
8273         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
8274         (my_strftime) [emacs && !my_strftime]:
8275         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
8276         Remove; Emacs doesn't need this any more.
8277         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
8278         fprintftime and nstrftime to call tzset.
8279         (ut) [!my_strftime]: Remove, replacing with ...
8280         (tz) [!my_stftime]: ... this new macro.  All uses changed.
8281         (strftime_case_): Use localtime_rz and mktime_z instead
8282         of localtime_r and mktime.
8283         * modules/fprintftime (Depends-on): Add time_rz.
8284         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
8285         * tests/test-strftime.c (main): Adjust to new nstrftime API.
8287         time_rz: new module
8288         * MODULES.html.sh: Add time_rz.
8289         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
8290         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
8291         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
8292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
8293         New var HAVE_TIMEZONE_T (default 0).
8294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8295         New var GNULIB_TIME_RZ (default 0).
8296         * modules/time (time.h): Substitute the new vars.
8298         flexmember: license is now unlimited
8299         * modules/flexmember (License): Change to unlimited,
8300         since its only source file gives an unlimited license.
8302 2015-07-15  Eric Blake  <eblake@redhat.com>
8304         maint: update copyright paper procedures
8305         * config/srclist.txt: Drop outdated files.
8306         * doc/Copyright/conditions.txt: Update to latest.
8307         * doc/Copyright/assign.changes.manual: Delete.
8308         * doc/Copyright/assign.future.manual: Likewise.
8309         * doc/Copyright/assign.manual: Likewise.
8310         * doc/Copyright/assign.translation.manual: Likewise.
8311         * doc/Copyright/disclaim.changes.manual: Likewise.
8312         * doc/Copyright/disclaim.manual: Likewise.
8313         * doc/Copyright/disclaim.program: Likewise.
8315 2015-07-07  Daiki Ueno  <ueno@gnu.org>
8317         localename: fix link error on Illumos
8318         Illumos defines __sun, but does not have getlocalename_l nor the
8319         equivalent.  This partially reverts commit 387c214.
8320         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
8321         available, as well as uselocale.
8322         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
8323         use getlocalename_l if it is not available.
8325 2015-07-07  Daiki Ueno  <ueno@gnu.org>
8327         unistr/uN-strtok-tests: avoid a trivial leak
8328         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
8329         input and delim after the multibyte delimiter tests.
8331 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8333         file-has-acl, acl-permissions: fix HP-UX typos
8334         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
8335         * lib/file-has-acl.c (file_has_acl):
8336         * lib/set-permissions.c (context_acl_from_mode)
8337         (context_aclv_from_mode, set_acls):
8338         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
8339         They were introduced by the recent ACL changes.
8341         regex: match current GNU grep behavior
8342         These symbols have not matched GNU grep behavior for quite some time.
8343         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
8344         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
8345         Change to match current GNU behavior.
8346         Simplify by expressing it as differences from POSIX BREs and EREs.
8347         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
8349 2015-07-03  Jim Meyering  <meyering@fb.com>
8351         set-permissions.c: adjust acl_from_mode's cpp guard
8352         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
8353         directives identical to those guarding the sole use.
8354         Otherwise, on some systems, we'd get a warning about
8355         the function being defined but not used.
8356         Also, filter through cppi to correct misleading indentation
8357         of cpp directives.
8359 2015-07-03  Pádraig Brady  <P@draigBrady.com>
8361         tests: restrict shells to those that support 'local'
8362         The local keyword is very widely supported and used
8363         in tests in coreutils and grep at least.  Therefore
8364         restrict to testing with shells that support it.
8365         This mainly excludes /bin/sh on Solaris.
8366         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
8368 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
8369         and Daiki Ueno  <ueno@gnu.org>
8371         unistr/uN-strtok: handle multibyte delimiters
8372         Previously, uN_strtok moved PTR to the next unit to the token end.
8373         When DELIM contained a multibyte character, the new position could
8374         be a middle of a multibyte character.
8375         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
8376         after the token.
8377         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
8378         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
8379         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
8380         * modules/unistr/u8-strtok (Depends-on): Depend on
8381         unistr/u8-strmblen.
8382         * modules/unistr/u16-strtok (Depends-on): Depend on
8383         unistr/u16-strmblen.
8384         * modules/unistr/u32-strtok (Depends-on): Depend on
8385         unistr/u32-strmblen.
8386         * tests/unistr/test-u-strtok.h: New file.
8387         * tests/unistr/test-u8-strtok.c: New file.
8388         * tests/unistr/test-u16-strtok.c: New file.
8389         * tests/unistr/test-u32-strtok.c: New file.
8390         * modules/unistr/u8-strtok-tests: New file.
8391         * modules/unistr/u32-strtok-tests: New file.
8392         * modules/unistr/u16-strtok-tests: New file.
8394 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
8396         update-copyright: fix test failure with perl >= 5.22 (trivial)
8397         * build-aux/update-copyright: Escape a literal left curly bracket,
8398         required with perl >= 5.22
8400 2015-07-02  Daiki Ueno  <ueno@gnu.org>
8402         u{16,32}-strstr-tests: relax timeout condition
8403         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
8404         tests can take longer than 5 seconds to complete.
8405         Reported by Dagobert Michelsen in:
8406         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
8407         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
8408         seconds to 10 seconds.
8409         * tests/unistr/test-u32-strstr.c (main): Likewise.
8411 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
8413         gnulib-common.m4: change the ARFLAGS default to 'cr'
8414         In some GNU/Linux distributions people started to compile 'ar'
8415         binary with --enable-deterministic-archives (binutils project).
8416         That, however, in combination with previous autotools long time
8417         working default AR{_,}FLAGS=cru causes warnings on such
8418         installations:
8419         ar: `u' modifier ignored since `D' is the default (see `U')
8420         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
8421         set already.
8423 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
8425         selinux-h: avoid double free after *getfilecon()
8426         Originally reported by Ben Shelton on bug-tar:
8427         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
8428         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
8429         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
8430         param should be freed by freecon(3) (regardless the return value).
8432 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
8434         fix pty related tests issues on Windows (trivial)
8435         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
8436         however it's still present in tests/ subdirectory of the final project.
8437         Therefore avoid it to pass `make check`.
8438         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
8439         will just return -ENOSYS, so avoid this non applicable test allowing
8440         the build to proceed.
8442 2015-07-01  Pádraig Brady  <P@draigBrady.com>
8444         acl: fix definition of acl_from_mode on FreeBSD
8445         This was causing basic coreutils copy operations to fail
8446         with ENOTSUP or ENOENT error messages.
8447         * lib/acl-internal.h (acl_from_mode): Only define when
8448         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
8449         of acl_from_mode() defined in lib/set-permissions.c to
8450         be used on FreeBSD at least.
8451         * lib/set-permissions.c: Fix up comment spelling,
8452         and a redundant variable assignment; noticed in passing.
8454 2015-06-30  Pádraig Brady  <P@draigBrady.com>
8456         readutmp: port to FreeBSD >= 9
8457         * lib/readutmp.h: Map utmpxname() to setutxdb().
8458         With that coreutils who(1) and pinky(1) tests pass.
8460 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8462         mgetgroups: port to strict OS X
8463         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
8464         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
8465         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
8466         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
8468 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
8470         mgetgroups: port to strict OS X
8471         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
8472         Document the getgrouplist problem.
8473         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
8474         New macro.
8475         (mgetgroups): Use it.
8476         * m4/mgetgroups.m4 (gl_MGETGROUPS):
8477         Check for OS X signature for getgrouplist.
8479 2015-06-29  Jim Meyering  <meyering@fb.com>
8481         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
8482         It started like this when building coreutils' latest on OS X,
8483         invoking ./configure with a nonempty --cache=.cache:
8485           lib/linkat.c:46:42: error: operator '||' has no right operand
8486           lib/linkat.c: In function 'rpl_linkat':
8487           lib/linkat.c:330:27: error: #if with no expression
8489         Here's linkat.c's line 46:
8491           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
8493         Here's some context:
8495           $ grep linkat_nofoll .cache
8496           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
8497           $ grep LINKAT_SYM lib/config.h
8498           #define LINKAT_SYMLINK_NOTSUP
8500         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
8501         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
8502         but that violates a tenet of AC_CACHE_CHECK: it must
8503         have no side effect other than setting its cache variable.
8505         What happens is that when the cache is set, we'd skip the
8506         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
8507         defined to whatever value it happened to have in configure's
8508         environment.  In my case, it was not defined, so this later code:
8510           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
8511             [Define to 1 if linkat can create hardlinks to symlinks])
8513         would emit code with an empty RHS.
8515         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
8516         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
8518 2015-06-28  Jim Meyering  <meyering@fb.com>
8520         mountlist: avoid an unused-label warning on OS X
8521         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
8522         Building on OS X, I saw a warning about the "free_then_fail" label
8523         being unused.  Give it the _GL_UNUSED_LABEL attribute.
8525         error.c: correct printf-style format: %d -> %u
8526         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
8527         rather than %d, to match the type of "line_number", unsigned int.
8529 2015-06-25  Pádraig Brady  <P@draigBrady.com>
8531         fts: avoid reading beyond the heap allocation
8532         GCC 5.1.1 with -O2 and -fsanitize=address reports
8533         a read of size 4 from a heap object of size 3 is indeed invalid,
8534         though this may be due to incorrect padding assumptions by GCC, see:
8535         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8536         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
8537         * modules/fts: Depend on stdalign.
8539 2015-06-24  Pádraig Brady  <P@draigBrady.com>
8541         savedir: avoid undefined behavior in qsort call
8542         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
8543         "runtime error: null pointer passed as argument 1,
8544          which is declared to never be null"
8545         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
8547 2015-06-24  Pádraig Brady  <P@draigBrady.com>
8549         userspec: avoid undefined behavior in gettext call
8550         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
8551         "runtime error: null pointer passed as argument 2,
8552          which is declared to never be null"
8553         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
8555 2015-06-20  Glenn Morris  <rgm@gnu.org>
8557         gitlog-to-changelog: improve gitmerge.el commits
8558         Let the Emacs ChangeLog generation process exclude "skipped"
8559         messages from merge commits (Bug#20717).
8560         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
8562 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8564         wchar: fix MinGW compilation warnings
8565         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
8566         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
8567         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
8569 2015-06-20  Daiki Ueno  <ueno@gnu.org>
8571         uniname/uniname-tests: use pristine data files
8572         For copyright and maintenance reasons, use the data files from UCD
8573         without modification.
8574         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
8575         (getfield): Remove.
8576         (aliases_count): New global variable.
8577         (fill_names): Skip comments and empty lines in the input.  Don't
8578         use getfield.
8579         (fill_aliases): Likewise.
8580         (main): Change the expected command line arguments to:
8581         NAMES... ["--" ALIASES...].
8582         * tests/uniname/test-uninames.sh: Adjust to the change in
8583         test-uninames.c.
8584         * tests/uniname/UnicodeDataNames.txt: Remove.
8585         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
8586         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
8587         file from Unicode 8.0.0.
8589 2015-06-19  Pádraig Brady  <P@draigBrady.com>
8591         linked-list, linkedhash-list: avoid compiler warnings
8592         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
8593         -Werror=suggest-attribute=pure (from GCC 5.1.1).
8595 2015-06-19  Daiki Ueno  <ueno@gnu.org>
8597         libunistring: bump minimum version to 0.9.6
8598         * all modules depending on updated Unicode data: Regenerate.
8599         The modules are listed by a script that does:
8600         - for each file listed by: git show --oneline --name-only 705f4efc
8601           - deduce the containing modules, based on "Files:"
8602         - deduce the modules which depend on the containing modules, based
8603           on "Depends-on:"
8605 2015-06-18  Daiki Ueno  <ueno@gnu.org>
8607         uniname/uniname: update to Unicode 8.0.0
8608         * lib/uniname/uninames.h: Regenerate.
8609         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
8610         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
8612 2015-06-18  Daiki Ueno  <ueno@gnu.org>
8614         libunistring: update to Unicode 8.0.0
8615         * lib/gen-uni-tables.c (SIZEOF): New macro.
8616         (output_numeric): Increase the maximum number of fractions from
8617         128 to 160.  Increase the level3 value width from 7 bits to 8
8618         bits.  Use SIZEOF instead of a hard-coded integer.
8619         (output_blocks): Decrease the cut-off threshold from 0x30000 to
8620         0x28000.
8621         (fill_blocks): Increase the maximum number of blocks from 256 to
8622         384.  Use SIZEOF instead of a hard-coded integer.
8623         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
8624         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
8625         value width.
8626         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
8627         a new case added to LBP22.
8628         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
8629         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
8630         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
8631         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
8632         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
8633         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8634         lib/uniwidth/width.c.
8635         * all generated files under lib/uni* and tests/uni*: Regenerate.
8637 2015-06-16  Pádraig Brady  <P@draigBrady.com>
8639         gnu-web-doc-update: add --mirror to remove stale files
8640         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
8641         out of date files from the CVS server.  Since this is usually
8642         appropriate, a prompt is given when the option is not specified,
8643         along with the `cvs remove` command that would be run.
8645 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8647         acl-permissions: pacify -Wsuggest-attribute=const
8648         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
8649         * lib/acl-internal.h (free_permission_context):
8650         Declare with attribute const if ! (defined USE_ACL &&
8651         (HAVE_ACL_GET_FILE || defined GETACL)).
8653         fsync: document AIX misbehavior
8654         * doc/posix-functions/fsync.texi (fsync):
8655         Document failure on AIX with read-only file descriptor.
8657 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
8659         stdio: Don't redefine gets when using C++
8660         * lib/stdio.in.h (gets): Disable warning on C++.
8662 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
8664         acl-permissions: port to AIX, C89 HP-UX
8665         Problems reported by Michael Felt.
8666         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
8667         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
8668         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
8669         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
8670         Add cast for AIX, whose system calls are declared to accept
8671         char * even though the arguments are really char const *.
8672         * lib/get-permissions.c (get_permissions):
8673         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
8674         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
8675         that broke a build.
8676         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
8677         Rework types to pacify xlc.
8679 2015-06-03  Pádraig Brady  <P@draigBrady.com>
8681         vasprintf-posix: avoid compiling vasnprintf where possible
8682         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
8683         module where not required.  For example on a GNU/Linux system
8684         when gnulib-tool is run with the --conditional-dependencies option.
8686 2015-06-02  Pádraig Brady  <P@draigBrady.com>
8688         file-has-acl: fix build on Mac OS X 10
8689         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
8690         which has an incompatible 6 parameter getxattr() call.
8691         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
8692         call on Mac OS X >= 10.4.
8693         * doc/glibc-functions/fgetxattr.texi: Likewise.
8694         * lib/file-has-acl.c: Revert to more complete combined check.
8695         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
8696         Reported by Jack Howarth.
8698 2015-06-02  Pádraig Brady  <P@draigBrady.com>
8700         prefix-gnulib-mk: remove no longer needed special case
8701         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
8702         continued lib_SOURCES lines are no longer present,
8703         so special case handling of such entries is not required.
8705 2015-06-01  Pádraig Brady  <P@draigBrady.com>
8707         acl: don't depend on the deprecated qacl module
8708         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
8710 2015-06-01  Pádraig Brady  <P@draigBrady.com>
8712         gnulib-tool: concatenate lib_SOURCES to a single line
8713         * gnulib-tool: Refactor the line merging sed logic,
8714         and use that to output a single lib_SOURCES line for each module.
8715         gnulib using projects often postprocess this output to prepend
8716         subdir paths to each item, and having a single line simplifies this
8717         processing allowing better decoupling from the gnulib-tool output.
8719 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
8721         pthread_sigmask: discount system version if a simple macro (trivial)
8722         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
8723         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
8724         function to ensure it's available.
8726 2015-05-31  Pádraig Brady  <P@draigBrady.com>
8728         readlinkat: avoid OS X 10.10 trailing slash bug
8729         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
8730         has this bug.
8731         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
8732         that OS X 10.10 has this function.
8733         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
8734         as done for readlink().
8735         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
8736         trailing slash bug, and assume readlinkat() has the same issue.
8737         Also fix a typo where $gl_cv_decl_readlink_works was tested,
8738         rather than the correct $gl_cv_decl_readlinkat_works.
8740 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
8742         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
8743         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
8744         module rewrite.
8746         acl-permissions: Fix build on Solaris and Cygwin
8747         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
8748         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
8749         ace_entries variables have moved into struct permission_context but
8750         they were still accessed as local variables here.
8752 2015-05-29  Pádraig Brady  <P@draigBrady.com>
8754         linkat: avoid OS X 10.10 trailing slash with symlink bug
8755         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
8756         causes the symlink to be dereferenced, and if it points
8757         to a non existent file, that file will be created as
8758         a hard link to "path1".
8759         This fixes a test failure in test-linkat.c.
8760         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
8761         this case.  The existing workaround in linkat.c for
8762         trailing slash issues, suffices for this case.
8763         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
8764         the list of platforms with trailing slash issues.
8766 2015-05-28  Pádraig Brady  <P@draigBrady.com>
8768         unlinkat: handle ignoring of ".." on Darwin 14
8769         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
8770         on Mac OS X 10.10, where it ignores paths with a trailing "..",
8771         so handle in the same manner.
8772         * m4/unlinkat.m4: Comment on this Darwin issue.
8773         * doc/posix-functions/unlink.texi: Update the latest version
8774         where the issue was seen.
8775         * doc/posix-functions/unlinkat.texi: Mention this issue.
8776         Fixes a test failure in test-unlinkat.c.
8778 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8780         qacl: split into qcopy-acl and qset-acl
8781         Emacs needs the former, but not the latter.
8782         * modules/acl-permissions: New file, containing most of the old qacl.
8783         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
8784         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
8785         * modules/qcopy-acl, modules/qset-acl: New files.
8786         * MODULES.html.sh (File system functions):
8787         Mention the new modules, and mention qacl while we're at it.
8789 2015-05-27  Glenn Morris  <rgm@gnu.org>
8791         gitlog-to-changelog: new option --ignore-line
8792         (This patch is imported from the GNU Emacs master.)
8793         This option ignores individual commit lines matching a pattern.
8794         * build-aux/gitlog-to-changelog: Add --ignore-line option.
8796 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
8798         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
8799         Implement get_permissions and set_permissions primitives for getting all
8800         the permissions of a file, storing them, and later setting them. (In the
8801         minimal case, the permissions consist only of a file mode.) Reimplement
8802         qset_acl and qcopy_acl based on these new primitives: this avoids code
8803         duplication and makes error handling more consistent.
8804         The Solaris and Cygwin code still uses duplicate code paths for setting
8805         a file mode while making sure that no acls exist and setting an explicit
8806         acl; this is no worse than before, but could be cleaned up.  The AIX
8807         code still doesn't read ACLs, it only makes sure that acls don't get in
8808         the way when setting a file mode.
8809         * lib/acl-internal.h (struct permission_context): New data structure.
8810         (get_permissions, set_permissions, free_permission_context): Declare.
8811         * lib/acl-internal.c (free_permission_context): New helper function.
8812         * lib/get-permissions.c (get_permissions): New helper function split off
8813         from qcopy_acl.
8814         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
8815         AIX, set a file's permissions based only on a file mode.
8816         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
8817         other platforms construct a temporary acl from the file mode and set
8818         that acl in the same way as setting an acl read from the source file.
8819         This should help avoid code duplication and inconsistent / buggy
8820         behavior.
8821         (set_acls): New helper function Split off from qcopy_acl.
8822         (chmod_or_fchmod): Moved here from qset-acl.c.
8823         (set_permissions): New helper function.
8824         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
8825         set_permissions.
8826         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
8827         * modules/qacl: Add get-permissions.c and set-permissions.c.
8829         file-has-acl: Split feature tests again (Bug#20667)
8830         * lib/file-has-acl.c: Instead of testing for
8831         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
8832         define them when needed.
8833         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
8834         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
8836 2015-05-27  Pádraig Brady  <P@draigBrady.com>
8838         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
8839         This avoids a conflict with "FORTIFY_SOURCE" variants
8840         of the string functions when they're replaced on NetBSD-6.0.1
8841         and Darwin-14.3.0 at least.
8842         * lib/string.in.h: Avoid including our "lib/string.h" while
8843         including the system <string.h>.
8845 2015-05-26  Eric Blake  <eblake@redhat.com>
8847         stdio: limit __gnu_printf__ witness to gcc 4.4+
8848         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
8849         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
8851         error: use correct printf attributes on mingw
8852         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
8854         inttypes: force correct mingw PRIdMAX even without <stdio.h>
8855         * modules/inttypes (Depends-on): Require extensions, so that mingw
8856         always uses GNU style inttypes.
8857         * lib/inttypes.in.h: On mingw, include <stdio.h>.
8859         stdio: fix probe on mingw under gcc 5.1
8860         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
8861         around new gcc preprocessor rules.
8863 2015-05-07  Glenn Morris  <rgm@gnu.org>
8865         gitlog-to-changelog: parse "Tiny-change"
8866         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
8867         "Copyright-paperwork-exempt".  (Bug#20324)
8869 2015-05-06  Pádraig Brady  <P@draigBrady.com>
8871         doc: document glibc posix_fallocate() issues
8872         * doc/posix-functions/posix_fallocate.texi: Mention the
8873         glibc efficiency problems and issues with NFS.
8875 2015-05-05  Karl Berry  <karl@freefriends.org>
8877         * build-aux/gendocs.sh (usage): document new css default
8878         for HTML (--htmlarg).
8880 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8882         extern-inline: no need for workaround in GCC 5.1
8883         * doc/extern-inline.texi (extern inline):
8884         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
8885         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
8886         around these bugs in GCC 5.1 and later.  Maybe in a decade or
8887         two we can remove these workarounds.
8889 2015-04-28  Pádraig Brady  <P@draigBrady.com>
8891         eealloc, pagealign_alloc, xalloc: avoid clang warnings
8892         Avoid [-Wunknown-attributes] warnings like:
8893         warning: unknown attribute '__alloc_size__' ignored
8894         * lib/xalloc.h: Don't use the __alloc_size__  attribute
8895         with clang, as support has been fully removed as of clang 3.5:
8896         https://github.com/llvm-mirror/clang/commit/c047507a
8897         * lib/eealloc.h: Likewise.
8898         * lib/pagealign_alloc.h: Likewise.
8900 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8902         tests: pacify GCC 5.1's stricter printf checking
8903         * tests/test-dirname.c (main):
8904         * tests/test-getaddrinfo.c (simple):
8905         * tests/test-getlogin.c (main):
8906         * tests/test-getndelim2.c (main):
8907         * tests/test-inttostr.c (CK):
8908         * tests/test-md5.c (main):
8909         * tests/test-read-file.c (main):
8910         * tests/test-sha1.c (main):
8911         Fix mismatches between printf format and value signedness.
8912         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
8913         Remove, as CAST_VAL always returned a value of type uintmax_t.
8915         fts: port to GCC 5.1 with --enable-gcc-warnings
8916         Without this fix, GCC 5.1 (correctly) warns about a subscript
8917         error on the fts_name component of FTSENT.  It's actually a
8918         flexible member, so define it that way on C99 or later hosts.
8919         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
8920         structure that now has a flexible array member.
8921         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
8922         (FTSENT): fts_name is now flexible on C99-or-later platforms.
8923         * modules/fts (Depends-on): Add flexmember.
8925 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8927         file-has-acl: port to CentOS 6
8928         Problem reported by Tom G. Christensen in:
8929         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
8930         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
8931         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
8932         HAVE_GETXATTR.
8933         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
8934         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
8935         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
8936         file-has-acl.c actually needs.
8938 2015-04-26  Pádraig Brady  <P@draigBrady.com>
8940         file-has-acl: always return false when ACLs aren't supported
8941         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
8942         change the GNU/Linux getxattr path, to transform "not supported"
8943         errors to a false return rather than an error.  This is handled
8944         within file_has_acl() due to the platform specific tests to
8945         determine if ACLs are not supported.
8947 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8949         gettext: propagate po/Makefile.in.in too
8950         * build-aux/po/Makefile.in.in: Copy from latest gettext.
8951         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
8952         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
8953         between Makefile.in.in and the gettext-runtime m4 files.
8955 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8957         file-has-acl: new module, split from acl
8958         And add a new module file-has-acl-tests to match.
8959         I ran into a problem with the recent changes to the acl module,
8960         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
8961         When using the fixed version with Emacs, I discovered that
8962         file-has-acl wasn't separated out well enough for Emacs (e.g., it
8963         had multiple libraries, but needed only one), so I fixed that too.
8964         * NEWS: Document this incompatible change.
8965         * modules/file-has-acl, modules/file-has-acl-tests: New files.
8966         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
8967         Initialize gl_need_lib_has_acl.
8968         (gl_FUNC_ACL): Require it.
8969         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
8970         Move the file-has-acl.c-relevant stuff to ...
8971         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
8972         use_xattrs = 0' typo, and omit some needless work.  Set
8973         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
8974         when gl_FUNC_ACL is called.
8975         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
8976         (Link): Remove $(LIB_HAS_ACL).
8977         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
8978         (check_PROGRAMS): Move stuff relevant to file-has-acl to
8979         modules/file-has-acl-tests.
8980         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
8982         manywarnings: add GCC 5.1 warnings
8983         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
8984         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
8985         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
8986         -Wsuggest-override, -Wuse-without-only.  Change
8987         -Wnormalized=... operands to match 5.1.
8988         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
8989         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
8990         -Wdiscarded-qualifiers, -Wformat-signedness,
8991         -Wincompatible-pointer-types, -Wint-conversion,
8992         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
8993         -Wshift-count-negative, -Wshift-count-overflow,
8994         -Wsizeof-array-argument, -Wsuggest-final-methods,
8995         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
8996         and add -Warray-bounds=2 as a special case.
8998 2015-04-21  Simon Josefsson  <simon@josefsson.org>
9000         doc: update FDL template to match FDL examples.
9001         * doc/alloca-opt.texi:
9002         * doc/alloca.texi:
9003         * doc/c-ctype.texi:
9004         * doc/c-strcase.texi:
9005         * doc/c-strcaseeq.texi:
9006         * doc/c-strcasestr.texi:
9007         * doc/c-strstr.texi:
9008         * doc/c-strtod.texi:
9009         * doc/c-strtold.texi:
9010         * doc/ctime.texi:
9011         * doc/error.texi:
9012         * doc/gcd.texi:
9013         * doc/gnulib-tool.texi:
9014         * doc/inet_ntoa.texi:
9015         * doc/intprops.texi:
9016         * doc/lib-symbol-visibility.texi:
9017         * doc/maintain.texi:
9018         * doc/parse-datetime.texi:
9019         * doc/quote.texi:
9020         * doc/regexprops-generic.texi:
9021         * doc/standards.texi: Remove spurious 'with' in FDL license
9022         template.
9024 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
9026         lstat: fix cross-compilation 'ln -s' problem
9027         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9028         Have the test program call 'symlink' rather than a separate
9029         script run 'ln -s'; this is more likely to work in
9030         cross-compilation environments.  Reported by Pavel Fedin in:
9031         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
9033 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
9035         gendocs.sh: default to a common CSS style sheet for HTML output
9036         * build-aux/gendocs.sh (htmlarg): Change default value.
9038 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
9040         gnulib-tool: output bold attribute more portably
9041         * gnulib-tool (func_show_module_list): Change hexadecimal
9042         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
9043         encoded numbers as arguments to `printf' is not portable,
9044         and is not claimed by POSIX.  This is the case with FreeBSD.
9046 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
9048         qacl: Simplify HP-UX acl_nontrivial check
9049         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
9050         acl_nontrivial. Check if the acl has at most three entries instead (it must
9051         have exactly three entries according to the HP-UX documentation). Ignore
9052         uids and gids as long as an entry is either for a user (i.e., the owner),
9053         a group (i.e., the owning group), or others.
9054         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
9055         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
9057 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
9059         acl: On Linux, check for acls without libacl
9060         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
9061         library function to check for the presence of acls, avoiding a library.
9062         * lib/file-has-acl.c: Include xattr headers if we have them.
9063         (file_has_acl): On Linux, use getxattr().
9064         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
9065         file_has_acl(). Check for xattr headers and getxattr().
9067 2015-04-14  Ángel González  <keisial@gmail.com>
9069         tempname: avoid unused parameter warnings (trivial)
9070         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
9071         (try_nocreate): Likewise.
9073 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
9075         fseeko: fix build failure on NetBSD >= 6 (trivial)
9076         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
9077         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
9079 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9081         gitlog-to-changelog: port to MS-Windows
9082         * build-aux/gitlog-to-changelog (git_dir_option):
9083         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
9084         MS-Windows Perl.  Reported by Eli Zaretskii in:
9085         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
9087 2015-04-07  Karl Berry  <karl@gnu.org>
9089         gendocs: new option --tex for passing args to texi2dvi.
9090         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
9091         (TEXI2DVI): cut to just command name.
9092         (usage): mention new option, and update copyright.
9093         <generate_tex>: use it.
9095 2015-04-07  Karl Berry  <karl@gnu.org>
9097         * config/srclistvars.sh (GETTEXT): new definition.
9098         * config/srclist.txt: use it for gettext .m4 files.
9099         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
9100         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
9101         and continuing into April.
9103 2015-04-07  Daiki Ueno  <ueno@gnu.org>
9105         uniname/uniname-tests: fix failure due to alias
9106         Reported by Jack Howarth in:
9107         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
9108         * tests/uniname/test-uninames.c (name_has_alias): New function.
9109         (test_inverse_lookup): Exclude character name with valid alias,
9110         from randomly generated character names.
9111         (main): Fill unicode_aliases before calling test functions.
9113 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
9115         hash: remove deprecated hash_insert0 function
9116         * lib/hash.h (hash_insert0): Remove deprecated function.
9117         * lib/hash.c (hash_insert0): Likewise.
9119 2015-04-02  Pádraig Brady  <P@draigBrady.com>
9121         mountlist: remove dependency on libmount
9122         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
9123         directly, rather than depending on libmount, which has many
9124         dependencies due to its dependence on libselinux, as detailed at:
9125         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
9126         Note we restrict this to __linux__ as that's probably where this
9127         interface will remain.  If ever porting, it would be best
9128         to first pull the makedev() wrapper from coreutils to a gnulib module.
9129         Note also we don't add a getline dependency to the mountlist module,
9130         as all Linux versions are sufficient.
9132 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
9134         stddef: port to pre-C11 GCC on x86
9135         On this platform, max_align_t should have an alignment of 8 even
9136         though the storage alignments of double, long, etc. max out at 4.
9137         Inspired by a comment of Andreas Schwab's here:
9138         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
9139         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
9140         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
9141         * tests/test-stddef.c: Test __alignof__ too, if available.
9143 2015-03-24  Pádraig Brady  <P@draigBrady.com>
9145         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
9146         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
9148 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
9150         yesno: make EOL optional in ENABLE_NLS case also (trival)
9151         * lib/yesno.c (yesno): Check for EOL before replacing.
9152         * tests/test-yesno.sh: Add a test case (test along with gettext).
9154 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9156         fdopendir-tests: test it does not close its arg
9157         * tests/test-fdopendir.c (main): Test that fdopendir does not
9158         close its argument.  From a suggestion by David Grayson in:
9159         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
9161 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9163         gitlog-to-changelog: trim trailing white space
9164         * build-aux/gitlog-to-changelog (main):
9165         Trim trailing white space from commit message lines.
9166         This is helpful for processing the GNU Emacs repository,
9167         which dates back to 1985 and contains a lot of such lines.
9169         gitlog-to-changelog: new option --ignore-matching
9170         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
9171         Support new option --ignore-matching=PAT, which ignores all
9172         commit messages whose first line matches PAT.
9174 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9176         fdopendir: port better to MinGW
9177         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
9178         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
9179         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
9180         * modules/fdopendir (Depends-on): Add dirfd.
9182 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
9184         fdopendir: fix typo in comment
9185         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
9187 2015-03-09  Eric Blake  <eblake@redhat.com>
9189         error: document all entry points provided
9190         * doc/glibc-functions/error_print_progname.texi
9191         (error_print_progname): Mention the error module.
9192         * doc/glibc-functions/error_at_line.texi (error_at_line):
9193         Likewise.
9194         * doc/glibc-functions/error_message_count.texi
9195         (error_message_count): Likewise.
9196         * doc/glibc-functions/error_one_per_line.texi
9197         (error_one_per_line): Likewise.
9199 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
9201         vasnprintf: pacify clang 3.5.0
9202         Problem reported by Werner Lemberg in:
9203         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
9204         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
9205         The casts aren't needed, since the characters in question are ASCII.
9207 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9209         glob, etc.: port to MSVC v18 on MS-Windows 8.1
9210         * lib/dirent--.h (GNULIB_defined_opendir):
9211         * lib/dirent.in.h (GNULIB_defined_opendir)
9212         (GNULIB_defined_closedir):
9213         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
9214         #undef only if Gnulib defined it.
9216         poll: port to MSVC v18 on MS-Windows 8.1
9217         Problem reported by Gisle Vanem in:
9218         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
9219         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
9220         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
9221         Add sys_socket.
9223 2015-02-24  Pádraig Brady  <P@draigBrady.com>
9225         tests: support stderr verification with returns_()
9226         * tests/init.sh (returns_): Disable tracing for this wrapper
9227         function, so that stderr of the wrapped command is unchanged,
9228         allowing for verification of the contents.
9230 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
9232         passfd: avoid valgrind uninitalised data warning
9233         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
9234         to include just the fd we've initialized, rather than including
9235         the extra space used for alignment.
9237 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9239         uniwbrk/u32-wordbreaks-tests: fix copyright
9240         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
9242         dup2: doc and test for Android bug
9243         Reported by Kevin Cernekee in:
9244         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
9245         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9246         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
9248 2015-02-23  Kevin Cernekee  <cernekee@google.com>
9250         Replace dup2() on Android
9251         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
9252         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
9253         fails.  Using rpl_dup2() fixes this because it has an explicit test
9254         for this condition.
9256 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9258         Android doesn't define RLIM_SAVED_*
9259         Portability problem reported by Kevin Cernekee in:
9260         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
9261         * doc/posix-headers/sys_resource.texi (sys/resource.h):
9262         Mention the portability problem.
9263         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
9264         Define if not defined.
9265         * m4/dup2.m4 (gl_FUNC_DUP2):
9266         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9267         Likewise.
9269 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9271         vasnprintf-posix-tests: use consistent test
9272         * tests/test-vasnprintf-posix.c (test_function):
9273         Use "<" in assert instead of "<=", for consistency with other tests.
9275 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9277         printf, isinf, etc.: noncanonical != NaN
9278         Do not require that isinf, printf, etc. treat noncanonical
9279         values as NaNs.  Instead, require only that they do not crash.
9280         Problem reported by Joseph Myers in:
9281         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
9282         * doc/posix-functions/dprintf.texi (dprintf):
9283         * doc/posix-functions/fprintf.texi (fprintf):
9284         * doc/posix-functions/isfinite.texi (isfinite):
9285         * doc/posix-functions/isinf.texi (isinf):
9286         * doc/posix-functions/isnan.texi (isnan):
9287         * doc/posix-functions/printf.texi (printf):
9288         * doc/posix-functions/snprintf.texi (snprintf):
9289         * doc/posix-functions/sprintf.texi (sprintf):
9290         * doc/posix-functions/vdprintf.texi (vdprintf):
9291         * doc/posix-functions/vfprintf.texi (vfprintf):
9292         * doc/posix-functions/vprintf.texi (vprintf):
9293         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9294         * doc/posix-functions/vsprintf.texi (vsprintf):
9295         Document this.
9296         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
9297         * m4/isinf.m4 (gl_ISINFL_WORKS):
9298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
9299         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
9300         * tests/test-isfinite.c (test_isfinitel):
9301         * tests/test-isinf.c (test_isinfl):
9302         * tests/test-isnan.c (test_long_double):
9303         * tests/test-isnanl.h (main):
9304         * tests/test-snprintf-posix.h (test_function):
9305         * tests/test-sprintf-posix.h (test_function):
9306         * tests/test-vasnprintf-posix.c (test_function):
9307         * tests/test-vasprintf-posix.c (test_function):
9308 o       Test only that noncanonical values do not cause crashes, not that
9309         they are treated as NaNs.  In some cases this means a larger
9310         output buffer is needed.
9312 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
9314         fts: remove redundant close() (trivial)
9315         * lib/fts.c (fts_read): Remove redundant call to close().
9316         Spotted by coverity.
9318 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9320         getdtablesize: port better for Android
9321         Problem reported by Kevin Cernekee in:
9322         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
9323         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
9324         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
9325         Instead, just use getrlimit, taking care to avoid Cygwin bug.
9327         poll: fixes for large fds
9328         * lib/poll.c (poll): Don't check directly for NFD too large.
9329         Don't rely on undefined behavior in FD_SET when an arg exceeds
9330         FD_SETSIZE.  Always set revents afterwards, even if to zero.
9331         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
9332         as that makes the test a bit stricter.
9334 2015-02-19  Kevin Cernekee  <cernekee@google.com>
9336         fcntl: Fix cross compiling
9337         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
9338         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
9340 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9342         dup2, fcntl: cross-compile better for Android
9343         Problem reported by Kevin Cernekee in:
9344         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
9345         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
9346         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
9347         there's little need to cross-compile for older kernels nowadays.
9348         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
9349         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
9351 2015-02-18  Pádraig Brady  <P@draigBrady.com>
9353         getopt: don't crash on memory exhaustion
9354         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
9355         memory exhaustion.  In the _LIBC case we use alloca() as is
9356         already done in glibc, so we don't need to consider the separate
9357         error path in that awkward case.  Also fix a memory leak when
9358         ambiguous options are present.
9359         Reported by Tobias Stoeckmann
9361 2015-02-17  Mike Miller  <mtmiller@ieee.org>
9363         tempname: allow compilation with C++ (trivial)
9364         * lib/tempname.h [C++]: Specify extern "C" linkage.
9365         * lib/tempname.h (try_tempname):
9366         * lib/tempname.c (__try_tempname, __gen_tempname):
9367         Rename 'try' to 'tryfunc'.
9369 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9371         dup2, fcntl: port to AIX
9372         * m4/dup2.m4 (gl_FUNC_DUP2):
9373         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9374         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
9375         The former works on AIX 7.1 but the latter does not.
9376         Also, this may work better with Android; see:
9377         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
9379 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9381         getdtablesize, dup2, fcntl: port to Android
9382         Problem reported by Kevin Cernekee in:
9383         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
9384         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
9385         Mention that getdtablesize doesn't work on Android.
9386         * lib/getdtablesize.c: Use getrlimit substitute only if
9387         getdtablesize is declared.  This should suffice for Cygwin
9388         while not breaking Android.
9389         * m4/dup2.m4 (gl_FUNC_DUP2):
9390         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9391         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
9392         standardized but the latter is not, and sysconf works on Android.
9393         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
9394         Also check that getdtablesize is declared.
9395         This removes the need for a special case for Android.
9397 2015-02-16  Kevin Cernekee  <cernekee@google.com>
9399         localename: Implement gl_locale_name_thread_unsafe for Android
9400         * lib/localename.c: Android API level >= 21 supports two hardcoded
9401         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
9402         the internal __locale_t struct.
9404 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
9406         fts: avoid crash when a cycle is added while traversing
9407         This could be triggered by auto-mounting a recursive bind mount.
9408         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
9409         * lib/fts.c (fts_read): Avoid removing the original hash table item
9410         when leaving a directory that caused a cycle, and preserve the FTS_DC
9411         flag.
9413 2015-02-16  Daiki Ueno  <ueno@gnu.org>
9415         uniname/uniname: support character alias
9416         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
9417         Generate one-way mapping from aliases to codepoints in the
9418         generated tables.  Special case variation selectors to reduce
9419         table size.
9420         * lib/uniname/uniname.c (unicode_character_name): Special case
9421         variation selectors.
9422         (unicode_name_character): Special case variation selectors and
9423         their aliases.
9424         * lib/uniname/uninames.h: Regenerate.
9425         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
9426         * modules/uniname/uniname-tests (Files): Add
9427         tests/uniname/NameAliases.txt.
9428         * tests/uniname/test-uninames.c: Mark as static.
9429         (ALIASLEN): Define.
9430         (struct unicode_alias): New struct.
9431         (unicode_aliases): New variable.
9432         (fill_aliases): New function.
9433         (test_alias_lookup): New test function.
9434         (main): Run the 'test_alias_lookup' test if the second argument is
9435         given.
9436         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
9437         second argument.
9439 2015-02-11  Kevin Cernekee  <cernekee@google.com>
9441         Fix FILE struct compatibility with Android API level >= 21
9442         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
9443         __sferror.  Recent versions of Bionic's stdio.h no longer define
9444         __sferror.
9445         * lib/fbufmode.c: Likewise.
9446         * lib/fflush.c: Likewise.
9447         * lib/fpurge.c: Likewise.
9448         * lib/freadable.c: Likewise.
9449         * lib/freadahead.c: Likewise.
9450         * lib/freading.c: Likewise.
9451         * lib/freadptr.c: Likewise.
9452         * lib/freadseek.c: Likewise.
9453         * lib/fseeko.c: Likewise.
9454         * lib/fseterr.c: Likewise.
9455         * lib/fwritable.c: Likewise.
9457         Assume unbroken ungetc() on Android
9458         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
9459         test case passed when running on an Android host, and the code
9460         hasn't really changed since 2009.
9462         getdtablesize: Fix Android build
9463         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
9464         versions have this symbol in the .so library (at least 32-bit
9465         platforms) but are missing the declaration in the header file,
9466         causing the m4 logic to guess incorrectly.
9468         localename: Fix Android build
9469         * modules/localename (Depends-on): Add langinfo.
9471         getugroups: Fix Android build
9472         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
9473         functions.
9475         euidaccess: Fix Android build
9476         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
9477         AT_EACCESS gets declared.
9479         linkat_nofollow: Add fallback case for cross compiling
9480         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
9482         net_if: Handle content-free <net/if.h> system headers
9483         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
9484         struct if_nameindex.  If not, enable the replacement header.
9486         signal_h: Fix Android build
9487         * lib/signal.in.h: Add Android to the list of platforms that declare
9488         pthread_sigmask() in <pthread.h> instead of <signal.h>.
9490         duplocale: Fix Android build of duplocale-tests
9491         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
9492         is included by test-duplocale.c (but not by duplocale.c).
9493         * modules/duplocale-tests (configure.ac): Check for monetary.h.
9494         * tests/test-duplocale.c: Skip test if monetary.h is absent.
9495         * doc/posix-headers/monetary.texi: Add Android to the list of
9496         platforms missing monetary.h.
9498 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9500         tests: avoid recent -Werror=unused-variable regression in test-locale
9501         * tests/test-locale.c (main): Reference the variable to avoid the
9502         "unused variable" warning.
9504 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9506         maint: various whitespace cleanups in tempname
9507         * lib/tempname.c: Normalize spacing and line length.
9508         * lib/tempname.h: Likewise.
9509         * modules/tempname: Likewise.
9511 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9513         tests: provide returns_() to simplify exit status checking
9514         * tests/init.sh (returns_): A new function for use in tests,
9515         to allow for easier checking of return values, where you expect
9516         a command to exit with failure status.  By checking for a particular
9517         exit code, you don't hide any crashes for example.
9519 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9521         mountlist: only use libmount when specified
9522         There are currently many shared libs dependencies introduced by
9523         libmount with associated runtime and virt mem overhead.
9524         Therefore don't enable by default.
9525         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
9527 2015-02-08  Daiki Ueno  <ueno@gnu.org>
9529         uniname/unimame-tests: don't link with -lunistring
9530         * modules/uniname/uniname-tests (Makefile.am): Don't link against
9531         $(LIBUNISTRING).  Document the rationale why we need to
9532         conditionalize the test.
9534 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9536         fstrcmp: don't assume strlen < INT_MAX
9537         * lib/fstrcmp.c: Include stddef.h and stdint.h.
9538         (uintptr_t): Remove, as we're now assuming stdint.
9539         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
9540         Prefer ptrdiff_t to int when the value could exceed INT_MAX
9541         if the input string is long.
9542         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
9543         uintptr_t to size_t when the underlying value is a pointer casted
9544         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
9545         * modules/fstrcmp (Depends-on): Add stdint.
9547         diffseq: prefer ptrdiff_t to ssize_t
9548         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
9549         ptrdiff_t is the natural type for signed indexes.
9550         On a few older platforms, ssize_t is narrower than size_t.
9552         xalloc: fix typo that suppressed warnings
9553         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
9554         This typo, introduced a couple of years ago, mistakenly suppressed
9555         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
9556         -Wmissing-declarations warnings.
9558         full-read: fix license notice typo
9559         * lib/full-read.h: Remove a stray line in the license notice.
9560         Reported by Sam Ellis in: http://bugs.gnu.org/19808
9562         crypto/gc: fix a -Wswitch warning
9563         Reported by Bruce Korb in:
9564         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
9565         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
9567 2015-02-03  Pádraig Brady  <P@draigBrady.com>
9569         gnulib-tool: fix handling of patch(1) diagnostics
9570         * gnulib-tool: Send diagnostics from patch(1) to stderr,
9571         as otherwise gnulib-tool will reparse that output and attempt
9572         to lookup modules.
9574 2015-02-03  Pádraig Brady  <P@draigBrady.com>
9576         bootstrap: exit immediately upon gnulib-tool failure
9577         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
9578         This was noticed when gnulib-tool exited early due to failure
9579         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
9580         but various confusing errors were then given as the build proceeded.
9582 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
9584         symlinkat: include all required header files
9585         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
9586         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
9587         Reported at https://savannah.gnu.org/bugs/index.php?44151
9588         and by Jack Howarth.
9590 2015-01-29  Pádraig Brady  <P@draigBrady.com>
9592         localename: support Solaris 12 and illumos
9593         * lib/localename.c (gl_locale_name_thread_unsafe): call
9594         getlocalename_l() on newer __sun platforms.
9595         Reported by Alexander Pyhalov.
9596         Fix suggested by Rich Burridge.
9598 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
9600         locale: fix tests on illumos (trivial)
9601         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
9602         so move from global scope to main().
9604 2015-01-24  Daiki Ueno  <ueno@gnu.org>
9606         unictype: avoid undefined left-shift behavior
9607         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
9608         gcc's -fsanitize=shift and running its tests triggered:
9609           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
9610             places cannot be represented in type 'int'
9611         Cast LHS to 'unsigned int' after integer promotion.
9612         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
9613         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
9615 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9617         libunistring: bump version of unitypes dependants
9618         Due to the header file search order, all the headers which depend
9619         on unitypes.h need to be generated, when the preinstalled
9620         libunistring is older.
9621         * modules/unicase/base (configure.ac): Bump minimum version to
9622         0.9.4.
9623         * modules/uniconv/base (configure.ac): Likewise.
9624         * modules/unilbrk/base (configure.ac): Likewise.
9625         * modules/uninorm/base (configure.ac): Likewise.
9626         * modules/unistdio/base (configure.ac): Likewise.
9627         * modules/unistr/base (configure.ac): Likewise.
9628         * modules/uniwbrk/base (configure.ac): Likewise.
9629         * modules/uniwidth/base (configure.ac): Likewise.
9631 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9633         unictype/category-none: fix link with libunistring
9634         Since _UC_CATEGORY_NONE is not a public symbol, it will be
9635         prefixed with "libstring_" when compiled as part of libunistring.
9636         To avoid undefined symbol at link time, increase the minimum
9637         version when the dependant modules are updated.
9638         * modules/unictype/category-none (configure.ac): Bump minimum
9639         version to 0.9.5.
9641 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9643         unitypes: fix build with installed libunistring
9644         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
9645         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
9646         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
9648 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9650         time: port to MinGW32 3.21
9651         Problem reported by Eli Zaretskii in:
9652         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
9653         * lib/time.in.h:
9654         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
9655         * modules/time (Depends-on):
9656         Fall back on unistd.h if the other include files don't define
9657         struct timespec.
9659         update-copyright: apply to self
9660         * build-aux/update-copyright: Fix copyright date.  How ironic!
9662 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9664         libunistring: update to Unicode 7.0.0
9665         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
9666         Manichaean names.
9667         * lib/unictype/joininggroup_name.h: Likewise.
9668         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
9669         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
9670         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
9671         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
9672         (fill_arabicshaping, joining_group_as_c_identifier): Support those
9673         enum values.
9674         (is_property_alphabetic): Accept newly added characters to
9675         cuneiform numeric signs.
9676         (is_property_default_ignorable_code_point): Reject U+0605.
9677         (FIELDLEN): Increase from 120 to 160.
9678         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
9679         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
9680         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
9681         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
9682         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
9683         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
9684         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
9685         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
9686         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
9687         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
9688         U+1E8D0..U+1E8D6.
9689         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
9690         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9691         lib/uniwidth/width.c.
9692         * all generated files under lib/uni* and tests/uni*: Regenerate.
9694 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9696         libunistring: update to Unicode 6.3.0
9697         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
9698         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
9699         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
9700         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
9701         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
9702         Update WB5, WB9, WB10, WB13a, and WB13b.
9703         * tests/uniwbrk/test-uc-wordbreaks.c
9704         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
9705         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
9706         (UC_BIDI_PDI): New enumeration values.
9707         (bidi_category_byname): Support those enum values.
9708         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
9709         dedicated property assigned.
9710         (is_property_case_ignorable): Check 0x0027.
9711         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
9712         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
9713         (output_wbp): Support those enum values.
9714         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
9715         (UC_BIDI_PDI): New enumeration values.
9716         * lib/unictype/bidi_byname.gperf: Add those property names.
9717         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
9718         U+180E, U+1A1B, and U+2066..U+2069.
9719         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9720         lib/uniwidth/width.c.
9721         * all generated files under lib/uni* and tests/uni*: Regenerate.
9723 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9725         libunistring: update to Unicode 6.2.0
9726         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
9727         (unilbrk_table): Adjust table size.
9728         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
9729         for LBP_RI.
9730         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
9731         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
9732         Normalize table index skipping ignored properties.
9733         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
9734         WBP_EXTEND and WBP_FORMAT, which are now computed without using
9735         the table.
9736         * lib/uniwbrk/wbrktable.h: Adjust table size.
9737         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
9738         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
9739         Support rule GB8a.
9740         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
9741         * tests/unigbrk/test-uc-is-grapheme-break.c
9742         (graphemebreakproperty_to_string): Support GBP_RI.
9743         * tests/uniwbrk/test-uc-wordbreaks.c
9744         (wordbreakproperty_to_string): Support WBP_RI.
9745         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
9746         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
9747         (output_lbp): Support LBP_RI.  Adjust some characters changed from
9748         LBP_AL to LBP_ID.
9749         (output_lbp): Support LBP_RI.
9750         (WBP_RI): New enumeration value.
9751         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
9752         (output_wbp): Support WBP_RI.
9753         (GBP_RI): New enumeration value.
9754         (output_gbp_test, fill_org_gbp): Support GBP_RI.
9755         * all generated files under lib/uni* and tests/uni*: Regenerate.
9757 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9759         libunistring: update to Unicode 6.1.0
9760         * lib/gen-uni-tables.c (output_joining_group): Switch to
9761         3-level table to accommodate joining groups defined with higher
9762         codepoint value.  Since there are only 88 groups defined in
9763         Unicode 7.0.0, use 7-bit packed format for level3 entries.
9764         (get_lbp): Update for Unicode 6.1.0.
9765         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
9766         3-level table.
9767         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
9768         joining group name.
9769         * lib/unictype/joininggroup_name.h: Likewise.
9770         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
9771         (unilbrk_table): Adjust table size.
9772         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
9773         for LBP_HL.
9774         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
9775         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
9776         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
9777         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
9778         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
9779         U+302E..U+302F.
9780         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9781         lib/uniwidth/width.c.
9782         * all generated files under lib/uni* and tests/uni*: Regenerate.
9783         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
9785 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9787         uniwbrk/u32-wordbreaks-tests: add conformance test
9788         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
9789         tests/uniwbrk/test-uc-wordbreaks.c,
9790         tests/uniwbrk/test-uc-wordbreaks.sh, and
9791         tests/uniwbrk/WordBreakTest.txt.
9792         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
9793         test-uc-wordbreaks to $(check_PROGRAMS), and define
9794         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
9795         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
9796         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
9798 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9800         uniwbrk: ignore Extended/Format characters at BOL not BOS
9801         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
9802         characters if the previous character property is one of
9803         WBP_NEWLINE, WBP_CR, and WBP_LF.
9805 2015-01-11  Jim Meyering  <meyering@fb.com>
9807         test-strstr.c: avoid a trivial leak
9808         * tests/test-strstr.c (main): Free haystack.
9810         update-copyright: recognize groff's \(co marker
9811         * build-aux/update-copyright (circle_c_re): Also accept
9812         uses of \(co, as found in gzip.1.
9814 2015-01-08  Pádraig Brady  <P@draigBrady.com>
9816         maint.mk: fix compatibility with OS X nm
9817         * top/maint.mk (_gl_tight_scope): Use the -g option to
9818         show exported items rather than the -e option which is
9819         ignored on all platforms except OS X where it gives an error.
9820         Reported by Assaf Gordon.
9822 2015-01-07  KO Myung-Hun  <komh@chollian.net>
9824         localcharset: improve charset detection on OS/2
9825         Use system codepage when appropriate.  Map OS/2 codepages to
9826         GNU canonical charset names if possible.
9827         * lib/config.charset: Don't output aliases if "$os" is os2*.
9828         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
9829         result for OS/2.
9830         (locale_charset) [OS2]: Use system codepage if codeset is omitted
9831         from the locale name which is neither "C" nor "POSIX".
9833 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9835         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
9836         This reverts the last patch but one, as it shouldn't be needed now
9837         that the typo is fixed.
9838         * lib/count-leading-zeros.h (count_leading_zeros_ll):
9839         * lib/count-trailing-zeros.h:
9840         * lib/count-one-bits.h:
9841         Go back to using 64-bit intrinsics.
9843         count-leading-zeros: fix pragma typos
9844         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
9845         Fix typos in declaration of intrinsics when _MSC_VER.
9847 2015-01-06  Pádraig Brady  <P@draigBrady.com>
9849         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
9850         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
9851         intrinsics in this case.
9852         * lib/count-trailing-zeros.h: Likewise.
9853         * lib/count-one-bits.h: Likewise.
9855 2015-01-06  Daiki Ueno  <ueno@gnu.org>
9857         uniname/uniname: update to Unicode 7.0.0
9858         To accommodate new characters added since Unicode 5.1.0, this
9859         changes the internal representation of codepoint ranges.
9860         Previously, we grouped codepoint ranges by manually assigned 4-bit
9861         tag, which only allowed 16 groups.  This removes the limitation by
9862         switching to binary search on a table.  For the detail rationale
9863         and the benchmark results, see:
9864         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
9865         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
9866         to INDEX, as it no longer represents a codepoint.
9867         (range): New struct.
9868         (main): Switch to intervals list from a bit-pattern based
9869         classification.
9870         * lib/uniname/uninames.h: Regenerate.
9871         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
9872         * modules/uniname/base (configure.ac): Bump minimum version to
9873         0.9.5.
9874         * modules/uniname/uniname (configure.ac): Bump minimum version to
9875         0.9.5.
9877 2015-01-05  Eric Blake  <eblake@redhat.com>
9879         doc: update INSTALL from autoconf
9880         * doc/install.texi: Resync from autoconf.
9881         * doc/INSTALL: Reflect recent autoconf update.
9882         * doc/INSTALL.ISO: Likewise.
9883         * doc/INSTALL.UTF-8: Likewise.
9885         stdio: fix use of PRIdMAX on modern mingw
9886         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
9887         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
9888         to work with modern mingw.
9890 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
9892         pthread: detect git mingw builds with only partial pollution
9893         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
9894         pollution, as seen temporarily in Fedora 21.
9896 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9898         lib-symbol-versions: cache script check
9899         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
9900         Cache the check for linker version scripts.
9901         From a suggestion by Christophe Curis in:
9902         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
9904 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
9906         maint: fix grammar nits in propername (trivial change)
9907         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
9908         and use an adequate verb and tense.
9910 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
9912         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9913         * module/gendocs: Add 'doc/gendocs_template_min'.
9915         * build-aux/gendocs.sh: Change email addresses and upstream URLs
9916         from to Gnulib's.
9917         (scripturl, templateurl): Adjust accordingly.
9919 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9921         gendocs: copyright date and version fix
9922         Reported by Karl Berry in:
9923         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
9924         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
9925         Fix copyright date.
9926         * build-aux/gendocs.sh (scriptversion): Update.
9928 2015-01-01  Karl Berry  <karl@gnu.org>
9930         * doc/install.texi,
9931         * build-aux/mdate-sh,
9932         * build-aux/depcomp,
9933         * build-aux/config.guess,
9934         * build-aux/config.sub,
9935         * build-aux/ar-lib,
9936         * build-aux/compile: revert copyright updates (some from last
9937         year) in slaved files.
9939 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9941         version-etc: new year
9942         * doc/gnulib.texi:
9943         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
9944         * all files: Run 'make update-copyright'.
9946 2014-12-30  Pádraig Brady  <P@draigBrady.com>
9948         xstrtol: ensure errno is reset
9949         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
9950         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
9952         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
9954 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9956         utimens: fix dependency typo
9957         * modules/utimens (Depends-on): Remove 'assure'.
9958         This bug was introduced in the recent 'assure' patch.
9960 2014-12-22  Eric Blake  <eblake@redhat.com>
9962         docs: mention why libgen.h is bad
9963         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
9965 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9967         assure: new module
9968         This works better than 'assert' when compiling with -DNDEBUG,
9969         as it avoids some compiler diagnostics in that case.
9970         Reported by Norihiro Tanaka in:
9971         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
9972         * MODULES.html.sh (func_all_modules): Add 'assure'.
9973         * lib/assure.h, modules/assure: New files.
9974         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
9975         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
9976         Prefer 'assure' to 'assert'.
9977         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
9978         * modules/chdir-long, modules/cycle-check, modules/fchdir:
9979         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
9980         Depend on 'assure'.
9982 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9984         stdalign: port better to HP compilers
9985         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
9986         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
9988         stdalign: work around Apple GCC 4.0 bug
9989         Reported by David Fang in:
9990         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
9991         * lib/stdalign.in.h (_Alignas):
9992         * m4/stdalign.m4 (gl_STDALIGN_H):
9993         Do not use aligned attribute with GCC 4.0 on Apple.
9995 2014-12-16  Pádraig Brady  <P@draigBrady.com>
9997         getcwd: fix test failure on OS X 10.9
9998         * m4/getcwd-path-max.m4: Avoid the replacement if it
9999         won't be effective due to the PATH_MAX limitation of lstat().
10000         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
10001         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
10002         for this case for use in tests, and also exclude this
10003         case when setting REPLACE_GETCWD.
10004         * tests/test-getcwd.c (test_long_name): Restrict the
10005         tested path length so that lstat() will not be passed
10006         a path greater than PATH_MAX.
10007         Also key a test condition on HAVE_OPENAT_SUPPORT rather
10008         than AT_FDCWD, since the latter is set unconditionally
10009         since Sep 2009 in commit 52c658e9.
10011 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
10013         parse-datetime: avoid a compiler warning with byacc (trivial)
10014         * lib/parse-datetime.y (yylex): Use the same prototype in the
10015         function definition as the declaration, to avoid a -Wstrict-prototypes
10016         warning seen when using byacc.
10018 2014-12-12  Daiki Ueno  <ueno@gnu.org>
10020         unicase/locale-language-tests: fix LOCALE_FR test
10021         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
10022         a French locale with traditional encoding.
10023         Reported by umerqayam in:
10024         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
10026 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10028         stddef: support C11's max_align_t
10029         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
10030         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
10031         Do not undef, as that might cause max_align_t to be defined twice.
10032         Instead, change use to check for _GL_STDDEF_WINT_T too.
10033         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
10034         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
10035         Check for max_align_t.
10036         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
10037         * modules/stddef-tests (Depends-on): Add stdalign.
10038         * tests/test-stddef.c: Test max_align_t.
10040 2014-12-11  Daiki Ueno  <ueno@gnu.org>
10042         unistd: fix iOS check conditional
10043         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
10044         as 0 or 1 in <TargetConditionals.h>, and the previous check always
10045         yielded true on non-iOS environment.
10046         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
10047         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
10048         they are defined.
10050 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10052         posixtm: avoid compiler warning in a better way
10053         * lib/posixtm.c (IF_LINT): Remove.
10054         (year, posix_time_parse):
10055         Return true (not 0) if successful.  All callers changed.
10056         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
10058 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
10060         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
10061         started with '/' on EMX.
10063 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
10065         freopen: workaround freopen() on OS/2 kLIBC
10066         * lib/freopen.c (rpl_freopen): Workaround.
10067         * m4/freopen.m4: Add os2* case.
10069         get_shared_library_fullname: port to EMX
10070         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
10071         on EMX, respectively.
10072         (_DLL_InitTerm): New on EMX.
10073         (get_shared_library_fullname): Implement on EMX.
10075         find_executable: port to EMX
10076         * lib/progreloc.c (find_executable): Implement on EMX.
10078         sched: check struct sched_param in spawn.h as well
10079         * lib/sched.in.h: Include spawn.h on kLIBC.
10080         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
10082 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
10084         bootstrap: Allow perl modules in $buildreq
10085         * build-aux/bootstrap: Add case for perl modules.
10087 2014-12-08  Pádraig Brady  <P@draigBrady.com>
10089         apply _GL_ATTRIBUTE_PURE to some inline functions
10090         clang 3.4.2 flagged these inline functions as pure
10091         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
10092         * lib/sig-handler.h (get_handler): Likewise.
10093         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
10094         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
10096 2014-12-06  Pádraig Brady  <P@draigBrady.com>
10098         vasnprintf: fix potential use after free
10099         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
10100         flagged by clang-analyzer 3.4.2.
10102 2014-12-05  Pádraig Brady  <P@draigBrady.com>
10104         filevercmp, posixtm: avoid compiler warnings with -O3
10105         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
10106         * lib/posixtm.c: (IF_LINT): Define.
10107         (posix_time_parse): Use it to void a "may be used uninitialized"
10108         warning, seen only with -O3.
10110 2014-12-05  Bruno Haible  <bruno@clisp.org>
10112         Fix LDBL80_WORDS macro on big endian platforms.
10113         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
10114         LDBL80_WORDS macro.
10115         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
10116         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10117         * tests/test-isfinite.c (test_isfinitel): Likewise.
10118         * tests/test-isinf.c (test_isinfl): Likewise.
10119         * tests/test-isnan.c (test_long_double): Likewise.
10120         * tests/test-isnanl.h (main): Likewise.
10121         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
10122         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
10123         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
10124         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
10125         Reported by Pádraig Brady.
10127 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
10129         git-version-gen: do not print new line characters
10130         * build-aux/git-version-gen: Use printf instead of echo and tr.
10132         gnulib-tool: recognize x:* as an absolute path
10133         * gnulib-tool (func_gnulib_dir): Add ?:* case.
10134         (func_relconcat): Likewise.
10136 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
10138         argp: avoid extraneous translation and mem leak with empty pre doc
10139         * lib/argp-help.c (argp_doc): Never translate the empty string,
10140         when "\v" is the first or last character of the string, as that
10141         has a reserved meaning to return the header info from a po file.
10142         This also fixes a small memory leak in the !post case.
10143         The issue can be seen with this command for example:
10144         LC_MESSAGES=en_US grub2-mknetdir --help
10146 2014-11-27  Daiki Ueno  <ueno@gnu.org>
10148         uniname/uniname-tests: skip if system's libunistring is used
10149         * modules/uniname/uniname-tests (Makefile.am): Skip test if
10150         uniname/uniname module is not compiled.
10152 2014-11-27  Pádraig Brady  <P@draigBrady.com>
10154         printf: fix configure check on big endian systems
10155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
10157 2014-11-22  Daiki Ueno  <ueno@gnu.org>
10159         pipe-filter-gi, pipe-filter-ii: port to AIX
10160         On AIX 7.1, 'select' is defined as static and cannot be referred
10161         to from inline function.
10162         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
10163         the definition...
10164         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
10165         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
10167 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10169         gitlog-to-changelog: add --until
10170         * build-aux/gitlog-to-changelog: Support new --until option.
10171         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
10173 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
10175         extern-inline: update commentary about GCC bugs
10176         * m4/extern-inline.m4: Add another GCC bug number to comments.
10178 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10180         gen-uni-tables: untabify
10181         * lib/gen-uni-tables.c: Untabify.
10183 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10185         gen-uni-tables: check out-of-range values added to 3-level tables
10186         * lib/gen-uni-tables.c (output_category, output_bidi_category)
10187         (output_joining_type, output_ident_category): Check out-of-range
10188         values added to 3-level tables.
10190 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10192         gen-uni-tables: utilize 'assert'
10193         * lib/gen-uni-tables.c: Include <assert.h>.
10194         (output_category, output_combclass, output_decimal_digit_test)
10195         (output_decimal_digit, output_digit_test, output_digit)
10196         (output_numeric, get_mirror_value, fill_properties)
10197         (fill_property30, is_property_alphabetic)
10198         (is_property_default_ignorable_code_point)
10199         (is_property_uppercase, is_property_lowercase)
10200         (is_property_cased, is_property_case_ignorable)
10201         (is_property_changes_when_lowercased, is_property_iso_control)
10202         (is_property_math, fill_arabicshaping, output_joining_group)
10203         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
10204         (output_wbp, fill_org_gbp, get_decomposition)
10205         (output_decomposition, fill_composition_exclusions)
10206         (debug_output_composition_tables, output_composition_tables)
10207         (redistribute_casefolding_rules, output_casing_rules): Use
10208         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
10209         reporting.
10211 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10213         gen-uni-tables: cosmetic improvements
10214         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
10215         variables specification.
10216         (is_outdigit): Remove unused function.
10218 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
10220         fcntl-h-tests: port to PA-RISC GNU/Linux
10221         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
10223 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10225         fts: port to C89
10226         Problem reported for MSVC 16 by Gisle Vanem in:
10227         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
10228         * lib/fts.c (fts_build): Avoid declaration before statement.
10230 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10232         unistd: port to iOS
10233         Problem reported by André Klitzing in:
10234         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
10235         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
10237 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10239         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
10240         Problem reported by Alan Modra in:
10241         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
10242         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
10243         Always cast the function arg, reverting this part of the previous
10244         change.
10246 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10248         obstack: avoid potentially-nonportable function casts
10249         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
10250         Remove, replacing with ...
10251         (call_chunkfun, call_freefun): New static functions.
10252         All uses changed.  Avoid potentially-nonportable casts.
10253         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
10254         (_obstack_begin_worker): Omit last two args, since they
10255         rely on potentially-nonportable casts.  All callers changed.
10256         * lib/obstack.h (_OBSTACK_CAST): New macro.
10257         Use it everywhere the old API used a potentially-nonportable cast.
10258         The new API doesn't cast.
10259         (struct obstack): Use unions rather than requiring
10260         potentially-nonportable casts.
10261         (obstack_chunkfun, obstack_freefun): Return void.
10263 2014-11-03  Alan Modra  <amodra@gmail.com>
10265         obstack: fix macro return values
10266         * lib/obstack.h (obstack_next_free): Return void *.
10267         (obstack_1grow_fast, obstack_blank_fast): Return void.
10268         For __GNUC__ macros:
10269         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
10270         For !__GNUC__ macros:
10271         (obstack_make_room, obstack_grow, obstack_grow0)
10272         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
10274 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10276         obstack: do not assume system-supplied obstack is size_t safe
10277         * m4/obstack.m4: New file.
10278         * modules/obstack (Files): Add it.
10280         obstack: port to platforms that #define __alignof__
10281         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
10282         not if !_LIBC.  We don't know of any platforms that #define
10283         __alignof__, but it might be useful in tests.  Conversely,
10284         glibc assumes GCC.
10286 2014-11-03  Pádraig Brady  <P@draigBrady.com>
10288         linkat: don't unconditionally replace on GNU/Linux
10289         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
10290         was redundant for a few reasons.  It was present to support compiling
10291         on new systems but running on the old narrow window of Linux 2.6.1[67].
10292         It setup and cleaned up test files which weren't actually used.
10293         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
10294         implicit in the following check.
10296 2014-11-03  Pádraig Brady  <P@draigBrady.com>
10298         linkat: wrap to handle symlinks on OS X 10.10
10299         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
10300         but not usable because it doesn't support creating hardlinks
10301         to symlinks.  Therefore add a generic test for this capability
10302         and fallback to our emulation if linkat() fails with ENOTSUP.
10304 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
10306         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
10307         * doc/posix-functions/open.texi (open):
10308         * doc/posix-functions/openat.texi (openat):
10309         Document that these functions do not set errno to ELOOP when
10310         a symlink is opened with O_NOFOLLOW.
10312 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10314         obstack: add NEWS entry for recent incompatible changes
10315         * NEWS: Describe recent changes.
10317 2014-10-30  Pádraig Brady  <P@draigBrady.com>
10319         mountlist: don't use libmount to decide on dummy/remote
10320         * lib/mountlist.c (read_file_system_list): Don't use the libmount
10321         routines to determine whether a file system is dummy or remote,
10322         as they're not currently compatible.  For example the remoteness
10323         is determined on file system type (for which the list seems incomplete),
10324         rather than simply checking for a ':' in the device name.
10325         Also libmount currently determines that 'tmpfs' is a dummy file system
10326         even though it has associated storage.
10328 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10330         obstack: prefer __alignof__ to alignof
10331         This is for portability to pre-4.7 GCC when compiling glibc.
10332         See Joseph S. Myers in:
10333         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
10334         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
10335         New macro, defined by including and using <alignof.h>.
10336         (MAX): New macro.
10337         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
10338         Do not use enums as they are not portable to some broken compilers.
10339         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
10341         obstack: prefer alignof to calculating alignments by hand
10342         * lib/obstack.c: Include <stdalign.h>.
10343         (struct fooalign): Remove.
10344         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
10345         * modules/obstack (Depends-on): Add stdalign.
10347 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10349         obstack: use size_t alignments and check for overflow
10350         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
10351         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
10352         * lib/obstack.h (struct obstack.alignment_mask):
10353         Use _OBSTACK_SIZE_T, not int, for alignments.
10354         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
10355         overflows, e.g., when adding the alignment.
10357 2014-10-29  Alan Modra  <amodra@gmail.com>
10359         obstack: 64-bit obstack support, part 3
10360         This finally enables full 64-bit obstack support.  The glibc
10361         shared library specific code is removed from obstack.c too, and
10362         the error handling code conditionally compiled under control of
10363         another macro, _OBSTACK_NO_ERROR_HANDLER.
10364         * lib/obstack.h: Include string.h earlier.
10365         (_OBSTACK_INTERFACE_VERSION): Define.
10366         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
10367         * lib/obstack.c: Don't include shlib-compat.h.
10368         (OBSTACK_INTERFACE_VERSION): Delete.
10369         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
10370         glibc code is compatible with version 2.  Don't include stdio.h for
10371         __GNU_LIBRARY.
10372         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
10373         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
10374         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
10375         glibc shared library specific source.
10377         obstack: 64-bit obstack support, part 2
10378         This gets us 4G obstack support, without changing ABI
10379         compatibility, apart from possibly introducing some
10380         signed/unsigned comparison warnings in code that uses obstack.h.
10381         a) Replace "int" size parameters, return values, and macro local vars
10382            with _OBSTACK_SIZE_T, an "unsigned int" for now.
10383         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
10384         c) Make all obstack macros checking available room use obstack_room.
10385            "next_free + desired > chunk_limit" may wrap the lhs for chunks
10386            allocated near the top of memory.
10387         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
10388         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
10389         in place of "int" size parameters, return values and local vars.
10390         (_CHUNK_SIZE_T): Define.
10391         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
10392         union use an _OBSTACK_SIZE_T integer type.
10393         For __GNUC__ versions of the following macros...
10394         (obstack_room): Rename local var.
10395         (obstack_make_room): Use obstack_room.
10396         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
10397         obstack_int_grow, obstack_blank): Likewise.
10398         (obstack_finish): Use unsigned comparison when comparing aligned
10399         next_free against chunk_limit.
10400         (obstack_free): Cast OBJ to remove possible const qualifier.
10401         For !__GNUC__ versions of the following macros...
10402         (obstack_make_room): Use obstack_room.
10403         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
10404         obstack_int_grow, obstack_blank): Likewise.
10405         (obstack_finish): Use unsigned comparision when comparing aligned
10406         next_free against chunk_limit.
10407         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
10408         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
10409         _OBSTACK_SIZE_T.
10410         (_obstack_begin, _obstack_begin_1): Likewise.
10411         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
10412         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
10414         obstack: 64-bit obstack support, part 1
10415         a) Correct calls to alloc function, to use a size_t arg.  "long" is
10416            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
10417            and "size_t" 64 bits.
10418         b) Consolidate _obstack_begin and _obstack_begin1 code.
10419         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
10420         use "size_t" rather than "long".
10421         (_obstack_begin, _obstack_begin1): Likewise.
10422         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
10423         obstack_chunkfun): Update alloc function casts.
10424         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
10425         (chunkfun_type, freefun_type): New typdefs.
10426         (_obstack_begin_worker): Split out from ..
10427         (_obstack_begin, _obstack_begin_1): ..here.
10429         obstack: tidy part 2
10430         a) Don't be concerned about "not polluting the namespace with stddef.h
10431            symbols" in obstack.h, since gnulib string.h includes stddef.h
10432            anyway, and it seems unlikely that anyone would care.
10433         b) Don't roll our own slow memcpy in _obstack_newchunk.
10434         c) Rename obstack_free to _obstack_free.  This makes the naming
10435            consistent with other obstack functions and obviates the need for
10436            __obstack_free.  Ancient obstack.c defined both obstack_free and
10437            _obstack_free.  We continue to do that for _LIBC via an alias.
10438         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
10439            is clever, but nowadays gcc warns on undefined macros.  You'll get
10440            an undefined macro warning if simulating an old gcc with -U__GNUC__
10441            -U__GNUC_MINOR__ -D__GNUC__=1.
10442         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
10443         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
10444         (__obstack_free): Delete, update refs.
10445         (_obstack_free): Rename from obstack_free.
10446         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
10447         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
10448         * lib/obstack.c: Don't include stddef.h.
10449         (COPYING_UNIT): Delete.
10450         (_obstack_begin): Formatting fix.
10451         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
10452         (_obstack_free): Rename from __obstack_free, update alias.  Move
10453         undef of obstack_free to where it is needed.
10455         obstack: tidy part 1
10456         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
10457            to me, and result in overlong lines after later patches.
10458         b) Move error handling code, to avoid a forward declaration and to
10459            simplify later patches in this series.
10460         * lib/obstack.h (struct obstack <temp>): Rename fields of union
10461         and update all uses.
10462         * lib/obstack.c: Include stdlib.h earlier.
10463         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
10464         in file.
10465         (print_and_abort): Remove now redundant forward declaration.
10467 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10469         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
10470         Without this change, in bleeding-edge fileutils Autoconf complains
10471         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
10472         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
10473         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
10474         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
10476 2014-10-24  Daiki Ueno  <ueno@gnu.org>
10478         iconv: avoid false detection of non-working iconv
10479         The INBUF arguments of iconv can be either 'const char **'
10480         or 'char **'.  If CC is g++, the difference causes a compile error
10481         and thus leads to a false detection of non-working iconv.
10482         Reported by Eli Zaretskii and Werner LEMBERG in:
10483         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
10484         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
10485         iconv.  Bump serial number.
10487 2014-10-23  Pádraig Brady  <P@draigBrady.com>
10489         bootstrap: print more diagnostics for missing programs
10490         * build-aux/bootstrap: only suppress stderr when checking for
10491         alternative program names.  This supports programs issuing non
10492         standard error messages.
10494 2014-10-23  Pádraig Brady  <P@draigBrady.com>
10496         bootstrap: only update the gnulib submodule
10497         * build-aux/bootstrap: Restrict the "submodule update" command
10498         to the gnulib path.
10500 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10502         symlinkat: port to AIX 7.1
10503         * doc/posix-functions/symlinkat.texi (symlinkat):
10504         Mention AIX porting problem.
10505         * lib/symlinkat.c: Always include errno.h.
10506         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
10507         * lib/unistd.in.h (symlinkat): Add replacement machinery.
10508         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
10509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
10510         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
10511         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
10512         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
10514         readlinkat: port to AIX 7.1
10515         * doc/posix-functions/readlink.texi (readlink):
10516         * doc/posix-functions/readlinkat.texi (readlinkat):
10517         Mention AIX porting problem.
10518         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
10519         New function.
10520         * lib/unistd.in.h (readlinkat): Add replacement machinery.
10521         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
10522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
10523         * modules/readlinkat (configure.ac): Also compile replacement
10524         if REPLACE_READLINKAT.
10525         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
10527 2014-10-12  Karl Berry  <karl@gnu.org>
10529         * doc/posix-functions/dirname.texi: remove spurious {.
10531 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
10533         basename, dirname: Improve documentation.
10534         * doc/posix-functions/basename.texi: Mention dirname module and
10535         base_name() function.
10536         * doc/posix-functions/dirname.texi: Mention dir_name() and
10537         mdir_name() functions.
10538         Suggested by Werner LEMBERG <wl@gnu.org>.
10540 2014-09-24  Jim Meyering  <meyering@fb.com>
10542         exclude: declare exclude_patopts static
10543         * lib/exclude.c (exclude_patopts): Declare static,
10544         to avoid triggering a -Wmissing-prototypes warning.
10545         The alternative (declaring it in the .h file) would
10546         require publicizing the private "struct patopts".
10548 2014-09-21  Werner Lemberg  <wl@gnu.org>
10550         dirname: support compilation with C++
10551         * lib/dirname.h: Add necessary C linkage declarations.
10553 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10555         qsort_r: include <config.h>
10556         Problem reported by Tom G. Christensen in:
10557         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
10558         * lib/qsort.c [!_LIBC]: Include <config.h> first.
10560 2014-09-16  Dylan Cali  <calid1984@gmail.com>
10562         avltree-list: avoid compiler warnings (trivial)
10563         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10564         -Werror=suggest-attribute=pure.
10565         * lib/gl_array_list.c: Likewise.
10566         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
10567         declaration to avoid -Werror=missing-prototypes.  This is not added
10568         to a header as only exported for tests.  Add (void) to the
10569         check_invariants() call to indicate we're discarding the result
10570         in this context which avoids -Werror=unused-value.  Note we don't
10571         use ignore_value here to avoid a dependency as we know we'll not
10572         be adding __attribute__((warn_unused_result)) to check_invariants().
10573         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
10575 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10577         qsort_r: new module, for GNU-style qsort_r
10578         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
10580 2014-09-15  Werner LEMBERG  <wl@gnu.org>
10582         strerror_r-posix: support compilation with C++
10583         * lib/strerror_r.c: Add necessary C linkage declarations.
10585 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
10587         fcntl-h: fix compilation with Intel C++ compiler (trivial)
10588         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
10590 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
10592         mountlist: use /proc/self/mountinfo when available
10593         Use libmount to propagate device IDs provided by Linux in
10594         /proc/self/mountinfo.  This will give more accurate output when
10595         using df in chroot'ed environments as the device IDs are not
10596         determined by stat() which may be inaccurate within the chroot.
10597         * lib/mountlist.c (read_file_system_list): Use the libmount routines
10598         from util-linux to parse "/proc/self/mountinfo" or fall back to
10599         standard getmntent() processing.
10600         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
10601         getmntent() is used, as is the case on GNU/Linux.
10603 2014-09-07  Eric Wong  <normalperson@yhbt.net>
10605         users.txt: add cmogstored
10606         cmogstored has used gnulib since the beginning in 2012 to support
10607         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
10609 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
10611         Trivial change.
10612         * gnulib-tool: Use same options as build-aux/bootstrap to download
10613         PO files.
10615 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
10617         Trivial change.
10618         * gnulib-tool: Fallback to wget when rsync of PO files fails.
10620 2014-09-04  Eric Blake  <eblake@redhat.com>
10622         maintainer-makefile: add syntax check for useless ';;'
10623         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
10625 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
10627         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
10628         Problem reported by Assaf Gordon in:
10629         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
10630         Apparently Ubuntu is doing some fancy link-time optimization
10631         that doesn't work with -lpthread but does work with -pthread.
10632         Work around the bug by preferring -pthread to -lpthread.
10633         * m4/pthread.m4 (gl_PTHREAD_CHECK):
10634         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
10635         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10636         Treat -pthread like -lpthread.
10638 2014-09-04  Eric Blake  <eblake@redhat.com>
10640         error: drop spurious semicolon
10641         * lib/error.c (__error_at_line): Fix ';;'.
10643 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10645         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
10646         * m4/gnulib-common.m4 (AC_C_RESTRICT):
10647         Override AC_C_RESTRICT unconditionally.
10648         Update from autoconf, incorporating:
10649         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
10650         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
10652 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10654         manywarnings: add GCC 4.9 warnings
10655         Also, make it easier to maintain this in the future.
10656         * build-aux/gcc-warning.spec: Add -Wabi-tag,
10657         -Wconditionally-supported, -Wdelete-incomplete,
10658         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
10659         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
10660         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
10661         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
10662         only for older GCC versions that need them.  Handle
10663         -Wnormalized=nfc specially, so that the 'comm' command used
10664         for maintenance doesn't get confused.
10666 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10668         vasnprintf: fix bugs in width computation
10669         * lib/vasnprintf.c (VASNPRINTF):
10670         Rework previous change, which introduced a bug,
10671         to avoid the warning in a different way.
10672         Avoid undefined behavior if the width arg is less than -INT_MAX.
10673         Avoid unnecessary use of HAS_WIDTH local.
10675 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
10677         vasnprintf: Avoid signed/unsigned comparison warning.
10678         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
10679         compare end addr of generated string w/ maximum end addr.
10681 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
10683         parse-datetime: Avoid pointer difference.
10684         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
10685         instead of calculating difference of pointers.  This removes an
10686         annoying warning, devoid of any use.
10688 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10690         qsort_r: new module, for GNU-style qsort_r
10691         This works even on FreeBSD, which has an incompatible qsort_r API.
10692         * MODULES.html.sh: Add it.
10693         * doc/glibc-functions/qsort_r.texi: It's now supported.
10694         * lib/qsort.c: New file, taken from glibc with minor changes
10695         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
10696         removed.
10697         * lib/qsort_r.c: New file, compiled only on FreeBSD.
10698         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
10699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
10700         * modules/qsort_r, modules/qsort_r-tests: New files.
10701         * modules/stdlib (Makefile): Set up its defaults.
10702         * tests/test-qsort_r.c: New file.
10704 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
10706         vla: new module
10707         GNU RCS can use this, mostly for documentation I expect.  See:
10708         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
10709         * MODULES.html.sh: Add vla.
10710         * lib/vla.h, modules/vla: New files.
10712 2014-08-07  Daiki Ueno  <ueno@gnu.org>
10714         localename: make gl_locale_name_thread really thread-safe on Windows
10715         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
10716         "glthread/lock.h".
10717         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
10718         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
10720 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
10722         getpass: don't assume struct termios
10723         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
10724         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
10725         * lib/getpass.c (getpass): Port to systems lacking struct termios.
10727         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
10728         Problem reported by Jonas 'Sortie' Termansen in:
10729         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
10730         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
10731         Implement via sysconf for platforms that lack getdtablesize.
10733         vararrays: modernize AC_C_VARARRAYS for C11
10734         This backports a change I recently made to Autoconf.
10735         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
10736         VLAs are not supported, as this is what C11 does.  The old macro
10737         HAVE_C_VARARRAYS is still defined if they are supported, but is
10738         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
10740 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
10742         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
10743         * build-aux/install-reloc (func_create_wrapper): Also wrap
10744         strerror-override, stat, stat.
10746 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
10748         sys_select: fix FD_ZERO problem on Solaris 10
10749         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
10750         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
10751         to expand to an expression that invoked memset without necessarily
10752         including <string.h>.  The problem was that the first include
10753         defined _SYS_TIME_H, causing the second include to short-circuit.
10754         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
10755         Also, fix what appears to be a cut-and-paste typo, by replacing
10756         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
10757         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
10759         accept: document Solaris 10 type glitch
10760         * doc/posix-functions/accept.texi (accept): Mention that
10761         Solaris 10 'accept' takes void * last arg, not socklen_t *.
10763 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
10765         extern-inline: port to FreeBSD, DragonFly
10766         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
10767         is present if either __DragonFly__ or __FreeBSD__ is defined.
10768         FreeBSD problem reported by Andrey Borzenkov in:
10769         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
10770         Also, worry about __APPLE__ only if __MACH__ is also defined,
10771         as this is more consistent with the rest of gnulib.
10772         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
10773         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
10775 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10777         regex: Make #if/#ifdef usage consistent for DEBUG
10778         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
10779         of the inconsistent usage of #if and #ifdef as that works with
10780         both Glibc and Gnulib's style.
10782 2014-07-31  Eric Blake  <eblake@redhat.com>
10784         openat-die: use _Noreturn markup
10785         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
10786         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
10787         _Noreturn.
10789 2014-07-30  Eric Blake  <eblake@redhat.com>
10791         test-open: port to cygwin, which lacks Fortify
10792         * tests/test-open.h (ALWAYS_INLINE): New macro.
10793         (__always_inline): Don't abuse internal symbol on non-glibc.
10795 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
10797         localename: Enforce declarations before statements.
10798         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
10799         first statement.
10801 2014-07-18  Jim Meyering  <meyering@fb.com>
10803         test-userspec: don't look up numeric user names
10804         * tests/test-userspec.c: I found a system for which getpwnam("0")
10805         returned a pointer to a non-root user's entry, and that made the
10806         test fail.
10807         (T): Prefix each numeric input with "+", to inhibit lookup.
10809 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
10811         localcharset, localename: MS-Windows support for non-default locales
10812         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
10813         falling back on the default system codepage, try extracting
10814         the codepage from what 'setlocale' returns.  This allows to
10815         take into account changes of the codeset due to non-default
10816         locale set by a previous call to 'setlocale'.
10817         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
10818         Define if not already defined.
10819         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
10820         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
10821         current locale by calling 'setlocale', then converting the
10822         locale name into LCID by calling 'get_lcid'.  This allows to
10823         take into account changes in the current locale from the
10824         default one, in contrast to GetThreadLocale.
10826 2014-07-14  Daiki Ueno  <ueno@gnu.org>
10828         announce-gen: avoid failure when Digest::SHA is installed
10829         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
10830         Digest::SHA1->new in print_checksums fails.
10831         * build-aux/announce-gen (digest_classes): New associative array
10832         for available message digest implementations.
10833         (print_locations): Use it.
10835 2014-07-13  Pádraig Brady  <P@draigBrady.com>
10837         gettext: revert "update macros to version 0.19"
10838         This reverts commit 9b9370ca, as it currently requires that
10839         developers of any project that explicitly uses the gettext module
10840         or implicitly uses it through the utimens-tests or
10841         futimens-tests modules, use gettext >= 0.19.
10842         However there are some stability and availablity issues with
10843         that version at present.  We can reinstate this soon, when stability
10844         is addressed and packages are more readily available.
10846 2014-07-12  Jim Meyering  <meyering@fb.com>
10848         regex: don't deref NULL upon heap allocation failure
10849         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
10850         failure in one more place.
10851         To trigger the segfault, configure grep -with-included-regex,
10852         build it, and run these commands:
10853         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
10854         I discovered this while replying to a private report from
10855         Jens Schleusener about excessive memory consumption by grep
10856         when using a regular expression like the one above.
10858 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10860         regex: fix memory leak in compiler
10861         Fix by Andreas Schwab in:
10862         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
10863         * lib/regcomp.c (parse_reg_exp): Deallocate partially
10864         constructed tree before returning error.
10866 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10868         announce-gen: avoid perl warnings
10869         * build-aux/announce-gen: add two minor checks to avoid
10870         "use of uninitialized value" warnings when command-line parameters are
10871         missing.
10873 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10875         localename: avoid -Wsuggest-attribute={const,pure} warnings
10876         * lib/localename.c (string_has): Tag internal function as pure.
10877         * lib/localename.h (gl_locale_name_default): Tag extern declaration
10878         as const when appropriate.
10880 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
10882         nl_langinfo: Fix last change.
10883         * lib/nl_langinfo.c (includes): Drop redundant include.
10885 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10887         error: Fix -Wundef warnings in glibc
10888         * lib/error.c [_LIBC]: Define default macros for
10889         glibc.
10890         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
10891         Check _LIBC before STRERROR_R_CHAR_P.
10893         error: Sync from glibc master
10894         * lib/error.c [_LIBC]: Remove INTUSE usage.
10895         (error_tail): Remove unused macro ALLOCA_LIMIT.
10896         Fix potential buffer overflow.  Fix potential NULL dereference
10897         in strcmp.
10899 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
10901         nl_langinfo: fix build under mingw
10902         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
10904 2014-07-09  Andrew D Warshall  <warshall@99main.com>
10906         mountlist: do not classify a bind-mounted dir entry as "dummy"
10907         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
10908         1-argument getmntent() (instead of assuming absence).
10910 2014-07-08  Eric Blake  <eblake@redhat.com>
10912         maint.mk: less syntax-check noise when SIGPIPE is ignored
10913         * top/maint.mk (_sc_header_without_use)
10914         (sc_require_config_h_first): Parse full list.
10916 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
10917             Paul Eggert  <eggert@cs.ucla.edu>
10919         nl_langinfo: CODESET on MS-Windows and more items from localeconv
10920         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
10921         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
10922         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
10923         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
10924         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
10925         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
10926         Include <stdio.h> if Microsoft Windows.
10927         Include <time.h> if !REPLACE_NL_LANGINFO.
10928         (ctype_codeset): New function, taken from rpl_nl_langinfo,
10929         and with improvements for Microsoft Windows.
10930         (rpl_nl_langinfo): Use it.
10931         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
10932         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
10933         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
10934         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
10935         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
10936         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
10937         corresponding values returned by 'localeconv'.  Compute the values
10938         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
10939         'strftime' with a suitable struct tm value.
10941 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10943         Bruno Haible has stepped down as maintainer.
10944         See Karl Berry in:
10945         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
10946         Daiki Ueno has volunteered to maintain libunistring; see:
10947         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
10948         * modules/gen-uni-tables, modules/libunistring:
10949         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
10950         * modules/unicase/base, modules/unicase/cased:
10951         * modules/unicase/empty-prefix-context:
10952         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
10953         * modules/unicase/locale-language, modules/unicase/special-casing:
10954         * modules/unicase/tocasefold, modules/unicase/tolower:
10955         * modules/unicase/totitle, modules/unicase/toupper:
10956         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
10957         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
10958         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
10959         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
10960         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
10961         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
10962         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
10963         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
10964         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
10965         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
10966         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
10967         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
10968         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
10969         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
10970         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
10971         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
10972         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
10973         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
10974         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
10975         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
10976         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
10977         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
10978         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
10979         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
10980         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
10981         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
10982         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
10983         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
10984         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
10985         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
10986         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
10987         * modules/unicase/ulc-casexfrm, modules/unicodeio:
10988         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
10989         * modules/uniconv/u16-conv-to-enc:
10990         * modules/uniconv/u16-strconv-from-enc:
10991         * modules/uniconv/u16-strconv-from-locale:
10992         * modules/uniconv/u16-strconv-to-enc:
10993         * modules/uniconv/u16-strconv-to-locale:
10994         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
10995         * modules/uniconv/u32-strconv-from-enc:
10996         * modules/uniconv/u32-strconv-from-locale:
10997         * modules/uniconv/u32-strconv-to-enc:
10998         * modules/uniconv/u32-strconv-to-locale:
10999         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
11000         * modules/uniconv/u8-strconv-from-enc:
11001         * modules/uniconv/u8-strconv-from-locale:
11002         * modules/uniconv/u8-strconv-to-enc:
11003         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
11004         * modules/unictype/bidicategory-all:
11005         * modules/unictype/bidicategory-byname:
11006         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
11007         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
11008         * modules/unictype/bidiclass-byname:
11009         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
11010         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
11011         * modules/unictype/block-all, modules/unictype/block-list:
11012         * modules/unictype/block-of, modules/unictype/block-test:
11013         * modules/unictype/category-C, modules/unictype/category-Cc:
11014         * modules/unictype/category-Cf, modules/unictype/category-Cn:
11015         * modules/unictype/category-Co, modules/unictype/category-Cs:
11016         * modules/unictype/category-L, modules/unictype/category-LC:
11017         * modules/unictype/category-Ll, modules/unictype/category-Lm:
11018         * modules/unictype/category-Lo, modules/unictype/category-Lt:
11019         * modules/unictype/category-Lu, modules/unictype/category-M:
11020         * modules/unictype/category-Mc, modules/unictype/category-Me:
11021         * modules/unictype/category-Mn, modules/unictype/category-N:
11022         * modules/unictype/category-Nd, modules/unictype/category-Nl:
11023         * modules/unictype/category-No, modules/unictype/category-P:
11024         * modules/unictype/category-Pc, modules/unictype/category-Pd:
11025         * modules/unictype/category-Pe, modules/unictype/category-Pf:
11026         * modules/unictype/category-Pi, modules/unictype/category-Po:
11027         * modules/unictype/category-Ps, modules/unictype/category-S:
11028         * modules/unictype/category-Sc, modules/unictype/category-Sk:
11029         * modules/unictype/category-Sm, modules/unictype/category-So:
11030         * modules/unictype/category-Z, modules/unictype/category-Zl:
11031         * modules/unictype/category-Zp, modules/unictype/category-Zs:
11032         * modules/unictype/category-all, modules/unictype/category-and:
11033         * modules/unictype/category-and-not, modules/unictype/category-byname:
11034         * modules/unictype/category-longname, modules/unictype/category-name:
11035         * modules/unictype/category-none, modules/unictype/category-of:
11036         * modules/unictype/category-or, modules/unictype/category-test:
11037         * modules/unictype/category-test-withtable:
11038         * modules/unictype/combining-class:
11039         * modules/unictype/combining-class-all:
11040         * modules/unictype/combining-class-byname:
11041         * modules/unictype/combining-class-longname:
11042         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
11043         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
11044         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
11045         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
11046         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
11047         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
11048         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
11049         * modules/unictype/digit, modules/unictype/joininggroup-all:
11050         * modules/unictype/joininggroup-byname:
11051         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
11052         * modules/unictype/joiningtype-all:
11053         * modules/unictype/joiningtype-byname:
11054         * modules/unictype/joiningtype-longname:
11055         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
11056         * modules/unictype/mirror, modules/unictype/numeric:
11057         * modules/unictype/property-all, modules/unictype/property-alphabetic:
11058         * modules/unictype/property-ascii-hex-digit:
11059         * modules/unictype/property-bidi-arabic-digit:
11060         * modules/unictype/property-bidi-arabic-right-to-left:
11061         * modules/unictype/property-bidi-block-separator:
11062         * modules/unictype/property-bidi-boundary-neutral:
11063         * modules/unictype/property-bidi-common-separator:
11064         * modules/unictype/property-bidi-control:
11065         * modules/unictype/property-bidi-embedding-or-override:
11066         * modules/unictype/property-bidi-eur-num-separator:
11067         * modules/unictype/property-bidi-eur-num-terminator:
11068         * modules/unictype/property-bidi-european-digit:
11069         * modules/unictype/property-bidi-hebrew-right-to-left:
11070         * modules/unictype/property-bidi-left-to-right:
11071         * modules/unictype/property-bidi-non-spacing-mark:
11072         * modules/unictype/property-bidi-other-neutral:
11073         * modules/unictype/property-bidi-pdf:
11074         * modules/unictype/property-bidi-segment-separator:
11075         * modules/unictype/property-bidi-whitespace:
11076         * modules/unictype/property-byname:
11077         * modules/unictype/property-case-ignorable:
11078         * modules/unictype/property-cased:
11079         * modules/unictype/property-changes-when-casefolded:
11080         * modules/unictype/property-changes-when-casemapped:
11081         * modules/unictype/property-changes-when-lowercased:
11082         * modules/unictype/property-changes-when-titlecased:
11083         * modules/unictype/property-changes-when-uppercased:
11084         * modules/unictype/property-combining:
11085         * modules/unictype/property-composite:
11086         * modules/unictype/property-currency-symbol:
11087         * modules/unictype/property-dash:
11088         * modules/unictype/property-decimal-digit:
11089         * modules/unictype/property-default-ignorable-code-point:
11090         * modules/unictype/property-deprecated:
11091         * modules/unictype/property-diacritic:
11092         * modules/unictype/property-extender:
11093         * modules/unictype/property-format-control:
11094         * modules/unictype/property-grapheme-base:
11095         * modules/unictype/property-grapheme-extend:
11096         * modules/unictype/property-grapheme-link:
11097         * modules/unictype/property-hex-digit:
11098         * modules/unictype/property-hyphen:
11099         * modules/unictype/property-id-continue:
11100         * modules/unictype/property-id-start:
11101         * modules/unictype/property-ideographic:
11102         * modules/unictype/property-ids-binary-operator:
11103         * modules/unictype/property-ids-trinary-operator:
11104         * modules/unictype/property-ignorable-control:
11105         * modules/unictype/property-iso-control:
11106         * modules/unictype/property-join-control:
11107         * modules/unictype/property-left-of-pair:
11108         * modules/unictype/property-line-separator:
11109         * modules/unictype/property-logical-order-exception:
11110         * modules/unictype/property-lowercase, modules/unictype/property-math:
11111         * modules/unictype/property-non-break:
11112         * modules/unictype/property-not-a-character:
11113         * modules/unictype/property-numeric:
11114         * modules/unictype/property-other-alphabetic:
11115         * modules/unictype/property-other-default-ignorable-code-point:
11116         * modules/unictype/property-other-grapheme-extend:
11117         * modules/unictype/property-other-id-continue:
11118         * modules/unictype/property-other-id-start:
11119         * modules/unictype/property-other-lowercase:
11120         * modules/unictype/property-other-math:
11121         * modules/unictype/property-other-uppercase:
11122         * modules/unictype/property-paired-punctuation:
11123         * modules/unictype/property-paragraph-separator:
11124         * modules/unictype/property-pattern-syntax:
11125         * modules/unictype/property-pattern-white-space:
11126         * modules/unictype/property-private-use:
11127         * modules/unictype/property-punctuation:
11128         * modules/unictype/property-quotation-mark:
11129         * modules/unictype/property-radical:
11130         * modules/unictype/property-sentence-terminal:
11131         * modules/unictype/property-soft-dotted:
11132         * modules/unictype/property-space:
11133         * modules/unictype/property-terminal-punctuation:
11134         * modules/unictype/property-test, modules/unictype/property-titlecase:
11135         * modules/unictype/property-unassigned-code-value:
11136         * modules/unictype/property-unified-ideograph:
11137         * modules/unictype/property-uppercase:
11138         * modules/unictype/property-variation-selector:
11139         * modules/unictype/property-white-space:
11140         * modules/unictype/property-xid-continue:
11141         * modules/unictype/property-xid-start:
11142         * modules/unictype/property-zero-width, modules/unictype/scripts:
11143         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
11144         * modules/unictype/syntax-c-whitespace:
11145         * modules/unictype/syntax-java-ident:
11146         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
11147         * modules/unigbrk/u16-grapheme-breaks:
11148         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
11149         * modules/unigbrk/u32-grapheme-breaks:
11150         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
11151         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
11152         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
11153         * modules/unigbrk/uc-is-grapheme-break:
11154         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
11155         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
11156         * modules/unilbrk/u16-width-linebreaks:
11157         * modules/unilbrk/u32-possible-linebreaks:
11158         * modules/unilbrk/u32-width-linebreaks:
11159         * modules/unilbrk/u8-possible-linebreaks:
11160         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
11161         * modules/unilbrk/ulc-possible-linebreaks:
11162         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
11163         * modules/uniname/uniname, modules/uninorm/base:
11164         * modules/uninorm/canonical-decomposition:
11165         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
11166         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
11167         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
11168         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
11169         * modules/uninorm/nfkc, modules/uninorm/nfkd:
11170         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
11171         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
11172         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
11173         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
11174         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
11175         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
11176         * modules/unistdio/base, modules/unistdio/u-printf-args:
11177         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
11178         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
11179         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
11180         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
11181         * modules/unistdio/u16-u16-sprintf:
11182         * modules/unistdio/u16-u16-vasnprintf:
11183         * modules/unistdio/u16-u16-vasprintf:
11184         * modules/unistdio/u16-u16-vsnprintf:
11185         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
11186         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
11187         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
11188         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
11189         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
11190         * modules/unistdio/u32-u32-asnprintf:
11191         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
11192         * modules/unistdio/u32-u32-sprintf:
11193         * modules/unistdio/u32-u32-vasnprintf:
11194         * modules/unistdio/u32-u32-vasprintf:
11195         * modules/unistdio/u32-u32-vsnprintf:
11196         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
11197         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
11198         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
11199         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
11200         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
11201         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
11202         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
11203         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
11204         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
11205         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
11206         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
11207         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
11208         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
11209         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
11210         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
11211         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
11212         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
11213         * modules/unistr/u16-check, modules/unistr/u16-chr:
11214         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
11215         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
11216         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
11217         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
11218         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
11219         * modules/unistr/u16-move, modules/unistr/u16-next:
11220         * modules/unistr/u16-prev, modules/unistr/u16-set:
11221         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
11222         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
11223         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
11224         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
11225         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
11226         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
11227         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
11228         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
11229         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
11230         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
11231         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
11232         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
11233         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
11234         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
11235         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
11236         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
11237         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
11238         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
11239         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
11240         * modules/unistr/u32-next, modules/unistr/u32-prev:
11241         * modules/unistr/u32-set, modules/unistr/u32-startswith:
11242         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
11243         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
11244         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
11245         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
11246         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
11247         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
11248         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
11249         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
11250         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
11251         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
11252         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
11253         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
11254         * modules/unistr/u8-check, modules/unistr/u8-chr:
11255         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
11256         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
11257         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
11258         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
11259         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
11260         * modules/unistr/u8-next, modules/unistr/u8-prev:
11261         * modules/unistr/u8-set, modules/unistr/u8-startswith:
11262         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
11263         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
11264         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
11265         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
11266         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
11267         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
11268         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
11269         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
11270         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
11271         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
11272         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
11273         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
11274         * modules/uniwbrk/base, modules/uniwbrk/table:
11275         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
11276         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
11277         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
11278         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
11279         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
11280         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
11281         * modules/uniwidth/width, modules/utf16-ucs4:
11282         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
11283         * modules/utf8-ucs4-unsafe:
11284         Change maintainer from Bruno Haible to Daiki Ueno.
11285         This is my guess at the libunistring modules; please feel free
11286         to fix if I guessed incorrectly.
11287         * modules/accept4, modules/acl, modules/acos, modules/acosf:
11288         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
11289         * modules/areadlink, modules/array-list, modules/array-mergesort:
11290         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
11291         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
11292         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
11293         * modules/binary-io, modules/bison-i18n, modules/btowc:
11294         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
11295         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
11296         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
11297         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
11298         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
11299         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
11300         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
11301         * modules/closedir, modules/concat-filename, modules/copy-file:
11302         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
11303         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
11304         * modules/csharpcomp-script, modules/csharpexec:
11305         * modules/csharpexec-script, modules/ctype, modules/diffseq:
11306         * modules/dprintf, modules/dprintf-posix, modules/dup:
11307         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
11308         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
11309         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
11310         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
11311         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
11312         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
11313         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
11314         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
11315         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
11316         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
11317         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
11318         * modules/findprog, modules/findprog-lgpl, modules/floor:
11319         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
11320         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
11321         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
11322         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
11323         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
11324         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
11325         * modules/freadable, modules/freadahead, modules/freadptr:
11326         * modules/freadseek, modules/freopen, modules/frexp:
11327         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
11328         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
11329         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
11330         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
11331         * modules/ftello, modules/full-read, modules/full-write:
11332         * modules/fwritable, modules/fwriteerror, modules/gcd:
11333         * modules/get-rusage-as, modules/get-rusage-data:
11334         * modules/getdtablesize, modules/getrusage, modules/gettext:
11335         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
11336         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
11337         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
11338         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
11339         * modules/iconv, modules/iconv-h, modules/iconv_open:
11340         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
11341         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
11342         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
11343         * modules/integer_length_ll, modules/ioctl, modules/isatty:
11344         * modules/isblank, modules/isnand, modules/isnand-nolibm:
11345         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
11346         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
11347         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
11348         * modules/javaexec, modules/javaexec-script, modules/javaversion:
11349         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
11350         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
11351         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
11352         * modules/lib-symbol-visibility, modules/libsigsegv:
11353         * modules/linked-list, modules/linkedhash-list, modules/list:
11354         * modules/localcharset, modules/locale, modules/localeconv:
11355         * modules/localename, modules/lock, modules/log, modules/log-ieee:
11356         * modules/log10, modules/log10-ieee, modules/log10f:
11357         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
11358         * modules/log1p, modules/log1p-ieee, modules/log1pf:
11359         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
11360         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
11361         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
11362         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
11363         * modules/logf, modules/logf-ieee, modules/login_tty:
11364         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
11365         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
11366         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
11367         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
11368         * modules/mbscspn, modules/mbsinit, modules/mbslen:
11369         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
11370         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
11371         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
11372         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
11373         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
11374         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
11375         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
11376         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
11377         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
11378         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
11379         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
11380         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
11381         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
11382         * modules/posix_spawn, modules/posix_spawn-internal:
11383         * modules/posix_spawn_file_actions_addclose:
11384         * modules/posix_spawn_file_actions_adddup2:
11385         * modules/posix_spawn_file_actions_addopen:
11386         * modules/posix_spawn_file_actions_destroy:
11387         * modules/posix_spawn_file_actions_init:
11388         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
11389         * modules/posix_spawnattr_getpgroup:
11390         * modules/posix_spawnattr_getschedparam:
11391         * modules/posix_spawnattr_getschedpolicy:
11392         * modules/posix_spawnattr_getsigdefault:
11393         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
11394         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
11395         * modules/posix_spawnattr_setschedparam:
11396         * modules/posix_spawnattr_setschedpolicy:
11397         * modules/posix_spawnattr_setsigdefault:
11398         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
11399         * modules/pow, modules/powf, modules/printf-frexp:
11400         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
11401         * modules/progname, modules/propername, modules/pselect:
11402         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
11403         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
11404         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
11405         * modules/read, modules/readdir, modules/readlink:
11406         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
11407         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
11408         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
11409         * modules/relocatable-script, modules/remainder:
11410         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
11411         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
11412         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
11413         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
11414         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
11415         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
11416         * modules/setlocale, modules/sh-quote, modules/shutdown:
11417         * modules/signal, modules/signbit, modules/sigpipe:
11418         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
11419         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
11420         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
11421         * modules/snippet/link-warning, modules/snippet/unused-parameter:
11422         * modules/snprintf, modules/snprintf-posix, modules/spawn:
11423         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
11424         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
11425         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
11426         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
11427         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
11428         * modules/streq, modules/strerror_r-posix, modules/striconv:
11429         * modules/striconveh, modules/striconveha, modules/strncat:
11430         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
11431         * modules/sublist, modules/sys_resource, modules/sys_utsname:
11432         * modules/sys_wait, modules/system-posix, modules/system-quote:
11433         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
11434         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
11435         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
11436         * modules/truncf, modules/truncf-ieee, modules/truncl:
11437         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
11438         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
11439         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
11440         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
11441         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
11442         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
11443         * modules/wait-process, modules/waitpid, modules/wcpcpy:
11444         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
11445         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
11446         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
11447         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
11448         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
11449         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
11450         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
11451         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
11452         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
11453         * modules/write, modules/xconcat-filename, modules/xlist:
11454         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
11455         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
11456         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
11457         * modules/y0, modules/y1, modules/yn:
11458         Remove Bruno Haible as maintainer; if he's the sole maintainer,
11459         change the maintainer to 'all'.  Let's hope someone volunteers.
11461 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
11463         mktime: merge #if/#ifdef usage from glibc
11464         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
11465         as that works with both Glibc's and Gnulib's style.
11466         See thread starting at Siddhesh Poyarekar's bug report at:
11467         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
11469 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
11471         git-version-gen: improve option descriptions
11472         * build-aux/git-version-gen: Mention that --prefix and --fallback
11473         have a mandatory argument.
11475 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11477         regex: fix memory leak in compiler
11478         Fix by Andreas Schwab in:
11479         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
11480         * lib/regcomp.c (parse_expression): Deallocate partially
11481         constructed tree before returning error.
11483         regex: merge patch from libc
11484         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
11485         Combine __USE_BSD and __USE_SVID into __USE_MISC.
11486         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
11488 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
11490         acl: port to gcc -Wredundant-decls
11491         From a request by Dmitry Antipov in:
11492         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
11493         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
11494         "#ifndef _GL_ACL_H".
11496 2014-06-11  Bruce Korb  <bkorb@gnu.org>
11497         Jim Meyering  <meyering@fb.com>
11499         parse-duration: eliminate 68-year duration limit
11500         * lib/parse-duration.c: Include "intprops.h".
11501         (TIME_MAX): Rename to MAX_DURATION and define to
11502         TYPE_MAXIMUM(time_t).
11503         * modules/parse-duration (Depends-on): Add intprops.
11504         Reported by Jonas 'Sortie' Termansen.
11506 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11508         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
11509         * modules/pthread (Depends-on): Add 'extensions', as it defines
11510         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
11511         (configure.ac-early): New section.
11512         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
11513         it is no longer needed.
11515 2014-06-14  Pádraig Brady  <P@draigBrady.com>
11517         pthread: define thread-safe macros on some platforms
11518         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
11519         for thread-safe operation on some platforms.
11521 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11523         regex: don't be multithreaded if USE_UNLOCKED_IO.
11524         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
11525         * lib/regex_internal.h: Do not use multithreaded version if
11526         USE_UNLOCKED_IO is defined.  This is a hack, but it works
11527         around a porting bug with coreutils 8.22 on AIX 7.1.
11529 2014-06-11  Daiki Ueno  <ueno@gnu.org>
11531         gettext: update macros to version 0.19
11532         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
11533         depend on gl_EXTERN_INLINE and drop support for older Bison
11534         versions.
11536 2014-06-10  Pádraig Brady  <P@draigBrady.com>
11538         select,poll: fix console handle check on windows 8
11539         lib/poll.c (IsConsoleHandle): Change from testing the lower
11540         2 bits of the handle to the more expensive but accurate syscall.
11541         lib/select.c: Likewise.
11543 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
11545         select: fix waiting on anonymous pipes on MS-Windows
11546         * lib/select.c (rpl_select): Fall back to polling when select()
11547         indicates there is nothing to check, while due to the timeout not
11548         expiring, activity is indicated on one of the handles.
11549         Also clear the TIMEOUT argument if the timer does expire.
11551 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
11553         times: fix to return non constant value on MS-Windows
11554         * lib/times.c (times): Don't use the process creation time,
11555         rather clock() which on windows returns the number of
11556         clock ticks since the process started.
11558 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
11560         isatty: fix to work on windows 8
11561         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
11562         2 bits of the handle to the more expensive but accurate syscall.
11564 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11566         maint: fix typo in fdl.texi
11567         * doc/fdl.texi: Fix typo (missing '@').
11568         Somehow this was in fdl.texi but not fdl-1.3.texi.
11570 2014-06-06  Ben Walton  <bdwalton@gmail.com>
11572         mountlist: avoid hasmntopt const type warning on solaris
11573         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
11574         with char * instead of const char *.  Passing the constant string
11575         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
11576         to avoid the warning.
11578 2014-06-04  Eric Blake  <eblake@redhat.com>
11580         maintainer-makefile: delete obsolete code
11581         * top/maint.mk (build_aux): Drop old code, as threatened.
11583         maintainer-makefile: avoid spurious error messages
11584         * top/maint.mk (syntax-check): Guard definition and use of
11585         $(shell) by whether Makefile is present.
11587 2014-06-03  Ben Walton  <bdwalton@gmail.com>
11589         rename: avoid unused-but-set-variable compiler warning
11590         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
11591         it is possible that dst_exists may be set but not used.  Mark it with
11592         the unused attribute to avoid compiler warnings.
11594 2014-06-02  Ben Walton  <bdwalton@gmail.com>
11596         rename: mark a label as potentially unused
11597         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
11598         by marking the out label as potentially unused.
11599         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
11601 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
11603         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
11604         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
11606 2014-06-02  Ben Walton  <bdwalton@gmail.com>
11608         acl: apply pure attribute to two functions
11609         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
11610         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
11612 2014-06-01  Pádraig Brady  <P@draigBrady.com>
11614         gnulib-common.m4: add _GL_UNUSED_LABEL
11615         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
11616         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
11618 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11620         dup2, fcntl, fcntl-h: port to AIX 7.1
11621         This fixes some porting problems discovered when testing the latest
11622         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
11623         in grep but it could be important for other applications.
11624         * doc/posix-functions/dup2.texi:
11625         * doc/posix-functions/fcntl.texi:
11626         * doc/posix-headers/fcntl.texi:
11627         Document AIX bugs.
11628         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
11629         Define to 0 if outside 'int' range.
11630         * m4/dup2.m4 (gl_FUNC_DUP2):
11631         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11632         Check for getdtablesize.  If it's available, test a value just
11633         outside its range instead of testing 1000000.  When cross-compiling,
11634         guess that AIX will fail this improved test.
11636 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11638         printf, config.rpath: Port to FreeBSD 10.
11639         Problem reported by Tijl Coosemans in:
11640         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
11641         * build-aux/config.rpath (hardcode_libdir_flag_spec)
11642         (hardcode_direct): Simplify FreeBSD configuration.
11643         (library_names_spec): Don't mishandle FreeBSD 10+.
11644         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
11645         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
11646         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
11647         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
11648         Don't mishandle FreeBSD 10+ when cross-compiling.
11650         ftoastr: work around compiler bug in IBM xlc 12.1
11651         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
11652         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
11653         around a compiler bug in IBM xlc 12.1.0.0: it complains
11654         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
11655         _GL_FLT_PREC_BOUND.'
11657 2014-05-30  Kieran Colford  <colfordk@gmail.com>
11659         valgrind-tests: fixed misleading help message
11660         * m4/valgrind-tests.m4: The help message generated by configure
11661         implied that valgrind was disabled by default, which it wasn't.
11662         Adjusted the help message using s/enable/disable/ to clarify.
11664 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
11666         isfinite, isinf, isnan tests: fix for little-endian PowerPC
11667         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
11668         first double of a PowerPC "double double" pair.
11669         * tests/test-isinf.c (test_isinfl): Likewise.
11670         * tests/test-isnan.c (test_long_double): Likewise.
11671         * tests/test-isnanl.h (main): Likewise.
11672         * tests/test-signbit.c (test_signbitl): Likewise.
11674 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11676         exclude-tests: port to AIX 7.1
11677         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
11678         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
11679         the regex code uses locks.
11681 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
11683         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
11684         Without this fix, Emacs would sometimes call sigprocmask instead
11685         of pthread_sigmask, which is a no-no in multithreaded applications.
11686         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
11687         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11688         Suppress check for pthread_sigmask working without -lpthread if
11689         the application always links with -lpthread.  Do not link with
11690         $LIBMULTITHREAD if gl_THREADLIB is not defined.
11691         * m4/timer_time.m4 (gl_TIMER_TIME):
11692         Require gl_THREADLIB only if it is defined.  Do not append
11693         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
11695 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
11697         gnulib-tool: wget translations using --no-verbose rather than --quiet
11698         This allows the user to see error messages if any (--quiet hides them)
11699         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
11701 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
11703         gnulib-tool: adjust translation wget to avoid a https redirection
11704         Context: http://translationproject.org/latest/gnulib redirects to
11705            https://translationproject.org/latest/gnulib/
11706         Rationale: if the user falls back to wget, she doesn't have rsync and
11707         is probably in a minimal build environment, where packages such as
11708         'ca-certificates' are missing as well, resulting in a failed (and
11709         difficult to detect since ignored) translation initial fetch.
11710         Consequently let's avoid https if possible, and add the missing
11711         trailing slash.  This also avoids an unnecessary 302 redirection.
11712         * gnulib-tool: Add trailing slash to gnulib URL.
11714 2014-05-22  Pádraig Brady  <P@draigBrady.com>
11716         getlogin_r-tests: check return value rather than errno
11717         * tests/test-getlogin_r.c (main): As per POSIX we should be
11718         verifying the return value from getlogin_r() rather than errno.
11720 2014-05-22  Pádraig Brady  <P@draigBrady.com>
11722         getlogin_r-tests: fix various issues in recent change
11723         * tests/test-getlogin_r.c: Include required headers that were
11724         missed in recent commit eec20b4e.
11725         Also consistently check the errno rather than the return value from
11726         getlogin_r as POSIX only specifies that non zero is returned on error.
11727         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
11729 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11731         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
11732         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
11733         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
11734         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
11735         * lib/spawn-pipe.c:
11736         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
11737         and then 'int open64(const char *, int, ...);', which means the
11738         declaration for 'open' gets lost if we later '#undef open'.
11739         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
11740         where the compilation reported the non-fatal error "In function
11741         'openat_proc_name' ... warning: implicit declaration of function
11742         'open'".  In this case the error is relatively harmless, but in
11743         other cases it might not be so minor.
11745 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11747         xalloc: don't potentially generate invalid code for xmemdup calls
11748         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
11749         this function can initialize the newly-allocated storage with new
11750         pointers, which means this function is not malloc-like.  See:
11751         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
11753 2014-05-19  Pádraig Brady  <P@draigBrady.com>
11755         getlogin_r-tests: avoid false failure under sudo/ssh etc.
11756         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
11757         changes from commit 97249cf29 to not depend on environment variables.
11759 2014-05-18  Pádraig Brady  <P@draigBrady.com>
11761         getlogin-tests: avoid false failure under cron
11762         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
11763         since that's not what's under test.  Centos 6 was seen to return
11764         EINVAL for ttyname() when run from cron.
11766 2014-05-16  Jim Meyering  <meyering@fb.com>
11768         mbrtowc.m4: fix a comment typo
11769         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
11770         emitted documentation string.
11772 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11774         mbrlen, mbrtowc: fix bug with empty input
11775         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
11776         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
11777         so this is mainly for documentation.
11778         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
11779         (gl_FUNC_MBRTOWC): Use it.
11780         * tests/test-mbrtowc.c (main): Test for the bug.
11782 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
11784         doc: document mbrtowc and mbrlen problem with empty input
11785         * doc/posix-functions/mbrlen.texi (mbrlen):
11786         * doc/posix-functions/mbrtowc.texi (mbrtowc):
11787         Document portability problem when the input string is empty.  See:
11788         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
11790         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
11791         Problem reported by Eli Zaretskii in:
11792         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
11793         * doc/posix-functions/execl.texi (execl):
11794         * doc/posix-functions/execle.texi (execle):
11795         * doc/posix-functions/execlp.texi (execlp):
11796         * doc/posix-functions/execv.texi (execv):
11797         * doc/posix-functions/execve.texi (execve):
11798         * doc/posix-functions/execvp.texi (execvp):
11799         Mention spawn+exit problem on non-Cygwin Windows platforms.
11801 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
11803         getlogin-tests: avoid false failure under sudo/ssh etc.
11804         * modules/getlogin-tests (configure.ac): Check for ttyname().
11805         * tests/test-getlogin.c (main): Don't depend on environment variables
11806         to correlate with getlogin(), since sudo and ssh etc. can tamper
11807         with the LOGNAME and USER env vars.  Instead lookup the name from
11808         the uid associated with the stdin tty.
11810 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11812         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
11813         These were found when building the latest grep snapshot on IRIX 6.5.
11814         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
11815         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
11816         never used later.
11817         * lib/quotearg.c (quoting_options_from_style):
11818         * lib/xstrtol.c (__xstrtol):
11819         Use enum instead of 0, to pacify IRIX 6.5 cc.
11821 2014-04-18  Pádraig Brady  <P@draigBrady.com>
11823         gitlog-to-changelog: revert inclusion of git-log-fix file
11824         * build-aux/git-log-fix: Delete dummy file.
11825         * modules/gitlog-to-changelog: Don't reference (overwrite)
11826         the project specific git-log-fix file.
11828 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
11830         maint.mk: Relax the copyright check to cater for non FSF projects
11831         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
11832         to not require the "Free" suffix after the copyright years.
11834 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
11836         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
11837         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
11838         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
11839         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
11840         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
11842 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
11844         exclude: port to strict C99
11845         Strict C does not allow converting a function pointer to void *
11846         and vice versa.  Pass a pointer to a function pointer instead.
11847         * lib/exclude.c (add_exclude_file):
11848         Pass the address of the function pointer.
11849         (call_addfn): And deference the address here, to match.
11851 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
11853         regex: do not depend on malloc-gnu
11854         * modules/regex (Depends-on): Remove malloc-gnu.
11855         It's no longer needed, because of the 2012-12-29 patch
11856         "regex: port to hosts where malloc (0) == NULL".
11857         Reported by Nathan Kennedy in:
11858         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
11860 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
11862         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
11863         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
11864         * doc/posix-functions/expl.texi: Mention the workaround.
11866 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11868         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
11869         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
11870         size to be zero even when the pointer is nonnull.  This
11871         accommodates the use case where P is malloc (0) and *PN is 0 on a
11872         host where malloc (0) yields nonnull.
11874 2014-04-09  Eric Blake  <eblake@redhat.com>
11876         fts: avoid unnecessary strlen calls
11877         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
11879 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11881         fts: avoid unnecessary strlen calls
11882         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
11883         when that can be faster than strlen.
11885 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11887         fts: avoid unnecessary strlen calls
11888         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
11889         (fts_build): Store the length of the dp->d_name entry in a local variable
11890         instead of calling strlen() several times via the above, removed macro.
11891         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
11892         run by ~4%, yet this reduces the execution time by about a third if run
11893         via "ltrace -c rm -rf some-dir".
11895 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11897         obstack: Remove ancient NeXTSTEP gcc support conditional
11898         This change will ease merging with glibc.  The "#if ... __NEXT__"
11899         causes a warning with -Wundef which glibc now enables by default.
11900         Problem reported by Will Newton in
11901         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
11902         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
11903         so go with that.
11904         * lib/obstack.h (__extension__):
11906 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11908         obstack: merge with glibc changes
11909         * lib/obstack.c, lib/obstack.h: Merge from glibc.
11910         This is mostly indenting and commentary changes.
11911         Instances of 'register' have been removed.
11913 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11915         strftime: wrap macros in "do {...} while(0)"
11916         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
11917         this macro in "do {...} while(0)" to prevent false use as a
11918         single statement, e.g., in an un-braced "{}" else-block.
11919         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
11920         (strftime_case_): Remove 'else' after 'goto' - which was the
11921         only non-fatal, un-braced use of one of the above macros.
11922         Spotted by coverity (NESTING_INDENT_MISMATCH).
11924 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11926         modechange: avoid memory leaks for invalid octal modes
11927         * lib/modechange.c (mode_compile): During the parsing of
11928         notations like +40, free the 'mc' buffer for invalid mode
11929         strings like +17777 (greater than the maximum octal mode),
11930         =18 (bad octal mode characters) or u=1 ('affected' with
11931         octal modes).
11932         Reproducer, e.g.:
11933             $ valgrind --leak-check=full chmod +17777 file
11934         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
11935         add notations +40, 00440, etc.".
11936         Spotted by coverity (RESOURCE_LEAK).
11938 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11940         gitlog-to-changelog: include a dummy git-log-fix file
11941         Problem reported by Nathan Stratton Treadway in:
11942         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
11943         * build-aux/git-log-fix: New file.
11945 2014-03-13  Jim Meyering  <meyering@fb.com>
11947         gitlog-to-changelog: also include the file, git-log-fix
11948         * modules/gitlog-to-changelog (Files): Add git-log-fix.
11949         Reported by Assaf Gordon.
11951 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
11953         regex: port to OS X 10.8.5 en_US.UTF-8 locale
11954         This fixes a bug when ignoring case and when comparing the
11955         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
11956         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
11957         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
11958         titlecase letter is neither lowercase nor uppercase, but
11959         uppercasing the titlecase letter (via towupper) yields the
11960         uppercase letter, so the two letters should match when ignoring case.
11961         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
11962         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
11963         Don't test whether a character is lowercase before uppercasing it.
11965 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
11967         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
11968         This is basically one of the options Bruno Haible proposed in:
11969         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
11970         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
11971         * lib/stdint.in.h: Use it.
11972         * modules/stdint (Depends-on): Add sys_types.
11974 2014-02-26  Pádraig Brady  <P@draigBrady.com>
11976         parse-datetime: fix crash or infloop in TZ="" parsing
11977         * lib/parse-datetime.y (parse_datetime): Break out of the
11978         TZ="" parsing loop once the second significant " is found.
11979         Also skip over any subsequent whitespace to be consistent
11980         with the non TZ= case.
11981         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
11983 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11985         savedir: new symbol for fast-read version
11986         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
11987         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
11988         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
11989         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
11991 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11993         unistd: port readlink to Mac OS X 10.3.9
11994         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
11995         around self-include problem in Mac OS X 10.3.9 when combined with
11996         readlink module.  Problem reported by Klaus Zietler in
11997         <http://bugs.gnu.org/16825>.
11999 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12001         diffseq: remove TOO_EXPENSIVE heuristic
12002         Problem with diffutils reported by Vincent Lefevre in
12003         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
12004         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
12005         Although appropriate for circa-1993 hardware, these days the heuristic
12006         seems to be more trouble than it's worth.
12007         * lib/diffseq.h: Modernize citations.
12008         (struct context): Remove member too_expensive.
12009         All uses changed.
12010         (struct partition): Remove members lo_minimal, hi_minimal.
12011         All uses changed.
12012         (diag, compareseq): Remove arg find_minimal.  All uses changed.
12013         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
12014         1993 to make 'diff' run faster (but not as well) on large inputs.
12015         These days, computers are fast enough that it's typically better
12016         to run slower but more accurately.
12017         * lib/fstrcmp.c: Remove duplicate comment.
12018         * lib/fstrcmp.c (strcmp_bounded):
12019         * lib/git-merge-changelog.c (compute_differences):
12020         Adjust to diffseq.h changes.
12021         * NEWS: Document the change.
12023         savedir: simplify by using stpcpy
12024         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
12025         (streamsavedir): Use stpcpy instead.
12026         * modules/savedir (Depends-on): Add stpcpy.
12028 2014-02-21  Pádraig Brady  <P@draigBrady.com>
12030         spawn: fix link error on uclibc
12031         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
12032         to incorporate -lrt if needed (on uclibc for example).
12033         * modules/posix_spawn: Reference the substituted LIB.
12035 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
12036         timer: fix uClibc detection of threading
12037         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
12038         enabled in uClibc.
12040 2014-02-21  Eric Blake  <eblake@redhat.com>
12042         maintainer-makefiles: provide AC_PROG_SED for older autoconf
12043         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
12045 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
12047         exclude: add support for posix regexps
12049         This commit adds support for POSIX extended regular expressions
12050         and fixes a long-standing memory leak (pattern buffer was never
12051         freed).  It also implements a new interface function to read
12052         exclude patterns from a FILE, which passes an additional parameter
12053         to its callback function, thereby allowing to preserve its state
12054         between invocations.
12056         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
12057         (pattern_buffer): New struct.
12058         (exclude): New member patbuf.
12059         (exclude_add_pattern_buffer): New function.
12060         (free_exclude_segment): Free regexps.
12061         (free_exclude): Free allocated pattern buffers.
12062         (exclude_patopts): New function.
12063         (file_pattern_matches): Use exclude_patopts.
12064         (add_exclude): support regexps.
12065         (add_exclude_fp): New function.
12066         (add_exclude_file): Rewrite using add_exclude_fp.
12067         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
12068         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
12069         (add_exclude_fp)
12070         (add_exclude_file): Rewrite using add_exclude_fp.
12071         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
12072         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
12073         (add_exclude_fp)
12074         (exclude_add_pattern_buffer): New prototypes.
12075         * modules/exclude: Depends on regex and filename.
12077 2014-02-20  Eric Blake  <eblake@redhat.com>
12079         maintainer-makefiles: use $(SED) for syntax check
12080         * modules/maintainer-makefile (configure.ac): Check for sane sed.
12081         * top/maint.mk: Change sed to $(SED).
12083 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
12084             Paul Eggert  <eggert@cs.ucla.edu>
12086         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
12087         Patch based on an idea by Dick Streefland in
12088         <https://savannah.gnu.org/patch/?7892>.
12089         * NEWS: Document this.
12090         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
12091         (direntry_t, comparison_function): New types.
12092         (direntry_cmp_name): New function.
12093         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
12094         (streamsavedir, savedir): New arg OPTION.
12095         (streamsavedir): Simplify memory allocation.
12096         (fdsavedir): Remove.
12097         * lib/savedir.h (enum savedir_option): New type.
12098         (streamsavedir, savedir): New arg OPTION.
12099         (fdsavedir): Remove.
12101 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
12103         file-type: add support for doors and other less-common file types
12104         Problem with S_ISDOOR reported by Rich Burridge.
12105         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
12106         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
12107         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
12109 2014-01-23  Eric Blake  <eblake@redhat.com>
12111         pthread: work around winpthread header pollution on mingw
12112         * lib/time.in.h: Move pthread workarounds...
12113         * lib/pthread.in.h: ...here.
12114         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
12115         detect macro pollution on mingw.
12116         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
12118 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
12120         qacl: check for fchmod
12121         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
12122         and qset-acl.c both use HAVE_FCHMOD.
12124 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12126         fdopen-tests: port to Tru64
12127         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
12128         descriptor that is not open, as POSIX doesn't specify the
12129         resulting behavior and the test does not work on Tru64.
12130         Problem reported by Steven M. Schweda in:
12131         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
12133         stdalign: port to HP-UX compilers
12134         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
12135         if __HP_cc or __HP_aCC are nonzero.
12137 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
12139         strtoimax: port to platforms lacking 'long long'
12140         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
12141         check whether strtoll is declared, which causes the C file to
12142         wrongly report an error.  Problem reported by Steven M. Schweda in:
12143         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
12144         * lib/strtoimax.c (strtoull):
12145         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
12146         (strtoll): Declare only if HAVE_LONG_LONG_INT.
12148 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
12150         relocatable-perl: fix texi syntax
12151         * doc/relocatable-maint.texi: Escape braces.
12153 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
12155         relocatable-perl: like relocatable-script, but for Perl scripts
12156         * build-aux/relocatable.pl.in: Add.
12157         * doc/relocatable-maint.texi: Add documentation.
12158         * modules/relocatable-perl: Add.
12160 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
12162         tests: fix export bug in previous patch
12163         Problem reported by Jim Meyering.
12164         * tests/init.sh (re_shell): New var, which is exported instead of
12165         re_shell_.
12167         tests: simplify porting to Solaris 10 /bin/sh
12168         Some test cases in 'grep' need a shell that groks '$(';
12169         export re_shell_ for their benefit.  Problem reported for 'grep'
12170         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
12171         * tests/init.sh (re_shell_): Export if it's used.
12173 2014-01-06  Eric Blake  <eblake@redhat.com>
12175         md5, sha1, sha256, sha512: support older autoconf
12176         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
12177         for autoconf < 2.63b.
12179         include_next: port to autoconf 2.63
12180         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
12182 2014-01-04  Jim Meyering  <meyering@fb.com>
12184         maint: add a gnulib-local rule to keep non-ascii out of .texi files
12185         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
12186         so that "make sc_maint" will ding anyone who puts non-ascii
12187         in any of gnulib's .texi files.
12189 2014-01-03  Jim Meyering  <meyering@fb.com>
12191         freadable, fwritable, fwriting: declare with the "pure" attribute
12192         * lib/freadable.h (freadable): Declare with the "pure" attribute.
12193         * lib/fwritable.h (fwritable): Likewise.
12194         * lib/fwriting.h (fwriting): Likewise.
12195         Suggested by Bruno Haible.
12197         maint.mk: adapt openat.h-include-without-use test
12198         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
12199         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
12200         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
12201         With this change, running "make sc_maint" in gnulib's top-level
12202         directory now passes for me.
12204 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12206         doc: use ASCII in .texi files where UTF-8 isn't needed
12207         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
12208         * doc/posix-functions/setkey.texi, doc/regex.texi:
12209         Use ASCII input, not UTF-8.
12211 2014-01-02  Jim Meyering  <meyering@fb.com>
12213         freading: declare with the "pure" attribute
12214         * lib/freading.h (freading): Declare with the "pure" attribute.
12216         manywarnings: remove -Wmudflap
12217         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
12218         it is no longer supported in gcc-4.9-to-be.
12220 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12222         relocatable-script: remove unused code
12223         Problem reported by Reuben Thomas in:
12224         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
12225         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
12227 2014-01-01  Jim Meyering  <meyering@fb.com>
12229         maint: fix public-submodule-commit to work with newer git
12230         * top/maint.mk (public-submodule-commit): Remove excess quoting.
12231         We were over-quoting the test arguments, and somewhere prior to
12232         version 1.8.5.2.229, git stopped removing those excess quotes,
12233         which made the test fail, since the unexpanded strings would
12234         always differ; using GIT_TRACE=1 confirmed that the git merge-base
12235         command wasn't even being run.
12237 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12239         doc: update main copyright year
12240         * doc/gnulib.texi: Update copyright date.
12242 2014-01-01  Eric Blake  <eblake@redhat.com>
12244         version-etc: new year
12245         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
12246         * all files: run 'make update-copyright'
12248 2013-12-24  Eric Blake  <eblake@redhat.com>
12250         passfd: give nicer error for recvfd at eof
12251         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
12252         * tests/test-passfd.c (main): Enhance test to cover this.
12254 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12256         gettimeofday: port recent C++ fix to Emacs
12257         Without this further patch, Emacs won't build due to
12258         the portcheck failing.  Also, this simplifies the patch a bit.
12259         * lib/time.in.h (localtime, gmtime): Don't replace unless
12260         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
12261         * lib/time.in.h (localtime, gmtime):
12262         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
12263         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12264         * modules/time (time.h):
12265         Don't worry about the possibility of localtime and gmtime
12266         being absent; they're present in all C libraries we know about.
12267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12268         Don't assume sys_time is present and has been initialized.
12269         Instead, use a hack that should work even if it hasn't been.
12270         Don't use a portcheck for gmtime or localtime; this supports
12271         the hack.
12272         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
12274 2013-12-17  John W. Eaton  <jwe@gnu.org>
12276         gettimeofday: fix C++ crosscompilation
12278         Never replace gmtime and localtime by macros when compiling with
12279         C++, this prevents <ctime> from being included.
12281         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
12282         define gmtime and localtime as preprocessor macros.  Instead
12283         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
12284         REPLACE_LOCALTIME substitutions.
12285         * lib/time.in.h: Declare gmtime and localtime when needed.
12286         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
12287         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
12288         * modules/time: Depend on gettimeofday, and substitute the above
12289         variables in time.h.
12291 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12293         qacl: port to Windows better
12294         See Eli Zaretskii in
12295         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
12296         * lib/file-has-acl.c (acl_access_nontrivial):
12297         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
12298         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
12300 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
12302         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
12303         * lib/gl_openssl.h: Cast void pointers to a specific type.
12305 2013-12-07  Pádraig Brady  <P@draigBrady.com>
12307         open-tests: fix build failure with -Werror=old-style-declaration
12308         * tests/test-open.h: Reorder the inline to avoid the issue.
12310 2013-12-07  Pádraig Brady  <P@draigBrady.com>
12312         md5, sha1, sha256, sha512: fix link error with partial libcrypto
12313         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
12314         init time, so that if early checks find crypto routines,
12315         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
12316         avoiding link failures.
12318 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12320         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
12321         This provides a new way to specify the default for
12322         gl_CRYPTO_CHECK, one that is reflected in the --help message.
12323         Emacs uses this, as well as the old way.
12324         This attempts to implement a suggestion by Pádraig Brady in
12325         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
12326         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
12327         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
12329         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
12330         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
12331         Add support for a new option, --with-openssl=auto, which causes
12332         the library to be used if available and silently ignored if not.
12333         Add support to allow configure.ac to specify its own
12334         default, by setting with_openssl_default before invoking gl_INIT.
12336 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
12338         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
12339         Problem reported by Daiki Ueno in:
12340         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
12341         * tests/test-open.h (__always_inline):
12342         New macro, if not already defined.
12343         (test_open): Use it.
12345 2013-12-04  Eric Blake  <eblake@redhat.com>
12347         include_next: minimize code duplication
12348         * modules/include_next (Depends-on): Add absolute-header.
12349         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
12350         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
12352 2013-12-04  Pádraig Brady  <P@draigBrady.com>
12354         getcwd: fix compile error in configure check
12355         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
12357 2013-12-04  Pádraig Brady  <P@draigBrady.com>
12359         regex: suppress core dumps from detection code
12360         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
12361         to suppress core dumps that may well occur on glibc systems.
12362         These core dumps might not be cleaned up automatically, or could
12363         trigger some system core dump handling logic.
12365 2013-12-03  Pádraig Brady  <P@draigBrady.com>
12367         md5, sha1, sha256, sha512: support mandating use of openssl
12368         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
12369         description, to list the now 3 separate options.  also don't
12370         mention the default=no, since this is implicit given the option
12371         is described as --with-openssl rather than --without-openssl.
12372         If projects change the default they're free to document that.
12373         with --with-openssl[=yes] we now error out when the specified
12374         hash algorithm is not available in libcrypto.
12376 2013-12-03  Ivailo  <xakepa10@gmail.com>
12378         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
12379         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
12380         -Wformat-nonliteral checks, as these edge cases are part of the test.
12382 2013-12-03  Eric Blake  <eblake@redhat.com>
12384         regex: avoid glibc deadlock during configure
12385         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
12386         glibc bug 15078 in turn triggers bug 16159.
12387         Reported by Michal Privoznik.
12389 2013-12-02  Pádraig Brady  <P@draigBrady.com>
12391         md5, sha1, sha256, sha512: use openssl routines if available.
12392         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
12393         routines will be used if available, requiring apps to link @LIB_CRYPTO@
12394         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
12395         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
12396         in the standard system location.
12397         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
12398         * m4/sha256.m4: Likewise with SHA256.
12399         * m4/sha512.m4: Likewise with SHA512.
12400         * m4/md5.m4: Likewise with MD5.
12401         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
12402         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
12403         * lib/sha256.h: Likewise with SHA256.
12404         * lib/sha512.h: Likewise with SHA512.
12405         * lib/md5.h: Likewise with MD5.
12406         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
12407         * lib/sha256.c: Likewise with SHA256.
12408         * lib/sha512.c: Likewise with SHA512.
12409         * lib/md5.c: Likewise with MD5.
12410         * modules/crypto/sha1 (Link:): Add the new optional lib.
12411         (Depends-on:): Add dependency on extern-inline.
12412         * modules/crypto/sha256: Likewise.
12413         * modules/crypto/sha512: Likewise.
12414         * modules/crypto/md5: Likewise.
12415         * modules/crypto/sha1-tests: Reference the lib here too.
12416         * modules/crypto/md5-tests: Likewise.
12417         * modules/crypto/gc-des-tests: Likewise.
12418         * modules/crypto/gc-hmac-md5-tests: Likewise.
12419         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12420         * modules/crypto/gc-hmac-sha256-tests: Likewise.
12421         * modules/crypto/gc-hmac-sha512-tests: Likewise.
12422         * modules/crypto/gc-md5-tests: Likewise.
12423         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12424         * modules/crypto/gc-sha1-tests: Likewise.
12425         * modules/crypto/gc-tests: Likewise.
12426         * modules/crypto/hmac-md5-tests: Likewise.
12427         * modules/crypto/hmac-sha1-tests: Likewise.
12428         * modules/crypto/hmac-sha256-tests: Likewise.
12429         * modules/crypto/hmac-sha512-tests: Likewise.
12431 2013-11-29  RV1971  <rv1971@web.de>
12433         base64: (trivial) fix compilation regression on some compilers
12434         * lib/base64.c: Don't return the void function,
12435         instead split to a separate return statement.
12437 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12439         ignore-value: revert previous code change
12440         * lib/ignore-value.h (ignore_value): Use __extension__ and
12441         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
12442         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
12443         Change the comment to try to explain this better.
12445 2013-11-27  Pádraig Brady  <P@draigBrady.com>
12447         selinux-h: improve stub types and add more stub functions
12449         * lib/se-selinux.in.h: Change security_context_t to a typedef
12450         rather than a define, as it's a pointer type and so is better
12451         as a typedef to avoid issues declaring multiple variables
12452         with the comma operator.  Also add stub for string_to_security_class().
12453         * lib/se-context.in.h: Add stub functions for
12454         context_{type,range,role,user}_get().
12456 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12458         ignore-value: prefer GCC version back through 2.0
12459         The code didn't match the comments, so I did a bit of software
12460         archaeology.  GCC 2.0 seems to support __extension__ and
12461         __typeof__, so fix both code and comments to use 2.0.
12462         * lib/ignore-value.h (ignore_value): Use __extension__ and
12463         __typeof__ for GCC 2.0 through 3.3, too.
12465 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
12467         pty: Activate the signature wrapper of forkpty.
12468         The intended preprocessor macro HAVE_FORKPTY is
12469         never defined, yet `lib/forkpty.c' depends on it.
12471         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
12472         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
12473         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
12475 2013-11-18  Jim Meyering  <meyering@fb.com>
12476         and Paul Eggert  <eggert@cs.ucla.edu>
12478         quotearg: don't attempt to store 1 << 31 into an "int"
12479         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
12480         gcc's new -fsanitize=undefined and running its tests triggered some
12481         new test failures due to undefined behavior, all with this diagnostic:
12482           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
12483             cannot be represented in type int
12484         Rather than shifting "1" left to form a mask, shift the bits right and
12485         simply use "1" as the mask.
12487 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12489         error: depend on stdio
12490         Problem reported by Nikos Mavrogiannopoulos in
12491         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
12492         * modules/error (Depends-on): Add stdio.
12494 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
12496         * doc/relocatable-maint.texi (Supporting Relocation): Improve
12497         wording.
12498         Reported by Reuben Thomas <rrt@sc3d.org>.
12500 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12502         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
12503         New function and macro, to work around _DARWIN_C_SOURCE problem.
12504         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
12506 2013-11-11  Pádraig Brady  <P@draigBrady.com>
12508         base64: provide a fast path for encoding well sized buffers
12509         Avoid conditionals in the base64 encoding loop,
12510         which was seen to give 60% better throughput.
12511         * lib/base64.c (base64_encode_fast): A new function to be called
12512         when we don't want to NUL terminate, and we have enough space
12513         in the output to encode the given input.
12514         (base64_encode): Call the _fast() version when appropriate.
12515         Also remove a redundant mask with 0x3F on the first encoded byte.
12517 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
12519         extern-inline: port better to OS X 10.9
12520         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
12521         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
12522         OS X 10.9, except for g++ where the bug is still present.
12523         See <http://trac.macports.org/ticket/41033>.
12525 2013-11-08  Eric Blake  <eblake@redhat.com>
12527         fpending: fix regression on DragonFly BSD
12528         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
12529         * lib/fpending.h (__fpending): Don't declare twice.
12530         Reported by GW in
12531         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
12533 2013-11-05  Jim Meyering  <meyering@fb.com>
12535         hash: relax license to LGPLv2+, for libguestfs
12536         * modules/hash (License): Change from GPL to LGPLv2+.
12538 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12540         intprops: port to Oracle Studio c99
12541         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
12542         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
12544 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12546         obstack: pacify HP C
12547         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
12548         warning "conversion from pointer to smaller integer" from HP
12549         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
12550         C89 or later nowadays, so cast to void instead of int.  Privately
12551         reported by H.Merijn Brand.  Also, change header to match glibc's,
12552         to make checking against glibc easier.
12554 2013-10-29  Jim Meyering  <meyering@fb.com>
12556         maint.mk: prefer gpgv2 over gpgv
12557         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
12558         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
12559         Reported by Gary Vaughan.
12561 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12563         isnan: port to VAX
12564         Reported by John Klos for NetBSD-5/VAX in
12565         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
12566         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
12567         (FUNC): Use it.
12569 2013-10-28  Jim Meyering  <meyering@fb.com>
12571         gnulib-tool: protect against CDPATH
12572         * gnulib-tool: Many "cd" built-in functions print a directory name
12573         to stdout when CDPATH is set, e.g.,
12574           $ bash -c 'CDPATH=/; cd tmp'
12575           /tmp
12576         Unset it, when possible.  Prompted by a comment from Bruce Korb.
12578         maint.mk: restore functionality removed by recent change...
12579         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
12580         the context of a shallow-cloned gnulib repository: "git describe"
12581         would fail in such a directory.  However, that change made it so
12582         the reported gnulib revision no longer includes the version number
12583         or a commit count, even when run from a full clone.
12584         * top/maint.mk (gnulib-version): Use the full "git describe"
12585         output when possible, e.g., the form above, rather than the
12586         abbreviated, no-tag, no-commit-count string, and fall back to
12587         using a 10-byte hash, rather than the default minimal-length
12588         hash prefix, since while the minimal-length one may be fine today,
12589         it is likely not to be unique for very long.
12591 2013-10-26  Jim Meyering  <meyering@fb.com>
12593         maint.mk: fix "release" target to build _version
12594         This fixes a bug in README-release whereby following the outlined
12595         steps, one would publish a tarball whose programs would report
12596         --version output not consistent with the package version number.
12597         This bug caused grep-2.15 to produce a grep program whose
12598         --version option made it print 2.14.56-1e3d rather than 2.15.
12599         * top/maint.mk (release): Making this target build "_version"
12600         ensures that the new version number is reflected in configure.
12602 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
12604         install-reloc: Support multi-binary installation.
12605         * build-aux/install-reloc: Support installing multiple programs in
12606         one invocation, as done by Automake starting with commit
12607         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
12608         Haible <bruno@clisp.org>, archived at
12609         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
12610         Reported by Sylvain <beuc@gnu.org>.
12612 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12614         selinux-h: Really build without selinux when library is missing.
12615         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
12616         continue without selinux, as already told in the warning message.
12618 2013-10-21  Jim Meyering  <meyering@fb.com>
12620         regex: also remove dependency on HAVE_WCSCOLL
12621         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
12623 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
12625         xfreopen: Fix typo. s/frepoen/freopen/
12626         * lib/xfreopen.c: Fix description.
12627         * modules/xfreopen: Likewise.
12629 2013-10-21  Jim Meyering  <meyering@fb.com>
12631         regex: don't depend on wcscoll
12632         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
12633         It is no longer used.
12635 2013-10-20  Jim Meyering  <meyering@fb.com>
12637         error: add the printf attribute to a static function
12638         * lib/error.c (error_tail): Add the printf attribute, to placate
12639         gcc's -Werror=suggest-attribute=format option.
12641 2013-09-30  Jim Meyering  <meyering@fb.com>
12643         fpending, obstack, strerror-override: use pure+const function attrs
12644         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
12645         * lib/obstack.c (_obstack_allocated_p): Likewise.
12646         * lib/obstack.h (_obstack_memory_used): Likewise.
12647         (_obstack_memory_used): Likewise.
12648         * lib/strerror-override.h (strerror_override): Declare with
12649         the "const" attribute.
12651 2013-10-18  Eric Blake  <eblake@redhat.com>
12653         extern-inline: make safe for -Wundef usage
12654         Reported by Vladimir 'phcoder' Serbinenko in
12655         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
12656         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
12658 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12660         mkfifo-tests, etc.: allow HP-UX 11.11 bug
12661         Problem reported by Daniel Richard G. in
12662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
12663         * doc/posix-functions/mkfifo.texi (mkfifo):
12664         * doc/posix-functions/mkfifoat.texi (mkfifoat):
12665         * doc/posix-functions/mknod.texi (mknod):
12666         * doc/posix-functions/mknodat.texi (mknodat):
12667         Document the HP-UX 11.11 bug.
12668         * tests/test-mkfifo.h (test_mkfifo):
12669         Allow the HP-UX 11.11 bug.
12671 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12673         acl: allow cross-compilation to Gentoo
12674         Problem reported by Gabriel Marcano in
12675         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
12676         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
12677         test only whether it links.
12679 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12681         mgetgroups: remove dependency on realloc-gnu
12682         The dependency violates the comment in realloc-gnu, which
12683         says that tests can't depend on realloc-gnu; some tests depend
12684         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
12685         Problem reported by Daniel Richard G. in
12686         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
12687         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
12688         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
12689         not realloc-gnu.
12691 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12693         regex-tests: port to HP-UX 11.11
12694         Problem reported by Daniel Richard G. in
12695         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
12696         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
12698 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12700         verify: document some 'assume' pitfalls
12701         * doc/verify.texi (Compile-time Assertions):
12702         Mention that 'assume (E)' can sometimes slow things down.
12703         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
12705 2013-10-10  Eric Blake  <eblake@redhat.com>
12707         strtoumax: fix typo in previous commit.
12708         * modules/strtoumax (Depends-on): Fix typo.
12709         * modules/strtoimax (Depends-on): Likewise.
12711 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12713         strtoumax: port to Solaris 8
12714         This problem was introduced in the recent HP-UX patch.
12715         Reported by Tom G. Christensen in
12716         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
12717         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
12718         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
12720 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12722         strtoimax, strtoumax: port to HP-UX 11.11
12723         Problem reported by Daniel Richard G. in
12724         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
12725         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
12726         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
12727         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
12728         REPLACE_STRTOUMAX.
12729         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
12730         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
12731         Replace the function if defined as a macro but not as a function.
12732         * modules/inttypes-incomplete (inttypes.h): Substitute
12733         REPLACE_STRTOUMAX.
12734         * modules/strtoumax (configure.ac): Replace strtoumax if
12735         REPLACE_STRTOUMAX.
12737 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12739         strtoimax: port to HP-UX 11.11
12740         Problem reported by Daniel Richard G.
12741         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
12742         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
12743         they might clash with inttypes.h.
12745 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12747         New module 'count-trailing-zeros'.
12748         * MODULES.html.sh: Mention it.
12749         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
12750         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
12751         * modules/count-trailing-zeros-tests:
12752         * tests/test-count-trailing-zeros.c:
12753         New files.
12755         count-leading-zeros: port to MSC; support types wider than 64 bits
12756         The ideas behind the MSC port are stolen from Emacs.
12757         * lib/count-leading-zeros.h:
12758         Don't include verify.h: it's no longer needed, as types wider than
12759         64 bits are now supported.
12760         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
12761         performance with MSC.  All uses changed.  Do not assume that TYPE
12762         has at most 64 bits.
12763         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
12764         All uses changed.  Fold the subtraction from 31 into the table.
12766         count-one-bits: port to MSC; support types wider than 64 bits
12767         The ideas behind the MSC port are stolen from Emacs.
12768         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
12769         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
12770         Don't include verify.h: it's no longer needed, as types wider than
12771         64 bits are now supported.
12772         (COUNT_ONE_BITS_GENERIC): New macro.
12773         (popcount_supported) [_MSC_VER]: New inline function.
12774         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
12775         performance with MSC.  All uses changed.  Do not assume that TYPE
12776         has at most 64 bits.
12777         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
12779 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
12781         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
12782         * lib/mountlist.c (read_file_system_list): fix leak of directory
12783         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
12785 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12787         tests: improve diagnostic when an assertion fails
12788         * tests/macros.h (ASSERT): Report the assertion that failed.
12790 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12792         verify: new macro 'assume'
12793         This is taken from Emacs, and should be generally useful.
12794         * doc/verify.texi (assume): Document it.
12795         * lib/verify.h (assume): New macro.
12796         (__has_builtin): Expand to 0 if not defined.
12798 2013-09-26  Eric Blake  <eblake@redhat.com>
12800         dup2, dup3: work around another cygwin crasher
12801         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
12802         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
12803         * tests/test-dup2.c (main): Likewise.
12804         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
12805         * lib/dup3.c (dup3): Likewise.
12806         * doc/posix-functions/dup2.texi (dup2): Document it.
12807         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12809         getdtablesize: work around cygwin issue
12810         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
12811         * modules/getdtablesize (configure.ac): Build replacement.
12812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
12813         * modules/unistd (Makefile.am): Expose the witness.
12814         * lib/unistd.in.h (getdtablesize): Declare replacement.
12815         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
12816         * tests/test-getdtablesize.c (main): Test it.
12817         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
12819 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
12821         pmccabe2html: escaping of special characters
12822         Escape all '<', '>', and '&' in HTML output.
12823         * build-aux/pmccabe2html (html_fnc): Call gsub()
12824         instead of sub() to capture all '<', '>', and '&'.
12825         Neither of '<' and '>' is special in a regexp,
12826         so first arguments to gsub() are corrected. Also,
12827         in replacement strings, ampersand must be escaped.
12828         Finally, '&' must be handled first, then '<' and '>'.
12830 2013-09-24  Eric Blake  <eblake@redhat.com>
12832         manywarnings: enable nicer gcc warning messages
12833         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
12834         some -f options for optimal warnings.
12836 2013-09-21  Jim Meyering  <meyering@fb.com>
12838         timespec: use the new TIMESPEC_RESOLUTION in a few more places
12839         * lib/timespec-add.c (timespec_add): Also replace 999999999
12840         with TIMESPEC_RESOLUTION - 1.
12841         * lib/timespec-sub.c (timespec_sub): Likewise.
12843 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12845         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
12846         Problem reported by Dagobert Michelsen via Eric Blake in
12847         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
12848         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
12849         not AC_COMPILE_IFELSE.
12851 2013-09-23  Eric Blake  <eblake@redhat.com>
12853         configmake: support new --runstatedir option
12854         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
12855         even if autoconf was too old to provide the command line option.
12856         * modules/configmake (Makefile.am): Propagate it to .h file.
12858 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12860         ctype, string: depend on extern-inline
12861         This is needed to complete the recent OS X fixes.
12862         Also, fix related documentation as suggested by Eric Blake.
12863         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12864         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
12865         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
12866         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
12867         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
12868         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
12869         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
12870         * doc/posix-functions/toupper.texi:
12871         List the 'ctype' gnulib module.
12872         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
12873         * doc/posix-functions/strncpy.texi:
12874         List the 'string' gnulib module.
12875         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
12876         Add string.
12877         * modules/ctype, modules/string (Depends-on): Add extern-inline.
12879 2013-09-19  Pádraig Brady  <P@draigBrady.com>
12881         userspec: support optional parameters to parse_user_spec()
12882         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
12883         then avoid group processing and treat the full spec as a user.
12884         (parse_with_separator): Allow the USERNAME and GROUPNAME to
12885         be optional params (NULL), in which case they're ignored.
12887 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
12889         timespec: new function make_timespec, and new constants
12890         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
12891         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
12892         (make_timespec): New function.
12893         * lib/dtotimespec.c (dtotimespec):
12894         * lib/timespec-add.c (timespec_add):
12895         * lib/timespec-sub.c (timespec_sub):
12896         * lib/utimens.c (validate_timespec):
12897         * lib/utimensat.c (rpl_utimensat):
12898         Use these new constants and functions.
12900         stdio: OS X port of putc_unlocked + extern inline
12901         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
12902         * doc/posix-functions/putc_unlocked.texi:
12903         * doc/posix-functions/putchar_unlocked.texi:
12904         Document this portability problem.
12906         signal: OS X port of sigaddset etc. + extern inline
12907         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
12908         (sigismember): #undef on problematic Apple platforms.
12909         * doc/posix-functions/sigaddset.texi:
12910         * doc/posix-functions/sigdelset.texi:
12911         * doc/posix-functions/sigemptyset.texi:
12912         * doc/posix-functions/sigfillset.texi:
12913         * doc/posix-functions/sigismember.texi:
12914         Document this portability problem.
12916         extern-inline: do not always suppress extern inline on OS X
12917         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
12918         extern inline on Apple only if the particular compile-time
12919         configuration is known to have the problem.
12920         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
12921         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
12922         other Gnulib modules.
12924         extern-inline: document fixes for ctype and wctype macros
12925         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12926         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
12927         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
12928         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
12929         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
12930         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
12931         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
12932         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
12933         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
12934         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
12935         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
12936         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
12937         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
12938         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
12939         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
12940         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
12941         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
12942         * doc/posix-functions/strncpy.texi:
12943         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
12944         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
12945         Document that Gnulib fixes portability problems with these
12946         functions on OS X 10.8 and earlier when called from plain inline
12947         or extern inline functions.
12949 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
12951         fflush, freadahead, fseeko: Fix for Android
12952         Suggested by Bruno Haible in:
12953         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
12954         * lib/stdio-impl.h: Use local __sfileext definition.
12956 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
12958         pmccabe2html: Portability to other awk versions.
12959         The functions systime() and strftime() are available
12960         in Gawk only.  Properly close two HTML-tags 'style'
12961         and 'span'.
12962         * build-aux/pmccabe2html (BEGIN): Store timing
12963         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
12964         systime() in HTML_COMMENT.
12965         (html_header): Correctly close tag 'style'.
12966         (END): Replace strftime() by CHRONOS_TIME.  Close
12967         tag 'span' correctly, not as 'div'.
12969 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12971         getgroups: statement without effect
12972         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
12973         Change equality conditional to expected assignment.
12975 2013-09-09  Eric Blake  <eblake@redhat.com>
12977         glob: fix compilation
12978         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
12980 2013-09-07  Eric Blake  <eblake@redhat.com>
12982         glob: fix build for platforms without __THROW
12983         * lib/glob.in.h (__THROW): Add definition again.
12985 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
12987         regex-quote: fix buffer access out of bounds
12988         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
12989         * lib/regex-quote.c (regex_quote_spec_pcre):
12990         Fix typo that resulted in an out-of-bounds read.
12992 2013-09-04  Eric Blake  <eblake@redhat.com>
12994         glob: avoid -Wattribute warnings on glibc
12995         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
12996         __THROWNL, not __THROW, on static functions.
12997         * lib/glob.in.h (__THROW): Adjust...
12998         (__THROWNL): ...accordingly.
13000 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13002         headers: check that _GL_INLINE_HEADER_BEGIN is defined
13003         Suggested by Bruce Korb in:
13004         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
13005         * doc/extern-inline.texi (extern inline):
13006         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
13007         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
13008         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
13009         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
13010         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
13011         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
13012         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
13013         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
13014         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
13015         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
13016         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
13017         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
13018         * lib/xtime.h:
13019         Check that _GL_INLINE_HEADER_BEGIN is defined.
13021 2013-08-29  Pádraig Brady  <P@draigBrady.com>
13023         bootstrap: remove the --version requirement from ancillary tools
13024         * build-aux/bootstrap (check_exists): A new refactored function to
13025         determine if a command exists.
13026         (find_tool): Use the new function which does not require the
13027         --version option to be supported.
13028         (check_versions): Use the new function.
13030 2013-08-26  Simon Josefsson  <simon@josefsson.org>
13032         gc: support HMAC-SHA256 and HMAC-SHA512.
13033         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
13034         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
13035         functions.
13036         (gc_hmac_md5): Use symbolic constant.
13037         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
13038         (gc_hmac_sha256, gc_hmac_sha512): New functions.
13039         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
13040         * m4/sha256.m4: Protect against empty expansion.
13041         * m4/sha512.m4: Likewise.
13042         * lib/hmac-sha256.c: New file.
13043         * lib/hmac-sha512.c: Likewise.
13044         * m4/gc-hmac-sha256.m4: Likewise.
13045         * m4/gc-hmac-sha512.m4: Likewise.
13046         * m4/gc-sha256.m4: Likewise.
13047         * m4/gc-sha512.m4: Likewise.
13048         * modules/crypto/gc-hmac-sha256: Likewise.
13049         * modules/crypto/gc-hmac-sha256-tests: Likewise.
13050         * modules/crypto/gc-hmac-sha512: Likewise.
13051         * modules/crypto/gc-hmac-sha512-tests: Likewise.
13052         * modules/crypto/hmac-sha256: Likewise.
13053         * modules/crypto/hmac-sha256-tests: Likewise.
13054         * modules/crypto/hmac-sha512: Likewise.
13055         * modules/crypto/hmac-sha512-tests: Likewise.
13056         * tests/test-gc-hmac-sha256.c: Likewise.
13057         * tests/test-gc-hmac-sha512.c: Likewise
13058         * tests/test-hmac-sha256.c: Likewise.
13059         * tests/test-hmac-sha512.c: Likewise
13061 2013-08-24  Daiki Ueno  <ueno@gnu.org>
13063         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
13064         of AC_CHECK_DECLS.
13066 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13068         selinux-at: omit unnecessary include
13069         * lib/selinux-at.c: Don't include dosname.h; not needed, since
13070         this source file doesn't use its macros, and subsidiary files that
13071         use the macros already include it.
13073 2013-08-21  Eric Blake  <eblake@redhat.com>
13075         d-ino: avoid false negative on symlink
13076         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
13077         Reported by Stephane Chazelas.
13079 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
13081         bootstrap: port to OpenBSD sed
13082         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
13083         does not interpret `-' as a file argument to mean stdin.
13085 2013-08-15  Eric Blake  <eblake@redhat.com>
13087         warnings: minor optimization
13088         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
13090         warnings: check -Wfoo rather than -Wno-foo
13091         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
13092         -Wno-, test if the compiler recognizes the positive form instead.
13094 2013-08-15  Karl Berry  <karl@gnu.org>
13096         * config/srclist-update: add option "doclicense" to placate
13097         pulling *.texi files from Emacs.  Write terse usage
13098         documentation at the top.
13100 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
13102         xvasprintf-tests: port to GCC with hardening flags
13103         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
13104         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
13105         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
13107 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13109         fpending: port to recent Cygwin change to stdio_ext.h
13110         Reported by LRN in
13111         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
13112         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
13113         just declare __fpending unless it's a macro.
13114         A duplicate decl shouldn't hurt.
13115         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
13116         call compiles and links, instead of separately checking for
13117         decl and lib function.
13118         * modules/fpending (configure-ac):
13119         Adjust to fpending.m4's renaming of shell variable.
13121 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13123         sys_time: port to OpenBSD
13124         * lib/sys_time.in.h: Simply delegate to the system's header
13125         in the BSDish cases as well.  Problem reported by Mike Miller in
13126         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
13127         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
13128         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
13129         wider than time_t.
13131 2013-08-09  Pádraig Brady  <P@draigBrady.com>
13133         bootstrap: support checksum utils having -c but not --status
13134         * build-aux/bootstrap: Only look for sha1sum if updating po files.
13135         Add sha1 to the list of supported checksum utils since it's now
13136         supported through adjustments below.
13137         (update_po_files): Remove the use of --status
13138         in a way that will suppress all error messages, but since this is
13139         only used to minimize updates, it shouldn't cause an issue.
13140         Exit early if there is a problem updating the po file checksums.
13141         (find_tool): Remove the check for --version support as this
13142         is optional as per commit 86186b17.  Don't even check for the
13143         presence of the command as if that is needed, it's supported
13144         through configuring prerequisites in bootstrap.conf.
13145         Prompt that when a tool isn't found, one can define an environment
13146         variable to add to the hardcoded search list.
13148 2013-08-05  Jim Meyering  <meyering@fb.com>
13150         regex: port to non-glibc/lock-using systems
13151         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
13152         system with GNULIB_LOCK would fail due to absence of the
13153         included "glthread/lock.h".  This would affect any package
13154         for which the "lock" module is used only by the regex module,
13155         and not explicitly used.
13156         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
13157         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
13158         Add a dependency on the "lock" module.
13160 2013-07-20  Daiki Ueno  <ueno@gnu.org>
13162         localecharset: make locale_charset thread-safe on Mac OS X
13163         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
13164         instead of MB_CUR_MAX.
13166 2013-07-20  Daiki Ueno  <ueno@gnu.org>
13168         gettext: update to version 0.18.3
13169         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
13170         require AC_PROG_SED to allow user to specify custom sed command when
13171         generating en@quot PO file.
13173 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
13175         bootstrap: use correct source when copying build-aux files
13176         * build-aux/bootstrap (gnulib_extra_files): This variable is
13177         relative to upstream gnulib layout, not downstream.
13179 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
13181         tmpdir: fix bug in VMS port
13182         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
13183         See Steven M. Schweda in
13184         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
13186 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13188         tmpdir: port to VMS, to // != /, and to long dirs
13189         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
13190         __secure_getenv, so that we're more like the glibc version.
13191         All uses changed.
13192         (path_search): Don't put slash after directory if __VMS.
13193         Problem reported by Steven M. Schweda in
13194         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
13195         Simplify code to add slash; no need for a loop.
13196         Do not remove trailing slash from "//".
13197         Do not assume dlen <= INT_MAX.
13199 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13201         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
13202         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
13203         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
13204         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
13206         accept4, dup3, pipe2: port to Cygwin
13207         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
13208         * lib/accept4.c (accept4) [O_BINARY]:
13209         * lib/dup3.c (dup3) [O_BINARY]:
13210         * lib/pipe2.c (pipe2) [O_BINARY]:
13211         Use set_binary_mode, not setmode.
13212         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
13213         * modules/binary-io (Depends-on): Remove module indicator.
13214         These last two bits undo the previous change to pipe2 and binary-io.
13216 2013-07-09  Pádraig Brady  <P@draigBrady.com>
13218         mountlist: add support for deallocating returned list entries
13219         * lib/mountlist.c (free_mount_entry): A new exported function
13220         to deallocate a mount list entry.
13221         (read_file_system_list): Refactor to use the new deallocation function.
13222         Suggested by Anton Ovchinnikov.
13224 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13226         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
13227         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
13228         * lib/stdalign.in.h (_Alignas, _Alignof):
13229         Port to FreeBSD 9.1, and to C11 and C++11.
13230         (_Alignas): Also support ICC.
13231         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
13232         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
13234 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13236         fnmatch: don't goto over declaration
13237         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
13238         undefined behavior for goto over a declaration.
13239         Problem reported by Charlie Brown in
13240         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
13242         pipe2: decouple from binary-io a bit
13243         This is for Emacs, which needs pipe2 but not binary-io.
13244         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
13245         * modules/binary-io (Depends-on): Add module indicator.
13247 2013-07-03  Eric Blake  <eblake@redhat.com>
13249         mgetgroups: relax license to LGPLv2+
13250         * modules/getugroups (License): Change from GPLv3+.
13251         * modules/mgetgroups (License): Likewise.
13252         * modules/getgroups (License): Change from LGPLv3+.
13254         xalloc-oversized: relax license to LGPLv2+
13255         * modules/xalloc-oversized (License): Change from GPLv3+.
13257         nproc: relax license to LGPLv2+
13258         * modules/nproc (License): Change from LGPLv3+.
13260         bootstrap: honor --no-git
13261         * build-aux/bootstrap: Don't even try to use git when user is
13262         pointing to a static checkout.
13264 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13266         ignore-value: port to gcc -pedantic
13267         * lib/ignore-value.h (ignore_value):
13268         Port to gcc -pedantic, by using __extension__.
13269         Reindent as per usual gnulib style nowadays.
13270         Simplify GCC version check.
13272 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13274         extern-inline: port to gcc -std=c89
13275         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
13276         Do not use __gnu_inline__ if pedantic and pre-C99.
13278 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13280         doc: document extern-inline
13281         * doc/extern-inline.texi: New file.
13282         * doc/gnulib.texi (alloca-opt): Include it.
13283         * m4/extern-inline.m4: Move some comments to documentation,
13284         and others closer to what they describe.
13286         doc: chatter less
13287         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
13288         (updated-stamp): Use it.  This causes 'make' to output just
13289         one file name rather than zillions.
13291         fflush, fseeko: port to musl cross-compiles
13292         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
13293         on some implementation that (1) is not known to be buggy,
13294         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
13295         cross-compiled to so we can't easily check for lack of
13296         conformance.  This is for cross-compiling to musl.
13297         Reported by Rich Felker in
13298         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
13299         * m4/fclose.m4 (gl_FUNC_FCLOSE):
13300         * m4/fflush.m4 (gl_FUNC_FFLUSH):
13301         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
13302         Adjust to above change.
13303         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
13304         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
13305         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
13306         known not to work, or unknown.
13308 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13310         msvc-inval: port to mingw-w64
13311         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
13312         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
13313         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
13315 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13317         getcwd-lgpl: port to Tru64
13318         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
13319         Problem reported by Steven M. Schweda in
13320         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
13322         tests: port large-fd POSIX spawn tests to OS X
13323         Problem reported by Daiki Ueno in
13324         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
13325         * tests/test-posix_spawn_file_actions_addclose.c:
13326         * tests/test-posix_spawn_file_actions_adddup2.c:
13327         * tests/test-posix_spawn_file_actions_addopen.c:
13328         Include <limits.h>, for OPEN_MAX, if available.
13329         (big_fd): New static function.
13330         (main): Use it.
13332 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
13334         tests/nap.h: use an adaptive delay to avoid ctime update issues
13335         The recent change in nap.h (5191133e) decreased the probability of lost
13336         races to about a third, however such problems could still be observed
13337         in virtual machines and openSUSE's OBS.
13338         Before, nap() detected the needed time once empirically and then used
13339         that delay (together with a small correction multiplier) in further
13340         calls.  This problem has been reported and discussed several times,
13341         including guesses about possible kernel issues:
13342         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
13343         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
13344         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
13345         http://bugs.gnu.org/12820
13346         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
13347         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
13348         Now, nap() avoids the race alltogether by verifying on a reference
13349         file whether a timestamp difference has happened.
13350         * tests/nap.h (nap_fd): Define file descriptor variable for the
13351         witness file.
13352         (nap_works): Change return value to bool.  Change passing
13353         the old file's status by value instead of by reference as this function
13354         does no longer update that timestamp; rename the function argument from
13355         st to old_st.  Remove the local variables cdiff and mdiff because that
13356         function now returns true/false instead of the precise delay.
13357         (guess_delay): Remove function.
13358         (clear_tmp_file): Add new function to close and unlink the witness file.
13359         (nap): Instead of re-using the delay which has been calculated during
13360         the first call, avoid the race by actually verifying that a timestamp
13361         difference can be observed on the current file system.  Use an adaptive
13362         approach for the delay to minimize execution time.  Assert that the
13363         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
13364         = 2^31 - 1 = 2.1s.
13365         Use atexit to call clear_tmp_file when the process terminates.
13367 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13369         sig2str: port to C++
13370         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
13371         Reported by Daniel J Sebald in
13372         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
13374 2013-05-30  Eric Blake  <eblake@redhat.com>
13376         docs: mention cygwin shortcoming in <sys/un.h>
13377         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
13379         vasnprintf: silence mingw compiler warning
13380         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
13382 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13384         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
13385         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
13386         This fixes a porting bug I recently reintroduced in regex, and
13387         some other instances that I discovered while testing the fix.
13388         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
13389         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
13390         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
13391         with an empty argument if this is a pedantic pre-C99 GCC.
13392         * lib/verify.h: Do not use _Static_assert if this is a pedantic
13393         pre-C11 GCC.
13395         regex: adapt to locking regime instead of depending on pthread
13396         Instead of depending on pthread, adapt to whatever thread
13397         modules are in use.  Problem reported by Ludovic Courtès in
13398         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
13399         and by Mats Erik Andersson in
13400         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
13401         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
13402         Support either the 'lock' module, or the 'pthread' module, or
13403         no module.
13404         (lock_lock, lock_unlock): New macros.
13405         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
13406         * modules/lock, modules/pthread (configure.ac): Add module indicator.
13407         * modules/regex (Depends-on): Remove pthread.
13409 2013-05-22  Eric Blake  <eblake@redhat.com>
13411         getgroups: document portability issues
13412         * doc/glibc-functions/initgroups.texi (initgroups): Mention
13413         multithread safety.
13414         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
13415         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
13416         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
13417         getugroups.
13418         * doc/posix-functions/getgroups.texi (getgroups): Mention
13419         multithread safety and mgetgroups.
13421 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13423         test-lchown, test-chown: also skip test if chown fails with EPERM
13424         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
13425         skip this test, to handle FAT file systems.
13426         * tests/test-chown.h (test_chown): Likewise.
13428 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13430         regex: fix dfa race in multithreaded uses
13431         Problem reported by Ludovic Courtès in
13432         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
13433         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
13434         New macros.  All uses of __libc_lock_define, __libc_lock_init
13435         changed to use the first two of these.
13436         (__libc_lock_lock, __libc_lock_unlock): New macros, for
13437         non-glibc platforms.
13438         (struct re_dfa_t): Define the lock unconditionally.
13439         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
13440         '#ifdef _LIBC"s.
13441         * modules/regex (Depends-on): Add pthread, if we use the
13442         included regex.
13444         * lib/regcomp.c: Do actions that are not needed for glibc,
13445         but may be needed elsewhere.
13446         (regfree, re_compile_internal): Destroy the lock.
13447         (re_compile_internal): Check for lock-initialization failure.
13449         malloca: port to compilers that reject size-zero arrays
13450         This fixes a bug introduced in my previous patch.
13451         * lib/malloca.c (struct preliminary_header): Use an int
13452         rather than a character array of size int; that's simpler.
13453         (struct header): Remove, replacing with ...
13454         (union header): New type.  This avoids the need for declaring a
13455         character array of size zero, which is not allowed on some platforms.
13456         All uses changed.
13458 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13460         parse-datetime, tests: don't use "string" + int
13461         Recent versions of 'clang' complain about C source code that
13462         uses expressions of the form '"string literal" + integer',
13463         I guess on the theory that it's confusing for readers who are
13464         used to C++.  On those grounds I suppose it's OK to make this
13465         minor style change.
13466         * lib/parse-datetime.y (parse_datetime):
13467         * tests/test-fchdir.c (main):
13468         * tests/test-snprintf-posix.h (test_function):
13469         * tests/test-snprintf.c (main):
13470         * tests/test-vasnprintf-posix.c (test_function):
13471         * tests/test-vasnprintf.c (test_function):
13472         * tests/test-vsnprintf.c (main):
13473         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
13474         Rewrite '"str" + E' to '&"str"[E]'.
13476 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13478         argmatch: port to C++
13479         * lib/argmatch.h [__cplusplus]: Add extern "C".
13481         argp: typo fix
13482         * lib/argp-help.c: Typo in comment.
13484 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13486         manywarnings: update for GCC 4.8.0
13487         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
13488         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
13489         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
13490         -Wmissing-noreturn, as they are duplicates of other warnings.
13491         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
13492         was documented to be flaky in earlier versions of GCC.
13494         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
13495         * tests/test-spawn.c (main):
13496         * tests/test-sys_socket.c (main):
13497         * tests/test-sys_wait.c (main):
13498         Don't have a switch value that isn't covered by a case.
13500         getaddrinfo-tests: port --enable-gcc-warnings to clang
13501         * tests/test-getaddrinfo.c (simple):
13502         Avoid casts from looser to stricter-aligned pointers.
13504         thread: port --enable-gcc-warnings to clang
13505         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
13506         Include <signal.h>, to pacify a warning about pthread_sigmask.
13508         stdio: use __REDIRECT for fwrite, fwrite_unlocked
13509         * lib/stdio.in.h (fwrite):
13510         When working around bug 11959, use __REDIRECT rather than '#define
13511         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
13512         fix the -Wunused-value issue with clang, and it works with GCC too.
13513         Problem with targeting reported by Eric Blake in
13514         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
13515         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
13516         debugging the fwrite issue.
13518         stdio: port --enable-gcc-warnings to clang
13519         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
13520         since the GCC workaround for fwrite does not pacify clang.
13522         sig2str: port --enable-gcc-warnings to clang
13523         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
13525         obstack: port --enable-gcc-warnings to clang
13526         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
13527         Avoid casts from looser to stricter-aligned pointers.
13529         memchr2: port --enable-gcc-warnings to clang
13530         * lib/memchr2.c (memchr2):
13531         Avoid casts from looser to stricter-aligned pointers.
13533         mbsstr: port --enable-gcc-warnings to clang
13534         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
13535         Avoid casts from looser to stricter-aligned pointers.
13537         malloca: port --enable-gcc-warnings to clang
13538         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
13539         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
13541         inttostr: port --enable-gcc-warnings to clang
13542         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
13544         warnings: port to clang
13545         Problem reported by Daniel P. Berrange via Eric Blake in
13546         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
13547         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
13548         (gl_WARN_ADD): Use it.
13550 2013-05-11  Jim Meyering  <meyering@fb.com>
13552         quotearg: do not read beyond end of buffer
13553         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
13554         end of an ARG for which no length was specified.  With an N-byte
13555         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
13556         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
13557         via coreutils' misc/sort-debug-keys.sh test and detected by running
13558         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
13559         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
13560         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
13561         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
13562         characters correctly."
13564 2013-05-11  Daiki Ueno  <ueno@gnu.org>
13566         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
13567         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
13568         compilation target is Mac OS X 10.6.
13569         Problem reported by parafin and Andoni Morales in
13570         <http://savannah.gnu.org/bugs/?37844> and
13571         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
13573 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13575         mkdir-p: remove assumptions about umask and mode
13576         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
13577         umask is 0, or that MODE is a subset of MODE_BITS.
13579 2013-05-10  Eric Blake  <eblake@redhat.com>
13581         maint.mk: catch more abuse of HAVE_DECL in syntax-check
13582         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
13584 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
13586         deps: require Automake >= 1.9.6 in generated Makefile fragments
13588         That is the same minimal version required in the DEPENDENCIES file.
13589         Moreover, the old code generated a requirement of Automake >= 1.5,
13590         and that is an insanely outdated version.
13592         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
13593         * tests/havelib/rpathlx/Makefile.am: Likewise.
13594         * tests/havelib/rpathly/Makefile.am: Likewise.
13595         * tests/havelib/rpathlyx/Makefile.am: Likewise.
13596         * tests/havelib/rpathlz/Makefile.am: Likewise.
13597         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
13598         * tests/havelib/rpathx/Makefile.am: Likewise.
13599         * tests/havelib/rpathy/Makefile.am: Likewise.
13600         * tests/havelib/rpathz/Makefile.am: Likewise.
13602 2013-05-08  Eric Blake  <eblake@redhat.com>
13604         bootstrap: AC_INIT may have more than four parameters
13605         * build-aux/bootstrap (extract_package_name): Correctly extract
13606         non-empty tarname field.  Avoid range in regex.
13607         Based on a report by Sami Kerola <kerolasa@iki.fi>.
13609 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13611         qacl: port to MS-Windows port of GNU Emacs
13612         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
13613         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
13614         port of GNU Emacs.  Problem reported by Eli Zaretskii in
13615         <http://bugs.gnu.org/14295#14>.
13617 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
13619         acl: include quote.h
13620         * lib/copy-acl.c: Include quote.h.
13621         * lib/set-acl.c: Likewise.
13623 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
13625         fchownat, renameat, unlinkat: update statat dependencies
13626         These modules use statat and lstatat, not fstatat; so depend on
13627         the statat module, which was split out recently from fstatat.
13628         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
13629         * modules/renameat: Likewise.  Also delete fstat.
13630         URL: http://bugs.gentoo.org/468790
13632 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
13634         Assume gnulib is checked out from Git, not CVS
13636         In fact, access to the gnulib repository through CVS has been
13637         disabled, or more precisely, got broken and was never restored; see:
13638         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
13640         Note that support for CVS is not removed completely and unthinkingly
13641         by this change: only support for CVS checkouts of gnulib itself is
13642         removed.  For example, the 'bootstrap' script still cater to .cvsingore
13643         files and CVS directories, for the benefit of those poor gnulib clients
13644         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
13646         * gnulib-tool: Simplify accordingly.
13647         * posix-modules: Likewise.
13648         * MODULES.html.sh: Likewise.
13649         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
13650         repository.
13651         * doc/gnulib-intro.texi: Likewise.
13652         * doc/gnulib-readme.texi: Likewise.
13653         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
13654         sample '.gitignore' file rather than a sample '.cvsignore'.
13655         * NEWS: Update.
13656         * m4/extensions.m4: While at it, remove a comment mistakenly referring
13657         to "CVS Autoconf" rather than "git Autoconf".
13659 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13661         utimensat-tests, etc.: try to fix some races
13662         Problem reported by Bernhard Voelker in
13663         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
13664         I don't know whether this patch fixes that race condition, but it
13665         fixes *some* race conditions, so it should be a win.
13666         * modules/chown-tests (Depends-on):
13667         * modules/fchownat-tests (Depends-on):
13668         * modules/fdutimensat-tests (Depends-on):
13669         * modules/futimens-tests (Depends-on):
13670         * modules/lchown-tests (Depends-on):
13671         * modules/stat-time-tests (Depends-on):
13672         * modules/utimens-tests (Depends-on):
13673         * modules/utimensat-tests (Depends-on):
13674         Depend on nanosleep, not usleep.
13675         * modules/chown-tests (test_chown_LDADD):
13676         * modules/lchown-tests (test_lchown_LDADD):
13677         * modules/stat-time-tests (test_stat_time_LDADD):
13678         New macro.
13679         * modules/fchownat-tests (test_fchownat_LDADD):
13680         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
13681         * modules/futimens-tests (test_futimens_LDADD):
13682         * modules/utimens-tests (test_utimens_LDADD):
13683         * modules/utimensat-tests (test_utimensat_LDADD):
13684         Add $(LIB_NANOSLEEP).
13685         * modules/stat-time-tests (Files): Add tests/nap.h.
13686         * tests/nap.h: Include <limits.h>, for INT_MAX.
13687         (lt_mtime): Remove.
13688         (diff_timespec): New function.
13689         (get_stat): Rename from get_mtime.  All callers changed.
13690         (nap_works): Determine the needed delay by inspecting the
13691         file system's timestamp jumps; this should be more reliable.
13692         Look at both mtime and ctime, and take the maximum of the two jumps.
13693         (nap_works, guess_delay):
13694         Return a nanosecond count, not a microsecond count.
13695         All callers changed.
13696         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
13697         failure.
13698         (nap): Multiply the guess by 1.125, to accommodate the case where
13699         the file system's clock is a bit slower than nanosleep's clock.
13700         * tests/test-stat-time.c (BASE): New macro.
13701         Include nap.h.
13702         (nap): Remove; nap.h now defines this.  This removes a duplicate
13703         implementation of 'nap'.
13705         utimens, utimensat: work around Solaris UTIME_OMIT bug
13706         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
13707         Linux kernel 2.6.32 does.  Work around it in the same way.
13708         * doc/posix-functions/futimens.texi (futimens):
13709         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
13710         * lib/utimens.c (fdutimens, lutimens):
13711         * lib/utimensat.c (rpl_utimensat): Work around the bug.
13713         gettext: now it's your responsibility to add -I$(top_builddir)/intl
13714         Formerly, it was your responsibility to do this for all Makefile.ams
13715         other than Gnulib's.  Now it's your responsibility to do it for
13716         Gnulib's Makefile.am, too.
13717         * NEWS: Document this.
13718         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
13720         acl: include errno.h to get errno
13721         Reported by Daiki Ueno in
13722         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
13723         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
13725 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13727         tests: don't assume getdtablesize () <= 10000000
13728         * modules/cloexec-tests:
13729         * modules/dup2-tests:
13730         * modules/dup3-tests:
13731         * modules/nonblocking-tests:
13732         * modules/posix_spawn_file_actions_addclose-tests:
13733         * modules/posix_spawn_file_actions_adddup2-tests:
13734         * modules/posix_spawn_file_actions_addopen-tests:
13735         * modules/unistd-safer-tests:
13736         Depend on the getdtablesize module.
13737         * tests/test-cloexec.c:
13738         * tests/test-dup-safer.c:
13739         * tests/test-dup2.c:
13740         * tests/test-dup3.c:
13741         * tests/test-fcntl.c:
13742         * tests/test-nonblocking.c:
13743         * tests/test-posix_spawn_file_actions_addclose.c:
13744         * tests/test-posix_spawn_file_actions_adddup2.c:
13745         * tests/test-posix_spawn_file_actions_addopen.c:
13746         Don't assume getdtablesize () <= 10000000.
13748 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
13750         extern-inline: work around bug in Sun c99
13751         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
13752         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
13754 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
13756         qacl: new module, broken out from the acl module
13757         This is for GNU Emacs, which wants the acl functions but does
13758         not want 'error' invoked when they fail.
13759         * lib/acl-internal.h: Do not include error.h, quote.h.
13760         (ENOSYS, ENOTSUP): Remove; no longer needed.
13761         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
13762         * lib/acl.h: Include <stdbool.h>.
13763         (acl_errno_valid): New function.
13764         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
13765         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
13766         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
13767         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
13768         (ACL_INTERNAL_INLINE): Remove; no longer needed.
13769         * lib/file-has-acl.c (file_has_acl):
13770         * lib/qcopy-acl.c (qcopy_acl):
13771         * lib/qset-acl.c (qset_acl):
13772         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
13773         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
13774         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
13775         lib/file-has-acl.c, m4/acl.m4 to qacl module.
13776         Add lib/set-acl.c.
13777         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
13778         Add qacl.
13779         (configure.ac): Move gl_FUNC_ACL to qacl module.
13780         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
13781         Rename set-mode-acl.c to set-acl.c.
13782         * lib/acl-errno-valid.c: New file.
13783         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
13784         copy_acl function remains in copy-acl.c.
13785         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
13786         (_): Remove; not needed.
13787         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
13788         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
13789         * modules/qacl: New file, moved from the old modules/acl.
13790         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
13791         Remove set-mode-acl.c, copy-acl.c.
13792         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
13794         alignof, intprops, malloca: port better to IBM's C compiler
13795         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
13796         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
13797         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
13799 2013-04-25  Daiki Ueno  <ueno@gnu.org>
13801         wctype-h: fix gettext link error on mingw
13802         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
13803         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
13804         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
13805         rpl_towupper and rpl_towupper.
13807 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
13809         regex-tests, regex: allow glibc re_search behavior
13810         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
13811         re_search input data to make the multi-character collating element
13812         in it clearly visible, and treat re_search return code 0 as valid.
13813         * m4/regex.m4 (gl_REGEX): Likewise.
13815 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13817         stdalign: doc fix
13818         * doc/posix-headers/stdalign.texi (stdalign.h):
13819         Gnulib doesn't support '_Alignof expr'.
13821 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13823         stdalign: port to stricter ISO C11
13824         ISO C11 says that _Alignof's operand must be a parenthesized type.
13825         Problem reported by Eli Zaretskii in
13826         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
13827         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
13828         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
13830 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13832         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
13833         Problem reported by Marco Atzeri in
13834         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
13835         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
13836         Simply delegate to the system <sys/select.h> in this case too.
13837         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
13838         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
13839         be needed on Solaris either.
13840         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
13841         Simply delegate to the system <sys/time.h> in this case.
13843 2013-03-19  Karl Berry  <karl@gnu.org>
13845         * build-aux/gnupload: check for erroneous (with gnupload) use of
13846         ftp-upload.gnu.org, tweak help.
13848 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13850         copy-file, rpmatch: fix problems found by cppcheck
13851         Reported by Arno Onken in
13852         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
13853         * lib/rpmatch.c (try): Fix memory leak.
13854         * lib/copy-file.c: Include "ignore-value.h".
13855         (qcopy_file_preserving): Ignore chown value.
13856         * modules/copy-file (Depends-on): Add ignore-value.
13858 2013-01-27  Jim Meyering  <jim@meyering.net>
13860         prefix-gnulib-mk: give better diagnostics
13861         * build-aux/prefix-gnulib-mk: Don't just "die".
13862         Give better diagnostics upon failure.
13864 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
13866         putenv: port to Solaris 10
13867         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
13868         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
13869         is not what is wanted here.
13870         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
13871         declaration, not for its existence.
13873 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
13875         mktime: fix configure typo
13876         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
13878 2013-03-12  Eric Blake  <eblake@redhat.com>
13880         regex-tests: skip UTF-8 test on mingw
13881         * modules/regex-tests (Depends-on): Add localcharset.
13882         * tests/test-regex.c (main): Use it to skip test on mingw.
13884 2013-03-11  Eric Blake  <eblake@redhat.com>
13886         tests: make it easier to bypass alarm time in debugger
13887         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
13888         * tests/test-memmem.c (main): Likewise.
13889         * tests/test-passfd.c (main): Likewise.
13890         * tests/test-ptsname.c (main): Likewise.
13891         * tests/test-ptsname_r.c (main): Likewise.
13892         * tests/test-strcasestr.c (main): Likewise.
13893         * tests/test-strstr.c (main): Likewise.
13895         regex: port to mingw's recent addition of undeclared alarm
13896         * doc/posix-functions/alarm.texi (alarm): Document that alarm
13897         exists but still doesn't work in newer mingw.
13898         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
13899         not existence.  Ensure SIGALRM is not trapped.
13900         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
13901         * m4/regex.m4 (gl_REGEX): Likewise.
13902         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
13903         * tests/test-regex.c (main): Use correct probe for alarm.
13905         putenv: avoid compilation warning on mingw
13906         * lib/putenv.c (_unsetenv): Protect variable declaration.
13907         (putenv): Fix indentation.
13909 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
13911         unistd: don't prevent Tru64 Unix from using gnulib strtod.
13912         * lib/unistd.in.h: be careful not to include un-needed system
13913         stdlib.h from here, because that prevents gnulib stdlib.h from
13914         defining rpl_strtod correctly.
13916 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
13918         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
13919         changesets, but for the 'precision 0' test.
13920         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13921         round-to-even, since POSIX says rounding is implementation-defined
13922         and OS X 10.8.2 rounds 1.51 to 1 here.
13924         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
13925         changeset.
13926         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13927         round-to-even, since POSIX says rounding is implementation-defined
13928         and OS X 10.8.2 rounds 1.5 to 1 here.
13930 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
13932         vasnprintf-posix-tests: allow rounding 1.5 to 1
13933         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
13934         round-to-even, since POSIX says rounding is implementation-defined
13935         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
13936         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
13938         bootstrap: port to FreeBSD
13939         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
13940         that treat '--' differently.  Reported by Mats Erik Andersson in
13941         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
13943 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
13945         regex: rename remaining __attribute calls to __attribute__.
13946         2012-02-25 changed definition of __attribute, but left some uses
13947         unchanged, preventing compilation of regex module on most non-gcc
13948         environments.
13949         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
13950         (lookup_collation_sequence_value, build_range_exp)
13951         (build_collating_symbol): Set attributes with newly renamed
13952         __attribute__ decorator.
13953         * lib/regex_internal.c (re_string_peek_byte_case)
13954         (re_node_set_compare, re_node_set_contains): Likewise.
13955         * lib/regexec.c (acquire_init_state_context): Likewise.
13957 2013-03-06  Bruno Haible  <bruno@clisp.org>
13959         execute: Revert last change, but use a different condition.
13960         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
13961         on Windows.
13963 2013-03-05  Eric Blake  <eblake@redhat.com>
13965         execute: drop dead code
13966         * lib/execute.c (nonintr_close, nonintr_open): Delete.
13968 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
13970         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
13971         * m4/non-recursive-gnulib-prefix-hack.m4
13972         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
13973         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
13974         <http://bugs.gnu.org/10305#237>.
13976 2013-03-04  Eric Blake  <eblake@redhat.com>
13978         test-getsockopt: avoid compiler warning
13979         * tests/test-getsockopt.c (includes): Ensure close is declared.
13981 2013-03-02  Bruno Haible  <bruno@clisp.org>
13983         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
13984         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
13986 2013-03-02  Bruno Haible  <bruno@clisp.org>
13988         gettext: Update to version 0.18.2.
13989         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
13990         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
13991                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
13993 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13995         regex: merge patches from libc
13997         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13998         * lib/regex_internal.h (__attribute__): Rename from __attribute.
13999         All uses changed.
14000         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
14001         (re_string_wchar_at, re_string_elem_size_at):
14002         Mark function as possibly unused.
14004         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
14005         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
14006         elements compare against the byte sequence of it, not its name.
14008 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14010         putenv: port better to native Windows
14011         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
14012         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
14013         (_unsetenv): Use _putenv if available.
14014         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
14015         a bit less likely to cause damage.
14016         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
14017         Fix the wrong value with SetEnvironmentVariable.
14018         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
14019         code better.
14021 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14023         regex: ignore old-style-definition warnings
14024         * lib/regex.c: Add pragma to ignore these warnings.
14025         Problem reported for GNU tar by Pavel Raiskup.
14027 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
14029         getcwd: support coreutils better
14030         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
14031         but this might not be correct in coreutils, which disables
14032         the raw decl checks.  Problem reported by Nagendra in
14033         <http://bugs.gnu.org/10305#192>.
14034         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
14035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14036         Test the getcwd function, not any macro, since getcwd.c wants the
14037         function.
14038         * m4/getcwd.m4 (gl_FUNC_GETCWD):
14039         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
14040         compile, as might happen if there's a macro but no function.
14042         strtod: support coreutils better
14043         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
14044         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
14045         disables the raw decl checks.  This assumes there is an underlying
14046         strtod, but that's a safe assumption these days.
14047         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
14049         mountlist: port to HP NonStop
14050         Reported by Joachim Schmitz in
14051         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
14052         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
14053         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
14055 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14057         extern-inline: avoid compilation error with HP-UX cc
14058         Reported by Richard Lloyd in
14059         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
14060         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
14061         Suppress extern inline with HP-UX cc.  This should be safe,
14062         though it may hurt performance.  Perhaps someone with some HP-UX
14063         experience can come up with a higher-performance fix.
14065 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14067         putenv: fix heap corruption with mixed putenv/_putenv
14068         Problem reported by Michael Goffioul in
14069         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
14070         * lib/putenv.c (putenv) [HAVE__PUTENV]:
14071         Rely on _putenv to allocate the new environment.
14072         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
14073         * modules/putenv (configure.ac): Use it.
14075 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
14077         unsetenv etc.: port to Solaris 11 + GNU Emacs
14078         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
14079         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
14080         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
14081         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
14082         idea but is too painful to fix right now), and without this gnulib
14083         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
14084         compiling unsetenv.c on Solaris 11.  Fix the problem for
14085         unsetenv.c, and fix other similar occurrences.
14087 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14089         secure_getenv: fix C++ declaration typo
14090         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
14091         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
14092         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
14094 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14096         careadlinkat: stop exporting careadlinkatcwd
14097         Only Emacs used it directly, and Emacs no longer needs it.
14098         * NEWS: Document this simplification.
14099         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
14100         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
14101         for readlink.
14102         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
14103         Don't include stdlib.h; no longer needed.
14104         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
14105         * lib/relocwrapper.c: Adjust comment to match new dependencies.
14106         * modules/areadlink (Depends-on): Add readlink.
14107         (Maintainer): Add self.
14108         * modules/careadlinkat (Depends-on): Remove readlink.
14110         extensions: port better to HP-UX
14111         This is merged from git Autoconf.
14112         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
14113         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
14114         so that it's compatible with the value used when compiling.
14116         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
14117         Problem reported by Mats Erik Andersson in
14118         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
14119         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
14120         openpty function exists, not merely when we intend to replace it.
14121         This corrects the 2013-01-31 patch, which mistakenly defined
14122         HAVE_OPENPTY even on hosts that lacked it.
14124 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14126         secure_getenv: fix include typo
14127         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
14129         secure_getenv: port better to FreeBSD and Solaris
14130         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
14131         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
14132         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
14133         This works better on BSDish platforms.
14134         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
14135         Test for issetugid if __secure_getenv is missing.
14137 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14139         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
14140         Some of these changes are merged in from git Autoconf.
14141         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
14142         When deciding whether to define _XOPEN_SOURCE, inspect the
14143         preprocessor macro __hpux instead of the more-heavyweight
14144         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
14145         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
14146         as the key for __EXTENSIONS__.
14148         unistd: avoid namespace pollution on non-glibc systems
14149         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
14150         This avoids namespace pollution on non-glibc systems, by causing
14151         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
14152         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
14153         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
14155 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14157         tmpdir: use secure_getenv
14158         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
14159         Define to secure_getenv, not getenv.
14160         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
14161         as that's now secure_getenv's job.
14162         * modules/tmpdir (Depends-on): Add secure_getenv.
14164         tempname: use secure_getenv
14165         * lib/tempname.c (__secure_getenv) [!_LIBC]:
14166         Define to secure_getenv, not getenv.
14167         * modules/tempname (Depends-on):
14168         Add secure_getenv.
14170         secure_getenv: new module
14171         * MODULES.html.sh (Extra functions based on ANSI C 89):
14172         Add secure_getenv.
14173         * doc/glibc-functions/secure_getenv.texi: New file.
14174         * doc/gnulib.texi: Include it.
14175         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
14176         New files.
14177         * lib/stdlib.in.h (secure_getenv): New decl.
14178         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
14179         * modules/stdlib (stdlib.h):
14180         Add secure_getenv checks.
14182 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14184         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
14185         Reported for OS X 10.8.2 by Assaf Gordon in
14186         <http://bugs.gnu.org/13516>.
14187         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
14188         !HAVE_OPENAT && !HAVE_FDOPENDIR.
14189         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
14190         so that they can be kept in sync more easily.  Avoid PATH_MAX
14191         test on the Hurd.  Sync from test-getcwd.c for errno tests after
14192         mkdir or chdir failure.
14193         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
14194         lib/getcwd.c.
14195         (test_abort_bug): Do not test for the deep directory bug unless we
14196         have openat support.  Avoid PATH_MAX test on the Hurd.
14198         regex-tests, regex: fix bug: memset undeclared
14199         * tests/test-regex.c: Don't include regex.h twice.  Include
14200         string.h, to declare memset.  Christensen's report also mentioned
14201         this issue.
14202         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
14203         test-regex.c, to avoid future problems like this.  Remove
14204         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
14205         twice.
14207         regex-tests: fix link errors on older Solaris
14208         These need to link with @LIBINTL@ to get libintl_gettext.
14209         Problem reported by Tom G. Christensen in
14210         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
14211         * modules/regex-tests (test_regex_LDADD): New macro.
14213 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14215         regex-tests: new module
14216         * modules/regex-tests, tests/test-regex.c: New files.
14218         regex: fix off-by-one error in configure test
14219         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
14221 2013-01-31  Eric Blake  <eblake@redhat.com>
14223         regex: avoid infinite configure test
14224         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
14226 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
14228         openpty: fix bug where HAVE_OPENPTY wasn't defined
14229         See the thread starting at:
14230         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
14231         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
14232         openpty function exists, not merely when we intend to replace it.
14234 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14236         sys_time: port to Solaris 2.6
14237         There is a circularity problem on Solaris 2.6, where <time.h> includes
14238         <sys/time.h> for struct timespec.  The include nesting is gnulib
14239         <time.h>, system <time.h>, gnulib <sys/time.h>, system
14240         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
14241         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
14242         <sys/siginfo.h>; the last, innermost file needs struct
14243         timestruc_t, which is defined in <sys/time.h>, which has not been
14244         fully parsed.  Problem reported by Tom G. Christensen in
14245         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
14246         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
14247         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
14248         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
14249         uses split double-inclusion guards.
14251 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14253         regex: test for buffer overrun
14254         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
14255         for the just-fixed regex bug.
14257 2013-01-29  Andreas Schwab  <schwab@suse.de>
14259         regex: fix buffer overrun in regexp matcher [BZ #15078]
14260         * lib/regexec.c (extend_buffers): Add parameter min_len.
14261         (check_matching): Pass minimum needed length.
14262         (clean_state_log_if_needed): Likewise.
14263         (get_subexp): Likewise.
14265 2013-01-28  Pádraig Brady  <P@draigBrady.com>
14267         mountlist: don't consider "devtmpfs" as dummy
14268         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
14269         as there is storage associcated with it.
14271 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14273         futimens-tests, utimens-tests: Depend on gettext.
14274         This works around a problem introduced in my 2013-01-12 patch,
14275         which added @LIBINTL@ to these modules.
14276         * modules/futimens-tests (Depends-on):
14277         * modules/utimens-tests (Depends-on): Add gettext.
14279 2013-01-26  Eric Blake  <eblake@redhat.com>
14281         test-getpeername: fix typo
14282         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
14284 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
14286         bootstrap: remove the need for a sorted .gitignore file
14287         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
14288         rename to insert_if_absent(), so that we don't need or generate
14289         a sorted .gitignore file.  We do require a .gitignore with no
14290         existing duplicate entries and enforce that.
14291         (sort_patterns): Remove this function as we now use the simpler
14292         technigue of inserting blacklist entries at the top of the file,
14293         assuming gnulib won't be inserting !whitelist entries.
14295 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14297         readlinkat: don't depend on gl_FUNC_OPENAT
14298         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
14299         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
14300         renameat.m4, symlinkat.m4; but one thing at a time.
14302         statat: new module, split out from fstatat
14303         GNU Emacs needs the POSIX-specified fstatat, but not the
14304         gnulib-specified statat and lstat.  Split the latter two into a
14305         new module 'statat'.
14306         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
14307         * lib/openat.h, lib/statat.c (STATAT_INLINE):
14308         Rename from FSTATAT_INLINE. All uses changed.
14309         * modules/fstatat (Files): Remove lib/statat.c.
14310         (gl_MODULE_INDICATOR([fstatat])): Remove.
14311         (lib_SOURCES): Remove.
14312         (Maintainer): Add self.
14313         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
14314         * tests/test-fstatat.c (BASE): Don't define if already defined.
14315         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
14317 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14319         tests: don't assume fd 99 is closed
14320         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
14321         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
14322         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
14323         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
14324         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
14325         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
14326         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
14327         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
14328         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
14329         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
14330         * tests/test-fwrite.c, tests/test-getpeername.c:
14331         * tests/test-getsockname.c, tests/test-getsockopt.c:
14332         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
14333         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
14334         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
14335         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
14336         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
14337         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
14338         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
14339         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
14340         * tests/test-unlinkat.c, tests/test-unlockpt.c:
14341         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
14342         Close file descriptor 99, instead of assuming it's already closed.
14344 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14346         stpncpy: port to OS X 10.8
14347         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
14348         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
14350 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14352         unistd: port to recent mingw
14353         * lib/unistd.in.h: Remove special invocation convention for mingw,
14354         which breaks for the latest mingw version.  See John W. Eaton in
14355         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
14357         largefile: port better to Mac OS X 10.5
14358         This patch is backported from Autoconf git.
14359         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
14360         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
14361         with ino_t size being different for configuration time versus
14362         build/run time.  Problem reported by PHO in
14363         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
14365 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14367         doc: clarify -Werror
14368         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
14369         clarify that it's intended for developers, not for ordinary builds,
14370         and mention --enable-gcc-warnings as one possible use.
14372 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
14374         stdint: fix build with Android's Bionic fox x86
14375         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
14376         was already included as _SSIZE_T_DEFINED_ might also be defined
14377         in include/machine/_types.h, which is included by stdio.h
14379 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
14381         net_if-tests: port to Solaris 7 + GCC 3.4.6
14382         Problem reported by Tom G. Christensen in
14383         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
14384         * tests/test-net_if.c (ni): Move to next the code that uses it,
14385         so that it's declared only if needed.
14387 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14389         net_if-tests: port to older Solaris
14390         Problem reported by Tom G. Christensen in
14391         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14392         * modules/net_if-tests (NET_IF_LIB): New substitution.
14393         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
14394         (HAVE_IF_NAMEINDEX): New C macro.
14395         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
14397         system-quote-tests: port to older Solaris
14398         Problem reported by Tom G. Christensen in
14399         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14400         * tests/test-system-quote-child.c (fopen, fread): Undef.
14402         c-xvasprintf etc.: fix link errors on older Solaris
14403         These need to link with @LIBINTL@ to get libintl_gettext.
14404         Problem reported by Tom G. Christensen in
14405         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14406         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
14407         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
14408         * modules/futimens-tests (test_futimens_LDADD):
14409         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
14411 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14413         locale: port to Solaris 2.6 and 7 + GNU gettext
14414         * lib/locale.in.h: Just include_next <locale.h> when
14415         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
14416         when combining the localename module with GNU gettext 0.18.2.
14417         Problem reported by Tom G. Christensen in
14418         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
14420 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14422         stdlib: port to Solaris 2.6
14423         Also, the code worked on Solaris 7 through 9 only by accident.
14424         Problem reported by Tom G. Christensen in
14425         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
14426         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
14427         simply include the system stdlib.h.
14428         * lib/getopt.in.h (__need_system_stdlib_h):
14429         * lib/pthread.in.h (__need_system_stdlib_h):
14430         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
14431         Define when including <stdlib.h>, to avoid problems at least for
14432         the pthread case on Solaris 2.6 and 7.  These .h files can get by
14433         with the system stdlib.h.
14435 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
14437         doc: update main copyright year
14438         * doc/gnulib.texi: Update copyright date.
14440         doc: improve ISO 8601 discussion
14441         * doc/parse-datetime.texi (Combined date and time of day items):
14442         Specify more carefully what formats are supported and what is
14443         done with excess precision.
14445 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14447         doc: avoid small caps
14448         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
14449         they're more trouble than they're worth.  Suggested by Karl Berry
14450         in <http://bugs.gnu.org/13360>.
14452         regex: conform to strict C
14453         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
14454         From Aharon Robbins.
14456         gnulib-tool: fix incompatibility with autopoint 0.18.2
14457         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
14458         Problem reported by Tom G. Christensen in
14459         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
14461 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14463         fprintftime: bring back and reword fwrite comment
14464         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
14466         stdio: remove now-unnecessary stdio.c
14467         Since stdio.in.h no longer uses inline functions, we no longer
14468         need to compile the extern versions.
14469         * lib/stdio.c: Remove.
14470         * modules/stdio (Files): Remove lib/stdio.c.
14471         (lib_SOURCES): Remove.
14473         unicodeio: depend on stdio, not ignore-value
14474         * lib/unicodeio.c: Do not include ignore-value.h.
14475         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
14476         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
14478         fprintftime: depend on stdio, not ignore-value
14479         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
14480         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
14481         since the stdio module arranges to silence that warning now.
14482         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
14484 2012-10-04  Simon Josefsson  <simon@josefsson.org>
14486         stdint-tests: Fix expanded-before-required-warning.
14487         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
14489 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14491         fwrite: silence __wur only for older glibc versions
14492         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
14493         This will help us remove this workaround some time in the far future.
14495 2013-01-03  Eric Blake  <eblake@redhat.com>
14497         fwrite: silence __wur without using inline
14498         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
14499         just gcc, and in a way that avoids inline issues.
14500         * modules/stdio (Depends-on): Drop extern-inline.
14502 2013-01-03  Jim Meyering  <jim@meyering.net>
14504         update-copyright: avoid copyright notice date corruption
14505         Given a sequence of copyright year numbers in which the final
14506         one was a two-digit number that happened to be a substring of
14507         a preceding four-digit year number, we would mistakenly update
14508         the substring (from two- to four-digit) rather than the two-digit
14509         number at the end, which, combined with the addition of the current
14510         4-digit year number would yield two 5-digit year numbers, e.g.,
14511         here, it would convert the first "99" to "1999, 2013" rather than
14512         the final one:
14513           1991, 99
14514           11999, 20131, 1999
14515         * build-aux/update-copyright: Tighten a regexp.
14516         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
14517         Reported by Joseph Myers in
14518         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
14520 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14522         regex: omit needless signed-pointer casts
14523         * lib/regcomp.c (build_charclass, build_charclass_op):
14524         Use char *, not unsigned char *, for class name and extra.
14525         The char values are always nonnegative so there's no need to
14526         insist on unsigned char * here, and using char * removes the need
14527         for casts.  Reported by Aharon Robbins in
14528         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14530         regex: support Gawk, which never uses alloca
14531         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
14532         Do not include in this case.  Gawk doesn't supply a substitute
14533         alloca.h and doesn't need one.
14535         regex: port __libc_lock_define usage to C89
14536         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
14537         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
14538         does not conform to C89, as it has an empty macro argument.
14539         Reported by Aharon Robbins in
14540         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14542 2013-01-01  Eric Blake  <eblake@redhat.com>
14544         maint: update all copyright year number ranges
14545         Run "make update-copyright".
14547         version-etc: bump copyright year reported in --version
14548         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
14550 2012-12-31  Eric Blake  <eblake@redhat.com>
14552         sigprocmask-tests: skip test if pid is unexpectedly large
14553         * tests/test-sigprocmask.c (main): Add range check.
14555         git-version-gen: avoid test -z portability glitch
14556         * build-aux/git-version-gen: Prefer portable test spelling, since
14557         git-version-gen is run on more than just developer machines.
14559 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
14561         git-version-gen: add --fallback option to use if git is not present
14562         * build-aux/git-version-gen: Add support for the new option --fallback,
14563         which comes into play when there is no $tarball_version_file and
14564         git is not working.
14565         (scriptversion): Update.
14567         maint.mk: handle missing git with more grace
14568         * top/maint.mk (no-submodule-changes, public-submodule-commit):
14569         Quietly proceed if git is not present.
14571 2012-12-31  Eric Blake  <eblake@redhat.com>
14573         dup2: work around cygwin bug
14574         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
14575         * lib/dup2.c (rpl_dup2): Work around it.
14576         * doc/posix-functions/dup2.texi (dup2): Document it.
14578 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14580         regex: remove unnecessary dependency on localcharset.h
14581         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
14582         hasn't been needed for years.
14583         * modules/regex (Depends-on): Remove localcharset.
14585         regex: revert single-byte change
14586         * lib/regexec.c (check_node_accept_bytes): Revert previous change
14587         to this function.  This was alredy fixed in a different way, at
14588         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
14589         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
14590         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
14592         regex: simplify based on Gawk version
14593         * lib/regex_internal.c (re_dfa_add_node): Simplify.
14594         Reported by Aharon Robbins in
14595         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14597 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14599         regex: check that pattern char is single-byte
14600         Reported by Aharon Robbins in
14601         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14602         * lib/regexec.c (check_node_accept_bytes):
14603         Return 0 if the pattern string has a multibyte character here.
14605         regex: implement rational ranges
14606         Reported by Aharon Robbins in
14607         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14608         * lib/regcomp.c (build_range_exp) [!_LIBC]:
14609         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
14610         Implement rational ranges.
14612         regex: avoid redefining __wctype
14613         Reported by Aharon Robbins in
14614         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14615         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
14616         #undef before defining.
14618         regex: port to hosts where malloc (0) == NULL
14619         Reported by Aharon Robbins in
14620         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14621         * lib/regex_internal.c (re_node_set_alloc):
14622         Don't assume that malloc (0) yields nonnull.
14623         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
14624         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
14625         * modules/regex (Files): Add m4/eealloc.m4.
14627         regex: port to C89
14628         Reported by Aharon Robbins in
14629         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14630         * lib/regcomp.c (init_word_char): Declaration before statement.
14632         regex: merge glibc changes
14633         Also, copy the license wording from glibc.  This simplifies
14634         merging changes.  gnulib-tool will change the wording to GPL as
14635         appropriate, when importing it to other packages.  The only
14636         glibc change made since the last merge, which needs merging, is:
14637         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
14638         * lib/regex_internal.h (gettext): Remove use of INTUSE.
14640         * users.txt: Add Emacs.
14642         doc: omit mention of version when not needed
14643         * doc/gnulib-intro.texi (Portability and Application Code):
14644         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
14645         Don't mention particular dates or versions when not necessary, so
14646         that the documentation won't go out of date so quickly.
14648         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
14650 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
14652         bootstrap: pass --force to autoreconf.
14653         * build-aux/bootstrap (AUTORECONFFLAGS): New.
14654         Add "--force" so that Automake's ylwrap and other such tools
14655         be updated at each bootstrap invocation.
14656         Use it.
14658 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14660         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
14661         The earlier patch forgot to update one of the #if conditions, causing
14662         a problem on Debian testing i386 reported by Mats Erik Andersson
14663         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
14664         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
14665         (__argp_fmtstream_puts, argp_fmtstream_puts)
14666         (__argp_fmtstream_write, argp_fmtstream_write)
14667         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
14669         * doc/gnulib-readme.texi: Minor fixups.
14670         (Portability guidelines): Modernize URLs.  Remove some repetition.
14671         (Indent with spaces not TABs): Reword to avoid too-long lines.
14672         Remove some '@ifset standalone' stuff that isn't used.
14674         * doc/gnulib-readme.texi (Portability guidelines):
14675         ctype.h, not ctime.h.
14677         Correct name of POSIX.1-2001.
14678         * doc/posix-functions/fgetc.texi (fgetc):
14679         * doc/posix-functions/fgets.texi (fgets):
14680         * doc/posix-functions/fread.texi (fread):
14681         * doc/posix-functions/fscanf.texi (fscanf):
14682         * doc/posix-functions/getc.texi (getc):
14683         * doc/posix-functions/getchar.texi (getchar):
14684         * doc/posix-functions/scanf.texi (scanf):
14685         POSIX.1-2001, not POSIX-2001.
14687         doc: move README into manual
14688         * README: Move contents to new file doc/gnulib-readme.texi.
14689         Replace with a one-line summary.
14690         * doc/gnulib.texi (Brief Overview): New section,
14691         with old intro preface.  Include gnulib-readme.texi for contents.
14692         (Philosophy): Rename from "Introduction", since this
14693         section no longer introduces the rest.  Write a new preface.
14694         * doc/gnulib-readme.texi: New file, with the old contents of
14695         README texinfo-ized.  This way, the README info appears
14696         in the online and printed manual.
14698 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
14700         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
14701         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
14702         c_vasprintf() prototype.
14704 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
14706         c-vasprintf: Fix "empty declaration" warning reported by GCC.
14707         * lib/c-vasprintf.h: Remove stray semicolon.
14709 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14711         gettext: avoid obsolete macro AM_PROG_MKDIR_P
14712         It is obsolete and is planned to be removed from Automake 1.14; see
14713         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
14714         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
14715         (installdirs-data, installdirs-data-yes):
14716         Use $(MKDIR_P), not $(mkdir_p).
14717         * m4/intl.m4 (AM_INTL_SUBDIR):
14718         * m4/po.m4 (AM_PO_SUBDIRS):
14719         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
14721 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14723         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
14724         On this platform, we are not optimizing but we are using
14725         the substitute for extern inlines, so compile as if
14726         C99-style extern inline, or a substitute, is available.
14727         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
14728         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
14729         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
14730         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
14731         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
14732         Declare as ARGP_FS_EI, not as extern.
14733         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
14734         (__option_is_short, _option_is_end, __option_is_end)
14735         [!_LIBC && __USE_EXTERN_INLINES]:
14736         Declare as ARGP_EI, not as extern.
14738 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14740         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
14741         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
14742         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
14743         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
14744         ...), as the latter is fatal with older Autoconfs.
14745         Problem reported and fix suggested by Eric Blake in thread starting at
14746         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
14748 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14750         AC_PROG_MKDIR_P: don't workaround if not buggy
14751         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
14752         Define only for Autoconf versions before 2.62.
14753         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
14754         undocumented m4_PACKAGE_VERSION, for consistency with the
14755         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
14756         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
14757         was introduced in 2.62.
14759 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
14761         New 'c-*printf' modules for formatted output in C locale.
14763         New module 'c-vasnprintf'.
14764         * modules/c-vasnprintf: New file.
14765         * lib/c-vasnprintf.c: New file.
14766         * lib/c-vasnprintf.h: New file.
14768         New module 'c-snprintf'.
14769         * modules/c-snprintf: New file.
14770         * modules/c-snprintf-tests: New file.
14771         * lib/c-snprintf.c: New file.
14772         * lib/c-snprintf.h: New file.
14773         * tests/test-c-snprintf.c: New file.
14774         * tests/test-c-snprintf.sh: New file.
14776         New module 'c-vsnprintf'.
14777         * modules/c-vsnprintf: New file.
14778         * modules/c-vsnprintf-tests: New file.
14779         * lib/c-vsnprintf.c: New file.
14780         * lib/c-vsnprintf.h: New file.
14781         * tests/test-c-vsnprintf.c: New file.
14782         * tests/test-c-vsnprintf.sh: New file.
14784         New module 'c-vasprintf'.
14785         * modules/c-vasprintf: New file.
14786         * modules/c-vasprintf-tests: New file.
14787         * lib/c-asprintf.c: New file.
14788         * lib/c-vasprintf.c: New file.
14789         * lib/c-vasprintf.h: New file.
14790         * tests/test-c-vasprintf.c  +: New file.
14791         * tests/test-c-vasprintf.sh: New file.
14793         New module 'c-xvasprintf'.
14794         * modules/c-xvasprintf: New file.
14795         * modules/c-xvasprintf-tests: New file.
14796         * lib/c-xasprintf.c: New file.
14797         * lib/c-xvasprintf.c: New file.
14798         * lib/c-xvasprintf.h: New file.
14799         * tests/test-c-xvasprintf.c: New file.
14800         * tests/test-c-xvasprintf.sh: New file.
14802 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14804         argp: better 'inline'
14805         Use extern-inline module to declare extern inline functions.
14806         This avoids some bogus warning diagnostics.  Problem discovered
14807         when modifying GNU tar to use the manywarnings module.
14808         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
14809         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
14810         Define based on extern-inline.
14811         * modules/argp (Depends-on): Add extern-inline.
14813 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14815         filemode, sys_stat: Handle MPX files a la AIX.
14816         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
14817         * lib/sys_stat.in.h (S_ISMPX): New macro.
14818         * tests/test-sys_stat.c: Add tests for MPX files.
14820 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
14822         x-to-1: honor $PERL
14823         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
14824         a chance to use his preferred version of Perl.  This is typically
14825         required by Darwin users whose default /usr/bin/perl does not have all
14826         the libraries required by help2man, and who need to use their MacPorts
14827         installation of Perl instead.
14829 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
14831         gnu-web-doc-update: add all the new files, even in new directories
14832         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
14833         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
14834         Use it.
14835         (main): Don't use cvsutils to get the list of unknown files,
14836         just add all the existing files and directories.
14838 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
14840         gnu-web-doc-update: improve --help
14841         * build-aux/gnu-web-doc-update: Move comments into --help.
14843 2012-12-07  Eric Wong  <normalperson@yhbt.net>
14845         mountlist: recognize more "dummy" file systems
14846         * lib/mountlist.c (ME_DUMMY_0):
14847         Add these dummy FS names to the list:
14848         - "debugfs" virtual filesystem for kernel debugging
14849         - "devpts" PTY slave filesystem
14850         - "devtmpfs" device filesystem on top of tmpfs/ramfs
14851         - "fusectl" control filesystem for FUSE
14852         - "mqueue" enumerates POSIX message queues
14853         - "rpc_pipefs" kernel <-> userspace bridge for NFS
14854         - "sysfs" is for exporting kernel objects
14855         - "devfs" device filesystem for Linux 2.4 and FreeBSD
14857 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
14859         extern-inline: avoid incompatibility with Darwin Libc
14860         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
14861         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
14862         Problem reported by Akim Demaille in
14863         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
14865 2012-12-11  Simon Josefsson  <simon@josefsson.org>
14867         gnupload: Work with GnuPG using gpg-agent (for smartcards).
14868         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
14869         let it handle password prompting.
14871 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
14873         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
14874         * lib/canonicalize.c (canonicalize_filename_mode):
14875         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
14876         fetching the current directory.  Don't overrun the beginning of
14877         rpath if there's no slashes after the MS-Windows drive letter.
14879 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
14881         maint.mk: avoid extra forks
14882         * top/maint.mk (_cfg_mk): The GNU make manual documents that
14883         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
14884         So use that instead of "$(shell test -f FILE && echo FILE)".
14886 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14888         vasnprintf: fix ASCII_ONLY typo
14889         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14890         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14891         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14892         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
14893         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
14895 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14897         list, oset, xlist, xoset: fix extern inline issue with C99
14898         This was introduced by my recent changes for 'inline'.
14899         Problem reported for gettext by Daiki Ueno in
14900         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
14901         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
14902         (gl_list_nx_create, gl_list_size, gl_list_node_value)
14903         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
14904         (gl_list_previous_node, gl_list_get_at)
14905         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
14906         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
14907         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
14908         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
14909         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
14910         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
14911         (gl_list_iterator_free, gl_sortedlist_search)
14912         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
14913         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
14914         (gl_sortedlist_remove):
14915         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
14916         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
14917         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
14918         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
14919         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
14920         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
14921         (gl_list_add_at, gl_sortedlist_add):
14922         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
14923         Wrap these extern decls inside "#if 0", because they are implemented
14924         as inline functions, and extern inline is not what's wanted here.
14925         It would simplify these .h files to remove the extern decls entirely,
14926         although a downside would be less-clear separation between
14927         specification and implementation.
14929 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14931         sys_stat: no 'static inline'
14932         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
14933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
14935         extern-inline: no 'static inline'
14936         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14937         Do not require AC_C_INLINE.
14938         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
14939         'static inline', for older compilers.
14941         snippet/warn-on-use: no 'static inline'
14942         * build-aux/snippet/warn-on-use.h:
14943         Remove unnecessary 'inline' in comment.
14945         rbtree-list, rbtreehash-list: no 'static inline'
14946         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
14947         * lib/gl_anytree_list2.h (node_at):
14948         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
14949         (gl_oset_first, add_nodes_to_buckets):
14950         Now static, not static inline.
14952         regex: no 'static inline'
14953         * lib/regex_internal.c (calc_state_hash):
14954         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
14955         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14956         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
14957         Now static, not static inline.
14958         (inline) [__GNUC__ < 3 && _LIBC]:
14959         Remove macro; no longer needed.
14961         xvasprintf: no 'static inline'
14962         * lib/xvasprintf.c (xstrcat):
14963         Now static, not static inline.
14964         * m4/xvasprintf.m4 (gl_XVASPRINTF):
14965         Do not require AC_C_INLINE.
14967         parse-datetime, parse-duration: no 'static inline'
14968         * lib/parse-datetime.y (to_uchar):
14969         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
14970         (scale_n_add):
14971         Now static, not static inline.
14972         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
14973         * modules/parse-duration (configure.ac):
14974         Do not require AC_C_INLINE.
14976         getaddrinfo: no 'static inline'
14977         * lib/getaddrinfo.c (validate_family):
14978         Now static, not static inline.
14979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
14980         Do not require AC_C_INLINE.
14982         ftruncate, fts, lstat, openat, raise: no 'static inline'
14983         * lib/ftruncate.c (chsize_nothrow):
14984         * lib/fts.c (opendirat, diropen):
14985         * lib/lstat.c (orig_lstat):
14986         * lib/openat.c (orig_openat):
14987         * lib/raise.c (raise_nothrow):
14988         Now static, not static inline.
14989         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
14990         * m4/fts.m4 (gl_FUNC_FTS_CORE):
14991         * m4/lstat.m4 (gl_PREREQ_LSTAT):
14992         * m4/openat.m4 (gl_PREREQ_OPENAT):
14993         * m4/raise.m4 (gl_PREREQ_RAISE):
14994         Do not require AC_C_INLINE.
14996         fflush, stat: no 'static inline'
14997         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14998         (clear_ungetc_buffer, disable_seek_optimization)
14999         (restore_seek_optimization, update_fpos_cache):
15000         * lib/stat.c (orig_stat):
15001         Now static, not static inline.
15002         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
15003         (update_fpos_cache):
15004         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
15005         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
15006         * m4/stat.m4 (gl_PREREQ_STAT):
15007         Do not require AC_C_INLINE.
15009         error, filevercmp: no 'static inline'
15010         * lib/error.c (is_open, flush_stdout):
15011         * lib/filevercmp.c (order):
15012         Now static, not static inline.
15013         * m4/error.m4 (gl_PREREQ_ERROR):
15014         * modules/filevercmp (configure.ac):
15015         Do not require AC_C_INLINE.
15017         dup, execute, fatal-signal, etc.: no 'static inline'
15018         * lib/dup.c (dup_nothrow):
15019         * lib/execute.c (nonintr_close, nonintr_open):
15020         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
15021         * lib/fopen.c (orig_fopen):
15022         * lib/freadseek.c (freadptrinc):
15023         * lib/freopen.c (orig_freopen):
15024         * lib/fstat.c (orig_fstat, fstat_nothrow):
15025         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
15026         (get_rusage_as_via_iterator):
15027         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
15028         * lib/getdtablesize.c (_setmaxstdio_nothrow):
15029         * lib/isatty.c (_isatty_nothrow):
15030         * lib/open.c (orig_open):
15031         * lib/read.c (read_nothrow):
15032         * lib/sigprocmask.c (signal_nothrow):
15033         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
15034         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
15035         * lib/wait-process.c (unregister_slave_subprocess):
15036         * lib/write.c (write_nothrow):
15037         Now static, not static inline.
15038         * lib/spawn-pipe.c (nonintr_open): Define only if
15039         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
15040         * m4/dup.m4 (gl_PREREQ_DUP):
15041         * m4/execute.m4 (gl_EXECUTE):
15042         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
15043         * m4/fopen.m4 (gl_PREREQ_FOPEN):
15044         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
15045         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
15046         * m4/fstat.m4 (gl_PREREQ_FSTAT):
15047         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
15048         * m4/isatty.m4 (gl_PREREQ_ISATTY):
15049         * m4/open.m4 (gl_PREREQ_OPEN):
15050         * m4/read.m4 (gl_PREREQ_READ):
15051         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
15052         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
15053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
15054         * m4/wait-process.m4 (gl_WAIT_PROCESS):
15055         * m4/write.m4 (gl_PREREQ_WRITE):
15056         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
15057         Do not require AC_C_INLINE.
15059         c-strtod, memcoll, readutmp: no 'static inline'
15060         * lib/c-strtod.c (c_locale):
15061         * lib/memcoll.c (strcoll_loop):
15062         * lib/readutmp.c (desirable_utmp_entry):
15063         Now static, not static inline.
15064         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
15065         * m4/memcoll.m4 (gl_MEMCOLL):
15066         * m4/readutmp.m4 (gl_READUTMP):
15067         Do not require AC_C_INLINE.
15069         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
15070         * lib/arctwo.c (to_uchar):
15071         * lib/md4.c (set_uint32):
15072         * lib/md5.c (set_uint32):
15073         * lib/sha1.c (set_uint32):
15074         * lib/sha256.c (set_uint32):
15075         * lib/sha512.c (set_uint64):
15076         Now static, not static inline.  This is a bit simpler, and doesn't
15077         affect performance with GCC and default optimization.
15078         * m4/arctwo.m4 (gl_ARCTWO):
15079         * m4/md4.m4 (gl_MD4):
15080         * m4/md5.m4 (gl_MD5):
15081         * m4/sha1.m4 (gl_SHA1):
15082         * m4/sha256.m4 (gl_SHA256):
15083         * m4/sha512.m4 (gl_SHA512):
15084         Do not require AC_C_INLINE.
15086         cond, lock, thread: better 'inline'
15087         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
15088         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
15089         New macros.  Use them instead of static inline, for header functions.
15090         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
15091         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
15092         * lib/glthread/lock.c (gl_waitqueue_init)
15093         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
15094         * lib/glthread/thread.c (get_current_thread_handle):
15095         Change 'static inline' to 'inline'.
15096         * lib/glthread/cond.h, lib/glthread/thread.h:
15097         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15098         * m4/cond.m4 (gl_COND):
15099         * m4/lock.m4 (gl_PREREQ_LOCK):
15100         * m4/thread.m4 (gl_THREAD):
15101         Do not require AC_C_INLINE.
15102         * modules/cond, modules/thread (Depends-on): Add extern-inline.
15104         chdir-long, cycle-check, savewd: better 'inline'
15105         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
15106         (find_non_slash):
15107         * lib/cycle-check.c (is_zero_or_power_of_two):
15108         * lib/savewd.c (savewd_delegating):
15109         Change 'static inline' to 'inline'.
15110         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
15111         Replace all remaining uses of 'static inline' with it.
15112         * lib/savewd.h:
15113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15114         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
15115         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
15116         * m4/savewd.m4 (gl_SAVEWD):
15117         Do not require AC_C_INLINE.
15118         * modules/savewd (Depends-on): Add extern-inline.
15120         base32, base64: no need for 'inline'
15121         * lib/base32.c (to_uchar, get_8, decode_8):
15122         * lib/base64.c (to_uchar, get_4, decode_4):
15123         Change 'static inline' to 'inline'.
15124         * m4/base32.m4 (gl_PREREQ_BASE32):
15125         * m4/base64.m4 (gl_PREREQ_BASE64):
15126         Do not require AC_C_INLINE.
15128         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
15129         * lib/gl_array_oset.c (gl_array_nx_add_at):
15130         (gl_array_remove_at):
15131         * lib/gl_linkedhash_list.c (hash_resize_after_add)
15132         (add_to_bucket, remove_from_bucket):
15133         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
15134         Change 'static inline' to 'static', as it's simpler to omit
15135         'inline' unless there's a significant performance advantage.
15137         list, oset, xlist, xoset, xsublist: simplify via extern inline
15138         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
15139         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
15140         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
15141         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
15142         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
15143         New macro.  Replace all uses of 'static inline' with it.
15144         [HAVE_INLINE]: Implement functions as *_INLINE functions,
15145         instead of as macros FOO that are defined to static inline
15146         functions FOO_inline.
15147         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
15148         * lib/gl_xsublist.c:
15149         Reimplement from scratch, by defining the corresponding *_INLINE
15150         macro and including the corresponding .h file.  This is simpler.
15151         * modules/list, modules/oset, modules/xlist, modules/xoset:
15152         (Files): Remove m4/gl_list.m4.
15153         (configure.ac): Remove gl_LIST.
15154         * m4/gl_list.m4: Remove.
15155         * modules/list, modules/oset, modules/xlist, modules/xoset:
15156         * modules/xsublist:
15157         (Depends-on): Depend on extern-inline, not inline.
15159         xalloc: better 'inline'
15160         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
15161         New macro.  Replace all uses of 'static inline' with it.
15162         (static_inline): Remove.
15163         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15164         Let 'extern inline' do the work automatically, instead of doing
15165         it by hand.
15166         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
15167         Remove.  All uses removed.
15168         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
15170         gethrxtime: better 'inline'
15171         * lib/xtime.c: New file.
15172         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
15173         * lib/xtime.h (XTIME_INCLUDE):
15174         New macros.  Replace all uses of 'static inline' with them.
15175         * lib/gethrxtime.c (gethrxtime): Define only if
15176         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
15177         this source file is now always compiled, because of the extern inline.
15178         * lib/gethrxtime.h, lib/xtime.h:
15179         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15180         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
15181         if gethrtime works, as they're not needed in that case.
15182         (gl_XTIME): Do not require AC_C_INLINE.
15183         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
15184         compiled now.  Move the check into gl_GETHRXTIME.
15185         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
15186         (Depends-on): Add extern-inline.
15187         (configure.ac): gethrxtime is always compiled now.
15188         (lib_SOURCES): Add gethrxtime.c.
15190         wctype-h: better 'inline'
15191         * lib/wctype-h.c: New file.
15192         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
15193         New macro.  Replace all uses of 'static inline' with it.
15194         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15195         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
15196         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
15197         (Depends-on): Add extern-inline.
15199         unistd: better 'inline'
15200         * lib/unistd.c: New file.
15201         * lib/unistd.in.h (_GL_UNISTD_INLINE):
15202         New macro.  Replace all uses of 'static inline' with it.
15203         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15204         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
15205         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
15206         (Depends-on): Add extern-inline.
15208         sys_socket: better 'inline'
15209         * lib/sys_socket.c: New file.
15210         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
15211         New macro.  Replace all uses of 'static inline' with it.
15212         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15213         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
15214         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
15215         (Depends-on): Add extern-inline.
15217         stdio: better 'inline'
15218         * lib/stdio.c: New file.
15219         * lib/stdio.in.h (_GL_STDIO_INLINE):
15220         New macro.  Replace all uses of 'static inline' with it.
15221         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15222         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
15223         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
15224         (Depends-on): Add extern-inline.
15226         sigaction: better 'inline'
15227         * lib/sig-handler.c: New file.
15228         * lib/sig-handler.h (SIG_HANDLER_INLINE):
15229         New macro.  Replace all uses of 'static inline' with it.
15230         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15231         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
15232         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
15233         (Depends-on): Add extern-inline.
15235         selinux-h: better 'inline'
15236         * lib/se-context.c, lib/se-selinux.c: New files.
15237         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
15238         * lib/se-context.in.h (SE_CONTEXT_INLINE):
15239         New macro.  Replace all uses of 'static inline' with it.
15240         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15241         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
15242         New macro.  Replace all uses of 'static inline' with it.
15243         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15244         * modules/selinux-h (Files, lib_SOURCES):
15245         Add lib/se-context.c, lib/se-selinux.c.
15246         (Depends-on): Add extern-inline.
15247         (configure.ac): Do not require AC_C_INLINE.
15249         pthread: better 'inline'
15250         * lib/pthread.c: New file.
15251         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
15252         New macro.  Replace all uses of 'static inline' with it.
15253         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15254         * m4/pthread.m4 (gl_PTHREAD_CHECK):
15255         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
15256         * modules/pthread (Files): Add lib/pthread.c.
15257         (Depends-on): Add extern-inline.
15259         math: better 'inline'
15260         * lib/math.c: New file.
15261         * lib/math.in.h (_GL_MATH_INLINE):
15262         New macro.  Replace all uses of 'static inline' with it.
15263         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15264         * m4/math_h.m4 (gl_MATH_H):
15265         Do not require AC_C_INLINE.
15266         * modules/math (Files, lib_SOURCES):
15267         Add lib/math.c.
15268         (Depends-on): Add extern-inline.
15270         count-one-bits: better 'inline'
15271         * lib/count-one-bits.c: New file.
15272         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
15273         New macro.  Replace all uses of 'static inline' with it.
15274         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15275         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
15276         Do not require AC_C_INLINE.
15277         * modules/count-one-bits (Files, lib_SOURCES):
15278         Add lib/count-one-bits.c.
15279         (Depends-on): Add extern-inline.
15281         count-leading-zeros: better 'inline'
15282         * lib/count-leading-zeros.c: New file.
15283         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
15284         New macro.  Replace all uses of 'static inline' with it.
15285         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15286         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
15287         Do not require AC_C_INLINE.
15288         * modules/count-leading-zeros (Files, lib_SOURCES):
15289         Add lib/count-leading-zeros.c.
15290         (Depends-on): Add extern-inline.
15292         bitrotate: better 'inline'
15293         * lib/bitrotate.c: New file.
15294         * lib/bitrotate.h (BITROTATE_INLINE):
15295         New macros.
15296         Replace all uses of 'static inline' with them.
15297         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15298         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
15299         (Depends-on): Add extern-inline.
15300         (configure.ac): Do not require AC_C_INLINE.
15302 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
15304         maint.mk: avoid gratuitous failure
15305         Reported by Stefano Lattarini in
15306         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
15307         * top/maint.mk (public-submodule-commit): Quote more safely.
15309 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
15311         canonicalize, canonicalize-lgpl: support MS-Windows file names
15312         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
15313         for test cases, which it'd be nice to add at some point.
15314         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
15315         * lib/canonicalize.c (canonicalize_filename_mode):
15316         * lib/canonicalize-lgpl.c (__realpath):
15317         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
15318         slash is at the beginning of the file name.  Use ISSLASH, instead
15319         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
15320         the first character with '/'.  Test for
15321         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
15322         with a drive letter.
15323         * lib/canonicalize.c (SLASHES): New macro.
15324         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
15326 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
15328         fts: introduce FTS_VERBATIM
15329         * lib/fts_.h (FTS_VERBATIM): New bit flag.
15330         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
15331         * lib/fts.c (fts_open): Honor it.
15333 2012-11-09  Pádraig Brady  <P@draigBrady.com>
15335         getlogin-tests: allow errno == ENXIO
15336         * tests/test-getlogin.c (main): Skip tests if getlogin fails
15337         with errno == ENXIO (No controlling tty).
15338         getlogin_r-tests: Likewise. Also allow errno == ENOENT
15339         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
15340         with errno == ENOENT.  This was reported to happen in various
15341         situations on GNU/Linux.
15343 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15345         getlogin-tests: allow errno == ENOENT
15346         * tests/test-getlogin.c (main): Skip tests if getlogin fails
15347         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
15348         when running a test in an Emacs shell buffer.
15350 2012-11-08  Jim Meyering  <jim@meyering.net>
15352         tests/nap.h: avoid warning about unused variable
15353         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
15355         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
15356         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
15357         white space before each of the special-cased file names, to avoid
15358         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
15359         in http://bugs.gnu.org/12830.
15361 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15363         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
15364         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
15365         fails with errno == EBADF when fd is opened with O_PATH.
15366         Reported by Jim Meyering in
15367         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
15368         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
15369         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
15371 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15373         test-utimens: speed up by taking shorter naps
15374         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
15375         New functions.
15376         (nap): Use them, to do a better job of guessing the delay.
15377         On Fedora 17 with ext4 atop md atop hard disks, this made
15378         test-utimens run 10x faster, because the test napped for
15379         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
15380         <http://bugs.gnu.org/12820#11>.
15382 2012-11-07  Jim Meyering  <jim@meyering.net>
15384         mountlist.c: fix a compilation failure
15385         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
15386         I introduced while transforming commit v0.0-7683-g613bcb6
15388 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15390         errno: port to LynxOS 178 2.2.2
15391         Problem reported by Joel Brobecker in
15392         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
15393         * doc/posix-headers/errno.texi (errno.h): Document this.
15394         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
15395         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
15396         Supply a string for EILSEQ.
15397         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
15399 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15401         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
15402         Linux kernel 2.6.39 introduced O_PATH (see
15403         <http://lwn.net/Articles/433854/>) and this is a better fallback
15404         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
15405         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
15406         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
15407         * lib/fcntl.in.h (O_ACCMODE):
15408         * tests/test-fcntl-h.c (main):
15409         Do not reject O_ACCMODE merely because it has more than the
15410         minimal number of bits, as POSIX allows extensions here.
15412 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
15414         mountlist: do not classify a bind-mounted dir entry as "dummy"
15415         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
15416         the "none"-testing clause.
15417         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
15418         exception for bind-mounted directories.
15420 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
15422         quote: provide a means to escape strings with nul characters
15423         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
15424         (quote, quote_n): Rename formal arguments for consistency with
15425         quotearg.
15427 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15429         test-raise: don't assume 199 is an invalid signal
15430         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
15432         sh-quote-tests: port to Solaris 9
15433         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
15434         Problem reported by Dagobert Michelsen in
15435         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
15437 2012-10-28  Jim Meyering  <jim@meyering.net>
15439         maint.mk: rename a new configurable variable
15440         * top/maint.mk (_gl_translatable_string_re): Rename from
15441         translation-markers: _gl_ prefix to insulate from user Makefile code,
15442         and the _re suffix to inform that it's a regular expression.
15444 2012-10-26  Eric Blake  <eblake@redhat.com>
15446         maint.mk: let packages tweak sc_po_check pattern
15447         * top/maint.mk (sc_po_check): Add translation-markers, to allow
15448         finding files with other translation markers.
15450 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15452         euidaccess: speed up 'configure' on GNU hosts
15453         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
15454         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
15455         it's needed only in this case.  Use AC_CHECK_DECLS, not
15456         AC_CHECK_DECLS_ONCE.
15457         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
15458         or AC_REQUIRE for AC_FUNC_GETGROUPS.
15460         * lib/regexec.c (re_search_internal): Fix grammar in comment.
15462 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15464         fchmodat, fchownat, fstatat: port to non-inlining compilers
15465         Problem reported for FreeBSD 9 by Jim Meyering in
15466         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
15467         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
15468         New files, which define FCHMODAT_INLINE etc.
15469         * lib/fchmodat.c (FCHMODAT_INLINE):
15470         * lib/fchownat.c (FCHOWNAT_INLINE):
15471         * lib/fstatat.c (FSTATAT_INLINE):
15472         Remove, as chmodat.c etc. now do this.
15473         * modules/fchmodat (Files): Add lib/chmodat.c.
15474         * modules/fchownat (Files): Add lib/chownat.c.
15475         * modules/fstatat (Files): Add lib/statat.c.
15477 2012-10-15  Jim Meyering  <jim@meyering.net>
15479         fchmodat.c, fchownat.c: compile-impeding typos
15480         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
15481         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
15482         Introduced in commit v0.0-7636-gd202279.
15484 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15486         fcntl-h: support GNU flags like O_IGNORE_CTTY
15487         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
15488         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
15489         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
15490         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
15491         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
15492         Define to 0 if not already defined.
15493         * tests/test-fcntl-h.c: Test these new flags.
15495 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15497         faccessat, etc.: support AT_FDCWD-only use
15498         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
15499         this function only if its first argument is AT_FDCWD.
15500         Emacs wants faccessat for AT_EACCESS but not for any first-arg
15501         values other than AT_FDCWD, so it doesn't want all the openat
15502         machinery with fchdir etc.
15503         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
15504         * modules/fstatat, modules/mkdirat, modules/openat (Files):
15505         * modules/unlinkat (Files):
15506         Remove lib/openat-priv.h, as at-internal supplies this file.
15507         Removing this file here allows us to support programs like Emacs
15508         that avoid at-internal.
15510         faccessat: speed up 'configure' on mainstream hosts
15511         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
15512         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
15513         since it's only on unusual platforms that we need to check for
15514         'access', and it's better not to slow 'configure' down on all
15515         platforms.
15517         faccessat: port to Solaris 10
15518         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
15519         Needed on Solaris 10, which doesn't have AT_EACCESS,
15520         so we need the Gnulib fcntl.h, which defines it.
15522 2012-10-14  Pádraig Brady  <P@draigBrady.com>
15523         canonicalize: fix C89 compilation
15524         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
15525         declarations so C89 is supported.  Also remove the comment
15526         referencing memorty allocation as the suggested feature could
15527         not be implemented as suggested.
15528         Reported by Michael Goffioul.
15530 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15532         group-member: omit unnecessary dependencies
15533         This is for Emacs, which has its own allocator and where we
15534         don't want to use xalloc.
15535         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
15536         since we no longer use xmalloc.  Do not include stdbool.h, since
15537         the changes below happen to remove the only use of bool.
15538         (GROUPBUF_SIZE): New constant.
15539         (struct group_info): Remove n_groups member.  Add groupbuf member.
15540         This lets us get the groups without using malloc, usually.
15541         (free_group_info, get_group_info): Adjust to this.
15542         (get_group_info): Return the number of groups found, or -1 on error.
15543         Use plain malloc not xmalloc, and treat its failure as if there
15544         are no groups, as the user already loses in case of error.
15545         (group_member): Simplify, based on changes to get_group_info.
15546         * modules/group-member (Depends-on): Remove dependencies on
15547         xalloc and stdbool.  Add dependency on xalloc-oversized.
15549 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
15551         gethrxtime: port to C++
15552         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
15554 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15556         ptsname: fix macro-name typo
15557         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
15559 2012-10-03  Simon Josefsson  <simon@josefsson.org>
15561         inttostr: Relax license.
15562         * modules/inttostr (License): Change from LGPL to LGPLv2+.
15564 2012-10-03  Eric Blake  <eblake@redhat.com>
15566         ptsname_r: support ptys returned by FreeBSD posix_openpt
15567         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
15568         lives in /dev/pts/.
15570 2012-10-02  Eric Blake  <eblake@redhat.com>
15572         pselect: reject invalid file descriptors
15573         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
15574         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
15575         * modules/pselect (Depends-on): Add dup2.
15576         * doc/posix-functions/pselect.texi (pselect): Document this.
15578         select: reject invalid file descriptors
15579         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
15580         * lib/select.c (rpl_select) [!win32]: Work around it.
15581         * modules/select (Depends-on): Add dup2.
15582         * doc/posix-functions/select.texi (select): Document this.
15584         select: enhance test
15585         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
15586         New functions.
15587         (test_function): Enhance test.
15588         (do_select_bad_fd): Avoid any stale errno values.
15590         ptsname: reject invalid file descriptors
15591         http://www.austingroupbugs.net/view.php?id=503
15592         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
15593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
15594         * modules/stdlib (Makefile.am): Replace witness.
15595         * lib/stdlib.in.h (ptsname): Allow for replacement.
15596         * modules/ptsname (configure.ac): Trigger replacement.
15597         * doc/posix-functions/ptsname.texi (ptsname): Document this.
15599 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
15601         hash-pjw-bare: new module
15602         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
15603         * lib/hash-pjw-bare.h: Likewise.
15604         * modules/hash-pjw-bare: New file.
15605         * MODULES.html.sh (Misc): Add it.
15607 2012-10-02  Eric Blake  <eblake@redhat.com>
15609         manywarnings: cater to more gcc infelicities
15610         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
15611         -Wuninitialized without -O.
15613 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
15615         select, poll tests: Make setsockopt invocation effective.
15616         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
15617         the bind() call.
15618         * tests/test-select.h (open_server_socket): Likewise.
15620 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15622         sockets, sys_stat: restore AC_C_INLINE
15623         This undoes the 2012-09-22 patch.
15624         * m4/sockets.m4 (gl_SOCKETS):
15625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
15626         Restore AC_C_INLINE, since MSVC requires __inline or _inline
15627         and does not support plain 'inline'.  Reported by Bruno Haible in
15628         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
15630 2012-09-30  Bruno Haible  <bruno@clisp.org>
15632         localeconv tests: Avoid test failure on OpenIndiana.
15633         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
15634         skip the 'grouping' and 'mon_grouping' tests.
15635         Reported by Jim Meyering.
15637 2012-09-30  Bruno Haible  <bruno@clisp.org>
15639         havelib: Follow libtool developments.
15640         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
15641         Suggested by Simon Josefsson.
15643 2012-09-29  Jim Meyering  <meyering@redhat.com>
15645         fstatat.c: fix a compile-impeding typo
15646         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
15647         Introduced in commit v0.0-7636-gd202279.
15648         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
15650 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
15652         extern-inline: provide a -Wundef safe config.h
15653         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
15654         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
15655         to produce a -Wundef warning free config.h.
15657 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15659         hash-pjw: relax license to LGPLv2+
15660         * modules/hash-pjw (License): Relax, with consent of author.
15662 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
15664         maint.mk: fix strict vs. lazy variable issues with RELEASE
15665         * top/maint.mk (_equal): New function.
15666         (member_check): Strip the result to avoid spurious spaces.
15667         (url_dir_list): Do not use ifeq, which is strict, as it will
15668         require RELEASE_TYPE to be defined.
15669         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
15670         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
15671         (announcement_Cc_alpha,announcement_mail_headers_alpha)
15672         (announcement_Cc_beta,announcement_mail_headers_beta)
15673         (announcement_Cc_stable,announcement_mail_headers_stable): these.
15674         (release): Do not depend on $(release-type), as it forces its
15675         evaluation.  Bounce to it.
15677 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
15679         maint.mk: formatting changes
15680         * top/maint.mk: Indent bodies of if's.
15682 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
15684         maint.mk: factor the validation of RELEASE_TYPE
15685         With help from Jim Meyering.
15686         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
15687         * top/maint.mk (_empty, _sp): Move their definition earlier.
15688         (member-check, release-type): New.
15689         Use the latter instead of $(RELEASE_TYPE).
15690         Remove now useless local checks.
15692 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
15694         maint.mk: provide "make upload" to ease uploading
15695         See
15696         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
15697         Do not depend simply on the current $(VERSION), as there may have been
15698         new commits since the tarball generation.  Rather, rely on $(RELEASE),
15699         as "make release-commit" already does.
15701         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
15702         "make TYPE".
15704         * top/maint.mk (upload_command, upload, release): New.
15705         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
15706         (VERSION): first word of $(RELEASE) is always right.
15707         (emit_upload_commands): Adjust.
15708         * top/README-release: Update.
15710 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
15712         maint.mk: silent rules
15713         With help from Stefano Lattarini.
15714         * top/maint.mk (writable-files): Use $(AM_V_GEN).
15715         (announcement): Use $(AM_V_at).
15717 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
15719         localename: port gl_locale_name_thread_unsafe to FreeBSD
15720         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
15721         and use the simpler FreeBSD implementation on Mac OS X as well.
15722         Original idea suggested by Ed Maste in
15723         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
15725 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15727         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
15728         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
15729         * lib/mbuiter.c, lib/xsize.c: New files.
15730         * lib/binary-io.h (BINARY_IO_INLINE):
15731         * lib/eealloc.h (EEALLOC_INLINE):
15732         * lib/mbfile.h (MBFILE_INLINE):
15733         * lib/mbiter.h (MBITER_INLINE):
15734         * lib/mbuiter.h (MBUITER_INLINE):
15735         * lib/xsize.h (XSIZE_INLINE):
15736         New macros.
15737         Replace all uses of 'static inline' with them.
15738         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15739         * m4/eealloc.m4 (gl_EEALLOC):
15740         * m4/mbfile.m4 (gl_MBFILE):
15741         * m4/mbiter.m4 (gl_MBITER):
15742         * m4/xsize.m4 (gl_XSIZE):
15743         Do not require AC_C_INLINE.
15744         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
15745         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
15746         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
15747         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
15748         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
15749         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
15750         * modules/binary-io, modules/eealloc, modules/mbfile:
15751         * modules/mbiter, modules/mbuiter:
15752         (Depends-on): Add extern-inline.
15754         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
15755         * lib/pipe-filter-aux.c: New file.
15756         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
15757         Replace all uses of 'static inline' with it.
15758         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15759         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
15760         (filter_retcode): No real need for inline here.
15761         * modules/pipe-filter-gi, modules/pipe-filter-ii:
15762         (Files): Add lib/pipe-filter-aux.c.
15763         (Depends-on): Add extern-inline.
15764         (configure.ac): Do not require AC_C_INLINE.
15765         (lib_SOURCES): Add pipe-filter-aux.c.
15767         fdutimensat: omit unnecessary AC_C_INLINE
15768         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
15770         fchmodat, fchownat, fstatat: use extern-inline
15771         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
15772         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
15773         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
15774         New macros.
15775         * lib/openat.h:
15776         Replace all uses of 'static inline' with them.
15777         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15778         * modules/fchmodat, modules/fchownat, modules/fstatat:
15779         * modules/openat-h:
15780         (Depends-on):
15781         Add extern-inline.
15782         (configure.ac): Remove AC_C_INLINE.
15784         acl, mbchar, priv-set: use extern-inline
15785         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
15786         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
15787         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
15788         New macros.
15789         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
15790         Replace all uses of 'static inline' with it.
15791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15792         * m4/acl.m4 (gl_FUNC_ACL):
15793         * m4/mbchar.m4 (gl_MBCHAR):
15794         * m4/priv-set.m4 (gl_PRIV_SET):
15795         Remove AC_C_INLINE, since 'inline' is no longer used directly.
15796         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
15797         Add extern-inline.
15799         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
15800         * m4/sockets.m4 (gl_SOCKETS):
15801         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
15802         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
15803         environments where it's already guaranteed to work, so we needn't
15804         check for it at 'configure'-time.
15806         tls-tests: omit unnecessary 'inline'
15807         * tests/test-tls.c (perhaps_yield): No longer inline.
15808         Simplicity and portability trump efficiency in test cases.
15810         utimens-tests: avoid unnecessary 'inline'
15811         * modules/fdutimensat-tests (configure.ac):
15812         * modules/futimens-tests (configure.ac):
15813         * modules/utimens-tests (configure.ac):
15814         * modules/utimensat-tests (configure.ac):
15815         Remove AC_C_INLINE.
15816         * tests/test-utimens-common.h (ctime_compare):
15817         No longer inline.  Simplicity and portability trump efficiency here.
15819         misc: don't limit commentary to inline functions
15820         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
15821         * lib/xalloc-oversized.h, lib/xsize.h:
15822         Contrast macros to functions in general, not just to inline functions,
15823         when the commentary does not apply only to inline functions.
15825 2012-09-20  Jim Meyering  <meyering@redhat.com>
15827         non-recursive-gnulib-prefix-hack: new module
15828         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
15829         the file that originated in Bison.
15830         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
15831         largely copied from a snippet that resided in bison's configure.ac.
15832         * modules/non-recursive-gnulib-prefix-hack: New file.
15833         * MODULES.html.sh (Support for maintaining and releasing projects):
15834         Add it.
15836 2012-09-18  Jim Meyering  <meyering@redhat.com>
15838         maint.mk: generalize _gl_tight_scope for non-recursive make
15839         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
15840         that *.h would describe additional .h files in the directory
15841         specified by $(_gl_TS_dir).  I.e., add this...
15842         (_gl_TS_other_headers): New variable.
15844         maint.mk: exempt trailing blanks found in "binary" files
15845         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
15846         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
15847         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15849 2012-09-17  Jim Meyering  <meyering@redhat.com>
15851         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
15852         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
15853         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
15854         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15856 2012-09-17  Jim Meyering  <meyering@redhat.com>
15858         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
15859         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
15860         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
15861         It is not in the same category as "exit (0)" or "exit (1)", and
15862         besides, I know of no symbolic name for that 77.  Reported by
15863         Richard W.M. Jones in
15864         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15866 2012-09-17  Jim Meyering  <meyering@redhat.com>
15868         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
15869         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
15870         all uses of #define, not just those that start in column 1.
15871         Richard W.M. Jones reported a false positive in
15872         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15874 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15876         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
15877         * lib/localcharset.c (locale_charset) [DARWIN7]:
15878         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
15879         as these two values are incompatible.  Problem reported by Max Horn.
15880         For more discussion, please see
15881         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
15883         doc: document sticky-EOF issue
15884         * doc/posix-functions/fgetc.texi (fgetc):
15885         * doc/posix-functions/fgets.texi (fgets):
15886         * doc/posix-functions/fread.texi (fread):
15887         * doc/posix-functions/fscanf.texi (fscanf):
15888         * doc/posix-functions/getc.texi (getc):
15889         * doc/posix-functions/getchar.texi (getchar):
15890         * doc/posix-functions/scanf.texi (scanf):
15891         Mention that glibc and default Solaris do not conform to
15892         C99 and POSIX-2001 or later, with respect to how getchar
15893         etc. behave when feof reports nonzero.
15895 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15897         poll: fix poll(0, NULL, msec)
15898         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
15899         but nfd is 0.  In that case poll should behave like select.
15901 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15902             Paolo Bonzini  <bonzini@gnu.org>
15904         poll: fix for systems that can't recv() on a non-socket
15905         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
15906         is readable.  In this case POLLHUP will not be supported.
15907         * doc/posix-functions/poll.texi: Document this.
15909 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
15911         poll/select: document portability problems not fixed by Gnulib.
15912         * doc/posix-functions/poll.texi: poll does not work well on
15913         pipes under Windows.  It has the same limitations as select on
15914         BeOS.
15915         * doc/posix-functions/select.texi: select does not work well
15916         on pipes under Windows.
15918 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15920         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
15921         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
15922         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
15923         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
15925 2012-09-06  Eric Blake  <eblake@redhat.com>
15927         net_if: give more details about the bug being fixed
15928         * doc/posix-headers/net_if.texi: Add clarification.
15930 2012-09-05  Eric Blake  <eblake@redhat.com>
15932         net_if: new module
15933         * modules/net_if: New module, borrowing ideas from netinet_in.
15934         * m4/net_if_h.m4: New file.
15935         * lib/net_if.in.h: Likewise.
15936         * doc/posix-headers/net_if.texi (net/if.h): Document it.
15937         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15938         * tests/test-net_if.c: Make function checks conditional.
15939         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
15941 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15943         readutmp: fix non-portable UT_PID use
15944         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
15945         Use `UT_PID (u) > 0' as absolute condition.
15947 2012-09-04  Jim Meyering  <meyering@redhat.com>
15949         fts: reduce two or more trailing spaces to just one, usually
15950         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
15951         or more slashes, trim all but the final one.  But if a name consists
15952         solely of two slashes, don't modify it.  If it consists solely of
15953         three or more slashes, strip all but one.
15955         This is part of the solution to a minor problem with rm:
15956         it would print a bogus ELOOP diagnostic when failing to remove
15957         the slash-decorated name of a symlink-to-directory:
15959             $ mkdir d && ln -s d s && env rm -r s/
15960             rm: cannot remove 's': Too many levels of symbolic links
15962         With the change below and a trivial don't-trim-trailing-slashes
15963         adjustment to remove.c, it does this:
15965             $ env rm -r s/
15966             rm: cannot remove 's/': Not a directory
15968         Improved by: Eric Blake
15970         fts: when there is no risk of overlap, use memcpy, not memmove
15971         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
15973 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15975         stdbool: be more compatible with mixed C/C++ compiles
15976         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
15977         Define to bool, true, false, respectively, as GCC's builtin
15978         stdbool.h does.  Problem reported by Michael Goffioul in
15979         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
15981 2012-08-28  Jim Meyering  <meyering@redhat.com>
15983         revert last change: it was not needed
15984         * tests/test-vc-list-files-git.sh: There's already a test for
15985         a working git, just below.
15987 2012-08-28  Jim Meyering  <meyering@redhat.com>
15989         tests: test-vc-list-files-git.sh: skip if git is not available
15990         * tests/test-vc-list-files-git.sh: Skip this test when git is
15991         not available.
15993 2012-08-26  Bruno Haible  <bruno@clisp.org>
15995         gnulib-tool: Remove no-op option --no-changelog.
15996         * gnulib-tool (func_usage): Don't mention --no-changelog.
15997         (do_changelog): Remove variable.
15998         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16000 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16002         doc: remove fdl-1.2.texi
16003         It is no longer used or maintained, and its use of @acronym
16004         is problematic.  See the thread containing
16005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
16006         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
16007         * doc/old-licenses/fdl-1.2.texi: Remove.
16009         execinfo: port to FreeBSD
16010         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
16011         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
16012         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
16013         * modules/execinfo (Link): Add $(LIB_EXECINFO).
16015 2012-08-23  Jim Meyering  <meyering@redhat.com>
16017         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
16018         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
16019         to placate gcc's -Wold-style-declaration.
16021 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16023         doc: do not use @acronym
16024         * doc/inet_ntoa.texi (inet_ntoa):
16025         * doc/parse-datetime.texi (Seconds since the Epoch)
16026         (Specifying time zone rules):
16027         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
16028         Don't use @acronym.  Problem reported by John Darlington in
16029         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
16031 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16033         stdnoreturn: port to newer GCCs
16034         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
16035         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
16036         Problem reported by Jim Meyering in
16037         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
16038         Also, rename the 'test' function to a void a clash with the
16039         already-supplied 'main' function; this fixes a bug that incorrectly
16040         rejected GCC 4.7.1's <stdnoreturn.h>.
16041         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
16042         Document GCC problem.
16044 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
16046         pipe-filter: fix comment typo
16047         * lib/pipe-filter.h: Mention correct function.
16049 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16051         execinfo: new module
16052         This is for Emacs.  Currently, it provides a no-effect stub
16053         on all platforms where it does not already work.
16054         It already works on glibc-based systems, and on Solaris 11.
16055         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
16056         New files.
16057         * doc/glibc-headers/execinfo.texi (execinfo.h):
16058         * MODULES.html.sh (Misc): Document it.
16060 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16062         extern-inline: support old GCC 'inline'
16063         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
16064         if available.  This applies to GCC versions 2.7 through 4.2, or
16065         when newer GCC is using -fgnu89-inline.  The goal is to address
16066         some of the performance issues mentioned by Bruno Haible in
16067         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
16069 2012-08-20  Eric Blake  <eblake@redhat.com>
16071         maint.mk: avoid redundant file name in message
16072         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
16073         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
16074         (sc_makefile_path_separator_check): Remove bogus $(ME).
16076 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
16078         timer-time: fix link order when static linking on glibc
16079         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
16080         _after_ -lrt so that it's significant.
16082 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16084         timespec: omit unnecessary AC_C_INLINE
16085         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
16087         stat-time: omit unnecessary AC_C_INLINE
16088         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16089         Do not require AC_C_INLINE.
16091         ignore-value: omit unnecessary AC_C_INLINE
16092         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
16094         sys_select: avoid 'static inline'
16095         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
16097         mktime: avoid 'static inline'
16098         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
16099         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
16101 2012-08-19  Bruno Haible  <bruno@clisp.org>
16103         gnulib-tool: Improve coding style.
16104         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
16105         func_emit_lib_Makefile_am.
16106         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16108 2012-08-19  Bruno Haible  <bruno@clisp.org>
16110         gnulib-tool: Fix indentation.
16111         * gnulib-tool (func_import): Fix indentation.
16113 2012-08-19  Bruno Haible  <bruno@clisp.org>
16115         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
16116         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
16117         on the list of removed files.
16119 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16121         test-parse-datetime: avoid glibc leap-second glitch
16122         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
16123         with the 2012 rules.  Problem reported by Bruce Dubbs in
16124         <http://bugs.gnu.org/12206>.
16126 2012-08-14  Bruno Haible  <bruno@clisp.org>
16128         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
16129         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
16130         from argument.
16131         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16133 2012-08-14  Eric Blake  <eblake@redhat.com>
16135         ldexp: relax license
16136         * modules/ldexp (License): Trivial relax, since the module only
16137         provides a permissively licensed m4 file.
16139 2012-08-13  Bruno Haible  <bruno@clisp.org>
16141         gnulib-tool: Fix persistence of --witness-c-macro option.
16142         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
16143         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16145 2012-08-11  Eric Blake  <eblake@redhat.com>
16147         count-leading-zeros: use a lookup table on non-gcc compilers
16148         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
16149         alternate implementation, suggested by Jim Meyering.
16151 2012-08-10  Eric Blake  <eblake@redhat.com>
16153         count-leading-zeros: new module
16154         * modules/count-leading-zeros: New module.
16155         * m4/count-leading-zeros.m4: New file.
16156         * lib/count-leading-zeros.h: Likewise.
16157         * modules/count-leading-zeros-tests: New test.
16158         * tests/test-count-leading-zeros.c: New file.
16159         * MODULES.html.sh (Integer arithmetic functions): Document it.
16161 2012-08-07  Simon Josefsson  <simon@josefsson.org>
16162             Jim Meyering  <meyering@redhat.com>
16164         maintainer-makefile: Fix syntax error with dash.
16165         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
16166         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
16168 2012-08-05  Jim Meyering  <meyering@redhat.com>
16170         extern-inline: also ignore -Wmissing-declarations
16171         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
16172         required with gcc-4.8.0-to-be.
16174         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
16175         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
16176         for /error ?([^,]*)/.  This avoids false-positives for strings like
16177         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
16179 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
16181         gnumakefile: better interaction with Automake-NG
16182         * modules/gnumakefile [Makefile.am]: The makefiles generated by
16183         Automake-NG always contain a definition of VPATH, even in non-VPATH
16184         builds (its value being simply '.' in that case).  So, in the
16185         'clean-GNUmakefile' rule, to determine whether running under a
16186         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
16187         '$(VPATH)' expands to the empty string.
16189 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
16191         base64: Use extern C scope in header file, for C++.
16192         * lib/base64.h: Add C++ namespace protection.
16194 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
16196         stat-time, timespec, u64: support naive out-of-dir builds
16197         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
16198         Use '#include "foo.h"', not '#include <foo.h>', when including
16199         one's own interface.  This works better when configuring with
16200         out-of-directory builds, since packages need not add an
16201         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
16203 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16205         utimens: use extern-inline
16206         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
16207         * lib/utimens.h: Add copyright notice, since this is now large enough
16208         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16209         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
16210         * modules/utimens (Depends-on): Add extern-inline.
16212         u64: use extern-inline
16213         * lib/u64.c: New file.
16214         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16215         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
16216         * modules/u64 (Files): Add lib/u64.c.
16217         (Depends-on): Add extern-inline.
16218         (configure.ac): No need to require AC_C_INLINE, since extern-inline
16219         does that now.
16220         (lib_SOURCES): Add u64.c.
16222         timespec: use extern-inline
16223         * lib/timespec.c: New file.
16224         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16225         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
16226         * modules/timespec (Files): Add lib/timespec.c.
16227         (Depends-on): Add extern-inline.
16228         (lib_SOURCES): Add timespec.c.
16230         stat-time: use extern-inline
16231         * lib/stat-time.c: New file.
16232         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16233         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
16234         * modules/stat-time (Files): Add lib/stat-time.c.
16235         (Depends-on): Add extern-inline.
16236         (lib_SOURCES): Add stat-time.c.
16238         extern-inline: new module
16239         * modules/extern-inline, m4/extern-inline.m4: New files.
16240         This is for better support of 'extern inline' a la ISO C99,
16241         with a portable alternative on compilers that do not support
16242         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
16243         of the Emacs executable, when compiled with debugging disabled,
16244         which is a typical way that Emacs is built while developing.
16246 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
16248         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
16249         * build-aux/do-release-commit-and-tag: Move variable definitions
16250         together.
16251         ($branch): Instead of defaulting to "master", default to the current
16252         branch (as gnu-web-doc-update does).
16253         (help): Display the current values of the option arguments.
16254         * top/maint.mk (release-commit): New.
16255         * top/README-release: Simplify the corresponding step.
16257 2012-07-30  Eric Blake  <eblake@redhat.com>
16259         passfd: fix comment on recvfd
16260         * lib/passfd.c (recvfd): Fix comment.
16261         Reported by Jann Horn <jannhorn@googlemail.com>.
16263 2012-07-30  Jim Meyering  <meyering@redhat.com>
16265         maint.mk: avoid a sub-shell
16266         * top/maint.mk (release-prep): Remove unneeded sub-shell.
16268 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16270         maint.mk: use silent-rules support from Automake
16271         * top/maint.mk (news-check, vc-diff-check, announcement)
16272         (no-submodule-changes, alpha beta stable, release-prep)
16273         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
16275 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16277         maint.mk: provide a web-manual-update target
16278         * top/maint.mk: here.
16279         * top/README-release: Use it to simplify the web manual update step.
16281 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16283         README-release: shorten the circuit to post a news
16284         * top/README-release: Point directly to the news submission form.
16286 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16288         gnu-web-doc-update: fix --help
16289         * build-aux/gnu-web-doc-update: The information "top level" was written
16290         twice.
16292 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16294         maint.mk: absolute VPATH issue
16295         * top/maint.mk (release-prep): Help Git find .git/.
16296         From Jim Meyering.
16298 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16300         gitlog-to-changelog: fix previous change
16301         * build-aux/gitlog-to-changelog: Fix condition.
16302         Add missing ";".
16304 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16306         gitlog-to-changelog: don't expect .git to be in $srcdir
16307         Reported by Bruno Haible.
16308         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
16309         * build-aux/gitlog-to-changelog (&git_dir_option): New.
16310         Use it.
16312 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16314         maint.mk: absolute VPATH build fix
16315         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
16316         $(srcdir) is not a parent of $(builddir).
16318 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
16320         clean-temp: Fix memory leak.
16321         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
16322         'files' members of tmpdir.
16324 2012-07-27  Jim Meyering  <meyering@redhat.com>
16326         maint.mk: new rule: refresh-gnulib-patches
16327         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
16328         Use this rule to refresh them.
16329         * top/maint.mk (refresh-gnulib-patches): New rule.
16331 2012-07-24  Bruno Haible  <bruno@clisp.org>
16333         gnulib-tool: Fix handling of inctests variable.
16334         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
16335         Reported by Nick Bowler <nbowler@elliptictech.com>.
16337 2012-07-22  Bruno Haible  <bruno@clisp.org>
16339         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
16340         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
16341         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
16342         Remove exemption for getpass.h.
16343         Suggested by Eric Blake.
16345 2012-07-20  Eric Blake  <eblake@redhat.com>
16347         verify: document conflict with -Wnested-externs
16348         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
16350         maint.mk: forbid exit(-1)
16351         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
16353 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
16355         fsusage: port back to Solaris
16356         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
16357         error (fsd not declared) on Solaris 10.  Reported privately by
16358         Andrew Borodin.
16360 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
16362         gnu-web-doc-update: fix error messages
16363         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
16365         gnu-web-doc-update: check the requirements.
16366         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
16367         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
16368         * build-aux/bootstrap (find_tool): Comment change.
16370 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
16372         maint.mk: minor simplication.
16373         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
16374         for default values.
16376 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
16378         gitlog-to-changelog: VPATH build issues
16379         If builddir is not a subdirectory of srcdir, running git from it will
16380         fail.
16381         * build-aux/gitlog-to-changelog (--srcdir): New option.
16383 2012-07-15  Bruno Haible  <bruno@clisp.org>
16385         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
16386         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
16387         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
16388         Remove exemption for fpending.h.
16389         Suggested by Eric Blake.
16391 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16393         pthread_sigmask: fix bug on FreeBSD 9
16394         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
16395         Include string.h.
16396         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
16397         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
16398         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
16399         but pthread_sigmask (1729, NULL, NULL) returns zero.
16400         See <http://bugs.gnu.org/11884>.
16401         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
16402         by inspecting whether the main call changed the old mask.
16404 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
16406         README-release: make it more legible
16407         * top/README-release: Improve typography slightly.
16409 2012-07-15  Jim Meyering  <meyering@redhat.com>
16411         maint: require that each sc_... command start with "@"
16412         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
16413         "make sc_maint" helps us avoid this nit.
16415 2012-07-15  Jim Meyering  <meyering@redhat.com>
16417         maint.mk: add leading "@" to quiet new "make syntax-check" rule
16418         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
16420 2012-07-13  Eric Blake  <eblake@redhat.com>
16422         maint.mk: new syntax check for HAVE_DECL checks
16423         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
16424         * cfg.mk
16425         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
16426         Exempt some false positives.
16427         Based on a report by Karel Zak.
16429         argp: make HAVE_DECL usage consistent
16430         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
16431         macros, not whether they are defined.
16432         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
16433         convention with other declaration checks.
16434         Reported by Karel Zak, with suggestions from Paul Eggert.
16436         stat-time: relax license to LGPLv2+
16437         * modules/stat-time (License): Relax, with consent of all authors.
16439         strndup: fix m4 usage error
16440         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
16441         defined, to either 0 or 1.
16442         Reported by Karel Zak.
16444 2012-07-11  Jim Meyering  <meyering@redhat.com>
16446         maint: enable the sc_avoid_if_before_free syntax-check rule
16447         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
16448         (if_before_free_offenders_): Define.
16449         (if_before_free_basename_re_): Define.
16450         Exempt current files with useless if-before-free.
16452 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16454         gettext: do not assume '#define ... defined ...' behavior
16455         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
16456         Do not use '#define FOO ... defined BAR ...', as the C standard says
16457         it's not portable to expect that this works after macro expansion.
16458         Problem reported for gzip by Steven M. Schweda in
16459         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
16461 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16463         getloadavg: clean out old Emacs and Autoconf cruft
16464         See Glenn Morris in <http://bugs.gnu.org/11905>.
16465         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
16466         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
16467         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
16468         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
16470 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
16472         bootstrap: let warn be like tests/init.sh's warn_
16473         Reported by Jim Meyering.
16474         * build-aux/bootstrap (warn): Remove, replaced by...
16475         (warnf_, warn_): these.
16476         Adjust callers.
16477         Shorten messages that no longer fit in 80 columns.
16479 2012-07-09  Bruno Haible  <bruno@clisp.org>
16481         getopt: Simplify after Emacs changed.
16482         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
16483         (gl_GETOPT_IFELSE): Remove macro.
16485 2012-07-09  Jim Meyering  <meyering@redhat.com>
16487         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
16488         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
16490         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
16491         Bugs in both of those conspired to make the
16492         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
16493         _sc_search_regexp's handling of non-empty $in_files would filter
16494         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
16495         choice of in_files value meant there would be no match in most
16496         projects, due to the presence of two or more Makefile.in files.
16497         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
16498         Fix a bug in how a non-empty $$in_files was processed:
16499         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
16500         in spite of the name, it's a regexp, not a list of file names.
16502 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16504         getloadavg, getopt: fix commentary re configure.in
16505         Autoconf is deprecating the name 'configure.in', so change it to
16506         to the new name 'configure.ac' in a couple of places.
16507         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
16508         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
16509         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
16510         Emacs has renamed it to configure.ac, and it no longer refers
16511         to these macros anyway.
16513         timespec: mark functions with const attributes
16514         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
16515         Mark with _GL_ATTRIBUTE_CONST.
16517 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
16519         canonicalize[-lgpl]: handle "guessing" values when cross-building
16520         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16521         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
16522         matches "*yes" instead of just "yes".  Regression introduced in commit
16523         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
16525 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
16526             Bruno Haible  <bruno@clisp.org>
16528         canonicalize: make the right guess when cross-compiling to GNU
16529         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
16530         determine whether cross-compiling to glibc systems, so as to
16531         include GNU/Hurd.
16533 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16535         timespec-sub: avoid duplicate include
16536         * lib/timespec-sub.c: Do not include <config.h> twice.
16537         Reported by Juanma Barranquero.
16539 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
16541         bootstrap: use a more consistent error reporting scheme
16542         * build-aux/bootstrap (warn, die): New.
16543         Use them.
16545 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16547         sys_time: allow too-wide tv_sec
16548         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
16549         timeval even if tv_sec is wider than time_t.  This allows
16550         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
16551         as without this patch gnulib replaces struct timeval
16552         and OpenBSD futimes therefore has a type mismatch.
16553         * doc/posix-headers/sys_time.texi: Mention this.
16555         pthread: check for both pthread_create and pthread_join
16556         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
16557         alter the check so that it tests for both pthread_create and
16558         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
16559         Suggested by Bruno Haible and Richard Yao in
16560         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
16562         parse-datetime: doc tuneup
16563         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
16564         spacing issues.
16566 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
16568         do-release-commit-and-tag: fix the previous commit
16569         * build-aux/do-release-commit-and-tag: Actually the test was right,
16570         but the comment and the error message were misleading.
16571         Fix comment, and improve error message.
16572         Perform check first, so that NEWS is not modified uselessly.
16574         do-release-commit-and-tag: fix typo
16575         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
16576         _not_ start with a stub.
16578 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
16580         pthread: check for pthread_create, not pthread_join
16581         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
16582         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
16583         pthread_join in libc.  I hope this removes the need for all the
16584         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
16585         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
16587 2012-07-04  Jim Meyering  <meyering@redhat.com>
16589         parse-datetime: fix failure to diagnose invalid input
16590         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
16591         rather than diagnosing the invalid input.  Now it reports this:
16592         date: invalid date '\260'
16593         * lib/parse-datetime.y (to_uchar): Define.
16594         (yylex): Don't sign-extend "other" bytes.
16595         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
16596         Thanks to Bruno Haible for the patch to this file.
16597         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
16598         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
16600 2012-07-03  Jim Meyering  <meyering@redhat.com>
16602         bootstrap: do not require now-removed build-aux/missing
16603         Now that build-aux/missing is, er, missing, bootstrap would
16604         silently fail.
16605         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
16606         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
16607         no longer part of gnulib.
16608         Diagnose the failure.
16610 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16612         alloca: add support for HP NonStop TNS/E native
16613         * lib/alloca.in.h (alloca): Support the new host.
16614         From a suggestion by Joachim Schmitz in
16615         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
16617 2012-07-02  Pádraig Brady  <P@draigBrady.com>
16619         fsusage: remove code not needed on non GNU/Linux systems.
16621         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
16622         Don't include headers no longer needed in this case.
16623         * lib/fsusage.c [STAT_STATVFS &&
16624         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
16625         STAT_STATFS2_FRSIZE to exclude code not used in this case.
16627 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
16629         fsusage: include files needed for glibc 2.6 fallback
16630         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
16631         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
16632         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
16633         Problem reported by Ludovic Courtès in
16634         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
16636         fsusage: avoid needless check on GNU/Linux
16637         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
16638         on GNU/Linux systems, since it can't possibly work.
16640 2012-07-01  Bruno Haible  <bruno@clisp.org>
16642         log: Fix an autoconf >= 2.64 warning.
16643         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
16644         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16646 2012-06-28  Bruno Haible  <bruno@clisp.org>
16648         log10f: Fix possible configuration problem.
16649         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
16650         $LOGF_LIBM.
16651         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16653 2012-06-28  Bruno Haible  <bruno@clisp.org>
16655         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
16656         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
16657         not gl_cv_func_unlink_works.
16658         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16660 2012-06-27  Eric Blake  <eblake@redhat.com>
16662         config: drop scripts that automake says are not independent
16663         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
16664         * build-aux/elisp-comp: Delete.
16665         * build-aux/missing: Likewise.
16666         * build-aux/ylwrap: Likewise.
16667         * modules/elisp-comp: Likewise.
16668         * MODULES.html.sh: Drop mention of elisp-comp.
16669         * NEWS: Mention this.
16671 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
16673         root-uid: new module
16674         This is for portability to Tandem's NonStop Kernel.
16675         * lib/root-uid.h, modules/root-uid: New files.
16676         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
16677         * lib/write-any-file.c, tests/test-sethostname2.c:
16678         Include "root-uid.h".
16679         * lib/euidaccess.c (euidaccess):
16680         * lib/pt_chown.c (main):
16681         * lib/unlinkdir.c (cannot_unlink_dir):
16682         * lib/write-any-file.c (can_write_any_file):
16683         * m4/mknod.m4 (gl_FUNC_MKNOD):
16684         * tests/test-sethostname2.c (geteuid, main):
16685         Don't assume ROOT_UID == 0.
16686         * modules/euidaccess (Depends-on):
16687         * modules/pt_chown (Depends-on):
16688         * modules/sethostname-tests (Depends-on):
16689         * modules/unlinkdir (Depends-on):
16690         * modules/write-any-file (Depends-on):
16691         Add root-uid.
16693         regex: use locale-independent comparison for codeset name
16694         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
16695         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
16696         for codeset name.
16697         * lib/regex_internal.h: Do not include <strings.h>, since we
16698         no longer use strcasecmp.
16699         * modules/regex (Depends-on): Remove strcase.
16701 2012-06-23  Bruno Haible  <bruno@clisp.org>
16703         getopt-posix: No longer guarantee that option processing is resettable.
16704         * doc/posix-functions/getopt.texi: Drop description of problem with
16705         internal state. Fix info about mingw and msvc9.
16706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
16707         option processing by getopt(). Run three test programs instead of one.
16708         Simplify cross-compilation guess.
16709         * NEWS: Mention the change.
16710         Reported by Rich Felker <dalias@aerifal.cx>.
16712 2012-06-26  Bruno Haible  <bruno@clisp.org>
16714         argp, regex: Ensure strcasecmp gets declared.
16715         * lib/argp-help.c: Include <strings.h>.
16716         * lib/regex_internal.h: Likewise.
16717         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
16719 2012-06-24  Bruno Haible  <bruno@clisp.org>
16721         ptsname_r: Make it consistent with ptsname on AIX.
16722         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
16723         implementation as for OSF/1.
16724         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
16725         a pty master.
16727         ptsname_r: Make it consistent with ptsname on OSF/1.
16728         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
16729         OSF/1.
16731 2012-06-24  Bruno Haible  <bruno@clisp.org>
16733         ttyname_r: Fix result on OSF/1, Solaris.
16734         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
16736 2012-06-24  Bruno Haible  <bruno@clisp.org>
16738         ptsname_r: Add support for Solaris.
16739         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
16740         Solaris.
16742         ptsname_r: Fix test failure on native Windows.
16743         * modules/ptsname_r (Depends-on): Add isatty.
16745         ptsname_r: Fix test failures on IRIX, Solaris.
16746         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
16747         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
16748         accordingly.
16749         * lib/ptsname_r.c: Include <fcntl.h>.
16750         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
16751         set errno if fd is invalid.
16752         * tests/test-isatty.c (main): Update comments.
16754 2012-06-24  Bruno Haible  <bruno@clisp.org>
16756         ptsname test: Extend test.
16757         * tests/test-ptsname.c: Include <errno.h>.
16758         (main): Test behaviour with invalid file descriptor.
16760 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16762         time: fix obsolete comment
16763         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
16764         reference to HAVE_STRUCT_TIMESPEC in comment.
16766 2012-06-23  Bruno Haible  <bruno@clisp.org>
16768         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
16769         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
16770         does not handle abbreviated long options with equivalent
16771         disambiguations, set gl_replace_getopt to yes.
16772         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
16774 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16776         time_r: fix typo that always overrode localtime_r decl
16777         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
16778         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
16779         not in a standard include.
16781 2012-06-22  Bruno Haible  <bruno@clisp.org>
16783         Write "Mac OS X" instead of "MacOS X".
16784         * README: Write "Mac OS X" instead of "MacOS X".
16785         * build-aux/bootstrap: Likewise.
16786         * build-aux/install-reloc: Likewise.
16787         * lib/acl-internal.h: Likewise.
16788         * lib/acl_entries.c: Likewise.
16789         * lib/argp-ba.c: Likewise.
16790         * lib/argp-pv.c: Likewise.
16791         * lib/config.charset: Likewise.
16792         * lib/copy-acl.c: Likewise.
16793         * lib/csharpexec.c: Likewise.
16794         * lib/euidaccess.c: Likewise.
16795         * lib/fbufmode.c: Likewise.
16796         * lib/fflush.c: Likewise.
16797         * lib/file-has-acl.c: Likewise.
16798         * lib/filemode.h: Likewise.
16799         * lib/fpurge.c: Likewise.
16800         * lib/freadable.c: Likewise.
16801         * lib/freadahead.c: Likewise.
16802         * lib/freading.c: Likewise.
16803         * lib/freadptr.c: Likewise.
16804         * lib/freadseek.c: Likewise.
16805         * lib/fseeko.c: Likewise.
16806         * lib/fseterr.c: Likewise.
16807         * lib/fsusage.c: Likewise.
16808         * lib/fwritable.c: Likewise.
16809         * lib/fwriting.c: Likewise.
16810         * lib/get-rusage-as.c: Likewise.
16811         * lib/get-rusage-data.c: Likewise.
16812         * lib/getdomainname.c: Likewise.
16813         * lib/idpriv-drop.c: Likewise.
16814         * lib/idpriv-droptemp.c: Likewise.
16815         * lib/localcharset.c: Likewise.
16816         * lib/locale.in.h: Likewise.
16817         * lib/localename.c: Likewise.
16818         * lib/mbsrtowcs-state.c: Likewise.
16819         * lib/nproc.c: Likewise.
16820         * lib/passfd.c: Likewise.
16821         * lib/posix_openpt.c: Likewise.
16822         * lib/printf-parse.c: Likewise.
16823         * lib/progreloc.c: Likewise.
16824         * lib/safe-read.h: Likewise.
16825         * lib/safe-write.h: Likewise.
16826         * lib/sched.in.h: Likewise.
16827         * lib/set-mode-acl.c: Likewise.
16828         * lib/signal.in.h: Likewise.
16829         * lib/stdint.in.h: Likewise.
16830         * lib/stdio-impl.h: Likewise.
16831         * lib/stdlib.in.h: Likewise.
16832         * lib/strtod.c: Likewise.
16833         * lib/sys_select.in.h: Likewise.
16834         * lib/tcgetsid.c: Likewise.
16835         * lib/unistd.in.h: Likewise.
16836         * lib/unlockpt.c: Likewise.
16837         * lib/vasnprintf.c: Likewise.
16838         * lib/vma-iter.c: Likewise.
16839         * lib/wcsrtombs-state.c: Likewise.
16840         * m4/acl.m4: Likewise.
16841         * m4/acosl.m4: Likewise.
16842         * m4/asinl.m4: Likewise.
16843         * m4/atanl.m4: Likewise.
16844         * m4/c-stack.m4: Likewise.
16845         * m4/cosl.m4: Likewise.
16846         * m4/expl.m4: Likewise.
16847         * m4/extensions.m4: Likewise.
16848         * m4/fdatasync.m4: Likewise.
16849         * m4/fmal.m4: Likewise.
16850         * m4/frexp.m4: Likewise.
16851         * m4/frexpf.m4: Likewise.
16852         * m4/frexpl.m4: Likewise.
16853         * m4/fsusage.m4: Likewise.
16854         * m4/getdomainname.m4: Likewise.
16855         * m4/getloadavg.m4: Likewise.
16856         * m4/getopt.m4: Likewise.
16857         * m4/gettext.m4: Likewise.
16858         * m4/gnulib-common.m4: Likewise.
16859         * m4/intdiv0.m4: Likewise.
16860         * m4/intlmacosx.m4: Likewise.
16861         * m4/largefile.m4: Likewise.
16862         * m4/ldexpl.m4: Likewise.
16863         * m4/link-follow.m4: Likewise.
16864         * m4/locale-ar.m4: Likewise.
16865         * m4/locale-fr.m4: Likewise.
16866         * m4/locale-ja.m4: Likewise.
16867         * m4/locale-tr.m4: Likewise.
16868         * m4/locale-zh.m4: Likewise.
16869         * m4/locale_h.m4: Likewise.
16870         * m4/lock.m4: Likewise.
16871         * m4/logl.m4: Likewise.
16872         * m4/mathfunc.m4: Likewise.
16873         * m4/minus-zero.m4: Likewise.
16874         * m4/mktime.m4: Likewise.
16875         * m4/mmap-anon.m4: Likewise.
16876         * m4/multiarch.m4: Likewise.
16877         * m4/nanosleep.m4: Likewise.
16878         * m4/nocrash.m4: Likewise.
16879         * m4/poll.m4: Likewise.
16880         * m4/printf-frexpl.m4: Likewise.
16881         * m4/printf.m4: Likewise.
16882         * m4/signbit.m4: Likewise.
16883         * m4/sinl.m4: Likewise.
16884         * m4/sqrtl.m4: Likewise.
16885         * m4/strerror_r.m4: Likewise.
16886         * m4/tanl.m4: Likewise.
16887         * m4/threadlib.m4: Likewise.
16888         * m4/ttyname_r.m4: Likewise.
16889         * m4/unlink.m4: Likewise.
16890         * m4/visibility.m4: Likewise.
16891         * m4/wcwidth.m4: Likewise.
16892         * tests/minus-zero.h: Likewise.
16893         * tests/test-alloca-opt.c: Likewise.
16894         * tests/test-copy-acl.sh: Likewise.
16895         * tests/test-copy-file.sh: Likewise.
16896         * tests/test-fdatasync.c: Likewise.
16897         * tests/test-file-has-acl.sh: Likewise.
16898         * tests/test-flock.c: Likewise.
16899         * tests/test-fsync.c: Likewise.
16900         * tests/test-localename.c: Likewise.
16901         * tests/test-malloca.c: Likewise.
16902         * tests/test-nonblocking-pipe.h: Likewise.
16903         * tests/test-nonblocking-socket.h: Likewise.
16904         * tests/test-openpty.c: Likewise.
16905         * tests/test-posix_openpt.c: Likewise.
16906         * tests/test-ptsname.c: Likewise.
16907         * tests/test-ptsname_r.c: Likewise.
16908         * tests/test-sameacls.c: Likewise.
16909         * tests/test-select.h: Likewise.
16910         * tests/test-set-mode-acl.sh: Likewise.
16911         * tests/test-snprintf-posix.h: Likewise.
16912         * tests/test-sprintf-posix.h: Likewise.
16913         * tests/test-strtod.c: Likewise.
16914         * tests/test-time.c: Likewise.
16915         * tests/test-vasnprintf-posix.c: Likewise.
16916         * tests/test-vasprintf-posix.c: Likewise.
16917         * doc/acl-resources.txt: Likewise.
16918         * doc/**/*.texi: Likewise.
16919         Reported by Max Horn <max@quendi.de>.
16921 2012-06-22  Bruno Haible  <bruno@clisp.org>
16923         grantpt: Relax requirement regarding invalid file descriptors.
16924         * lib/grantpt.c: Don't include <fcntl.h>.
16925         (grantpt): Don't verify the validity of the file descriptor.
16926         * modules/grantpt (Depends-on): Remove fcntl-h.
16927         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
16928         file descriptors.
16929         * doc/posix-functions/grantpt.texi: Document more platforms on which
16930         grantpt succeeds for invalid file descriptors.
16931         Reported by Rich Felker <dalias@aerifal.cx>.
16933 2012-06-22  Bruno Haible  <bruno@clisp.org>
16935         fbufmode test: Don't test unportable behaviour.
16936         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
16937         (main): Invoke it three times.
16938         Reported by Szabolcs Nagy <nsz@port70.net>
16939         and Rich Felker <dalias@aerifal.cx>.
16941 2012-06-21  Bruno Haible  <bruno@clisp.org>
16943         gnulib-tool: Refactor inctests variable.
16944         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
16945         (func_modules_transitive_closure,
16946         func_modules_transitive_closure_separately,
16947         func_import, func_create_testdir): Update.
16949         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
16950         * gnulib-tool: Accept option --without-tests.
16951         (func_usage): Document --without-tests option. Rearrange.
16952         (inctests): Normalize according to the mode.
16953         * NEWS: Mention the change.
16954         Suggested by Simon Josefsson.
16956 2012-06-21  Bruce Korb  <bkorb@gnu.org>
16958         parse-duration test: Avoid spurious output.
16959         * tests/test-parse-duration.sh: Reindent with leading tabs.
16961 2012-06-21  Jim Meyering  <meyering@redhat.com>
16963         maint: disable the strncpy prohibition
16964         * cfg.mk: Do not prohibit strncpy here.
16966 2012-06-21  Bruno Haible  <bruno@clisp.org>
16968         nonblocking: Avoid compilation error on mingw64.
16969         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
16970         fscanf.
16971         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
16972         * modules/vfscanf (configure.ac): Likewise.
16973         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
16974         definition only if stdio.h has prepared it.
16975         Reported by Daniel P. Berrange <berrange@redhat.com>.
16977 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
16979         gnulib-tool: Use readlink if it is available.
16980         * gnulib-tool (func_readlink): Choose function more appropriately.
16982 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16984         posixtm-tests: port to buggy compiler
16985         Problem reported by Simon Josefsson in
16986         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
16987         * modules/posixtm-tests (Depends-on): Add stdint.
16988         * tests/test-posixtm.c (struct posixtm_test.t_expected):
16989         Now of type int_least64_t, not int64_t, both because that's
16990         what INT64_C returns and because int_least64_t works even
16991         on 72-bit hosts.
16992         (T): Use INT64_C on constants outside the traditional int range,
16993         to work around compiler bug noted by Simon.
16995         mktime: fix integer overflow in 'configure'-time test
16996         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
16997         after integer overflow.  Problem reported by Rich Felker in
16998         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
16999         Also, don't look for further instances of a bug if we've already
17000         found one instance; this helps 'configure' run faster.
17002 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
17004         tmpfile, clean-temp: Fix invocation of GetVersionEx.
17005         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
17006         GetVersionEx correctly.
17007         * lib/clean-temp.c (supports_delete_on_close): Likewise.
17009 2012-06-20  Bruno Haible  <bruno@clisp.org>
17011         fdopen: Allow implementations that don't reject invalid fd arguments.
17012         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
17013         succeeds.
17014         Reported by Rich Felker <dalias@aerifal.cx>.
17016 2012-06-20  Simon Josefsson  <simon@josefsson.org>
17018         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
17019         bring in LIBINTL.
17021 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17023         init.sh: do not rely on autoupated PWD
17024         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
17025         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
17026         Although Nelson's bug was not necessarily fixed by this patch,
17027         it seems wise to make the change for safety.
17028         * tests/init.sh (path_prepend_): Do not rely on PWD updating
17029         automagically after 'cd'; this is not reliable on older shells.
17030         (setup_): Fail if we cannot cd to temporary directory.
17032 2012-06-19  Bruno Haible  <bruno@clisp.org>
17034         stat, fstat: Avoid warnings on mingw64.
17035         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
17036         redefining.
17037         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
17038         Reported by Daniel P. Berrange <berrange@redhat.com>.
17040 2012-06-19  Bruno Haible  <bruno@clisp.org>
17042         stdioext: Add support for musl libc.
17044         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
17045         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
17047         * m4/fseterr.m4: New file.
17048         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
17049         function exists.
17050         * modules/fseterr (Files): Add m4/fseterr.m4.
17051         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
17052         __fseterr does not exist.
17053         (Makefile.am): Remove fseterr.c from lib_SOURCES.
17055         * lib/freadable.h: Update comment.
17057         * lib/fwritable.h: Update comment.
17059         * lib/freading.h: Update comment.
17061         * lib/fwriting.h: Update comment.
17063         * m4/freadahead.m4: New file.
17064         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
17065         that function exists.
17066         * modules/freadahead (Files): Add m4/freadahead.m4.
17067         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
17068         __freadahead does not exist.
17069         (Makefile.am): Remove freadahead.c from lib_SOURCES.
17071         * m4/freadptr.m4: New file.
17072         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
17073         function exists.
17074         * modules/freadptr (Files): Add m4/freadptr.m4.
17075         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
17076         __freadptr does not exist.
17077         (Makefile.am): Remove freadptr.c from lib_SOURCES.
17079         * m4/freadseek.m4: New file.
17080         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
17081         exists.
17082         * modules/freadseek (Files): Add m4/freadseek.m4.
17083         (configure.ac): Invoke gl_FUNC_FREADSEEK.
17085         * lib/fpurge.c (fpurge): Update comment.
17087         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
17089 2012-06-19  Bruno Haible  <bruno@clisp.org>
17091         *printf-posix: Put more info into config.log.
17092         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
17093         exit code into config.log.
17095 2012-06-19  Bruno Haible  <bruno@clisp.org>
17097         getopt-gnu: Fix exit code overflow in autoconf test.
17098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
17099         to keep them below < 128.
17101 2012-06-17  Jim Meyering  <meyering@redhat.com>
17103         maint.mk: fix typo in code to derive GPG key at release time
17104         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
17106 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17108         regex: avoid warning when pointers are not long
17109         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
17110         and uintptr_t, not long, for portability to hosts where pointers and
17111         long have different sizes.  Issue noted by Daniel P. Berrange in
17112         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
17113         and fix suggested by Bruno Haible in
17114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
17116 2012-06-17  Bruno Haible  <bruno@clisp.org>
17118         dummy: Relicense into the public domain.
17119         * modules/dummy (License): Set to "public domain".
17120         Suggested by Reuben Thomas.
17122 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
17124         announce-gen: VPATH issues
17125         * build-aux/announce-gen (--srcdir): New option, used to trim the
17126         $srcdir part of the path from $builddir to NEWS.
17127         * top/maint.mk (announcement): Adjust.
17129 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
17131         gnu-web-doc-update: VPATH builds
17132         * build-aux/gnu-web-doc-update (--builddir): New option.
17133         Revamp the handling of options.
17134         Prefer $(...) to `...`.
17135         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
17136         the template, and it is GNU mktemp specific.
17137         Prefer set -e to long series of &&.
17138         Restore the initial git branch, not "master".
17139         Properly initialize submodules (don't rely only on bootstrap).
17140         Do not reconfigure blindly, use config.status.
17141         * top/README-release: Update instructions for gnu-web-doc-update.
17143 2012-06-11  Jim Meyering  <meyering@redhat.com>
17145         maint.mk: revert most of the previous change re "all these"
17146         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
17147         For rationale, see the discussion at
17148         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
17150 2012-06-10  Karl Berry  <karl@gnu.org>
17152         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
17154         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
17156 2012-06-10  Bruce Korb  <bkorb@gnu.org>
17158         parse-duration: Relicense under LGPLv2+.
17159         * modules/parse-duration (License): Change to LGPLv2+.
17161 2012-06-10  Jim Meyering  <meyering@redhat.com>
17163         maint.mk: prohibit common grammar error: "all these"
17164         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
17165         the list of prohibited word sequences.  It should be "all of these".
17166         * lib/tempname.c (__gen_tempname): Fix one of them.
17168 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17170         do-release-commit-and-tag: support VPATH builds
17171         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
17172         (noteworthy): Defined earlier to factor its value.
17173         (noteworthy_stub): New.
17174         Use it to factor.
17175         (help_version): Split into...
17176         (help, version): these.
17177         Adjust the option processing part.
17178         Support "--option=value" in addition to "--option value".
17179         (builddir): New.
17180         (--builddir): New option.
17181         * top/README-release: Document this.
17182         Reword slightly so that the reader cannot understand that he
17183         has to do these steps before calling do-release-commit-and-tag.
17185 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17187         readme-release: also require announce-gen and maintainer-makefile
17188         * modules/readme-release (Depends-on): here.
17189         * modules/announce-gen, modules/do-release-commit-and-tag,
17190         modules/gnu-web-doc-update, modules/maintainer-makefile
17191         (Description): Point to readme-release.
17193 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17195         maint.mk: fix VPATH issues.
17196         * top/maint.mk (news-check): GNU Make understand $< very well.
17197         (release-prep): NEWS is in $(srcdir).
17199 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
17201         readme-release: require the promoted modules.
17202         * modules/readme-release (Depends-on): Add
17203         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
17204         in this text.
17206 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17207             Bruno Haible  <bruno@clisp.org>
17209         error, strerror-override: Support mingw64 from Fedora 17.
17210         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
17211         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
17212         EINPROGRESS.
17213         * lib/strerror-override.h (strerror_override): Test it.
17214         * lib/strerror-override.c (strerror_override): Likewise.
17215         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
17217 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17218             Bruno Haible  <bruno@clisp.org>
17220         error, strerror-override: Support mingw64 from Fedora 17.
17221         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
17222         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
17223         * lib/strerror-override.h (strerror_override): Test it.
17224         * lib/strerror-override.c (strerror_override): Likewise.
17226 2012-06-03  Bruno Haible  <bruno@clisp.org>
17228         error, strerror-override: Support new errno values from POSIX:2008.
17229         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
17230         ENOTRECOVERABLE.
17231         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
17232         platforms.
17233         * lib/strerror-override.c (strerror_override): Conditionalize the
17234         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
17235         * lib/strerror-override.h (strerror_override): Declare also if
17236         GNULIB_defined_EOWNERDEAD is defined.
17237         * tests/test-errno.c (e130, e131): New variables.
17238         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
17239         ENOTRECOVERABLE.
17240         Reported by Paolo Bonzini.
17242 2012-05-31  Jim Meyering  <meyering@redhat.com>
17244         savewd: add missing dependency on sys_wait module
17245         * modules/savewd (Depends-on): Add sys_wait, needed at least
17246         for MSVC.  Report and suggested change by Michael Goffioul.
17248 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17250         system-quote-tests: port to CentOS 5
17251         Problem reported by Tom G. Christensen in
17252         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
17253         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
17255 2012-05-29  Jim Meyering  <meyering@redhat.com>
17257         maint: fix typos in comments and ChangeLog
17258         Culprits identified and fixed mostly automatically using these commands:
17259         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
17260         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
17261         using http://github.com/lyda/misspell-check
17262         * ChangeLog: Fix typos.
17263         * doc/solaris-versions: Likewise.
17264         * lib/regexec.c (re_search_stub): Likewise.
17265         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17267 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
17269         manywarnings: remove duplicate -Wmultichar entry
17270         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
17271         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
17272         so keep the entry marked as documented.
17274 2012-05-27  Karl Berry  <karl@gnu.org>
17276         * config/srclist.txt (mktime.c): remove last libc sync,
17277         perhaps just temporarily.
17279 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
17281         regex: don't assume uint64_t or uint32_t
17282         * lib/regcomp.c (init_word_char): Don't assume that the types
17283         uint64_t and uint32_t exist.  The C standard doesn't guarantee
17284         them, and on some 32-bit compilers there is no uint64_t.
17285         Problem reported by Gianluigi Tiesi in
17286         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
17288 2012-05-25  Jim Meyering  <meyering@redhat.com>
17290         maint.mk: add strncpy-prohibiting syntax-check rule
17291         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
17293 2012-05-24  Jim Meyering  <meyering@redhat.com>
17295         maint.mk: compute $(gpg_key_ID) more portably
17296         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
17297         That use of sed is not portable to some fringe systems.
17298         Reported by Paul Eggert in
17299         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
17301 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17303         mktime: sync from glibc
17304         * config/srclist.txt: Uncomment mktime.c.
17305         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
17306         First, indent with tabs, since glibc uses tabs and doesn't want to
17307         change and we'd rather be identical to glibc.  Also, two small
17308         coding changes:
17309         (isdst_differ): Use &&, not &, as && is the usual style.
17310         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
17311         for clarity.
17313 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17315         announce-gen: du -h is more portable than du --human
17316         * build-aux/announce-gen (sizes): Invoke du with -h instead
17317         of --human.  Accept leading white space in its output.
17319 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17321         announce-gen: Improve diagnostics.
17322         * build-aux/announce-gen: When parsing command line options,
17323         prefer "announce-gen: option --release-type requires an argument"
17324         to "Option release-type requires an argument".
17326 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17328         maint.mk: gpg_key_ID: use sed more portably
17329         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
17330         the closing brace.
17331         (refresh-po): Fuse two sed invocations into one.
17333 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
17335         gitlog-to-changelog: support the log message format used in Bison.
17336         * build-aux/gitlog-to-changelog: Support --strip-tab and
17337         --strip-cherry-picked.
17339 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17341         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
17342         the rest of the current time slice to another thread in the current
17343         process. So if the thread that feeds the file decscriptor we're
17344         polling is not in the current process, we get busy-waiting.
17345         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
17346         Patch from Theodore Leblond.
17347         * lib/select.c: Split polling out of the loop that sets the output
17348         fd_sets.  Check for zero result and loop if the wait timeout is
17349         infinite.
17351 2012-05-21  Simon Josefsson  <simon@josefsson.org>
17353         select: Fix build error on IRIX 6.5.
17354         * lib/select.c: Include stddef.h for NULL.
17356 2012-05-21  Simon Josefsson  <simon@josefsson.org>
17358         gc: fix libgcrypt detection on older machines.
17359         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
17360         copyright years because the file has been distributed every year
17361         since it was created.
17363 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17365         crypto: fix bug in large buffer handling
17366         Problem reported by Serge Belyshev for glibc in
17367         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
17368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
17369         * lib/md4.c (md4_process_block):
17370         * lib/md5.c (md5_process_block):
17371         * lib/sha1.c (sha1_process_block):
17372         * lib/sha256.c (sha256_process_block):
17373         Don't assume the buffer length is less than 2**32.
17374         * lib/sha512.c (sha512_process_block): Likewise.
17375         Here, the bug is present only in the rare case where the host does
17376         not support uint64_t or where size_t is wider than 64 bits.
17377         Use u64size to work around the problems.
17378         * lib/u64.h (u64size): New macro.
17380 2012-05-15  Pádraig Brady  <P@draigBrady.com>
17382         fsusage: fix block size returned on older Linux 2.6
17384         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
17385         which is available since Linux 2.6.
17386         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
17387         when the member is available so it can be used as a fallback.
17388         * doc/posix-functions/statvfs.texi: Mention the hang issue
17389         on Linux < 2.6.36.
17391 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17393         bootstrap: suppress stderr chatter
17394         * build-aux/bootstrap (insert_sorted_if_absent, main program):
17395         Omit unnecessary chatter to stderr.  The main program chatter
17396         was there only inadvertantly.
17398         bootstrap: .gitignore files created by autopoint, libtool
17399         I ran into this problem when bootstrapping the latest diffutils.
17400         After './bootstrap', 'git status' reported lots of untracked files
17401         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
17402         autopoint and do not need to be version-controlled.
17403         * build-aux/bootstrap: Put into .gitignore the files that
17404         autopoint and libtool create, by keeping track of files that exist
17405         after but not before these programs are run.
17406         (version_controlled_file): Move up.  2nd arg is now full file
17407         name, not base name; this is more convenient.  Put CVS at the end,
17408         as it's now somewhat deprecated.
17410 2012-05-14  Jim Meyering  <meyering@redhat.com>
17412         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
17413         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
17414         definition.  Reported by Bruno Haible.
17416 2012-05-13  Bruno Haible  <bruno@clisp.org>
17417             Paul Eggert  <eggert@cs.ucla.edu>
17419         binary-io: Define set_binary_mode function.
17420         * lib/binary-io.h (set_binary_mode): New function.
17421         (SET_BINARY): Define in terms of set_binary_mode.
17422         * modules/binary-io (configure.ac): Require AC_C_INLINE.
17423         * tests/test-binary-io.c (main): Accept an argument, and test either
17424         set_binary_mode or SET_BINARY depending on the argument.
17425         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
17426         argument. Clean up also t-bin-out0.tmp.
17428 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
17430         bootstrap: take advantage of POSIX shell features
17432         The 'bootstrap' script offered by Gnulib script already uses POSIX
17433         shell features (like $((...)) arithmetic expansions) that are not
17434         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
17435         means that bootstrap must already be run using a proper POSIX shell,
17436         which will thus provide more features, like ${var#pattern} parameter
17437         expansion or inversion of a command exit status with '!'.  We can
17438         thus use these features to improve the clarity and the performances
17439         of the bootstrap script.
17441         Suggested by Eric Blake.
17443         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
17444         of sed/expr plus command substitutions, to save some forks.  While
17445         we are at it, prefer the POSIX $(...) form of command substitution,
17446         rather than the legacy form `...` (since the former is visually
17447         clearer and interacts better with quoting), and prefer the idiom:
17448           "if ! CMD; then ACTION ..."
17449         over the idiom:
17450           "if CMD; then :; else ACTION ..."
17451         which was required by legacy Bourne shells not supporting '!'.
17453 2012-05-12  Bruno Haible  <bruno@clisp.org>
17455         system-quote: Add more comments.
17456         * lib/system-quote.h: Add more comments about wilcards and limitations.
17457         Suggested by Eli Zaretskii <eliz@gnu.org>.
17459         sh-quote, system-quote: Add comments about wildcards.
17460         * lib/sh-quote.h: Clarify what happens with wildcard characters.
17461         * lib/system-quote.h: Likewise.
17462         Reported by Eli Zaretskii <eliz@gnu.org>.
17464 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17466         fsusage: check for GNU/Linux statvfs problem dynamically
17467         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
17468         Define STAT_STATFS2_BSIZE too, since in this case the code now
17469         checks dynamically whether statvfs is reliable, falling back on
17470         Linux-style statfs otherwise.
17471         (statvfs_works): New function, for dynamically testing statvfs.
17472         (get_fs_usage) [STAT_STATVFS]: Use it.
17473         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
17474         statvfs on GNU/Linux hosts, since it's now done dynamically.
17476 2012-05-10  Bruno Haible  <bruno@clisp.org>
17478         system-quote, execute, spawn-pipe: Escape '?' on Windows.
17479         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
17480         '?' character.
17481         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
17482         * tests/test-system-quote-main.c (check_all): Check also strings like
17483         "??????????".
17484         Reported by Eli Zaretskii <eliz@gnu.org>.
17486 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
17488         _Noreturn: port config.h to gcc -Wundef
17489         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
17490         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
17491         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
17493 2012-05-10  Bruno Haible  <bruno@clisp.org>
17495         system-quote: Refactor.
17496         * lib/system-quote.h (system_quote_copy): Fix comment.
17497         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
17498         New functions, extracted from system_quote_copy.
17499         (system_quote_length, system_quote_copy): Use these functions.
17500         Reported by Paul Eggert.
17502 2012-05-08  Bruno Haible  <bruno@clisp.org>
17504         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
17505         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
17507 2012-05-08  Bruno Haible  <bruno@clisp.org>
17509         Tests for module 'system-quote'.
17510         * modules/system-quote-tests: New file.
17511         * tests/test-system-quote.sh: New file.
17512         * tests/test-system-quote-main.c: New file.
17513         * tests/test-system-quote-child.c: New file.
17515         New module 'system-quote'.
17516         * lib/system-quote.h: New file.
17517         * lib/system-quote.c: New file.
17518         * modules/system-quote: New file.
17520 2012-05-08  Bruno Haible  <bruno@clisp.org>
17522         sh-quote: Make C++ safe and allow multiple inclusion.
17523         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
17524         declarations in extern "C".
17526 2012-05-08  Bruno Haible  <bruno@clisp.org>
17528         sh-quote tests: Make tests stricter.
17529         * tests/test-sh-quote.c (check_one): Check the return value of
17530         shell_quote_copy.
17531         (main): Check a string with a CR character. Check a string that
17532         contains UCHAR_MAX.
17534 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
17536         warnings.m4: provide a means to specify the program to compile.
17537         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
17538         (gl_WARN_ADD): here.
17539         Use gl_AS_VAR_APPEND.
17540         Support an argument to specify the program to compile.
17541         (gl_WARN_ADD): Accept an argument to specify the program to compile.
17542         AC_SUBST the WARN_CFLAGS when they are used.
17543         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
17544         leave this to gl_WARN_ADD.
17546 2012-05-08  Eric Blake  <eblake@redhat.com>
17548         doc: recommendations on gettext version
17549         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
17550         choice between versions.
17551         * DEPENDENCIES (gettext): Cover both approaches.
17553 2012-05-08  Jim Meyering  <meyering@redhat.com>
17555         init.sh: explain why EXEEXT support uses aliases rather than functions
17556         * tests/init.sh: Add a comment.
17558         init.sh: don't let bash aliases interfere with tests
17559         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
17560         is bash.  This avoids problems for those who alias standard commands to
17561         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
17562         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
17564 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17566         stdint: be more consistent with glibc, SunOS libc
17567         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
17568         (gl_int_fast16_t, gl_uint_fast16_t)
17569         (gl_int_fast32_t, gl_uint_fast32_t)
17570         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
17571         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
17572         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
17573         Be consistent with glibc by default, and with SunOS 5.10 and later
17574         if __sun is defined.  This lessens the likelihood of clashes if
17575         code compiled for older hosts is combined with code compiled for
17576         newer ones.  Problem reported by Niels Möller in
17577         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
17579 2012-05-07  Eric Blake  <eblake@redhat.com>
17581         isatty: relax license to LGPLv2+
17582         * modules/isatty (License): Relax license.
17584 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17586         stat-size: comment fix
17587         * lib/stat-size.h: Remove obsolete comment about indenting.
17589 2012-05-06  Bruno Haible  <bruno@clisp.org>
17591         Tests for module 'sh-quote'.
17592         * modules/sh-quote-tests: New file.
17593         * tests/test-sh-quote.c: New file.
17595 2012-05-06  Bruno Haible  <bruno@clisp.org>
17597         sh-quote: Improve shell_quote_argv's signature.
17598         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
17599         * lib/sh-quote.c (shell_quote_argv): Likewise.
17601 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17603         stdint: document issues with int_fast8_t etc.
17604         * doc/posix-headers/stdint.texi (stdint.h): Say that other
17605         stdint.h substitutes may define these types differently.  See
17606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
17608 2012-05-05  Bruno Haible  <bruno@clisp.org>
17610         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
17611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
17612         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
17613         or 'guessing no (mishandles large arguments)'.
17615 2012-05-05  Bruno Haible  <bruno@clisp.org>
17617         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
17618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
17619         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
17620         set gl_cv_func_link_follows_symlink to "guessing no".
17622 2012-05-05  Bruno Haible  <bruno@clisp.org>
17624         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
17625         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
17626         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
17627         "guessing no".
17628         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
17630 2012-05-05  Bruno Haible  <bruno@clisp.org>
17632         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
17633         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
17634         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
17635         set gl_cv_struct_dirent_d_ino to "guessing yes".
17637 2012-05-05  Bruno Haible  <bruno@clisp.org>
17639         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
17640         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
17641         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
17642         "guessing yes".
17644 2012-05-05  Bruno Haible  <bruno@clisp.org>
17646         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
17647         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
17648         compiling to a glibc system, set gl_cv_func_signbit and
17649         gl_cv_func_signbit_gcc to "guessing yes".
17651 2012-05-05  Bruno Haible  <bruno@clisp.org>
17653         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
17654         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
17655         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
17656         to "guessing yes".
17657         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
17658         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
17660 2012-05-05  Bruno Haible  <bruno@clisp.org>
17662         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
17663         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
17664         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
17665         gl_cv_func_realpath_works to "guessing yes".
17667 2012-05-05  Bruno Haible  <bruno@clisp.org>
17669         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
17670         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
17671         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
17673 2012-05-04  Bruno Haible  <bruno@clisp.org>
17675         Tweak last commit.
17676         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
17677         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17679 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
17681         unistd_h: make it easier to avoid sys_types_h
17682         This is useful for Emacs, which has its own method of porting to
17683         Windows, and which therefore does not need the sys_types_h module.
17684         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
17685         code moved here from gl_SYS_TYPES_H.
17686         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
17687         using the code directly.
17688         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
17689         gl_SYS_TYPES_H.
17690         * modules/sys_types (Files):
17691         * modules/unistd (Files): Add m4/off_t.m4.
17693 2012-05-03  Bruno Haible  <bruno@clisp.org>
17695         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
17696         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
17697         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
17698         "guessing yes" or "guessing no".
17699         (gl_FUNC_LSTAT): Update.
17700         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
17701         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17702         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
17704 2012-05-03  Bruno Haible  <bruno@clisp.org>
17706         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
17707         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
17708         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
17709         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
17710         cross-compiling, choose the first alternative on glibc systems.
17711         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
17713 2012-05-03  Bruno Haible  <bruno@clisp.org>
17715         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
17716         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
17717         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
17719 2012-05-03  Bruno Haible  <bruno@clisp.org>
17721         chown: Avoid "guessing no" when cross-compiling to glibc systems.
17722         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
17724 2012-05-03  Bruno Haible  <bruno@clisp.org>
17726         Avoid "guessing no" guesses when cross-compiling to glibc systems.
17727         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
17728         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
17729         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
17730         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
17731         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
17732         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
17733         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
17734         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
17735         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
17736         compiling to glibc systems, set gl_cv_func_chown_slash_works,
17737         gl_cv_func_chown_ctime_works to "guessing yes".
17738         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
17739         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
17740         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
17741         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
17742         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
17743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
17744         compiling to glibc systems, set gl_cv_func_open_directory_works to
17745         "guessing yes".
17746         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
17747         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
17748         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
17749         "guessing yes".
17750         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
17751         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
17752         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
17753         compiling to glibc systems, set gl_cv_func_floorf_ieee to
17754         "guessing yes".
17755         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
17756         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
17757         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
17758         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
17759         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
17760         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
17761         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
17762         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
17763         "guessing yes".
17764         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
17765         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
17766         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
17767         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
17768         "guessing yes".
17769         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
17770         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
17771         "guessing yes".
17772         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
17773         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
17774         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
17775         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
17776         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
17777         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
17778         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
17779         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
17780         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
17781         compiling to glibc systems, set gl_cv_func_log10f_ieee to
17782         "guessing yes".
17783         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
17784         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
17785         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
17786         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
17787         "guessing yes".
17788         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
17789         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
17790         "guessing yes".
17791         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
17792         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
17793         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
17794         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
17795         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
17796         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
17797         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
17798         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
17799         compiling to glibc systems, set gl_cv_func_mkfifo_works to
17800         "guessing yes".
17801         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
17802         compiling to glibc systems, set gl_cv_func_mknod_works to
17803         "guessing yes".
17804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
17805         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
17806         "guessing yes".
17807         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
17808         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
17809         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
17810         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
17811         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
17812         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
17813         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
17814         compiling to glibc systems, set gl_cv_func_svid_putenv to
17815         "guessing yes".
17816         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
17817         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
17818         "guessing yes".
17819         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
17820         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
17821         "guessing yes".
17822         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
17823         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
17824         to "guessing yes".
17825         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
17826         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
17827         to "guessing yes".
17828         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
17829         compiling to glibc systems, set gl_cv_func_rmdir_works to
17830         "guessing yes".
17831         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
17832         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
17833         gl_cv_func_unlink_parent_fails to "guessing yes".
17834         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
17835         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
17836         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
17837         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
17838         gl_cv_func_rename_dest_works to "guessing yes".
17839         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
17840         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
17841         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
17842         compiling to glibc systems, set gl_cv_func_roundf_ieee to
17843         "guessing yes".
17844         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
17845         compiling to glibc systems, set gl_cv_func_roundl_ieee to
17846         "guessing yes".
17847         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
17848         compiling to glibc systems, set gl_cv_func_setenv_works to
17849         "guessing yes".
17850         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
17851         compiling to glibc systems, set gl_cv_func_unsetenv_works to
17852         "guessing yes".
17853         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
17854         compiling to glibc systems, set gl_cv_func_sleep_works to
17855         "guessing yes".
17856         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
17857         compiling to glibc systems, set gl_cv_func_stat_file_slash to
17858         "guessing yes".
17859         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
17860         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
17861         "guessing yes".
17862         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
17863         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
17864         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
17865         compiling to glibc systems, set gl_cv_func_truncf_ieee to
17866         "guessing yes".
17867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
17868         compiling to glibc systems, set gl_cv_func_truncl_ieee to
17869         "guessing yes".
17870         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
17871         compiling to glibc systems, set gl_cv_func_usleep_works to
17872         "guessing yes".
17873         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
17874         compiling to glibc systems, set gl_cv_func_futimesat_works to
17875         "guessing yes".
17877 2012-05-03  Bruno Haible  <bruno@clisp.org>
17879         Say "guessing yes" or "guessing no" when cross-compiling.
17880         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
17881         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
17882         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
17883         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
17884         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
17885         am_cv_func_working_getline to "guessing yes" or "guessing no".
17886         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
17887         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
17888         (gl_FUNC_MEMMEM): When cross-compiling, set
17889         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
17890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
17891         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
17892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
17893         set gl_cv_func_strcasestr_works_always to "guessing yes" or
17894         "guessing no".
17895         (gl_FUNC_STRCASESTR): When cross-compiling, set
17896         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
17897         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
17898         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
17899         (gl_FUNC_STRSTR): When cross-compiling, set
17900         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
17901         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
17902         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
17903         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
17904         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
17906 2012-05-01  Bruno Haible  <bruno@clisp.org>
17908         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
17909         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
17910         * build-aux/reloc-ldflags: Likewise.
17911         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
17913 2012-05-01  Bruno Haible  <bruno@clisp.org>
17915         gnulib-tool: Remove transitional code.
17916         * gnulib-tool: Don't warn about --import with 0 arguments any more.
17917         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17919 2012-05-01  Bruno Haible  <bruno@clisp.org>
17921         getcwd: Fix misindentation.
17922         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
17924 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17926         exclude: process exclude and include directives in order
17927         This restores the pre-2009 behavior, and is part of a fix of a
17928         grep bug reported by Quentin Arce in
17929         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
17930         * lib/exclude.c (struct exclude): Remove 'tail' member.
17931         (new_exclude_segment): Prepend the new segment instead of appending.
17932         Return void, since that's now more convenient.
17933         (file_pattern_matches): Renamed from excluded_file_pattern_p.
17934         (file_name_matches): Renamed from excluded_file_name_p.
17935         (file_pattern_matches, file_name_matches):
17936         Return true if the pattern matches, not if it excludes.
17937         All callers changed.
17938         (excluded_file_name): Process the list in reverse order;
17939         since the list is now reversed this restores the pre-2009 behavior.
17940         (add_exclude): Adjust to new reversed-order list.  Use local var
17941         rather than macro, for clarity.
17942         * tests/test-exclude7.sh: Adjust to corrected behavior.
17944         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
17945         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
17946         it's not possible here.  Handle the case of \ at end of pattern
17947         without dumping core.
17948         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
17950         _Noreturn: future-proof non-GNU and non-MSVC compilers
17951         * build-aux/snippet/_Noreturn.h (_Noreturn):
17952         * m4/gnulib-common.m4 (gl_COMMON_BODY):
17953         Do not define _Noreturn if __STDC_VERSION__ indicates this is
17954         C11 or later.  This is more likely to work with random future C
17955         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
17956         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
17958         exclude: handle wildcards with FNM_EXTMATCH
17959         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
17960         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
17961         comment that "has wildcards" really means "has or may have
17962         wildcards".  Simplify by avoiding the need to call strcspn.
17964 2012-04-29  Bruno Haible  <bruno@clisp.org>
17966         gnulib-tool: Fix list of authors.
17967         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
17969 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
17971         bootstrap: support Automake-NG in $buildreq
17972         * bootstrap (check_versions): Handle automake and aclocal from
17973         Automake-NG specially.  They can be specified as respectively
17974         the "automake-ng" and "aclocal-ng" requirements.
17976 2012-04-25  Eric Blake  <eblake@redhat.com>
17978         bootstrap: only force latest Makefile.in.in for gettext module
17979         * build-aux/bootstrap (with_gettext): Only install latest
17980         Makefile.in.in for projects requesting bleeding edge gettext.
17982 2012-04-22  Bruno Haible  <bruno@clisp.org>
17984         doc: Mention reason for replacement on glibc/Linux systems.
17985         * doc/posix-functions/dprintf.texi: Mention the problem with special
17986         'long double' values.
17987         * doc/posix-functions/fprintf.texi: Likewise.
17988         * doc/posix-functions/printf.texi: Likewise.
17989         * doc/posix-functions/snprintf.texi: Likewise.
17990         * doc/posix-functions/sprintf.texi: Likewise.
17991         * doc/posix-functions/vdprintf.texi: Likewise.
17992         * doc/posix-functions/vfprintf.texi: Likewise.
17993         * doc/posix-functions/vprintf.texi: Likewise.
17994         * doc/posix-functions/vsnprintf.texi: Likewise.
17995         * doc/posix-functions/vsprintf.texi: Likewise.
17996         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
17997         platforms with F_DUPFD_CLOEXEC problems.
17998         * doc/posix-functions/glob.texi: Mention which platforms are affected
17999         by the problem with symbolic links.
18000         * doc/posix-functions/linkat.texi: Mention the problem with
18001         AT_SYMLINK_FOLLOW on Linux.
18003 2012-04-22  Bruno Haible  <bruno@clisp.org>
18005         pwrite: Don't replace on all platforms.
18006         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
18008 2012-04-22  Bruno Haible  <bruno@clisp.org>
18010         rint* tests: Avoid gcc warnings.
18011         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
18012         * tests/test-rintf.c (INFINITY, NAN): Likewise.
18013         * tests/test-rintl.c (INFINITY, NAN): Likewise.
18015 2012-04-21  Bruno Haible  <bruno@clisp.org>
18017         users.txt: Update.
18018         * users.txt: Add freedink, wdiff. Update URLs for projects that have
18019         switched from CVS to git, bzr, or svn.
18021 2012-04-21  Bruno Haible  <bruno@clisp.org>
18023         Large File Support for native Windows platforms.
18025         * m4/largefile.m4 (gl_LARGEFILE): New macro.
18026         * modules/largefile (configure.ac): Require gl_LARGEFILE.
18028         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
18029         type.
18030         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
18031         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
18032         * doc/posix-headers/sys_types.texi: Mention the effect of the
18033         'largefile' module.
18035         * lib/fcntl.in.h: Add comments about off_t.
18036         * modules/fcntl-h (Depends-on): Add sys_types.
18038         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
18039         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
18040         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
18041         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
18042         * modules/unistd (Depends-on): Add sys_types.
18043         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
18045         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
18046         instead of lseek.
18047         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
18048         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
18049         * modules/lseek (Depends-on): Add sys_types.
18051         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
18052         msvc-nothrow.h.
18053         (SetFileSize): New function.
18054         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
18055         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
18056         if Large File Support is requested.
18057         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
18058         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
18060         * lib/stdio.in.h: Add comments about off_t.
18061         * modules/stdio (Depends-on): Add sys_types.
18063         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
18064         instead of ftello.
18065         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
18066         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
18067         (gl_PREREQ_FTELLO): New macro.
18068         * modules/ftello (Depends-on): Add sys_types.
18069         (configure.ac): Incoke gl_PREREQ_FTELLO.
18071         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
18072         instead of fseeko.
18073         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
18074         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
18075         (gl_PREREQ_FSEEKO): New macro.
18076         * modules/fseeko (Depends-on): Add sys_types.
18077         (configure.ac): Invoke gl_PREREQ_FSEEKO.
18079         * lib/sys_stat.in.h: Add comments about off_t.
18080         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
18081         64-bit integer for st_size in 'struct stat'.
18082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
18083         Define _GL_WINDOWS_64_BIT_ST_SIZE.
18084         * modules/sys_stat (Depends-on): Add sys_types.
18085         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
18087         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
18088         instead of stat or _stat.
18090         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
18091         'struct _stati64' instead of fstat and 'struct stat'.
18092         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
18093         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
18095         Reported by Ray Satiro <raysatiro@yahoo.com>.
18097 2012-04-19  Eric Blake  <eblake@redhat.com>
18099         bootstrap: accommodate older libtool
18100         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
18101         Reported by Daniel P. Berrange.
18103 2012-04-19  Jim Meyering  <meyering@redhat.com>
18105         announce-gen: avoid failure due to lack of Digest::SHA1
18106         Even with the preferred Digest::SHA available, this script
18107         would fail when the backup module, Digest::SHA1, was not installed.
18108         * build-aux/announce-gen: Quote the conditional use of "use".
18109         Reported by Reuben Thomas in:
18110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
18112         bootstrap: don't let a user's CDPATH setting affect this script
18113         When CDPATH is set, cd will sometimes generate output.
18114         When "cd" is run in a subshell whose output matters, that
18115         surprising-to-some output can cause malfunction.
18116         Unsetting CDPATH turns off this shell "feature."
18117         * build-aux/bootstrap (CDPATH): Unset.
18118         Reported by Reuben Thomas in:
18119         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
18120         and inspired by his patch here:
18121         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
18123 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
18124         and Jim Meyering  <meyering@redhat.com>
18126         maint.mk: catch "see @xref{}" and similar
18127         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
18128         prohibit "See also @xref{", "Also see @pxref{", and similar.
18130 2012-04-16  Jim Meyering  <meyering@redhat.com>
18132         bootstrap: really use gnulib's po/Makefile.in.in
18133         * build-aux/bootstrap: Correct the source file name in previous change.
18134         Reported by Akim Demaille.
18136         configmake: correct minor inconsistency in Makefile rule
18137         * modules/configmake (Makefile.am): All other rules like this one
18138         run the final "mv -f ..." in the same backslash-continued command
18139         as the one that does everything else.  This one put the mv -f ...
18140         command on a separate, non-backslash-continued line.
18141         Make it like the others.
18143         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
18144         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
18145         the one from gettext.  Reported by Akim Demaille.
18147 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
18149         Fix recursion of install-* into po directories.
18150         Bison's install-pdf bug reported by Hans Aberg at
18151         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
18152         * build-aux/po/Makefile.in.in (install-dvi, install-html)
18153         (install-info, install-pdf, install-ps): New targets.
18155 2012-04-16  Jim Meyering  <meyering@redhat.com>
18157         maint: avoid spurious "make sc_maint" failure
18158         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
18159         exempt all *.class file names, for lib/javaversion.class.
18161 2012-04-15  Bruno Haible  <bruno@clisp.org>
18163         lseek: Make configure test independent of environment.
18164         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
18165         Windows, we know that lseek() on pipes is broken; skip the runtime
18166         test.
18168 2012-04-14  Bruno Haible  <bruno@clisp.org>
18170         stat: Bypass buggy override in mingw64.
18171         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
18172         * lib/stat.c (stat) [mingw64]: Define to _stat.
18173         * doc/posix-functions/stat.texi: Mention mingw64 bug.
18175 2012-04-14  Bruno Haible  <bruno@clisp.org>
18177         pathmax: Fix compilation error on MSVC 9.
18178         * modules/pathmax (Depends-on): Add unistd.
18180 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
18182         README: document pointer comparison assumption
18183         * README (Portability guidelines): Document assumption about
18184         pointer comparisons, in response to a recent bug-gnulib comment by
18185         Jeffrey Kegler.
18187 2012-04-12  Bruno Haible  <bruno@clisp.org>
18189         Tests for module 'getrusage'.
18190         * modules/getrusage-tests: New file.
18191         * tests/test-getrusage.c: New file.
18193         New module 'getrusage'.
18194         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
18195         warn-on-use.h.
18196         (getrusage): New declaration.
18197         * lib/getrusage.c: New file.
18198         * m4/getrusage.m4: New file.
18199         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
18200         is declared.
18201         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
18202         HAVE_GETRUSAGE.
18203         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
18204         snippet/c++defs, snippet/warn-on-use.
18205         (Makefile.am): Update generation of sys/resource.h. Substitute
18206         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
18207         * modules/getrusage: New file.
18208         * doc/posix-functions/getrusage.texi: Mention the new module.
18210 2012-04-12  Bruno Haible  <bruno@clisp.org>
18212         Tests for module 'sys_resource'.
18213         * modules/sys_resource-tests: New file.
18214         * tests/test-sys_resource.c: New file.
18216         New module 'sys_resource'.
18217         * lib/sys_resource.in.h: New file.
18218         * m4/sys_resource_h.m4: New file.
18219         * modules/sys_resource: New file.
18220         * doc/posix-headers/sys_resource.texi: Mention the new module.
18222 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
18224         ioctl: Fix compilation error on mingw.
18225         * lib/ioctl.c: Include <windows.h>.
18226         Also reported by Ray Satiro <raysatiro@yahoo.com>.
18228 2012-04-04  Jim Meyering  <meyering@redhat.com>
18230         regex: correct #pragma guard expression
18231         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
18232         not 4.3.  Correct its cpp guard expression.
18234 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
18236         regex: remove unnecessary type punning
18237         Problem reported by Vladimir Serbinenko in
18238         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
18239         * lib/regex.h (struct re_pattern_buffer): Change the type of
18240         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
18241         Fix comment to match code.
18242         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
18243         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
18244         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18245         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
18246         (set_regs):
18247         Omit no-longer-necessary casts.
18249 2012-04-03  Bruno Haible  <bruno@clisp.org>
18251         Tests for module 'ilogbl'.
18252         * modules/ilogbl-tests: New file.
18253         * tests/test-ilogbl.c: New file.
18255         New module 'ilogbl'.
18256         * lib/math.in.h (ilogbl): New declaration.
18257         * lib/ilogbl.c: New file.
18258         * m4/ilogbl.m4: New file.
18259         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
18260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
18261         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
18262         Split sed invocation, to avoid the limit of 100 substitutions of
18263         HP-UX 'sed'.
18264         * modules/ilogbl: New file.
18265         * tests/test-math-c++.cc: Check the declaration of ilogbl.
18266         * doc/posix-functions/ilogbl.texi: Mention the new module.
18268 2012-04-03  Bruno Haible  <bruno@clisp.org>
18270         Tests for module 'ilogbf'.
18271         * modules/ilogbf-tests: New file.
18272         * tests/test-ilogbf.c: New file.
18274         New module 'ilogbf'.
18275         * lib/math.in.h (ilogbf): New declaration.
18276         * lib/ilogbf.c: New file.
18277         * m4/ilogbf.m4: New file.
18278         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
18279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
18280         REPLACE_ILOGBF.
18281         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
18282         REPLACE_ILOGBF.
18283         * modules/ilogbf: New file.
18284         * tests/test-math-c++.cc: Check the declaration of ilogbf.
18285         * doc/posix-functions/ilogbf.texi: Mention the new module.
18287 2012-04-03  Bruno Haible  <bruno@clisp.org>
18289         Tests for module 'ilogb'.
18290         * modules/ilogb-tests: New file.
18291         * tests/test-ilogb.c: New file.
18292         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
18293         tests/test-logb-ieee.h.
18295         New module 'ilogb'.
18296         * lib/math.in.h (ilogb): New declaration.
18297         * lib/ilogb.c: New file.
18298         * m4/ilogb.m4: New file.
18299         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
18300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
18301         REPLACE_ILOGB.
18302         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
18303         REPLACE_ILOGB.
18304         * modules/ilogb: New file.
18305         * tests/test-math-c++.cc: Check the declaration of ilogb.
18306         * doc/posix-functions/ilogb.texi: Mention the new module.
18308 2012-04-03  Bruno Haible  <bruno@clisp.org>
18310         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
18311         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
18312         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
18313         (main): Check their values.
18314         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
18315         problem.
18317 2012-04-03  Bruno Haible  <bruno@clisp.org>
18319         Tests for module 'logbl-ieee'.
18320         * modules/logbl-ieee-tests: New file.
18321         * tests/test-logbl-ieee.c: New file.
18323         New module 'logbl-ieee'.
18324         * modules/logbl-ieee: New file.
18326         Tests for module 'logb-ieee'.
18327         * modules/logb-ieee-tests: New file.
18328         * tests/test-logb-ieee.c: New file.
18330         New module 'logb-ieee'.
18331         * modules/logb-ieee: New file.
18333         Tests for module 'logbf-ieee'.
18334         * modules/logbf-ieee-tests: New file.
18335         * tests/test-logbf-ieee.c: New file.
18336         * tests/test-logb-ieee.h: New file.
18338         New module 'logbf-ieee'.
18339         * modules/logbf-ieee: New file.
18341 2012-04-03  Bruno Haible  <bruno@clisp.org>
18343         Tests for module 'logbl'.
18344         * modules/logbl-tests: New file.
18345         * tests/test-logbl.c: New file.
18347         New module 'logbl'.
18348         * lib/math.in.h (logbl): New declaration.
18349         * lib/logbl.c: New file.
18350         * m4/logbl.m4: New file.
18351         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
18352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
18353         REPLACE_LOGBL.
18354         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
18355         REPLACE_LOGBL.
18356         * modules/logbl: New file.
18357         * tests/test-math-c++.cc: Check the declaration of logbl.
18358         * doc/posix-functions/logbl.texi: Mention the new module.
18360 2012-04-02  Bruno Haible  <bruno@clisp.org>
18362         Tests for module 'logbf'.
18363         * modules/logbf-tests: New file.
18364         * tests/test-logbf.c: New file.
18366         New module 'logbf'.
18367         * lib/math.in.h (logbf): New declaration.
18368         * lib/logbf.c: New file.
18369         * m4/logbf.m4: New file.
18370         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
18371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
18372         REPLACE_LOGBF.
18373         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
18374         REPLACE_LOGBF.
18375         * modules/logbf: New file.
18376         * tests/test-math-c++.cc: Check the declaration of logbf.
18377         * doc/posix-functions/logbf.texi: Mention the new module.
18379 2012-04-02  Bruno Haible  <bruno@clisp.org>
18381         logb tests: More tests.
18382         * tests/test-logb.h: New file, based on tests/test-logb.c and
18383         tests/test-frexp.h.
18384         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
18385         (main): Just invoke test_function.
18386         * modules/logb-tests (Files): Add tests/test-logb.h,
18387         tests/minus-zero.h, tests/randomd.c.
18388         (Makefile.am): Add randomd.c to test_logb_SOURCES.
18390         logb: Provide replacement and workarounds.
18391         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
18392         is 1.
18393         * lib/logb.c: New file.
18394         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
18395         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
18396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
18397         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
18398         * modules/logb (Files): Add lib/logb.c.
18399         (Depends-on): Add isfinite, frexp, isnand.
18400         (configure.ac): Compile the replacement code logb.c if needed.
18401         * tests/test-math-c++.cc: Check the declaration of logb.
18402         * doc/posix-functions/logb.texi: Mention the replacement and the bug
18403         with subnormal numbers.
18405 2012-04-02  Bruno Haible  <bruno@clisp.org>
18407         log10* tests: Speed up.
18408         * tests/test-log10.h (test_function): Reduce amount of random numbers
18409         to test.
18411 2012-04-01  Bruno Haible  <bruno@clisp.org>
18413         logf-ieee: Fix test whether logf works.
18414         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
18416 2012-04-01  Bruno Haible  <bruno@clisp.org>
18418         log10l: Work around log10l-ieee test failure on IRIX 6.5.
18419         * lib/log10l.c: Include <float.h>
18420         (log10l): On IRIX, normalize the +Infinity value.
18421         * modules/log10l (Depends-on): Add 'float'.
18422         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
18423         +Infinity.
18425         log10f-ieee: Work around test failure on NetBSD 5.1.
18426         * m4/log10f-ieee.m4: New file.
18427         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
18428         test whether log10f works with a negative argument. Replace it if not.
18429         * lib/log10f.c (log10f): For negative arguments, return NaN.
18430         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
18431         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
18432         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
18434         log10f-ieee: Work around test failure on Solaris 9.
18435         * modules/log10f-ieee (Depends-on): Add log10-ieee.
18436         (configure.ac): Require gl_FUNC_LOG10F.
18438         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
18439         * m4/log10-ieee.m4: New file.
18440         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
18441         whether log10 works with a negative argument. Replace it if not.
18442         * lib/log10.c (log10): For negative arguments, return NaN.
18443         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
18444         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
18445         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
18447         Tests for module 'log10l-ieee'.
18448         * modules/log10l-ieee-tests: New file.
18449         * tests/test-log10l-ieee.c: New file.
18451         New module 'log10l-ieee'.
18452         * modules/log10l-ieee: New file.
18454         Tests for module 'log10-ieee'.
18455         * modules/log10-ieee-tests: New file.
18456         * tests/test-log10-ieee.c: New file.
18458         New module 'log10-ieee'.
18459         * modules/log10-ieee: New file.
18461         Tests for module 'log10f-ieee'.
18462         * modules/log10f-ieee-tests: New file.
18463         * tests/test-log10f-ieee.c: New file.
18464         * tests/test-log10-ieee.h: New file.
18466         New module 'log10f-ieee'.
18467         * modules/log10f-ieee: New file.
18469 2012-04-01  Bruno Haible  <bruno@clisp.org>
18471         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
18472         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
18473         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
18474         workaround.
18475         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
18476         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
18477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
18478         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
18479         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
18480         (Depends-on): Update conditions.
18481         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
18482         IRIX 6.5, OSF/1 5.1 problems.
18484 2012-04-01  Bruno Haible  <bruno@clisp.org>
18486         log10f: Work around OSF/1 5.1 bug.
18487         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
18488         * lib/log10f.c (log10f): If logf exists, use it and provide just the
18489         workaround.
18490         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
18491         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
18492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
18493         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
18494         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
18495         (Depends-on): Update conditions.
18496         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
18498 2012-04-01  Bruno Haible  <bruno@clisp.org>
18500         log10: Work around OSF/1 5.1 bug.
18501         * lib/math.in.h (log10): New declaration.
18502         * lib/log10.c: New file.
18503         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
18504         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
18505         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
18506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
18507         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
18508         * modules/log10 (Files): Add lib/log10.c.
18509         (Depends-on): Add math.
18510         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
18511         * tests/test-math-c++.cc: Check the declaration of log10.
18512         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
18514 2012-03-31  Bruno Haible  <bruno@clisp.org>
18516         log10l tests: More tests.
18517         * modules/log10l-tests (Files): Add tests/test-log10l.h,
18518         tests/minus-zero.h, tests/randoml.c.
18519         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
18520         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
18521         (main): Invoke test_function.
18523         log10f tests: More tests.
18524         * modules/log10f-tests (Files): Add tests/test-log10.h,
18525         tests/minus-zero.h, tests/randomf.c.
18526         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
18527         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
18528         (main): Invoke test_function.
18530         log10 tests: More tests.
18531         * tests/test-log10.h: New file.
18532         * modules/log10-tests (Files): Add tests/test-log10.h,
18533         tests/minus-zero.h, tests/randomd.c.
18534         (Makefile.am): Add randomd.c to test_log10_SOURCES.
18535         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
18536         (main): Invoke test_function.
18538 2012-03-31  Simon Josefsson  <simon@josefsson.org>
18540         fflush: Fix syntax error.
18541         * lib/fflush.c: Include unused-parameter.h, needed for
18542         _GL_UNUSED_PARAMETER.
18543         * modules/fflush (Depends-on): Add snippet/unused-parameter.
18545 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
18547         regex: pacify GCC when compiling GRUB
18548         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
18549         a diagnostic.  Reported by Vladimir Serbinenko in
18550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
18552 2012-03-29  Eric Blake  <eblake@redhat.com>
18554         stdio: don't assume gets any more
18555         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
18556         support.
18557         * modules/stdio (Makefile.am): Likewise.
18558         * lib/stdio-read.c (gets): Likewise.
18559         * tests/test-stdio-c++.cc: Likewise.
18560         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
18561         * lib/stdio.in.h (gets): Make warning occur in more places.
18562         * doc/posix-functions/gets.texi (gets): Update documentation.
18563         Reported by Christer Solskogen.
18565         maint.mk: fix syntax checks without exclusions
18566         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
18567         Reported by Daniel P. Berrange.
18569         strerror_r: avoid compiler warning
18570         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
18571         level.
18573         fflush: avoid compiler warning
18574         * lib/fflush.c (update_fpos_cache): Mark variables that are
18575         potentially unused.
18577 2012-03-25  Bruno Haible  <bruno@clisp.org>
18579         Tests for module 'localeconv'.
18580         * modules/localeconv-tests: New file.
18581         * tests/test-localeconv.c: New file.
18583         New module 'localeconv'.
18584         * lib/locale.in.h (localeconv): New declaration.
18585         * lib/localeconv.c: New file.
18586         * m4/localeconv.m4: New file.
18587         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
18588         REPLACE_LOCALECONV.
18589         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
18590         REPLACE_LOCALECONV.
18591         * modules/localeconv: New file.
18592         * modules/nl_langinfo (Depends-on): Add localeconv.
18593         * modules/human (Depends-on): Likewise.
18594         * doc/posix-functions/localeconv.texi: Mention the new module.
18596 2012-03-25  Bruno Haible  <bruno@clisp.org>
18598         locale: Provide a complete 'struct lconv'.
18599         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
18600         'struct lconv' does not contain int_p_cs_precedes.
18601         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
18602         * doc/posix-headers/locale.texi: Update.
18604         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
18605         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
18606         * doc/posix-headers/locale.texi: Update.
18608         locale: Provide a working 'struct lconv'.
18609         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
18610         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
18611         'struct lconv' does not even contain decimal_point.
18612         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
18613         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
18614         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
18615         * doc/posix-headers/locale.texi: Mention the problems with
18616         'struct lconv'.
18617         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18619 2012-03-24  Bruno Haible  <bruno@clisp.org>
18621         Enable common subexpression optimization in GCC.
18622         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
18623         macros.
18624         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
18625         GCC attribute 'const'.
18626         (uc_locale_language): Declare with GCC attribute 'pure'.
18627         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
18628         with GCC attribute 'const'.
18629         * lib/unictype.in.h (uc_is_general_category_withtable,
18630         uc_combining_class, uc_combining_class_name,
18631         uc_combining_class_long_name, uc_bidi_class_name,
18632         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
18633         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
18634         uc_decimal_value, uc_digit_value, uc_numeric_value,
18635         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
18636         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
18637         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
18638         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
18639         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
18640         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
18641         Declare with GCC attribute 'const'.
18642         (uc_general_category_name, uc_general_category_long_name,
18643         uc_general_category_byname, uc_general_category,
18644         uc_is_general_category, uc_combining_class_byname,
18645         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
18646         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
18647         Declare with GCC attribute 'pure'.
18648         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
18649         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
18650         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
18651         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
18652         with GCC attribute 'pure'.
18653         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
18654         'const'.
18655         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
18656         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
18657         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
18658         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
18659         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
18660         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
18661         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
18662         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
18663         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
18664         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
18665         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
18666         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
18667         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
18668         GCC attribute 'pure'.
18669         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
18670         'const'.
18671         * lib/uniwidth.in.h (uc_width): Simplify declaration.
18672         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
18673         u32_strwidth): Declare with GCC attribute 'pure'.
18675         Enable common subexpression optimization in GCC.
18676         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18677         (alphasort): Declare with GCC attribute 'pure'.
18678         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18679         (atoll): Declare with GCC attribute 'pure'.
18680         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18681         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18682         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
18683         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18684         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
18685         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
18686         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
18688 2012-03-24  Bruno Haible  <bruno@clisp.org>
18690         gnulib-tool: Avoid unintended error output from 'cmp'.
18691         * gnulib-tool (func_add_file, func_update_file, func_import): Use
18692         "cmp -s", not "cmp > /dev/null".
18694 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
18696         gnulib-tool: fix imprecise comments w.r.t. an automake bug
18698         It's not just Automake versions < 1.9b that creates an empty
18699         pkgdatadir at installation time if pkgdata_DATA is specified
18700         to empty; modern automake versions do this as well, at least
18701         until automake 1.11.4 (not yet released at the moment of writing,
18702         but soon to appear).  That behaviour was generally considered a
18703         feature rather than a bug, at least until this discussion:
18704         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
18706         See also automake bugs #10997 and #11030.
18708         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
18709         reference to relevant automake bug numbers.
18710         (func_emit_tests_Makefile_am): Likewise.
18712 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
18714         announce-gen: use Digest::SHA when possible
18715         * build-aux/announce-gen: Use Digest::SHA when possible, falling
18716         back to Digest::SHA1 if necessary.
18718 2012-03-20  Jim Meyering  <meyering@redhat.com>
18720         tests: avoid gcc warnings about argv vs. const initializers
18721         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
18722         warnings about discarding 'const' qualifier from pointer target type.
18723         * tests/test-posix_spawn2.c (main): Likewise.
18725 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
18727         README-release: simplify slightly
18728         * top/README-release: Run "git checkout master" only once.
18730 2012-03-15  Mark Wielaard  <mark@klomp.org>
18732         git-merge-changelog: add specific example on how to use with hg.
18733         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
18735 2012-03-18  Mark Wielaard  <mark@klomp.org>
18737         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
18739 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
18741         git-version-gen: don't let "prefix" envvar cause trouble
18742         * build-aux/git-version-gen (prefix): Initialize properly,
18743         so as not to use a value specified via the environment.
18744         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
18746 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18748         regex: diagnose too-large repeat counts in EREs
18749         Previously, the code did not diagnose the too-large repeat count
18750         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
18751         as if it were 'b\{1000000000}', which is unexpected.
18752         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
18753         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
18754         is a reasonable one for this problem.  Another option would be to
18755         create a new REG_OVERFLOW error for repeat counts that are too large.
18756         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
18757         count is too large, so that the caller can distinguish the two cases.
18758         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
18759         "Too large" return code, and that repeat counts are one example of this.
18761 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18763         doc: some glibc x32 integer width issues
18764         * doc/posix-headers/sys_types.texi (sys/types.h):
18765         * doc/posix-headers/time.texi (time.h):
18766         Mention that glibc x32 does not conform to POSIX in a couple of
18767         areas related to integer widths.
18769 2012-03-15  Bruno Haible  <bruno@clisp.org>
18771         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
18772         * lib/fma.c (VOLATILE): New macro.
18773         (FUNC): Use it to work around a GCC compiler bug.
18775 2012-03-13  Bruno Haible  <bruno@clisp.org>
18777         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18778         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
18779         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
18780         REPLACE_HYPOTL to 1.
18781         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
18783 2012-03-13  Bruno Haible  <bruno@clisp.org>
18785         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18786         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
18787         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
18788         REPLACE_REMAINDERL to 1.
18789         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
18790         bug.
18792 2012-03-13  Bruno Haible  <bruno@clisp.org>
18794         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18795         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
18796         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
18797         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
18798         too big rounding errors.
18799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
18800         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
18801         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
18802         (Depends-on): Update conditions.
18803         * tests/test-sqrtl.c (my_ldexpl): New function.
18804         (main): Add test of a particular value.
18805         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
18807 2012-03-13  Pádraig Brady  <P@draigBrady.com>
18809         doc: Update timer_* platform portability notes.
18810         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
18811         that always return ENOSYS.
18812         * doc/posix-functions/timer_delete.texi: Likewise.
18813         * doc/posix-functions/timer_gettime.texi: Likewise.
18814         * doc/posix-functions/timer_settime.texi: Likewise.
18816 2012-03-13  Bruno Haible  <bruno@clisp.org>
18818         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18819         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
18820         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
18821         REPLACE_CBRTL to 1.
18822         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
18824 2012-03-13  Bruno Haible  <bruno@clisp.org>
18826         remainderl: Avoid compilation error on AIX >= 5.2.
18827         * lib/math.in.h (remainderl): Undefine macro from the system header.
18829 2012-03-13  Bruno Haible  <bruno@clisp.org>
18831         Avoid compilation errors with MSVC option -fp:strict.
18832         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
18833         * lib/cbrtf.c: Likewise.
18834         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
18836 2012-03-12  Bruno Haible  <bruno@clisp.org>
18838         uninorm: Don't crash in out-of-memory conditions.
18839         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
18840         gracefully.
18841         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
18842         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
18844 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
18846         quote: fix syntax-check
18847         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
18848         also exports quote_quoting_options.
18850 2012-03-12  Simon Josefsson  <simon@josefsson.org>
18852         Collapse list of copyright years to ranges.  See
18853         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
18854         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
18855         build-aux/csharpexec.sh.in, build-aux/gnupload,
18856         build-aux/install-reloc, build-aux/javacomp.sh.in,
18857         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
18858         build-aux/move-if-change, build-aux/reloc-ldflags,
18859         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
18861 2012-03-11  Bruno Haible  <bruno@clisp.org>
18863         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18864         * m4/log2f-ieee.m4: New file.
18865         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
18866         whether log2f works with a minus zero argument. Replace it if not.
18867         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
18868         (Depends-on): Add log2-ieee.
18869         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
18870         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
18872         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18873         * m4/log2-ieee.m4: New file.
18874         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
18875         whether log2 works with a minus zero argument. Replace it if not.
18876         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
18877         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
18878         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
18880         Tests for module 'log2l-ieee'.
18881         * modules/log2l-ieee-tests: New file.
18882         * tests/test-log2l-ieee.c: New file.
18884         New module 'log2l-ieee'.
18885         * modules/log2l-ieee: New file.
18887         Tests for module 'log2-ieee'.
18888         * modules/log2-ieee-tests: New file.
18889         * tests/test-log2-ieee.c: New file.
18891         New module 'log2-ieee'.
18892         * modules/log2-ieee: New file.
18894         Tests for module 'log2f-ieee'.
18895         * modules/log2f-ieee-tests: New file.
18896         * tests/test-log2f-ieee.c: New file.
18897         * tests/test-log2-ieee.h: New file.
18899         New module 'log2f-ieee'.
18900         * modules/log2f-ieee: New file.
18902 2012-03-11  Bruno Haible  <bruno@clisp.org>
18904         Tests for module 'log2l'.
18905         * modules/log2l-tests: New file.
18906         * tests/test-log2l.c: New file.
18908         New module 'log2l'.
18909         * lib/math.in.h (log2l): New declaration.
18910         * lib/log2l.c: New file.
18911         * m4/log2l.m4: New file.
18912         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
18913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
18914         REPLACE_LOG2L.
18915         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
18916         REPLACE_LOG2L.
18917         * modules/log2l: New file.
18918         * tests/test-math-c++.cc: Check the declaration of log2l.
18919         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
18920         and OSF/1 problems.
18922 2012-03-11  Bruno Haible  <bruno@clisp.org>
18924         Tests for module 'log2f'.
18925         * modules/log2f-tests: New file.
18926         * tests/test-log2f.c: New file.
18928         New module 'log2f'.
18929         * lib/math.in.h (log2f): New declaration.
18930         * lib/log2f.c: New file.
18931         * m4/log2f.m4: New file.
18932         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
18933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
18934         REPLACE_LOG2F.
18935         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
18936         REPLACE_LOG2F.
18937         * modules/log2f: New file.
18938         * tests/test-math-c++.cc: Check the declaration of log2f.
18939         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
18940         and OSF/1 and Cygwin problems.
18942 2012-03-11  Bruno Haible  <bruno@clisp.org>
18944         Tests for module 'log2'.
18945         * modules/log2-tests: New file.
18946         * tests/test-log2.c: New file.
18947         * tests/test-log2.h: New file.
18949         New module 'log2'.
18950         * lib/math.in.h (log2): New declaration.
18951         * lib/log2.c: New file.
18952         * m4/log2.m4: New file.
18953         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
18954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
18955         REPLACE_LOG2.
18956         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
18957         REPLACE_LOG2.
18958         * modules/log2: New file.
18959         * tests/test-math-c++.cc: Check the declaration of log2.
18960         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
18961         and OSF/1 and Cygwin problems.
18963 2012-03-11  Bruno Haible  <bruno@clisp.org>
18965         exp2* tests: More tests.
18966         * tests/test-exp2.h (test_function): Test all integral arguments that
18967         don't need to overflow or denormalized numbers.
18968         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
18969         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
18970         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
18972 2012-03-10  Bruno Haible  <bruno@clisp.org>
18974         log1pl-ieee: Work around test failure on AIX 7.1.
18975         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
18977         log1pl-ieee: Work around test failure on IRIX 6.5.
18978         * m4/log1pl-ieee.m4: New file.
18979         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
18980         test whether log1pl works with a minus zero argument. Replace it if
18981         not.
18982         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
18983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
18984         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
18985         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
18986         (Depends-on): Update conditions.
18987         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18988         m4/signbit.m4.
18989         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
18990         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
18992         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
18993         * m4/log1pf-ieee.m4: New file.
18994         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
18995         test whether log1pf works with a minus zero argument. Replace it if
18996         not.
18997         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
18998         m4/signbit.m4.
18999         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
19000         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
19002         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
19003         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
19004         (configure.ac): Require gl_FUNC_LOG1PF.
19006         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
19007         * m4/log1p-ieee.m4: New file.
19008         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
19009         whether log1p works with a minus zero argument. Replace it if not.
19010         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
19011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
19012         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
19013         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
19014         (Depends-on): Update conditions.
19015         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
19016         m4/signbit.m4.
19017         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
19018         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
19020         Tests for module 'log1pl-ieee'.
19021         * modules/log1pl-ieee-tests: New file.
19022         * tests/test-log1pl-ieee.c: New file.
19024         New module 'log1pl-ieee'.
19025         * modules/log1pl-ieee: New file.
19027         Tests for module 'log1p-ieee'.
19028         * modules/log1p-ieee-tests: New file.
19029         * tests/test-log1p-ieee.c: New file.
19031         New module 'log1p-ieee'.
19032         * modules/log1p-ieee: New file.
19034         Tests for module 'log1pf-ieee'.
19035         * modules/log1pf-ieee-tests: New file.
19036         * tests/test-log1pf-ieee.c: New file.
19037         * tests/test-log1p-ieee.h: New file.
19039         New module 'log1pf-ieee'.
19040         * modules/log1pf-ieee: New file.
19042 2012-03-10  Bruno Haible  <bruno@clisp.org>
19044         Tests for module 'log1pl'.
19045         * modules/log1pl-tests: New file.
19046         * tests/test-log1pl.c: New file.
19048         New module 'log1pl'.
19049         * lib/math.in.h (log1pl): New declaration.
19050         * lib/log1pl.c: New file.
19051         * m4/log1pl.m4: New file.
19052         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
19053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
19054         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
19055         * modules/log1pl: New file.
19056         * tests/test-math-c++.cc: Check the declaration of log1pl.
19057         * doc/posix-functions/log1pl.texi: Mention the new module.
19059 2012-03-10  Bruno Haible  <bruno@clisp.org>
19061         Tests for module 'log1pf'.
19062         * modules/log1pf-tests: New file.
19063         * tests/test-log1pf.c: New file.
19065         New module 'log1pf'.
19066         * lib/math.in.h (log1pf): New declaration.
19067         * lib/log1pf.c: New file.
19068         * m4/log1pf.m4: New file.
19069         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
19070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
19071         REPLACE_LOG1PF.
19072         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
19073         REPLACE_LOG1PF.
19074         * modules/log1pf: New file.
19075         * tests/test-math-c++.cc: Check the declaration of log1pf.
19076         * doc/posix-functions/log1pf.texi: Mention the new module.
19078 2012-03-10  Bruno Haible  <bruno@clisp.org>
19080         log1p tests: More tests.
19081         * tests/test-log1p.h: New file.
19082         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
19083         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
19084         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
19085         (main): Invoke test_function.
19087         log1p: Provide replacement for Minix and MSVC.
19088         * lib/math.in.h (log1p): New declaration.
19089         * lib/log1p.c: New file.
19090         * m4/log1p.m4: New file.
19091         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
19092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
19093         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
19094         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
19095         (Depends-on): Add math, isnand, log, round.
19096         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
19097         HAVE_LOG1P is 0.
19098         * tests/test-math-c++.cc: Check the declaration of log1p.
19099         * doc/posix-functions/log1p.texi: Mention the replacement.
19101 2012-03-10  Bruno Haible  <bruno@clisp.org>
19103         math tests: Small simplification.
19104         * tests/test-exp.h (test_function): Use the same err_bound for
19105         'double' on platforms with sizeof (long double) == sizeof (double)
19106         than on platforms with sizeof (long double) > sizeof (double).
19107         * tests/test-exp2.h (test_function): Likewise.
19108         * tests/test-expm1.h (test_function): Likewise.
19109         * tests/test-log.h (test_function): Likewise.
19111 2012-03-10  Bruno Haible  <bruno@clisp.org>
19113         Fix some comments.
19114         * lib/expl.c: Fix an ambiguous comment.
19115         * lib/expm1.c: Likewise.
19116         * lib/expm1l.c: Likewise.
19117         * lib/exp2.c: Likewise.
19118         * lib/exp2l.c: Likewise.
19120 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
19122         regex: allow inclusion of <regex.h> before <limits.h>
19123         Without this patch, portable programs had to include <limits.h> before
19124         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
19125         I ran into this problem with a test version of GNU grep on Solaris 8.
19126         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
19127         This is done conditionally so that this change can be merged
19128         back to glibc.
19129         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
19130         using the included regex.
19132         fts: depend on fdopendir
19133         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
19134         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
19135         problem was introduced when fdopendir was split out.
19137 2012-03-10  Bruno Haible  <bruno@clisp.org>
19139         Remove unused variables.
19140         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
19141         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
19143 2012-03-10  Bruno Haible  <bruno@clisp.org>
19145         isnanf-nolibm: Fix last commit.
19146         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
19148         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
19149         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
19151 2012-03-10  Bruno Haible  <bruno@clisp.org>
19153         logf-ieee: Work around test failure on NetBSD 5.1.
19154         * m4/logf-ieee.m4: New file.
19155         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
19156         whether logf works with a negative argument. Replace it if not.
19157         * lib/logf.c (logf): For negative arguments, return NaN.
19158         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
19159         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
19160         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
19162         logf-ieee: Work around test failure on Solaris 9.
19163         * modules/logf-ieee (Depends-on): Add log-ieee.
19164         (configure.ac): Require gl_FUNC_LOGF.
19166         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
19167         * m4/log-ieee.m4: New file.
19168         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
19169         log works with a negative argument. Replace it if not.
19170         * lib/log.c (log): For negative arguments, return NaN.
19171         * modules/log-ieee (Files): Add m4/log-ieee.m4.
19172         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
19173         * doc/posix-functions/log.texi: Mention the log-ieee module.
19175         Tests for module 'logl-ieee'.
19176         * modules/logl-ieee-tests: New file.
19177         * tests/test-logl-ieee.c: New file.
19179         New module 'logl-ieee'.
19180         * modules/logl-ieee: New file.
19182         Tests for module 'log-ieee'.
19183         * modules/log-ieee-tests: New file.
19184         * tests/test-log-ieee.c: New file.
19186         New module 'log-ieee'.
19187         * modules/log-ieee: New file.
19189         Tests for module 'logf-ieee'.
19190         * modules/logf-ieee-tests: New file.
19191         * tests/test-logf-ieee.c: New file.
19192         * tests/test-log-ieee.h: New file.
19194         New module 'logf-ieee'.
19195         * modules/logf-ieee: New file.
19197 2012-03-10  Bruno Haible  <bruno@clisp.org>
19199         log: Fix bug introduced on 2012-03-09.
19200         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
19202 2012-03-10  Pádraig Brady  <P@draigBrady.com>
19204         timer-time: link explicitly with pthreads on glibc
19205         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19206         to support static linking, when newer glibc is
19207         detected, as that contains pthread emulation of
19208         POSIX timer functions where required.
19209         * modules/timer-time: Depend on threadlib to
19210         pull in the appropriate library to link.
19212 2012-03-10  Bruno Haible  <bruno@clisp.org>
19214         log* tests: More tests.
19215         * tests/test-log.h: New file.
19216         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
19217         (main): Invoke test_function.
19218         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
19219         (main): Invoke test_function.
19220         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
19221         (main): Invoke test_function.
19222         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19223         tests/randomd.c.
19224         (Makefile.am): Add randomd.c to test_log_SOURCES.
19225         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19226         tests/randomf.c.
19227         (Makefile.am): Add randomf.c to test_logf_SOURCES.
19228         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19229         tests/randoml.c.
19230         (Depends-on): Add 'float'.
19231         (Makefile.am): Add randoml.c to test_logl_SOURCES.
19233 2012-03-09  Bruno Haible  <bruno@clisp.org>
19235         logl: Work around OSF/1 5.1 bug.
19236         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
19237         * lib/logl.c (logl): If logl exists, use it and provide just the
19238         workaround.
19239         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
19240         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
19241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
19242         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
19243         * modules/logl (configure.ac): Consider REPLACE_LOGL.
19244         (Depends-on): Update conditions.
19245         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
19247 2012-03-09  Bruno Haible  <bruno@clisp.org>
19249         logf: Work around OSF/1 5.1 bug.
19250         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
19251         * lib/logf.c (logf): If logf exists, use it and provide just the
19252         workaround.
19253         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
19254         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
19255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
19256         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
19257         * modules/logf (configure.ac): Consider REPLACE_LOGF.
19258         (Depends-on): Update conditions.
19259         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
19261 2012-03-09  Bruno Haible  <bruno@clisp.org>
19263         log: Work around OSF/1 5.1 bug.
19264         * lib/math.in.h (log): New declaration.
19265         * lib/log.c: New file.
19266         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
19267         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
19268         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
19269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
19270         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
19271         * modules/log (Files): Add lib/log.c.
19272         (Depends-on): Add math.
19273         (configure.ac): If REPLACE_LOG is 1, compile an override.
19274         * tests/test-math-c++.cc: Check the declaration of log.
19275         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
19277 2012-03-09  Jim Meyering  <meyering@redhat.com>
19279         readtokens.c: adjust wording in a comment
19280         * lib/readtokens.c: Insert omitted "that" in a comment.
19282 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19284         modechange: add notations +40, 00440, etc.
19285         * lib/modechange.c (mode_compile): Support new notations
19286         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
19288 2012-03-08  Bruno Haible  <bruno@clisp.org>
19290         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
19291         * m4/exp2l-ieee.m4: New file.
19292         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
19293         test whether exp2l works with a NaN argument and with a negative
19294         infinity argument. Replace it if not.
19295         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
19296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
19297         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
19298         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
19299         (Depends-on): Update conditions.
19300         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
19301         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
19302         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
19304         Tests for module 'exp2l-ieee'.
19305         * modules/exp2l-ieee-tests: New file.
19306         * tests/test-exp2l-ieee.c: New file.
19308         New module 'exp2l-ieee'.
19309         * modules/exp2l-ieee: New file.
19311         Tests for module 'exp2-ieee'.
19312         * modules/exp2-ieee-tests: New file.
19313         * tests/test-exp2-ieee.c: New file.
19315         New module 'exp2-ieee'.
19316         * modules/exp2-ieee: New file.
19318         Tests for module 'exp2f-ieee'.
19319         * modules/exp2f-ieee-tests: New file.
19320         * tests/test-exp2f-ieee.c: New file.
19321         * tests/test-exp2-ieee.h: New file.
19323         New module 'exp2f-ieee'.
19324         * modules/exp2f-ieee: New file.
19326 2012-03-08  Bruno Haible  <bruno@clisp.org>
19328         Tests for module 'exp2l'.
19329         * modules/exp2l-tests: New file.
19330         * tests/test-exp2l.c: New file.
19332         New module 'exp2l'.
19333         * lib/math.in.h (exp2l): New declaration.
19334         * lib/exp2l.c: New file.
19335         * lib/expl-table.c: New file, extracted from lib/expl.c.
19336         * lib/expl.c (gl_expl_table): New declaration.
19337         (expl): Remove expl_table. Update reference.
19338         * m4/exp2l.m4: New file.
19339         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
19340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
19341         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
19342         * modules/exp2l: New file.
19343         * modules/expl (Files): Add lib/expl-table.c.
19344         (configure.ac): Compile also expl-table.c.
19345         * tests/test-math-c++.cc: Check the declaration of exp2l.
19346         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
19347         problem.
19349 2012-03-08  Bruno Haible  <bruno@clisp.org>
19351         Tests for module 'exp2f'.
19352         * modules/exp2f-tests: New file.
19353         * tests/test-exp2f.c: New file.
19355         New module 'exp2f'.
19356         * lib/math.in.h (exp2f): New declaration.
19357         * lib/exp2f.c: New file.
19358         * m4/exp2f.m4: New file.
19359         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
19360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
19361         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
19362         * modules/exp2f: New file.
19363         * tests/test-math-c++.cc: Check the declaration of exp2f.
19364         * doc/posix-functions/exp2f.texi: Mention the new module and the
19365         IRIX problem.
19367 2012-03-08  Bruno Haible  <bruno@clisp.org>
19369         Tests for module 'exp2'.
19370         * modules/exp2-tests: New file.
19371         * tests/test-exp2.c: New file.
19372         * tests/test-exp2.h: New file.
19374         New module 'exp2'.
19375         * lib/math.in.h (exp2): New declaration.
19376         * lib/exp2.c: New file.
19377         * m4/exp2.m4: New file.
19378         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
19379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
19380         REPLACE_EXP2.
19381         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
19382         REPLACE_EXP2.
19383         * modules/exp2: New file.
19384         * tests/test-math-c++.cc: Check the declaration of exp2.
19385         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
19386         and OpenBSD problems.
19388 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19390         savedir: fix comment typo
19391         * lib/savedir.c (savedirstream): Fix typo in comment.
19393 2012-03-08  Bruno Haible  <bruno@clisp.org>
19395         test-readtokens.c: use const; remove unwarranted cast
19396         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
19398 2012-03-08  Bruno Haible  <bruno@clisp.org>
19400         fmal: Avoid compilation error on AIX.
19401         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
19402         AIX 5.2..7.1.
19404 2012-03-08  Bruno Haible  <bruno@clisp.org>
19406         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
19407         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
19408         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
19409         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
19410         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
19411         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
19412         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
19414 2012-03-08  Bruno Haible  <bruno@clisp.org>
19416         remainderf: Override buggy system function on IRIX 6.5.
19417         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
19418         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
19419         when it exists.
19420         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
19422 2012-03-08  Jim Meyering  <meyering@redhat.com>
19424         test-readtokens.c: avoid const-related compilation warnings
19425         * tests/test-readtokens.c: Avoid const-related compilation warnings.
19427 2012-03-07  Jim Meyering  <meyering@redhat.com>
19428             Bruno Haible  <bruno@clisp.org>
19430         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
19431         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
19432         tests/randomd.c.
19433         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
19434         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
19435         tests/randoml.c.
19436         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
19438 2012-03-07  Bruno Haible  <bruno@clisp.org>
19440         expm1l: Avoid compilation error on AIX.
19441         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
19442         AIX 5.2..7.1.
19444 2012-03-07  Bruno Haible  <bruno@clisp.org>
19446         expm1l: Don't override undeclared system function on IRIX 6.5.
19447         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
19448         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
19449         it exists. Set HAVE_DECL_EXPM1L.
19450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
19451         HAVE_EXPM1L.
19452         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
19453         HAVE_EXPM1L.
19454         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
19456 2012-03-07  Bruno Haible  <bruno@clisp.org>
19458         remainderl: Don't override undeclared system function on IRIX 6.5.
19459         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
19460         HAVE_REMAINDERL.
19461         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
19462         declared when it exists. Set HAVE_DECL_REMAINDERL.
19463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
19464         not HAVE_REMAINDERL.
19465         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
19466         HAVE_REMAINDERL.
19467         * doc/posix-functions/remainderl.texi: Mention missing declaration
19468         problem.
19470 2012-03-07  Bruno Haible  <bruno@clisp.org>
19472         rintf: Don't override undeclared system function on IRIX 6.5.
19473         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
19474         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
19475         exists. Set HAVE_DECL_RINTF.
19476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
19477         HAVE_RINTF.
19478         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
19479         HAVE_RINTF.
19480         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
19482 2012-03-07  Bruno Haible  <bruno@clisp.org>
19484         roundl: Avoid compilation error on AIX.
19485         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
19486         AIX 5.2..7.1.
19488 2012-03-07  Bruno Haible  <bruno@clisp.org>
19490         roundl: Don't override undeclared system function on IRIX 6.5.
19491         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
19492         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
19493         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
19494         * modules/roundl (configure.ac): For replacement code, test
19495         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
19496         (Depends-on): Update conditions.
19497         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
19499 2012-03-07  Bruno Haible  <bruno@clisp.org>
19501         roundf: Don't override undeclared system function on IRIX 6.5.
19502         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
19503         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
19504         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
19505         * modules/roundf (configure.ac): For replacement code, test
19506         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
19507         (Depends-on): Update conditions.
19508         * modules/roundf-ieee (Depends-on): Update conditions.
19509         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
19511 2012-03-07  Bruno Haible  <bruno@clisp.org>
19513         round: Don't override undeclared system function on IRIX 6.5.
19514         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
19515         argument.
19516         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
19517         also when it is not declared. Set HAVE_ROUND. For replacement code,
19518         test HAVE_ROUND, not HAVE_DECL_ROUND.
19519         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
19520         not HAVE_DECL_ROUND.
19521         (Depends-on): Update conditions.
19522         * modules/round-ieee (Depends-on): Update conditions.
19523         * doc/posix-functions/round.texi: Mention the IRIX problem.
19525 2012-03-07  Bruno Haible  <bruno@clisp.org>
19527         copysignf: Don't override undeclared system function on IRIX 6.5.
19528         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
19529         HAVE_COPYSIGNF.
19530         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
19531         declared when it exists. Set HAVE_DECL_COPYSIGNF.
19532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
19533         not HAVE_COPYSIGNF.
19534         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
19535         HAVE_COPYSIGNF.
19536         * doc/posix-functions/copysignf.texi: Mention missing declaration
19537         problem.
19539 2012-03-07  Jim Meyering  <meyering@redhat.com>
19541         readtokens: add tests
19542         * modules/readtokens-tests: New file.
19543         * tests/test-readtokens.c: New file.
19545 2012-03-07  Jim Meyering  <meyering@redhat.com>
19547         quotearg: the module must now include quote.h
19548         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
19549         So must the module.
19550         * modules/quotearg (Files): Add quote.h.
19552 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
19554         readtokens: avoid core dumps with unusual calling patterns
19555         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
19556         * lib/readtokens.c: Include limits.h.
19557         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
19558         (readtoken): Don't cache the delimiters; the cache code was buggy
19559         if !delim && saved_delim, or if the new n_delim differs from the old.
19560         Also, it wasn't thread-safe.
19562 2012-03-07  Bruno Haible  <bruno@clisp.org>
19564         quote: Adhere to common module description layout.
19565         * modules/quote (Makefile.am): Add back empty section.
19567 2012-03-06  Akim Demaille  <demaille@gostai.com>
19569         quote: fuse into quotearg
19570         This patch is made for the benefit of Bison.
19571         quote does not leave the choice of the quoting style to the user.
19572         quoting_style provides poor customizability, yet quoting_options,
19573         which is very rich, is hidden inside quotearg.c.  So in order to
19574         allow quote customization, move its implementation to quotearg.c.
19575         * lib/quote.c: Remove.
19576         * modules/quote: Adjust.
19577         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
19578         warning: provide all the members of literal structs.
19579         (quote_quoting_options): New.
19580         (quote, quote_n): Import implementation from quote.c.
19581         * lib/quote.h: Import the comments from quote.c.
19582         (quote_quoting_options): New.
19584 2012-03-06  Bruno Haible  <bruno@clisp.org>
19586         Tests for module 'expm1l-ieee'.
19587         * modules/expm1l-ieee-tests: New file.
19588         * tests/test-expm1l-ieee.c: New file.
19590         New module 'expm1l-ieee'.
19591         * modules/expm1l-ieee: New file.
19593         Tests for module 'expm1f-ieee'.
19594         * modules/expm1f-ieee-tests: New file.
19595         * tests/test-expm1f-ieee.c: New file.
19597         New module 'expm1f-ieee'.
19598         * modules/expm1f-ieee: New file.
19600         Tests for module 'expm1-ieee'.
19601         * modules/expm1-ieee-tests: New file.
19602         * tests/test-expm1-ieee.c: New file.
19603         * tests/test-expm1-ieee.h: New file.
19605         New module 'expm1-ieee'.
19606         * modules/expm1-ieee: New file.
19607         * m4/expm1-ieee.m4: New file.
19608         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
19609         whether expm1 works with a minus zero argument. Replace it if not.
19610         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
19611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
19612         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
19613         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
19614         (Depends-on): Update conditions.
19615         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
19616         AIX problem.
19618 2012-03-06  Bruno Haible  <bruno@clisp.org>
19620         Work around expm1f bug on IRIX 6.5.
19621         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
19622         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
19623         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
19624         not work.
19625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
19626         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
19627         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
19628         (Depends-on): Update conditions.
19629         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
19631 2012-03-06  Bruno Haible  <bruno@clisp.org>
19633         Tests for module 'expm1l'.
19634         * modules/expm1l-tests: New file.
19635         * tests/test-expm1l.c: New file.
19637         New module 'expm1l'.
19638         * lib/math.in.h (expm1l): New declaration.
19639         * lib/expm1l.c: New file.
19640         * m4/expm1l.m4: New file.
19641         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
19642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
19643         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
19644         * modules/expm1l: New file.
19645         * tests/test-math-c++.cc: Check the declaration of expm1l.
19646         * doc/posix-functions/expm1l.texi: Mention the new module.
19648 2012-03-06  Bruno Haible  <bruno@clisp.org>
19650         Tests for module 'expm1f'.
19651         * modules/expm1f-tests: New file.
19652         * tests/test-expm1f.c: New file.
19654         New module 'expm1f'.
19655         * lib/math.in.h (expm1f): New declaration.
19656         * lib/expm1f.c: New file.
19657         * m4/expm1f.m4: New file.
19658         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
19659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
19660         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
19661         * modules/expm1f: New file.
19662         * tests/test-math-c++.cc: Check the declaration of expm1f.
19663         * doc/posix-functions/expm1f.texi: Mention the new module.
19665 2012-03-06  Bruno Haible  <bruno@clisp.org>
19667         Tests for module 'expm1'.
19668         * modules/expm1-tests: New file.
19669         * tests/test-expm1.c: New file.
19670         * tests/test-expm1.h: New file.
19672         New module 'expm1'.
19673         * lib/math.in.h (expm1): New declaration.
19674         * lib/expm1.c: New file.
19675         * m4/expm1.m4: New file.
19676         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
19677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
19678         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
19679         * modules/expm1: New file.
19680         * tests/test-math-c++.cc: Check the declaration of expm1.
19681         * doc/posix-functions/expm1.texi: Mention the new module.
19683 2012-03-06  Bruno Haible  <bruno@clisp.org>
19685         math: Ensure declarations of math functions.
19686         * modules/acosf (Depends-on): Add 'extensions'.
19687         * modules/asinf (Depends-on): Likewise.
19688         * modules/atan2f (Depends-on): Likewise.
19689         * modules/atanf (Depends-on): Likewise.
19690         * modules/cbrt (Depends-on): Likewise.
19691         * modules/cbrtf (Depends-on): Likewise.
19692         * modules/cbrtl (Depends-on): Likewise.
19693         * modules/copysignf (Depends-on): Likewise.
19694         * modules/copysignl (Depends-on): Likewise.
19695         * modules/cosf (Depends-on): Likewise.
19696         * modules/coshf (Depends-on): Likewise.
19697         * modules/expf (Depends-on): Likewise.
19698         * modules/fabsf (Depends-on): Likewise.
19699         * modules/fabsl (Depends-on): Likewise.
19700         * modules/fmaf (Depends-on): Likewise.
19701         * modules/fmal (Depends-on): Likewise.
19702         * modules/fmodf (Depends-on): Likewise.
19703         * modules/fmodl (Depends-on): Likewise.
19704         * modules/frexpf (Depends-on): Likewise.
19705         * modules/frexpl (Depends-on): Likewise.
19706         * modules/hypot (Depends-on): Likewise.
19707         * modules/hypotf (Depends-on): Likewise.
19708         * modules/hypotl (Depends-on): Likewise.
19709         * modules/ldexpf (Depends-on): Likewise.
19710         * modules/ldexpl (Depends-on): Likewise.
19711         * modules/log10f (Depends-on): Likewise.
19712         * modules/log10l (Depends-on): Likewise.
19713         * modules/log1p (Depends-on): Likewise.
19714         * modules/logb (Depends-on): Likewise.
19715         * modules/logf (Depends-on): Likewise.
19716         * modules/modff (Depends-on): Likewise.
19717         * modules/modfl (Depends-on): Likewise.
19718         * modules/powf (Depends-on): Likewise.
19719         * modules/remainderf (Depends-on): Likewise.
19720         * modules/remainderl (Depends-on): Likewise.
19721         * modules/rintf (Depends-on): Likewise.
19722         * modules/rintl (Depends-on): Likewise.
19723         * modules/sinf (Depends-on): Likewise.
19724         * modules/sinhf (Depends-on): Likewise.
19725         * modules/sqrtf (Depends-on): Likewise.
19726         * modules/tanf (Depends-on): Likewise.
19727         * modules/tanhf (Depends-on): Likewise.
19728         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
19729         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
19730         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
19731         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
19732         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
19733         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
19734         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
19735         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
19736         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
19737         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
19738         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
19739         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
19740         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
19741         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
19742         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
19743         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
19744         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19745         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19746         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
19747         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
19748         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19749         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
19750         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
19751         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
19752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
19753         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
19754         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
19755         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19756         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
19757         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19758         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19759         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
19760         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
19761         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
19762         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
19763         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
19764         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
19765         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
19766         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
19767         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
19768         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
19770 2012-03-06  Bruno Haible  <bruno@clisp.org>
19772         math: Update module names in warnings.
19773         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19774         tanl): Use specific module name in warn-on-use warning.
19776 2012-03-06  Bruno Haible  <bruno@clisp.org>
19778         expl: Simplify computation.
19779         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
19781 2012-03-05  Bruno Haible  <bruno@clisp.org>
19783         exp* tests: More tests.
19784         * tests/test-exp.h: New file.
19785         * tests/test-exp.c: Include <float.h> and test-exp.h.
19786         (main): Invoke test_function.
19787         * tests/test-expf.c: Include <float.h> and test-exp.h.
19788         (main): Invoke test_function.
19789         * tests/test-expl.c: Include <float.h> and test-exp.h.
19790         (main): Invoke test_function.
19791         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
19792         (Makefile.am): Add randomd.c to test_exp_SOURCES.
19793         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
19794         (Makefile.am): Add randomf.c to test_expf_SOURCES.
19795         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
19796         (Depends-on): Add 'float'.
19797         (Makefile.am): Add randoml.c to test_expl_SOURCES.
19799         expl: Fix precision of computed result.
19800         * lib/expl.c: Completely rewritten.
19801         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
19802         (Maintainer): Add me.
19803         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
19805 2012-03-05  Bruno Haible  <bruno@clisp.org>
19807         cbrt* tests: More tests.
19808         * tests/test-cbrt.h: New file.
19809         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
19810         (main): Invoke test_function.
19811         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
19812         (main): Invoke test_function.
19813         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
19814         (main): Invoke test_function.
19815         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
19816         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
19817         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
19818         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
19819         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
19820         (Depends-on): Add 'float'.
19821         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
19823 2012-03-05  Bruno Haible  <bruno@clisp.org>
19825         hypot* tests: More tests.
19826         * tests/test-hypot.h: New file, partially extracted from
19827         tests/test-hypotl.c.
19828         * tests/test-hypot.c: Include test-hypot.h.
19829         (main): Invoke test_function.
19830         * tests/test-hypotf.c: Include test-hypot.h.
19831         (main): Invoke test_function.
19832         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
19833         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
19834         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
19835         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
19836         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
19837         tests/randomf.c.
19838         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
19839         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
19840         tests/randoml.c.
19841         (Depends-on): Add 'fpucw', 'float'.
19842         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
19844 2012-03-05  Bruno Haible  <bruno@clisp.org>
19846         fpucw: Doc about FreeBSD.
19847         * lib/fpucw.h: Mention FreeBSD in comments.
19849 2012-03-04  Bruno Haible  <bruno@clisp.org>
19851         sqrt* tests: More tests.
19852         * tests/test-sqrt.h: New file.
19853         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
19854         (main): Invoke test_function.
19855         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
19856         (main): Invoke test_function.
19857         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
19858         (main): Invoke test_function.
19859         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
19860         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
19861         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
19862         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
19863         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
19864         (Depends-on): Add 'float'.
19865         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
19867 2012-03-04  Bruno Haible  <bruno@clisp.org>
19869         remainder* tests: More tests.
19870         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
19871         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
19872         (main): Invoke test_function.
19873         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
19874         (main): Invoke test_function.
19875         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
19876         (main): Invoke test_function.
19877         * modules/remainder-tests (Files): Add tests/test-remainder.h,
19878         tests/randomd.c.
19879         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
19880         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
19881         tests/randomf.c.
19882         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
19883         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
19884         tests/randoml.c.
19885         (Depends-on): Add 'float'.
19886         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
19888 2012-03-04  Bruno Haible  <bruno@clisp.org>
19890         remainder, remainderf, remainderl: Fix computation for large quotients.
19891         * lib/remainder.c: Completely rewritten.
19892         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
19893         USE_FLOAT.
19894         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
19895         USE_LONG_DOUBLE.
19896         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
19897         isnand, isinf. Remove round, fma.
19898         * modules/remainderf (Files): Add lib/remainder.c.
19899         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
19900         Remove roundf, fmaf.
19901         * modules/remainderl (Files): Add lib/remainder.c.
19902         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
19903         isinf. Remove roundl, fmal.
19904         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
19905         REMAINDER_LIBM.
19906         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
19907         REMAINDERF_LIBM.
19908         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
19909         REMAINDERL_LIBM.
19911 2012-03-04  Bruno Haible  <bruno@clisp.org>
19913         fmod* tests: More tests.
19914         * tests/test-fmod.h (my_ldexp): New function.
19915         (test_function): Reduce amount of random numbers to test. Add tests
19916         of very large quotients x / y.
19917         * tests/test-fmod.c (MAX_EXP): New macro.
19918         * tests/test-fmodf.c (MAX_EXP): Likewise.
19919         * tests/test-fmodl.c (MAX_EXP): Likewise.
19921 2012-03-04  Bruno Haible  <bruno@clisp.org>
19923         fmod, fmodl: Fix computation for large quotients x / y.
19924         * lib/fmod.c: Completely rewritten.
19925         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
19926         USE_LONG_DOUBLE.
19927         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
19928         isnand. Remove fma.
19929         * modules/fmodl (Files): Add lib/fmod.c.
19930         (Depends-on): Add float, isfinite, signbit, fabsl,
19931         frexpl, ldexpl, isnanl. Remove fma.
19932         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
19933         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
19935 2012-03-03  Bruno Haible  <bruno@clisp.org>
19937         fmod* tests: More tests.
19938         * tests/test-fmod.h: New file.
19939         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
19940         (main): Invoke test_function.
19941         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
19942         (main): Invoke test_function.
19943         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
19944         (main): Invoke test_function.
19945         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
19946         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
19947         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
19948         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
19949         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
19950         (Depends-on): Add 'float'.
19951         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
19953 2012-03-03  Bruno Haible  <bruno@clisp.org>
19955         rint* tests: More tests.
19956         * tests/test-rint.h: New file, partially extracted from
19957         tests/test-rintl.c.
19958         * tests/test-rint.c: Include test-rint.h.
19959         (main): Invoke test_function.
19960         * tests/test-rintf.c: Include test-rint.h.
19961         (main): Invoke test_function.
19962         * tests/test-rintl.c: Include test-rint.h.
19963         (main): Invoke test_function.
19964         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
19965         (Makefile.am): Add randomd.c to test_rint_SOURCES.
19966         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
19967         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
19968         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
19969         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
19971 2012-03-03  Bruno Haible  <bruno@clisp.org>
19973         modf* tests: More tests.
19974         * tests/test-modf.h: New file.
19975         * tests/test-modf.c: Include <float.h> and test-modf.h.
19976         (main): Invoke test_function.
19977         * tests/test-modff.c: Include <float.h> and test-modf.h.
19978         (main): Invoke test_function.
19979         * tests/test-modfl.c: Include <float.h> and test-modf.h.
19980         (main): Invoke test_function.
19981         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
19982         (Makefile.am): Add randomd.c to test_modf_SOURCES.
19983         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
19984         (Makefile.am): Add randomf.c to test_modff_SOURCES.
19985         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
19986         (Depends-on): Add 'float'.
19987         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
19989 2012-03-03  Bruno Haible  <bruno@clisp.org>
19991         fabs* tests: More tests.
19992         * tests/test-fabs.h: New file, partially extracted from
19993         tests/test-fabsl.c.
19994         * tests/test-fabs.c (RANDOM): New macro.
19995         * tests/test-fabsf.c (RANDOM): New macro.
19996         * tests/test-fabsl.c (RANDOM): New macro.
19997         * modules/fabs-tests (Files): Add tests/randomd.c.
19998         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
19999         * modules/fabsf-tests (Files): Add tests/randomf.c.
20000         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
20001         * modules/fabsl-tests (Files): Add tests/randoml.c.
20002         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
20004 2012-03-03  Bruno Haible  <bruno@clisp.org>
20006         ldexp* tests: More tests.
20007         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
20008         * tests/test-ldexp.c (RANDOM): New macro.
20009         * tests/test-ldexpf.c (RANDOM): New macro.
20010         * tests/test-ldexpl.c (RANDOM): New macro.
20011         * modules/ldexp-tests (Files): Add tests/randomd.c.
20012         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
20013         * modules/ldexpf-tests (Files): Add tests/randomf.c.
20014         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
20015         * modules/ldexpl-tests (Files): Add tests/randoml.c.
20016         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
20018 2012-03-03  Bruno Haible  <bruno@clisp.org>
20020         frexp* tests: More tests.
20021         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
20022         * tests/test-frexp.c (RANDOM): New macro.
20023         * tests/test-frexpf.c (RANDOM): New macro.
20024         * tests/test-frexpl.c (RANDOM): New macro.
20025         * modules/frexp-tests (Files): Add tests/randomd.c.
20026         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
20027         * modules/frexpf-tests (Files): Add tests/randomf.c.
20028         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
20029         * modules/frexpl-tests (Files): Add tests/randoml.c.
20030         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
20032 2012-03-03  Bruno Haible  <bruno@clisp.org>
20034         Support for pseudo-random numbers in tests.
20035         * tests/randomf.c: New file.
20036         * tests/randomd.c: New file.
20037         * tests/randoml.c: New file.
20038         * tests/macros.h (randomf, randomd, randoml): New declarations.
20040 2012-03-03  Bruno Haible  <bruno@clisp.org>
20042         frexp* tests: Refactor.
20043         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
20044         * tests/test-frexp.c: Include and use it.
20045         * tests/test-frexpf.c: Likewise.
20046         * tests/test-frexpl.c: Likewise.
20047         * modules/frexp-tests (Files): Add tests/test-frexp.h.
20048         * modules/frexpf-tests (Files): Likewise.
20049         * modules/frexpl-tests (Files): Likewise.
20051 2012-03-02  Jim Meyering  <meyering@redhat.com>
20053         maint: don't specify XZ_OPT=-9ev in dist-related rule
20054         Using xz's -9 option is warranted only if you have a very large
20055         tarball (see xz's documentation for the sizes vs. presets), and
20056         requires 64MiB of memory at decompression time.
20057         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
20058         Automake's default of just "-e" is fine.  Override on a
20059         per-package basis by setting XZ_OPT e.g., in cfg.mk.
20061 2012-03-01  Eric Blake  <eblake@redhat.com>
20063         maint.mk: allow announcement for non-gnulib project
20064         * maint.mk (announcement): Skip gnulib version if not used.
20066 2012-03-01  Jim Meyering  <meyering@redhat.com>
20068         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
20069         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
20070         envvar settings cannot interfere.  Otherwise, setting envvars like
20071         prohibit=foo require=bar, etc. would cause spurious test failures.
20073 2012-03-01  Eric Blake  <eblake@redhat.com>
20075         maint.mk: add per-line exclusions to prohibitions
20076         * maint.mk (_sc_search_regexp): Add $exclude parameter.
20077         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
20078         (sc_const_long_option): Use it.
20080 2012-03-01  Bruno Haible  <bruno@clisp.org>
20082         Tests for module 'expl-ieee'.
20083         * modules/expl-ieee-tests: New file.
20084         * tests/test-expl-ieee.c: New file.
20086         New module 'expl-ieee'.
20087         * modules/expl-ieee: New file.
20089         Tests for module 'exp-ieee'.
20090         * modules/exp-ieee-tests: New file.
20091         * tests/test-exp-ieee.c: New file.
20093         New module 'exp-ieee'.
20094         * modules/exp-ieee: New file.
20096         Tests for module 'expf-ieee'.
20097         * modules/expf-ieee-tests: New file.
20098         * tests/test-expf-ieee.c: New file.
20099         * tests/test-exp-ieee.h: New file.
20101         New module 'expf-ieee'.
20102         * modules/expf-ieee: New file.
20104 2012-02-29  Bruno Haible  <bruno@clisp.org>
20106         cbrtl-ieee: Work around test failure on IRIX 6.5.
20107         * m4/cbrtl-ieee.m4: New file.
20108         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
20109         test whether cbrtl works with a minus zero argument. Replace it if not.
20110         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
20111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
20112         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
20113         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
20114         (Depends-on): Update conditions.
20115         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
20116         m4/signbit.m4.
20117         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
20118         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
20119         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
20121         Tests for module 'cbrtl-ieee'.
20122         * modules/cbrtl-ieee-tests: New file.
20123         * tests/test-cbrtl-ieee.c: New file.
20125         New module 'cbrtl-ieee'.
20126         * modules/cbrtl-ieee: New file.
20128         Tests for module 'cbrt-ieee'.
20129         * modules/cbrt-ieee-tests: New file.
20130         * tests/test-cbrt-ieee.c: New file.
20132         New module 'cbrt-ieee'.
20133         * modules/cbrt-ieee: New file.
20135         Tests for module 'cbrtf-ieee'.
20136         * modules/cbrtf-ieee-tests: New file.
20137         * tests/test-cbrtf-ieee.c: New file.
20138         * tests/test-cbrt-ieee.h: New file.
20140         New module 'cbrtf-ieee'.
20141         * modules/cbrtf-ieee: New file.
20143 2012-02-29  Bruno Haible  <bruno@clisp.org>
20145         cbrtf: Work around bug in IRIX 6.5 system function.
20146         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
20147         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
20148         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
20149         work.
20150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
20151         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
20152         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
20153         (Depends-on): Update conditions.
20154         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
20156 2012-02-29  Bruno Haible  <bruno@clisp.org>
20158         Tests for module 'cbrtl'.
20159         * modules/cbrtl-tests: New file.
20160         * tests/test-cbrtl.c: New file.
20162         New module 'cbrtl'.
20163         * lib/math.in.h (cbrtl): New declaration.
20164         * lib/cbrtl.c: New file.
20165         * m4/cbrtl.m4: New file.
20166         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
20167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
20168         HAVE_DECL_CBRTL.
20169         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
20170         HAVE_DECL_CBRTL.
20171         * modules/cbrtl: New file.
20172         * tests/test-math-c++.cc: Check the declaration of cbrtl.
20173         * doc/posix-functions/cbrtl.texi: Mention the new module.
20175 2012-02-29  Bruno Haible  <bruno@clisp.org>
20177         Tests for module 'cbrtf'.
20178         * modules/cbrtf-tests: New file.
20179         * tests/test-cbrtf.c: New file.
20181         New module 'cbrtf'.
20182         * lib/math.in.h (cbrtf): New declaration.
20183         * lib/cbrtf.c: New file.
20184         * m4/cbrtf.m4: New file.
20185         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
20186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
20187         HAVE_DECL_CBRTF.
20188         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
20189         HAVE_DECL_CBRTF.
20190         * modules/cbrtf: New file.
20191         * tests/test-math-c++.cc: Check the declaration of cbrtf.
20192         * doc/posix-functions/cbrtf.texi: Mention the new module.
20194 2012-02-29  Bruno Haible  <bruno@clisp.org>
20196         cbrt: Provide replacement on MSVC and Minix.
20197         * lib/math.in.h (cbrt): New declaration.
20198         * lib/cbrt.c: New file.
20199         * m4/cbrt.m4: New file.
20200         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
20201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
20202         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
20203         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
20204         (Depends-on): Add dependencies.
20205         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
20206         * tests/test-math-c++.cc: Check the declaration of cbrt.
20207         * doc/posix-functions/cbrt.texi: Mention that the module provides a
20208         replacement.
20210 2012-02-29  Bruno Haible  <bruno@clisp.org>
20212         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
20213         * m4/hypotl-ieee.m4: New file.
20214         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
20215         test whether hypotl works with mixed NaN and Infinity arguments.
20216         Replace it if not.
20217         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
20218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
20219         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
20220         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
20221         (Depends-on): Update conditions.
20222         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
20223         (Depends-on): Add hypot-ieee.
20224         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
20225         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
20227         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
20228         * m4/hypotf-ieee.m4: New file.
20229         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
20230         test whether hypotf works with mixed NaN and Infinity arguments.
20231         Replace it if not.
20232         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
20233         (Depends-on): Add hypot-ieee.
20234         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
20235         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
20237         hypot-ieee: Work around test failure on OSF/1 and native Windows.
20238         * lib/math.in.h (hypot): New declaration.
20239         * lib/hypot.c: New file.
20240         * m4/hypot-ieee.m4: New file.
20241         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
20242         whether hypot works with mixed NaN and Infinity arguments. Replace it
20243         if not.
20244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
20245         REPLACE_HYPOT.
20246         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
20247         * modules/hypot (Files): Add lib/hypot.c.
20248         (Depends-on): Add dependencies.
20249         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
20250         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
20251         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
20252         * tests/test-math-c++.cc: Check the declaration of hypot.
20253         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
20255         Tests for module 'hypotl-ieee'.
20256         * modules/hypotl-ieee-tests: New file.
20257         * tests/test-hypotl-ieee.c: New file.
20259         New module 'hypotl-ieee'.
20260         * modules/hypotl-ieee: New file.
20262         Tests for module 'hypot-ieee'.
20263         * modules/hypot-ieee-tests: New file.
20264         * tests/test-hypot-ieee.c: New file.
20266         New module 'hypot-ieee'.
20267         * modules/hypot-ieee: New file.
20269         Tests for module 'hypotf-ieee'.
20270         * modules/hypotf-ieee-tests: New file.
20271         * tests/test-hypotf-ieee.c: New file.
20272         * tests/test-hypot-ieee.h: New file.
20274         New module 'hypotf-ieee'.
20275         * modules/hypotf-ieee: New file.
20277 2012-02-29  Bruno Haible  <bruno@clisp.org>
20279         Remove unused variables.
20280         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
20281         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
20282         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
20283         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
20285 2012-02-29  Eric Blake  <eblake@redhat.com>
20287         termios: fix pid_t always, not just for tcgetsid
20288         * doc/posix-headers/termios.texi (termios.h): Mention problem.
20289         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
20290         just when building tcgetsid.
20292 2012-02-29  Bruno Haible  <bruno@clisp.org>
20294         Tests for module 'hypotl'.
20295         * modules/hypotl-tests: New file.
20296         * tests/test-hypotl.c: New file.
20298         New module 'hypotl'.
20299         * lib/math.in.h (hypotl): New declaration.
20300         * lib/hypotl.c: New file.
20301         * m4/hypotl.m4: New file.
20302         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
20303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
20304         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
20305         * modules/hypotl: New file.
20306         * tests/test-math-c++.cc: Check the hypotl declaration.
20307         * doc/posix-functions/hypotl.texi: Mention the new module.
20309 2012-02-29  Eric Blake  <eblake@redhat.com>
20311         tcgetsid: fix cygwin header bug
20312         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
20314         docs: update cygwin progress
20315         * doc/posix-functions/llround.texi (llround): Added in cygwin
20316         1.7.8.
20317         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
20318         * doc/glibc-functions/program_invocation_name.texi
20319         (program_invocation_name): Likewise.
20320         * doc/glibc-functions/program_invocation_short_name.texi
20321         (program_invocation_short_name): Likewise.
20322         * doc/glibc-functions/madvise.texi (madvise): Likewise.
20323         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
20324         Likewise.
20325         * doc/posix-functions/pthread_spin_destroy.texi
20326         (pthread_spin_destroy): Added in cygwin 1.7.10.
20327         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
20328         Likewise.
20329         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
20330         Likewise.
20331         * doc/posix-functions/pthread_spin_trylock.texi
20332         (pthread_spin_trylock): Likewise.
20333         * doc/posix-functions/pthread_spin_unlock.texi
20334         (pthread_spin_unlock): Likewise.
20335         * doc/posix-functions/pthread_setschedprio.texi
20336         (pthread_setschedprio): Likewise.
20337         * doc/posix-functions/pthread_attr_getstack.texi
20338         (pthread_attr_getstack): Likewise.
20339         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
20340         (pthread_attr_getstackaddr): Likewise.
20341         * doc/glibc-functions/pthread_getattr_np.texi
20342         (pthread_getattr_np): Likewise.
20343         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
20344         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
20345         * doc/posix-functions/clock_settime.texi (clock_settime):
20346         Likewise.
20347         * doc/posix-functions/pthread_attr_getguardsize.texi
20348         (pthread_attr_getguardsize): Likewise.
20349         * doc/posix-functions/pthread_attr_setguardsize.texi
20350         (pthread_attr_setguardsize): Likewise.
20351         * doc/posix-functions/pthread_attr_setstack.texi
20352         (pthread_attr_setstack): Likewise.
20353         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
20354         (pthread_attr_setstackaddr): Likewise.
20355         * doc/posix-functions/clock_getcpuclockid.texi
20356         (clock_getcpuclockid): Likewise.
20357         * doc/posix-functions/pthread_getcpuclockid.texi
20358         (pthread_getcpuclockid): Likewise.
20359         * doc/glibc-functions/error.texi (error): Likewise.
20360         * doc/glibc-functions/error_at_line.texi (error_at_line):
20361         Likewise.
20362         * doc/glibc-functions/error_message_count.texi
20363         (error_message_count): Likewise.
20364         * doc/glibc-functions/error_one_per_line.texi
20365         (error_one_per_line): Likewise.
20366         * doc/glibc-functions/error_print_progname.texi
20367         (error_print_progname): Likewise.
20368         * doc/posix-functions/pthread_condattr_getclock.texi
20369         (pthread_condattr_getclock): Likewise.
20370         * doc/posix-functions/pthread_condattr_setclock.texi
20371         (pthread_condattr_setclock): Likewise.
20372         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
20373         Likewise.
20374         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
20375         * doc/glibc-functions/getpt.texi (getpt): Likewise.
20376         * doc/glibc-functions/get_current_dir_name.texi
20377         (get_current_dir_name): Likewise.
20378         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
20379         Likewise.
20380         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
20381         wrong return type.
20382         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
20383         1.7.11.
20385 2012-02-29  Bruno Haible  <bruno@clisp.org>
20387         Tests for module 'hypotf'.
20388         * modules/hypotf-tests: New file.
20389         * tests/test-hypotf.c: New file.
20391         New module 'hypotf'.
20392         * lib/math.in.h (hypotf): New declaration.
20393         * lib/hypotf.c: New file.
20394         * m4/hypotf.m4: New file.
20395         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
20396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
20397         REPLACE_HYPOTF.
20398         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
20399         REPLACE_HYPOTF.
20400         * modules/hypotf: New file.
20401         * tests/test-math-c++.cc: Check the hypotf declaration.
20402         * doc/posix-functions/hypotf.texi: Mention the new module.
20404         hypot: Prepare for hypotf module.
20405         * m4/hypot.m4: New file.
20406         * modules/hypot (Files): Add m4/hypot.m4.
20407         (configure.ac): Invoke gl_FUNC_HYPOT.
20409 2012-02-29  Bruno Haible  <bruno@clisp.org>
20411         hypot tests: More tests.
20412         * tests/test-hypot.c: Include <float.h>.
20413         (main): Add tests about overflow and underflow.
20415 2012-02-29  Bruno Haible  <bruno@clisp.org>
20417         math code: Add comments.
20418         * lib/acosl.c: Add comment about related glibc source files.
20419         * lib/asinl.c: Likewise.
20420         * lib/atanl.c: Likewise.
20421         * lib/expl.c: Likewise.
20422         * lib/logl.c: Likewise.
20423         * lib/sincosl.c: Likewise.
20424         * lib/sinl.c: Likewise.
20425         * lib/tanl.c: Likewise.
20426         * lib/trigl.c: Likewise.
20427         * lib/cosl.c: Likewise. Fix comments.
20429 2012-02-28  Bruno Haible  <bruno@clisp.org>
20431         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
20432         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
20433         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
20434         HUGE_VALL are defined.
20435         (numeric_equald): Renamed from numeric_equal.
20436         (numeric_equalf, numeric_equall): New functions.
20437         (main): Check also HUGE_VALF, HUGE_VALL.
20438         * modules/math-tests (Files): Add tests/macros.h.
20439         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
20440         HUGE_VALL.
20442 2012-02-28  Bruno Haible  <bruno@clisp.org>
20444         doc: Move ISO C11 feature notes into POSIX chapters.
20445         * doc/posix-functions/aligned_alloc.texi: Renamed from
20446         doc/glibc-functions/aligned_alloc.texi.
20447         * doc/posix-functions/quick_exit.texi: Renamed from
20448         doc/glibc-functions/quick_exit.texi.
20449         * doc/posix-headers/uchar.texi: Renamed from
20450         doc/glibc-headers/uchar.texi.
20451         * doc/posix-functions/c16rtomb.texi: Renamed from
20452         doc/glibc-functions/c16rtomb.texi.
20453         * doc/posix-functions/c32rtomb.texi: Renamed from
20454         doc/glibc-functions/c32rtomb.texi.
20455         * doc/posix-functions/mbrtoc16.texi: Renamed from
20456         doc/glibc-functions/mbrtoc16.texi.
20457         * doc/posix-functions/mbrtoc32.texi: Renamed from
20458         doc/glibc-functions/mbrtoc32.texi.
20459         * doc/gnulib.texi: Update.
20460         (Glibc uchar.h): Remove section.
20461         Suggested by Eric Blake.
20463 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
20465         stdnoreturn: port to MSVC better
20466         MSVC standard headers use __declspec(noreturn), so #define noreturn
20467         to empty on that platform.  Reported by Bruno Haible in
20468         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
20469         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
20470         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
20472 2012-02-28  Bruno Haible  <bruno@clisp.org>
20474         doc: Mention new glibc headers and functions.
20475         * doc/glibc-headers/uchar.texi: New file.
20476         * doc/glibc-functions/aligned_alloc.texi: New file.
20477         * doc/glibc-functions/c16rtomb.texi: New file.
20478         * doc/glibc-functions/c32rtomb.texi: New file.
20479         * doc/glibc-functions/clock_adjtime.texi: New file.
20480         * doc/glibc-functions/fanotify_init.texi: New file.
20481         * doc/glibc-functions/fanotify_mark.texi: New file.
20482         * doc/glibc-functions/inet6_opt_append.texi: New file.
20483         * doc/glibc-functions/inet6_opt_find.texi: New file.
20484         * doc/glibc-functions/inet6_opt_finish.texi: New file.
20485         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
20486         * doc/glibc-functions/inet6_opt_init.texi: New file.
20487         * doc/glibc-functions/inet6_opt_next.texi: New file.
20488         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
20489         * doc/glibc-functions/inet6_rth_add.texi: New file.
20490         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
20491         * doc/glibc-functions/inet6_rth_init.texi: New file.
20492         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
20493         * doc/glibc-functions/inet6_rth_segments.texi: New file.
20494         * doc/glibc-functions/inet6_rth_space.texi: New file.
20495         * doc/glibc-functions/login.texi: New file.
20496         * doc/glibc-functions/mbrtoc16.texi: New file.
20497         * doc/glibc-functions/mbrtoc32.texi: New file.
20498         * doc/glibc-functions/name_to_handle_at.texi: New file.
20499         * doc/glibc-functions/ntp_gettimex.texi: New file.
20500         * doc/glibc-functions/open_by_handle_at.texi: New file.
20501         * doc/glibc-functions/prlimit.texi: New file.
20502         * doc/glibc-functions/process_vm_readv.texi: New file.
20503         * doc/glibc-functions/process_vm_writev.texi: New file.
20504         * doc/glibc-functions/recvmmsg.texi: New file.
20505         * doc/glibc-functions/scandirat.texi: New file.
20506         * doc/glibc-functions/sendmmsg.texi: New file.
20507         * doc/glibc-functions/setns.texi: New file.
20508         * doc/glibc-functions/timespec_get.texi: New file.
20509         * doc/gnulib.texi: Include them.
20510         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
20511         sections.
20512         Reported by Eric Blake.
20514 2012-02-28  Bruno Haible  <bruno@clisp.org>
20516         Avoid compilation errors with MSVC option -fp:strict.
20517         * lib/floor.c: Use MSVC specific pragma fenv_access.
20518         * lib/ceil.c: Likewise.
20519         * lib/trunc.c: Likewise.
20520         * lib/round.c: Likewise.
20521         * lib/rint.c: Likewise.
20522         * lib/fma.c: Likewise.
20523         * lib/integer_length.c: Likewise.
20524         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20525         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20526         * tests/test-floor2.c: Likewise.
20527         * tests/test-floorf2.c: Likewise.
20528         * tests/test-ceil2.c: Likewise.
20529         * tests/test-ceilf2.c: Likewise.
20530         * tests/test-trunc2.c: Likewise.
20531         * tests/test-truncf2.c: Likewise.
20532         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20534 2012-02-27  Bruno Haible  <bruno@clisp.org>
20536         Tests for module 'sqrtl-ieee'.
20537         * modules/sqrtl-ieee-tests: New file.
20538         * tests/test-sqrtl-ieee.c: New file.
20540         New module 'sqrtl-ieee'.
20541         * modules/sqrtl-ieee: New file.
20543         Tests for module 'sqrt-ieee'.
20544         * modules/sqrt-ieee-tests: New file.
20545         * tests/test-sqrt-ieee.c: New file.
20547         New module 'sqrt-ieee'.
20548         * modules/sqrt-ieee: New file.
20550         Tests for module 'sqrtf-ieee'.
20551         * modules/sqrtf-ieee-tests: New file.
20552         * tests/test-sqrtf-ieee.c: New file.
20553         * tests/test-sqrt-ieee.h: New file.
20555         New module 'sqrtf-ieee'.
20556         * modules/sqrtf-ieee: New file.
20558 2012-02-27  Bruno Haible  <bruno@clisp.org>
20560         remainderl-ieee: Work around test failure on OSF/1.
20561         * m4/remainderl-ieee.m4: New file.
20562         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
20563         present, test whether remainderl works with a zero second argument.
20564         Replace it if not.
20565         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
20566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
20567         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
20568         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
20569         (Depends-on): Update conditions.
20570         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
20571         (Depends-on): Add remainder-ieee.
20572         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
20573         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
20574         module.
20576         remainderf-ieee: Work around test failure on OSF/1.
20577         * m4/remainderf-ieee.m4: New file.
20578         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
20579         present, test whether remainderf works with a zero second argument.
20580         Replace it if not.
20581         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
20582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
20583         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
20584         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
20585         (Depends-on): Update conditions.
20586         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
20587         (Depends-on): Add remainder-ieee.
20588         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
20589         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
20590         module.
20592         remainder-ieee: Work around test failure on OSF/1.
20593         * m4/remainder-ieee.m4: New file.
20594         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
20595         present, test whether remainder works with a zero second argument.
20596         Replace it if not.
20597         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
20598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
20599         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
20600         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
20601         (Depends-on): Update dependencies.
20602         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
20603         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
20604         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
20606         Tests for module 'remainderl-ieee'.
20607         * modules/remainderl-ieee-tests: New file.
20608         * tests/test-remainderl-ieee.c: New file.
20610         New module 'remainderl-ieee'.
20611         * modules/remainderl-ieee: New file.
20613         Tests for module 'remainder-ieee'.
20614         * modules/remainder-ieee-tests: New file.
20615         * tests/test-remainder-ieee.c: New file.
20617         New module 'remainder-ieee'.
20618         * modules/remainder-ieee: New file.
20620         Tests for module 'remainderf-ieee'.
20621         * modules/remainderf-ieee-tests: New file.
20622         * tests/test-remainderf-ieee.c: New file.
20623         * tests/test-remainder-ieee.h: New file.
20625         New module 'remainderf-ieee'.
20626         * modules/remainderf-ieee: New file.
20628 2012-02-27  Bruno Haible  <bruno@clisp.org>
20630         modff, modfl: Fix configure syntax error.
20631         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
20632         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
20634 2012-02-27  Bruno Haible  <bruno@clisp.org>
20636         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
20637         * m4/fmodl-ieee.m4: New file.
20638         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
20639         whether fmodl works with zero arguments. Replace it if not.
20640         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
20641         (Depends-on): Add fmod-ieee.
20642         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
20643         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
20645         fmodf-ieee: Work around test failure on OSF/1.
20646         * m4/fmodf-ieee.m4: New file.
20647         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
20648         whether fmodf works with zero arguments. Replace it if not.
20649         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
20650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
20651         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
20652         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
20653         (Depends-on): Update dependencies.
20654         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
20655         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
20656         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
20658         fmodf-ieee: Work around test failure on MSVC 9.
20659         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
20660         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
20662         fmod-ieee: Work around test failures on OSF/1, mingw.
20663         * m4/fmod-ieee.m4: New file.
20664         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
20665         whether fmod works with zero arguments. Replace it if not.
20666         * lib/math.in.h (fmod): New declaration.
20667         * lib/fmod.c: New file.
20668         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
20669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
20670         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
20671         * modules/fmod (Files): Add lib/fmod.c.
20672         (Depends-on): Add math, isinf, trunc, fma.
20673         (configure.ac): Arrange to compile lib/fmod.c if needed.
20674         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
20675         m4/signbit.m4.
20676         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
20677         * tests/test-math-c++.cc: Check the declaration of fmod.
20678         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
20680         fmodl-ieee: Fix test failures.
20681         * lib/fmodl.c (fmodl): Treat Inf specially.
20682         * modules/fmodl (Depends-on): Add isinf.
20684         Tests for module 'fmodl-ieee'.
20685         * modules/fmodl-ieee-tests: New file.
20686         * tests/test-fmodl-ieee.c: New file.
20688         New module 'fmodl-ieee'.
20689         * modules/fmodl-ieee: New file.
20691         Tests for module 'fmod-ieee'.
20692         * modules/fmod-ieee-tests: New file.
20693         * tests/test-fmod-ieee.c: New file.
20695         New module 'fmod-ieee'.
20696         * modules/fmod-ieee: New file.
20698         Tests for module 'fmodf-ieee'.
20699         * modules/fmodf-ieee-tests: New file.
20700         * tests/test-fmodf-ieee.c: New file.
20701         * tests/test-fmod-ieee.h: New file.
20703         New module 'fmodf-ieee'.
20704         * modules/fmodf-ieee: New file.
20706 2012-02-27  Bruno Haible  <bruno@clisp.org>
20708         Tests for module 'rintl-ieee'.
20709         * modules/rintl-ieee-tests: New file.
20710         * tests/test-rintl-ieee.c: New file.
20712         New module 'rintl-ieee'.
20713         * modules/rintl-ieee: New file.
20715         Tests for module 'rint-ieee'.
20716         * modules/rint-ieee-tests: New file.
20717         * tests/test-rint-ieee.c: New file.
20719         New module 'rint-ieee'.
20720         * modules/rint-ieee: New file.
20722         Tests for module 'rintf-ieee'.
20723         * modules/rintf-ieee-tests: New file.
20724         * tests/test-rintf-ieee.c: New file.
20725         * tests/test-rint-ieee.h: New file.
20727         New module 'rintf-ieee'.
20728         * modules/rintf-ieee: New file.
20730 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20732         regex: re_search etc. should return -2 when memory exhausted
20733         This bug was uncovered when testing 'grep'.  Without the fix,
20734         re_search and friends return -1 when memory is exhausted, but -1
20735         means no match, and this causes grep to falsely report no-match
20736         instead of memory-exhaustion.  See
20737         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
20738         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
20739         trouble; this can occur if re_search_internal ran out of memory.
20741 2012-02-26  Bruno Haible  <bruno@clisp.org>
20743         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
20744         * m4/modfl-ieee.m4: New file.
20745         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
20746         whether modfl works with Inf. Replace it if not.
20747         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
20748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
20749         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
20750         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
20751         (Depends-on): Update dependencies.
20752         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
20753         m4/signbit.m4.
20754         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
20755         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
20757         modfl-ieee: Fix dependencies.
20758         * modules/modfl-ieee (Depends-on): Add modf-ieee.
20760         modfl-ieee: Fix test failures.
20761         * lib/modfl.c (modfl): Treat NaN and Inf specially.
20762         * modules/modfl (Depends-on): Add isfinite, isinf.
20764         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
20765         * m4/modff-ieee.m4: New file.
20766         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
20767         whether modff works with NaN and Inf. Replace it if not.
20768         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
20769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
20770         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
20771         * modules/modff (configure.ac): Consider REPLACE_MODFF.
20772         (Depends-on): Update dependencies.
20773         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
20774         m4/signbit.m4.
20775         (Depends-on): Add modf-ieee.
20776         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
20777         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
20779         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
20780         * m4/modf-ieee.m4: New file.
20781         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
20782         whether modf works with NaN and Inf. Replace it if not.
20783         * lib/math.in.h (modf): New declaration.
20784         * lib/modf.c: New file.
20785         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
20786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
20787         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
20788         * modules/modf (Files): Add lib/modf.c.
20789         (Depends-on): Add math, isfinite, trunc, isinf.
20790         (configure.ac): Addrange to compile lib/modf.c if needed.
20791         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
20792         m4/signbit.m4.
20793         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
20794         * tests/test-math-c++.cc: Check the declaration of modf.
20795         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
20797         Tests for module 'modfl-ieee'.
20798         * modules/modfl-ieee-tests: New file.
20799         * tests/test-modfl-ieee.c: New file.
20801         New module 'modfl-ieee'.
20802         * modules/modfl-ieee: New file.
20804         Tests for module 'modf-ieee'.
20805         * modules/modf-ieee-tests: New file.
20806         * tests/test-modf-ieee.c: New file.
20808         New module 'modf-ieee'.
20809         * modules/modf-ieee: New file.
20811         Tests for module 'modff-ieee'.
20812         * modules/modff-ieee-tests: New file.
20813         * tests/test-modff-ieee.c: New file.
20814         * tests/test-modf-ieee.h: New file.
20816         New module 'modff-ieee'.
20817         * modules/modff-ieee: New file.
20819 2012-02-26  Bruno Haible  <bruno@clisp.org>
20821         Tests for module 'fabsl-ieee'.
20822         * modules/fabsl-ieee-tests: New file.
20823         * tests/test-fabsl-ieee.c: New file.
20825         New module 'fabsl-ieee'.
20826         * modules/fabsl-ieee: New file.
20828         Tests for module 'fabs-ieee'.
20829         * modules/fabs-ieee-tests: New file.
20830         * tests/test-fabs-ieee.c: New file.
20832         New module 'fabs-ieee'.
20833         * modules/fabs-ieee: New file.
20835         Tests for module 'fabsf-ieee'.
20836         * modules/fabsf-ieee-tests: New file.
20837         * tests/test-fabsf-ieee.c: New file.
20838         * tests/test-fabs-ieee.h: New file.
20840         New module 'fabsf-ieee'.
20841         * modules/fabsf-ieee: New file.
20843 2012-02-26  Bruno Haible  <bruno@clisp.org>
20845         Tests for module 'fmal-ieee'.
20846         * modules/fmal-ieee-tests: New file.
20847         * tests/test-fmal-ieee.c: New file.
20849         New module 'fmal-ieee'.
20850         * modules/fmal-ieee: New file.
20852         Tests for module 'fma-ieee'.
20853         * modules/fma-ieee-tests: New file.
20854         * tests/test-fma-ieee.c: New file.
20856         New module 'fma-ieee'.
20857         * modules/fma-ieee: New file.
20859         Tests for module 'fmaf-ieee'.
20860         * modules/fmaf-ieee-tests: New file.
20861         * tests/test-fmaf-ieee.c: New file.
20862         * tests/test-fma-ieee.h: New file.
20864         New module 'fmaf-ieee'.
20865         * modules/fmaf-ieee: New file.
20867 2012-02-26  Bruno Haible  <bruno@clisp.org>
20869         Tests for module 'ldexpl-ieee'.
20870         * modules/ldexpl-ieee-tests: New file.
20871         * tests/test-ldexpl-ieee.c: New file.
20873         New module 'ldexpl-ieee'.
20874         * modules/ldexpl-ieee: New file.
20876         Tests for module 'ldexp-ieee'.
20877         * modules/ldexp-ieee-tests: New file.
20878         * tests/test-ldexp-ieee.c: New file.
20880         New module 'ldexp-ieee'.
20881         * modules/ldexp-ieee: New file.
20883         Tests for module 'ldexpf-ieee'.
20884         * modules/ldexpf-ieee-tests: New file.
20885         * tests/test-ldexpf-ieee.c: New file.
20886         * tests/test-ldexp-ieee.h: New file.
20888         New module 'ldexpf-ieee'.
20889         * modules/ldexpf-ieee: New file.
20891 2012-02-26  Bruno Haible  <bruno@clisp.org>
20893         Refactor frexp*-ieee tests.
20894         * tests/test-frexp-ieee.h: New file.
20895         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
20896         (main): Just call test_function.
20897         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
20898         (main): Just call test_function.
20899         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
20900         (main): Just call test_function.
20901         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
20902         * modules/frexp-ieee-tests (Files): Likewise.
20903         * modules/frexpl-ieee-tests (Files): Likewise.
20905         Tests for module 'frexpl-ieee'.
20906         * modules/frexpl-ieee-tests: New file.
20907         * tests/test-frexpl-ieee.c: New file.
20909         New module 'frexpl-ieee'.
20910         * modules/frexpl-ieee: New file.
20912         Tests for module 'frexp-ieee'.
20913         * modules/frexp-ieee-tests: New file.
20914         * tests/test-frexp-ieee.c: New file.
20916         New module 'frexp-ieee'.
20917         * modules/frexp-ieee: New file.
20919         Tests for module 'frexpf-ieee'.
20920         * modules/frexpf-ieee-tests: New file.
20921         * tests/test-frexpf-ieee.c: New file.
20923         New module 'frexpf-ieee'.
20924         * modules/frexpf-ieee: New file.
20926 2012-02-26  Bruno Haible  <bruno@clisp.org>
20928         roundl-ieee tests: More tests.
20929         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20930         (main): Add tests for [MX] shaded specification in POSIX.
20931         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20932         (Depends-on): Add isnanl-nolibm.
20934         round-ieee tests: More tests.
20935         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20936         (main): Add tests for [MX] shaded specification in POSIX.
20937         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20938         (Depends-on): Add isnand-nolibm.
20940         roundf-ieee tests: More tests.
20941         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20942         (main): Add tests for [MX] shaded specification in POSIX.
20943         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20944         (Depends-on): Add isnanf-nolibm.
20946         truncl-ieee tests: More tests.
20947         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20948         (main): Add tests for [MX] shaded specification in POSIX.
20949         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20950         (Depends-on): Add isnanl-nolibm.
20952         trunc-ieee tests: More tests.
20953         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20954         (main): Add tests for [MX] shaded specification in POSIX.
20955         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20956         (Depends-on): Add isnand-nolibm.
20958         truncf-ieee tests: More tests.
20959         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20960         (main): Add tests for [MX] shaded specification in POSIX.
20961         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20962         (Depends-on): Add isnanf-nolibm.
20964         ceill-ieee tests: More tests.
20965         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20966         (main): Add tests for [MX] shaded specification in POSIX.
20967         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20968         (Depends-on): Add isnanl-nolibm.
20970         ceil-ieee tests: More tests.
20971         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20972         (main): Add tests for [MX] shaded specification in POSIX.
20973         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20974         (Depends-on): Add isnand-nolibm.
20976         ceilf-ieee tests: More tests.
20977         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20978         (main): Add tests for [MX] shaded specification in POSIX.
20979         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20980         (Depends-on): Add isnanf-nolibm.
20982         floorl-ieee tests: More tests.
20983         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20984         (main): Add tests for [MX] shaded specification in POSIX.
20985         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20986         (Depends-on): Add isnanl-nolibm.
20988         floor-ieee tests: More tests.
20989         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20990         (main): Add tests for [MX] shaded specification in POSIX.
20991         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20992         (Depends-on): Add isnand-nolibm.
20994         floorf-ieee tests: More tests.
20995         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20996         (main): Add tests for [MX] shaded specification in POSIX.
20997         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20998         (Depends-on): Add isnanf-nolibm.
21000 2012-02-26  Bruno Haible  <bruno@clisp.org>
21002         fpieee: More comments.
21003         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
21005 2012-02-25  Bruno Haible  <bruno@clisp.org>
21007         Tests for module 'log10l'.
21008         * modules/log10l-tests: New file.
21009         * tests/test-log10l.c: New file.
21010         * tests/test-math-c++.cc: Check the declaration of log10l.
21012         New module 'log10l'.
21013         * lib/math.in.h (log10l): New declaration.
21014         * lib/log10l.c: New file.
21015         * m4/log10l.m4: New file.
21016         * modules/log10l: New file.
21017         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
21018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
21019         HAVE_DECL_LOG10L.
21020         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
21021         HAVE_DECL_LOG10L.
21022         * doc/posix-functions/log10l.texi: Mention the new module.
21024 2012-02-25  Bruno Haible  <bruno@clisp.org>
21026         fmodl, remainder*: Avoid wrong results due to rounding errors.
21027         * lib/fmodl.c (fmodl): Correct the result if it is not within the
21028         expected bounds.
21029         * lib/remainderf.c (remainderf): Likewise.
21030         * lib/remainder.c (remainder): Likewise.
21031         * lib/remainderl.c (remainderl): Likewise.
21033 2012-02-25  Bruno Haible  <bruno@clisp.org>
21035         Tests for module 'remainderl'.
21036         * modules/remainderl-tests: New file.
21037         * tests/test-remainderl.c: New file.
21038         * tests/test-math-c++.cc: Check the declaration of remainderl.
21040         New module 'remainderl'.
21041         * lib/math.in.h (remainderl): New declaration.
21042         * lib/remainderl.c: New file.
21043         * m4/remainderl.m4: New file.
21044         * modules/remainderl: New file.
21045         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
21046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
21047         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
21048         HAVE_REMAINDERL.
21049         * doc/posix-functions/remainderl.texi: Mention the new module.
21051 2012-02-25  Bruno Haible  <bruno@clisp.org>
21053         Tests for module 'remainderf'.
21054         * modules/remainderf-tests: New file.
21055         * tests/test-remainderf.c: New file.
21056         * tests/test-math-c++.cc: Check the declaration of remainderf.
21058         New module 'remainderf'.
21059         * lib/math.in.h (remainderf): New declaration.
21060         * lib/remainderf.c: New file.
21061         * m4/remainderf.m4: New file.
21062         * modules/remainderf: New file.
21063         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
21064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
21065         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
21066         HAVE_REMAINDERF.
21067         * doc/posix-functions/remainderf.texi: Mention the new module.
21069 2012-02-25  Bruno Haible  <bruno@clisp.org>
21071         remainder: Support for MSVC.
21072         * lib/math.in.h (remainder): New declaration.
21073         * lib/remainder.c: New file.
21074         * m4/remainder.m4: New file.
21075         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
21076         (Depends-on): Add math, round, fma.
21077         (configure.ac): Use results of gl_FUNC_REMAINDER.
21078         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
21079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
21080         HAVE_DECL_REMAINDER.
21081         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
21082         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
21083         * tests/test-math-c++.cc: Check the declaration of remainder.
21084         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
21085         problems are fixed.
21087 2012-02-25  Bruno Haible  <bruno@clisp.org>
21089         Tests for module 'fmodl'.
21090         * modules/fmodl-tests: New file.
21091         * tests/test-fmodl.c: New file.
21092         * tests/test-math-c++.cc: Check the declaration of fmodl.
21094         New module 'fmodl'.
21095         * lib/math.in.h (fmodl): New declaration.
21096         * lib/fmodl.c: New file.
21097         * m4/fmodl.m4: New file.
21098         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
21099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
21100         REPLACE_FMODL.
21101         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
21102         REPLACE_FMODL.
21103         * modules/fmodl: New file.
21104         * doc/posix-functions/fmodl.texi: Mention the new module.
21106 2012-02-25  Bruno Haible  <bruno@clisp.org>
21108         Tests for module 'modfl'.
21109         * modules/modfl-tests: New file.
21110         * tests/test-modfl.c: New file.
21111         * tests/test-math-c++.cc: Check the declaration of modfl.
21113         New module 'modfl'.
21114         * lib/math.in.h (modfl): New declaration.
21115         * lib/modfl.c: New file.
21116         * m4/modfl.m4: New file.
21117         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
21118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
21119         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
21120         * modules/modfl: New file.
21121         * doc/posix-functions/modfl.texi: Mention the new module.
21123 2012-02-25  Bruno Haible  <bruno@clisp.org>
21125         Tests for module 'fabsl'.
21126         * modules/fabsl-tests: New file.
21127         * tests/test-fabsl.c: New file.
21128         * tests/test-math-c++.cc: Check the declaration of fabsl.
21130         New module 'fabsl'.
21131         * lib/math.in.h (fabsl): New declaration.
21132         * lib/fabsl.c: New file.
21133         * m4/fabsl.m4: New file.
21134         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
21135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
21136         REPLACE_FABSL.
21137         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
21138         REPLACE_FABSL.
21139         * modules/fabsl: New file.
21140         * doc/posix-functions/fabsl.texi: Mention the new module.
21142 2012-02-25  Bruno Haible  <bruno@clisp.org>
21144         fabs tests: More tests.
21145         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
21146         (zero): New variable.
21147         (main): Add tests for signed zero.
21148         * modules/fabs-tests (Files): Add tests/minus-zero.h.
21150         fabsf tests: More tests.
21151         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
21152         (zero): New variable.
21153         (main): Add tests for signed zero.
21154         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
21156 2012-02-24  Bruno Haible  <bruno@clisp.org>
21158         atanl: Provide function definition on MSVC.
21159         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
21160         function pointer.
21161         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
21163 2012-02-24  Bruno Haible  <bruno@clisp.org>
21165         acosl: Provide function definition on MSVC.
21166         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
21167         function pointer.
21168         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
21170 2012-02-24  Bruno Haible  <bruno@clisp.org>
21172         asinl: Provide function definition on MSVC.
21173         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
21174         function pointer.
21175         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
21177 2012-02-24  Bruno Haible  <bruno@clisp.org>
21179         tanl: Provide function definition on MSVC.
21180         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
21181         function pointer.
21182         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
21184 2012-02-24  Bruno Haible  <bruno@clisp.org>
21186         cosl: Provide function definition on MSVC.
21187         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
21188         function pointer.
21189         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
21191 2012-02-24  Bruno Haible  <bruno@clisp.org>
21193         sinl: Provide function definition on MSVC.
21194         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
21195         function pointer.
21196         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
21198 2012-02-24  Bruno Haible  <bruno@clisp.org>
21200         logl: Provide function definition on MSVC.
21201         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
21202         function pointer.
21203         * lib/math.in.h (logl): Undefine if it does not exist as a function.
21205 2012-02-24  Bruno Haible  <bruno@clisp.org>
21207         expl: Provide function definition on MSVC.
21208         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
21209         function pointer.
21210         * lib/math.in.h (expl): Undefine if it does not exist as a function.
21212 2012-02-24  Bruno Haible  <bruno@clisp.org>
21214         sqrtl: Provide function definition on MSVC.
21215         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
21216         a function pointer.
21217         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
21219 2012-02-24  Bruno Haible  <bruno@clisp.org>
21221         ceill: Provide function definition on MSVC.
21222         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
21223         used as a function pointer.
21224         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
21226 2012-02-24  Bruno Haible  <bruno@clisp.org>
21228         floorl: Provide function definition on MSVC.
21229         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
21230         used as a function pointer.
21231         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
21233 2012-02-24  Bruno Haible  <bruno@clisp.org>
21235         ceilf: Provide function definition on MSVC.
21236         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
21237         used as a function pointer.
21238         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
21240 2012-02-24  Bruno Haible  <bruno@clisp.org>
21242         floorf: Provide function definition on MSVC.
21243         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
21244         used as a function pointer.
21245         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
21247 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21249         stdnoreturn: new module
21250         This implements a replacement for C11's <stdnoreturn.h>.
21251         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
21252         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
21253         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
21254         * tests/test-stdnoreturn.c: New files.
21256 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
21258         regex: fix false multibyte matches in some regular expressions
21259         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
21260         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
21261         * lib/regex_internal.c (re_string_skip_chars):
21262         Fix miscomputation of remain_len that may cause incomplete
21263         multi-byte character and false match.
21265 2012-02-24  Jim Meyering  <meyering@redhat.com>
21267         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
21268         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
21269         uses with "==" *before* the call, e.g., 0 == strcmp (...)
21270         Remove now-unnecessary str''cmp obfuscation.
21271         Suggested by Akim Demaille.
21273 2012-02-24  Bruno Haible  <bruno@clisp.org>
21275         streq: Rename macro.
21276         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
21277         * NEWS: Mention the change.
21278         * lib/mbrtowc.c (mbrtowc): Update.
21279         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
21280         * lib/wcwidth.c (wcwidth): Update.
21281         Suggested by Akim Demaille and Jim Meyering.
21283 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21285         regex: fix typo in definition of MIN
21286         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
21287         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
21289 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
21290             Bruno Haible  <bruno@clisp.org>
21292         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
21293         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
21294         entries into a stack-allocated buffer directly.
21295         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
21297 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
21298             Bruno Haible  <bruno@clisp.org>
21300         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
21302          - There were several instances of this pattern:
21304              for (;;) {
21305                n = acl (f, GETACLCNT, 0, NULL);
21306                [ allocate an array A of size N ]
21307                if (acl (f, GETACL, n, a) == n)
21308                  break;
21309              }
21311            This loop might never terminate if some other process is constantly
21312            manipulating the file's ACL.  The loop should be rewritten to
21313            terminate.
21315          - The acl (... GETACLNT ...) call is merely an optimization; its value
21316            is merely a hint as to how big to make the array.  A better
21317            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
21318            and just guess a reasonably-big size, growing the size and trying
21319            again if it's not large enough.  This guarantees termination, and
21320            saves a system call.
21322         * lib/acl-internal.h: Include <limits.h>.
21323         (MIN, SIZE_MAX): New macros.
21324         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
21325         a stack-allocated buffer, and use malloc if it does not fit. Don't
21326         use GETACLCNT.
21327         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
21329 2012-02-19  Bruno Haible  <bruno@clisp.org>
21331         acl: Fix endless loop on Solaris with vxfs.
21332         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
21333         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
21334         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
21335         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
21336         * tests/test-sameacls.c (main)[Solaris]: Likewise.
21337         Reported by Bill Jones in
21338         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
21340 2012-02-19  Bruno Haible  <bruno@clisp.org>
21342         acl: Fix copy-acl test failure on Solaris 11 2011-11.
21343         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
21344         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
21345         that this function returns 0 in some more cases.
21347 2012-02-19  Bruno Haible  <bruno@clisp.org>
21349         acl: Update doc references.
21350         * doc/acl-resources.txt: Update links to Solaris documentation.
21352 2012-02-19  Bruno Haible  <bruno@clisp.org>
21354         Fix test failure in many locales on Solaris 11.
21355         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
21356         'tr' arguments.
21357         * tests/test-pipe-filter-ii1.c (main): Likewise.
21358         * build-aux/bootstrap (check_versions): Run 'tr' command with range
21359         expressions in the C locale.
21360         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21361         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21363 2012-02-19  Bruno Haible  <bruno@clisp.org>
21365         gnulib-tool: Improve usage message.
21366         * gnulib-tool (func_usage): Move doc of --help and --version to the
21367         section "Operation modes".
21369 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
21371         README-release: make it easier to execute commands
21372         * top/README-release: break commands out on to separate lines.
21374 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
21376         GNUmakefile: simplify detection of unconfigured trees
21377         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
21378         whether the tree make is being run from is already configured or
21379         not.  Related simplifications.
21381 2012-02-13  Simon Josefsson  <simon@josefsson.org>
21383         * gnulib-tool (func_usage): Document --help and --version.
21385 2012-02-11  Jim Meyering  <meyering@redhat.com>
21387         bootstrap: don't exit 0 upon gnulib-tool failure
21388         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
21389         its exit status, not 0.
21391 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
21393         README-release: various improvements
21394         * top/README-release: Give a command to push changes for the
21395         release.  Add "distcheck" to list of other pre-release checks.
21396         Fix instance of "make stable" which should be "make TYPE".
21398 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21400         maint: replace FSF snail-mail addresses with URLs
21401         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
21402         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
21403         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
21404         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
21405         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
21406         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
21407         * lib/check-version.c, lib/check-version.h, lib/config.charset:
21408         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
21409         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
21410         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
21411         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
21412         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
21413         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
21414         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
21415         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
21416         * lib/glthread/thread.c, lib/glthread/thread.h:
21417         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
21418         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
21419         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
21420         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
21421         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
21422         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
21423         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
21424         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
21425         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
21426         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
21427         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
21428         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
21429         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
21430         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
21431         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
21432         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
21433         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
21434         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
21435         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
21436         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
21437         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
21438         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
21439         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
21440         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
21441         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
21442         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
21443         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
21444         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
21445         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
21446         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
21447         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
21448         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
21449         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
21450         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
21451         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
21452         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
21453         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
21454         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
21455         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
21456         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
21457         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
21458         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
21459         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
21460         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
21461         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
21462         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
21463         * tests/test-poll.c, tests/test-quotearg-simple.c:
21464         * tests/test-quotearg.c, tests/test-quotearg.h:
21465         * tests/test-round-ieee.c, tests/test-round1.c:
21466         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
21467         * tests/test-roundl-ieee.c, tests/test-roundl.c:
21468         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
21469         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
21470         * tests/test-strerror.c, tests/test-strerror_r.c:
21471         * tests/test-strsignal.c, tests/test-strverscmp.c:
21472         * tests/test-xmemdup0.c:
21473         Replace FSF snail mail addresses with URLs, as per GNU coding
21474         standards.  See glibc bug
21475         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
21477 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
21479         README-release: capitalize a word and split a line
21480         * top/README-release: Fix punctuation and spacing.
21482 2012-02-08  Akim Demaille  <demaille@gostai.com>
21484         fatal-signal: use C prototypes (with explicit void).
21485         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21486         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
21488 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21490         regex: spelling fix
21491         * lib/regexec.c: spelling fix
21493         regex: rely on stdint.h for SIZE_MAX
21494         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
21496 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21498         regex: merge glibc changes
21500         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
21501         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
21502         (init_word_char): Work even if bitset words are not exactly 32 or
21503         64 bits wide.  Don't assume there are no padding bits.
21504         * lib/regex.c [_LIBC]: Do not include <config.h>.
21505         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
21506         and -Wtype-limits.
21507         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
21508         needless disagreement with glibc.  All uses changed.  Define it to
21509         1 only if _GNU_SOURCE, to match glibc.
21510         (_REG_RM_NAME): Remove; no longer needed, since the names in
21511         question are now all protected by __USE_GNU.
21512         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
21513         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
21514         * lib/regex_internal.h (MIN): New macro.
21516         2012-01-03 Ulrich Drepper <drepper@gmail.com>
21517         * lib/regcomp.c (init_word_char): Optimize regex a bit.
21519         2011-12-30 Jakub Jelinek <jakub@redhat.com>
21520         * lib/regex_internal.c (re_string_fetch_byte_case):
21521         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
21522         is miscompiled, and it turns out it is because of an incorrect
21523         attribute on re_string_fetch_byte_case.  Unlike
21524         re_string_peek_byte_case, this one is really not pure, it modifies
21525         memory (increments pstr->cur_idx), and with the pure attribute GCC
21526         assumed it doesn't and it cached the presumed value of
21527         regexp->cur_idx in a variable across the
21528          for (;; ++i)
21529            {
21530              if (i >= BRACKET_NAME_BUF_SIZE)
21531                return REG_EBRACK;
21532              if (token->type == OP_OPEN_CHAR_CLASS)
21533                ch = re_string_fetch_byte_case (regexp);
21534              else
21535                ch = re_string_fetch_byte (regexp);
21536              if (re_string_eoi(regexp))
21537                return REG_EBRACK;
21538              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
21539                break;
21540              elem->opr.name[i] = ch;
21541            }
21543         2011-11-29 Andreas Schwab <schwab@redhat.com>
21544         * lib/regcomp.c (build_equiv_class):
21545         Fix access after end of search string in regex matcher.
21547         2011-11-12 Ulrich Drepper <drepper@redhat.com>
21548         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
21550         2011-10-12 Ulrich Drepper <drepper@redhat.com>
21551         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
21553         2011-10-11 Ulrich Drepper <drepper@redhat.com>
21554         * lib/regcomp.c (parse_branch, parse_sub_exp):
21555         More regex memory leak fixes and tests.
21556         (parse_sub_exp, parse_bracket_exp):
21557         Fix memory leak for some invalid regular expressions.
21559         2011-05-28 Ulrich Drepper <drepper@gmail.com>
21560         * lib/regex_internal.c, lib/regexec.c:
21561         Fix unnecessary overallocation due to incomplete character.  When
21562         incomplete characters are found at the end of a string the code
21563         ran amok and allocated lots of memory.  Stricter limits are now in
21564         place.
21566         2011-05-20 Reuben Thomas <rrt@sc3d.org>
21567         * lib/regex.h: Update documentation.
21569         2011-05-16 Aharon Robbins <arnold@skeeve.com>
21570         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
21572         2010-05-05 Andreas Schwab <schwab@redhat.com>
21573         * lib/regexec.c (find_collation_sequence_value):
21574         Fix lookup of collation sequence value during regexp matching.
21576         2010-01-22 Ulrich Drepper <drepper@redhat.com>
21577         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
21579         2008-01-16 Ulrich Drepper <drepper@redhat.com>
21580         * lib/regex.h: Cleanup namespace.
21582         2007-11-26 Ulrich Drepper <drepper@redhat.com>
21583         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
21585         2007-08-26 Ulrich Drepper <drepper@redhat.com>
21586         * lib/regex_internal.h: Prevent some declarations and definitions
21587         to be seen when used in tests.
21589         2005-05-06 Ulrich Drepper <drepper@redhat.com>
21590         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
21591         __libc_lock_* macros if not _LIBC.
21592         (struct re_dfa_t): Add lock.
21594 2012-02-07  Eric Blake  <eblake@redhat.com>
21596         maint.mk: also prohibit lower-case @var@
21597         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
21598         lower case, like @top_srcdir@.
21600 2012-02-04  Eric Blake  <eblake@redhat.com>
21602         canonicalize: avoid uninitialized memory use
21603         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
21604         random '/' left in dest.
21605         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
21607 2012-02-04  Bruno Haible  <bruno@clisp.org>
21609         isatty: Fix test failure of ptsname_r on native Windows.
21610         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
21611         and don't set errno.
21612         (isatty): Test first whether fd is valid. Set errno when returning 0.
21614 2012-02-04  Bruno Haible  <bruno@clisp.org>
21616         spawn-pipe tests: Fix a NULL program name in a diagnostic.
21617         * tests/test-spawn-pipe-main.c: Include progname.h.
21618         (main): Invoke set_program_name.
21619         * modules/spawn-pipe-tests (Depends-on): Add progname.
21621         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
21622         * tests/test-nonblocking-socket-main.c: Include progname.h.
21623         (main): Invoke set_program_name.
21624         * modules/nonblocking-socket-tests (Depends-on): Add progname.
21626         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
21627         * tests/test-nonblocking-pipe-main.c: Include progname.h.
21628         (main): Invoke set_program_name.
21629         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
21631 2012-02-04  Eric Blake  <eblake@redhat.com>
21633         canonicalize-lgpl: fix // handling
21634         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
21636         canonicalize: fix // handling
21637         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
21638         /// to //, since only // is special.
21640 2012-02-04  Bruno Haible  <bruno@clisp.org>
21642         ioctl: Fix test failure on native Windows.
21643         * lib/ioctl.c: Include msvc-nothrow.h.
21644         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
21646 2012-02-04  Bruno Haible  <bruno@clisp.org>
21648         fsync: Avoid test failure on native Windows.
21649         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
21650         read-only.
21652 2012-02-04  Bruno Haible  <bruno@clisp.org>
21654         sys_select: Avoid syntax error on OpenBSD 5.0.
21655         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
21656         currently being included, just include the system's <sys/select.h>.
21658 2012-02-04  Bruno Haible  <bruno@clisp.org>
21660         sys_select: Avoid syntax error on OpenBSD 5.0.
21661         * lib/sys_select.in.h: Include <signal.h> only after the include_next
21662         <sys/select.h>, not before.
21663         Reported by Jiri B <jirib@devio.us>.
21665 2012-02-04  Bruno Haible  <bruno@clisp.org>
21667         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
21668         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
21669         global variables.
21670         * tests/test-get-rusage-data.c (main): Likewise.
21671         Reported by Jim Meyering.
21673 2012-02-04  Bruno Haible  <bruno@clisp.org>
21675         stdioext: Fix last commit.
21676         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
21678 2012-02-03  Bruno Haible  <bruno@clisp.org>
21680         stdioext: Add tentative support for Plan9.
21681         * lib/stdio-impl.h: Include <errno.h>.
21682         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
21683         * lib/freadable.c (freadable): Likewise.
21684         * lib/fwritable.c (fwritable): Likewise.
21685         * lib/fbufmode.c (fbufmode): Likewise.
21686         * lib/freading.c (freading): Likewise.
21687         * lib/fwriting.c (fwriting): Likewise.
21688         * lib/freadptr.c (freadptr): Likewise.
21689         * lib/freadseek.c (freadptrinc): Likewise.
21690         * lib/freadahead.c (freadahead): Likewise.
21691         * lib/fpurge.c (fpurge): Likewise.
21692         * lib/fseeko.c (rpl_fseeko): Likewise.
21693         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
21694         Reported by Jens Staal <staal1978@gmail.com>.
21696 2012-02-02  Jim Meyering  <meyering@redhat.com>
21698         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
21699         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
21700         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
21701         not even to try to add the attribute.  Instead, add a pragma to suppress
21702         the suggestion/warning.
21704 2012-01-31  Karl Berry  <karl@gnu.org>
21706         setstate doc: typo.
21707         * doc/posix-functions/setstate.texi (setstate): { not (.
21709 2012-01-31  Bruno Haible  <bruno@clisp.org>
21711         popen: Make more robust on Windows.
21712         * lib/popen.c: On native Windows, use the _popen based code even if
21713         HAVE_POPEN is set.
21714         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
21715         environment variable on native Windows.
21717 2012-01-30  Bruno Haible  <bruno@clisp.org>
21719         pclose: Fix typo.
21720         * lib/stdio.in.h (pclose): Fix typo in warning message.
21722 2012-01-30  Bruno Haible  <bruno@clisp.org>
21724         doc about getlogin_r, setstate.
21725         * doc/posix-functions/getlogin_r.texi: List the incompatible
21726         declaration problem under "not fixed by gnulib".
21727         * doc/posix-functions/setstate.texi: Mention incompatible declaration
21728         problem on Solaris 11 and other platforms.
21730 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
21731             Bruno Haible  <bruno@clisp.org>
21733         poll tests: Make test more robust.
21734         * tests/test-poll.c: Include macros.h.
21735         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
21736         return value of various I/O operations.
21737         * modules/poll-tests (Files): Add tests/macros.h.
21739 2012-01-30  Bruno Haible  <bruno@clisp.org>
21741         sys_stat: Fix support for mingw64 and MSVC.
21742         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
21743         header files already do it.
21744         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
21745         stat itself.
21746         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
21748 2012-01-30  Bruno Haible  <bruno@clisp.org>
21750         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
21751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
21752         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
21754 2012-01-29  Bruno Haible  <bruno@clisp.org>
21756         quotearg: Fix test failure on MacOS X 10.5.
21757         * tests/test-quotearg-simple.c: Include localcharset.h.
21758         (main): If the locale encoding is not ASCII, bypass the tests of
21759         locale_quoting_style and clocale_quoting_style.
21760         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
21762 2012-01-29  Jim Meyering  <meyering@redhat.com>
21764         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
21765         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
21766         detect uses of canonicalize_file_name.
21768 2012-01-28  Bruno Haible  <bruno@clisp.org>
21770         test-framework-sh: Fix test failure with AIX 7.1 diff.
21771         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
21772         in column 1, like 'diff -c' does.
21773         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
21774         whether 'diff -u' is used. Instead, test whether the output contains
21775         some '@' character.
21777 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21779         strtoimax: eliminate need for stdint.h, inttypes.h checks
21780         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
21781         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
21782         the prerequisites for a recently-introduced strtoimax test.
21783         I guess this might cause strtoimax to be replaced when not
21784         strictly necessary on older hosts, but this shouldn't introduce
21785         any bugs and it should make Emacs 'configure' faster on typical
21786         modern hosts.  Problem discovered when importing the latest gnulib
21787         to an Emacs test version.
21788         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
21790 2012-01-28  Bruno Haible  <bruno@clisp.org>
21792         sys_time: Override 'struct timeval' on some native Windows platforms.
21793         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
21794         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
21795         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
21796         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
21797         needs to be overridden.
21798         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
21799         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
21800         * tests/test-sys_select.c: Check that the tv_sec member has the same
21801         size as a 'time_t'.
21802         * tests/test-sys_time.c: Likewise.
21803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
21804         is set, set also REPLACE_GETTIMEOFDAY.
21805         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
21806         convert the resulting 'struct timeval' before returning.
21807         * lib/select.c: Include <sys/time.h>.
21808         (select, timeval): Undefine at the right place.
21809         * modules/select (Depends-on): Add sys_time.
21810         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
21811         some Windows platforms.
21812         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
21814 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21816         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
21817         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
21818         an integer.
21819         * lib/fcntl.c (dupfd): Likewise.
21820         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
21822 2012-01-28  Bruno Haible  <bruno@clisp.org>
21824         fcntl: Avoid compilation error on native Windows.
21825         * modules/fcntl (Depends-on): Add 'close'.
21827 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21829         select, poll, isatty: Avoid warnings on x86_64 mingw64.
21830         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
21831         pointer to an integer.
21832         * lib/poll.c (IsConsoleHandle): Likewise.
21833         * lib/isatty.c (IsConsoleHandle): Likewise.
21835 2012-01-28  Jim Meyering  <meyering@redhat.com>
21837         doc: clarify README-release
21838         * top/README-release: Clarify: you should make a point to have
21839         the latest stable versions of build tools in your PATH, and the
21840         reference to buildreq is solely for its list of tool names, not
21841         for its minimal-functional version numbers.
21842         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
21844         maint.mk: use more readable (yet functionally equivalent) quoting
21845         It is common to quote a single quote in a single quoted string like
21846         this:  '...'\''...'.  Unless you know the idiom, that looks like
21847         gibberish, so prefer to double-quote the string when possible.
21848         Then you can use a more readable, lone single quote: "...'..."
21849         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
21850         "don't" is more readable than the equivalent 'don'\''t'.
21851         (sc_cast_of_x_alloc_return_value): Likewise.
21852         (sc_cast_of_alloca_return_value): Likewise.
21853         (sc_makefile_path_separator_check): Similar: use ":" in '...',
21854         rather than '\'':'\''.
21856 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21858         stdalign: relax _Alignof and tighten _Alignas test
21859         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
21860         as it was too strict: alignof must divide offsetof, but it need
21861         not equal offsetof.  Inspired by Joseph S. Myers's comment
21862         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
21863         Conversely, tighten the _Alignas test a bit, as the resulting
21864         alignment must be exactly 8.
21866 2012-01-27  Bruno Haible  <bruno@clisp.org>
21868         stdalign: Document the last change.
21869         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
21871 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21873         stdalign: check that alignof and offsetof are consistent
21874         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
21875         Problem reported for gnulib by Richard W.M. Jones in
21876         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
21878 2012-01-27  Jim Meyering  <meyering@redhat.com>
21880         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
21881         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
21882         convert a sequence with gaps to the minimal containing range.
21883         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
21884         * tests/test-update-copyright.sh: Test for this.
21885         The FSF confirmed it is ok to do this, assuming there is at
21886         least one significant change per year in the affected range:
21887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
21889 2012-01-26  Bruno Haible  <bruno@clisp.org>
21891         pipe2: refine doc about thread-safety
21892         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
21893         multithread-safety problem.
21894         * doc/glibc-functions/accept4.texi: Likewise.
21896 2012-01-26  Bruno Haible  <bruno@clisp.org>
21898         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
21899         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
21900         In the test program, include <fcntl.h>, for O_RDONLY.
21902 2012-01-26  Eric Blake  <eblake@redhat.com>
21904         pipe2: document lack of thread-safety in replacement
21905         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
21906         issue in replacement.
21907         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21908         Based on a report by Eric Wong.
21910 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21911             Bruno Haible  <bruno@clisp.org>
21913         malloca: Avoid warnings on x86_64 mingw64.
21914         * lib/malloca.c: Include <stdint.h>.
21915         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
21916         * modules/malloca (Depends-on): Add stdint.
21917         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
21919 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21921         obstack: remove __STDC__ conditionals
21922         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
21923         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
21924         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
21925         m4/include_next.m4 as the only gnulib-maintained places that still
21926         refer to __STDC__.
21928 2012-01-24  Bruno Haible  <bruno@clisp.org>
21930         havelib: Modern quoting.
21931         * build-aux/config.rpath: Quote 'like this', not `like this', as per
21932         the recent change to the GNU coding standards.
21934 2012-01-24  Bruno Haible  <bruno@clisp.org>
21936         stdint: Improve support for Android.
21937         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
21938         Reported by Simon Josefsson <simon@josefsson.org>.
21940 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21942         doc: omit trailing empty lines from INSTALL etc.
21943         * doc/Makefile (INSTALL): Omit trailing empty lines.
21944         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
21945         omit trailing empty lines.  This simplifies the build procedure.
21947 2012-01-23  Jim Meyering  <meyering@redhat.com>
21949         tests: avoid spurious warnings about gl_sockets_startup
21950         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
21951         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
21952         reporting a "statement with no effect".
21953         * tests/test-accept.c (main): Mark as "(void)".
21954         * tests/test-accept4.c (main): Likewise.
21955         * tests/test-bind.c (main): Likewise.
21956         * tests/test-connect.c (main): Likewise.
21957         * tests/test-getpeername.c (main): Likewise.
21958         * tests/test-getsockname.c (main): Likewise.
21959         * tests/test-getsockopt.c (main): Likewise.
21960         * tests/test-listen.c (main): Likewise.
21961         * tests/test-recv.c (main): Likewise.
21962         * tests/test-recvfrom.c (main): Likewise.
21963         * tests/test-send.c (main): Likewise.
21964         * tests/test-sendto.c (main): Likewise.
21965         * tests/test-setsockopt.c (main): Likewise.
21966         * tests/test-shutdown.c (main): Likewise.
21968 2012-01-21  Bruno Haible  <bruno@clisp.org>
21970         locale-fr.m4: Fix for Android.
21971         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
21972         failure of the test program on Bionic libc.
21974 2012-01-21  Jim Meyering  <meyering@redhat.com>
21976         bootstrap: fail when bootstrap_post_import_hook fails
21977         Otherwise, it's far too easy to miss diagnostics emitted
21978         between gnulib-tool's output and that of running configure.
21979         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
21981 2012-01-17  Jim Meyering  <meyering@redhat.com>
21983         maint: enable sc_trailing_blank
21984         * build-aux/pmccabe.css: Remove trailing blanks.
21985         * doc/acl-cygwin.txt: Likewise.
21986         * doc/gnu-oids.texi: Likewise
21987         * cfg.mk: Enable sc_trailing_blank.
21988         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
21990 2012-01-17  Jim Meyering  <meyering@redhat.com>
21992         maint: enable sc_prohibit_openat_without_use
21993         * cfg.mk: Enable sc_prohibit_openat_without_use.
21994         Exempt lib/selinux-at.c.
21996 2012-01-17  Jim Meyering  <meyering@redhat.com>
21998         maint: enable sc_prohibit_cloexec_without_use
21999         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
22000         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
22002 2012-01-17  Jim Meyering  <meyering@redhat.com>
22004         maint: enable sc_prohibit_intprops_without_use
22005         * cfg.mk: Enable sc_prohibit_intprops_without_use
22006         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
22008 2012-01-17  Jim Meyering  <meyering@redhat.com>
22010         maint: enable sc_prohibit_hash_pjw_without_use
22011         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
22012         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
22013         to match any use of \<hash_pjw\>, i.e., not necessarily with a
22014         following " (".
22016 2012-01-17  Jim Meyering  <meyering@redhat.com>
22018         maint: enable double-word-prohibiting rule
22019         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
22020         Exempt three files.
22022 2012-01-17  Jim Meyering  <meyering@redhat.com>
22024         maint: remove empty lines at EOF, but excluding modules/*
22025         Apply syntax rules at home as well as abroad.  Most changes
22026         were induced by running this:
22027           make srcdir=. _build-aux=build-aux -f top/maint.mk \
22028             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
22029             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
22030         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
22031         Exempt modules/* and two binary files.
22032         Also exempt doc/INSTALL*, per request from Bruno Haible.
22033         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
22034         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
22035         * doc/Copyright/request-assign.future: Likewise.
22036         * doc/Copyright/request-disclaim.changes: Likewise.
22037         * doc/INSTALL: Likewise.
22038         * doc/INSTALL.ISO: Likewise.
22039         * doc/INSTALL.UTF-8: Likewise.
22040         * doc/acl-cygwin.txt: Likewise.
22041         * doc/acl-resources.txt: Likewise.
22042         * doc/fdl-1.2.texi: Likewise.
22043         * doc/fdl-1.3.texi: Likewise.
22044         * doc/fdl.texi: Likewise.
22045         * lib/argp-pin.c: Likewise.
22046         * lib/round.c: Likewise.
22047         * lib/unicase/u16-totitle.c: Likewise.
22048         * lib/unictype/block_test.c: Likewise.
22049         * lib/uninorm/canonical-decomposition.c: Likewise.
22050         * m4/README: Likewise.
22051         * m4/relocatable-lib.m4: Likewise.
22052         * tests/test-isnand-nolibm.c: Likewise.
22053         * tests/test-isnand.c: Likewise.
22054         * tests/uninorm/NormalizationTest.txt: Likewise.
22056 2012-01-17  Jim Meyering  <meyering@redhat.com>
22058         maint: add framework to run syntax-check rules against gnulib sources
22059         * cfg.mk: New file, to disable all currently-failing tests.
22060         We'll enable them one by one, as they are made to pass.
22061         * Makefile (sc_maint): New rule.
22063 2012-01-21  Bruno Haible  <bruno@clisp.org>
22065         stdint: Add support for Android.
22066         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
22067         include the system's <stdint.h>.
22068         Reported by Simon Josefsson <simon@josefsson.org>.
22070 2012-01-19  Jim Meyering  <meyering@redhat.com>
22072         bootstrap: add bootstrap_post_import_hook
22073         Bison does still need something like the gnulib_mk_hook whose
22074         invocation I had to remove along with slurp in commit 767ccd40.
22075         Technically, we could get along without it, but doing so would
22076         have required living with a warning and a mandatory post-bootstrap
22077         automake rerun.
22078         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
22079         (bootstrap_post_import_hook): New function.
22080         Invoke it after gnulib-tool --import and before autoreconf.
22082 2012-01-18  Jim Meyering  <meyering@redhat.com>
22084         gitlog-to-changelog: don't use "no_"-prefixed variable name
22085         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
22086         to enable both --cluster and --no-cluster.  Change variable name,
22087         s/\$no_cluster/$cluster/, and reverse usage to match.
22089         gitlog-to-changelog: use "||", not "or" in expressions
22090         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
22091         expressions.
22093 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
22095         gitlog-to-changelog: new option --no-cluster
22096         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
22097         clustering of adjacent commit messages.
22099 2012-01-17  Jim Meyering  <meyering@redhat.com>
22101         maint: spell file systems with two words, not one
22102         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
22103         two words, not one.
22105 2012-01-16  Jim Meyering  <meyering@redhat.com>
22107         bootstrap: add a FIXME comment to ensure we eventually remove the hack
22108         * build-aux/bootstrap (gnulib_tool_options): Add comment.
22110 2012-01-16  Eric Blake  <eblake@redhat.com>
22112         bootstrap: cater to autoconf 2.59
22113         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
22114         is not available.
22116         bootstrap: properly check for libtool
22117         * build-aux/bootstrap (libtoolize): Also run libtool when older
22118         usage is detected.
22120 2012-01-15  Bruno Haible  <bruno@clisp.org>
22122         Improve support for MSVC 9.
22123         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
22124         clashes on MSVC.
22125         * lib/fcntl.in.h: Likewise.
22126         * lib/stdlib.in.h: Likewise.
22127         * lib/sys_stat.in.h: Likewise.
22129 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
22131         gnupload: we hold the master copy of this script now
22132         For motivation and more information, see:
22133         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
22134         * build-aux/gnupload: Make it clear in the heading comments that the
22135         master copy of this file is maintained by gnulib.  Since we are at
22136         it, bump its copyright year and ...
22137         ($scriptversion): ... the date in its version.
22138         ($usage): Patches and bug reports should be sent to the gnulib list,
22139         not the automake one.
22140         * config/srclist.txt: Don't try to sync 'gnupload' from automake
22141         anymore.
22143 2012-01-15  Bruno Haible  <bruno@clisp.org>
22145         Fix module 'random'.
22146         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
22147         initstate, setstate are declared.
22149 2012-01-14  Bruno Haible  <bruno@clisp.org>
22151         Tests for module 'random'.
22152         * modules/random-tests: New file.
22153         * tests/test-random.c: New file, based on tests/test-random_r.c.
22155         New module 'random'.
22156         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
22157         declarations.
22158         * lib/random.c: New file, based on glibc/stdlib/random.c.
22159         * m4/random.m4: New file.
22160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
22161         HAVE_RANDOM.
22162         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
22163         * modules/random: New file.
22164         * config/srclist.txt: Add an entry for random.c.
22165         * doc/posix-functions/random.texi: Mention the 'random' module.
22166         * doc/posix-functions/initstate.texi: Likewise.
22167         * doc/posix-functions/setstate.texi: Likewise.
22168         * doc/posix-functions/srandom.texi: Likewise.
22170 2012-01-12  Bruno Haible  <bruno@clisp.org>
22172         random_r: Use common idioms.
22173         * lib/random_r.c: Include <stdlib.h> first.
22175         random_r: Override incompatible API on AIX, OSF/1.
22176         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
22177         Override the system function if REPLACE_RANDOM_R is 1.
22178         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
22179         and OSF/1, set REPLACE_RANDOM_R.
22180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
22181         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
22182         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
22183         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
22184         * doc/glibc-functions/random_r.texi: Likewise.
22185         * doc/glibc-functions/setstate_r.texi: Likewise.
22187         random_r: Support for MSVC 9.
22188         * lib/random_r.c: Include stdint.h, not inttypes.h.
22190 2012-01-12  Eric Blake  <eblake@redhat.com>
22192         inet_ntop: guard extra work by IF_LINT
22193         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
22194         better code generation when not checking for warnings.
22195         Suggested by Paul Eggert and Jim Meyering.
22197         strptime: fix regression on mingw
22198         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
22199         Fix regression.  Reported by Bruno Haible.
22201 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
22202             Bruno Haible  <bruno@clisp.org>
22204         copy-file: add error-code-returning variant.
22205         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
22206         (qcopy_file_preserving): New declaration.
22207         * lib/copy-file.c (qcopy_file_preserving): Renamed from
22208         copy_file_preserving. Change return type to 'int'. Don't emit an error
22209         message here.
22210         (copy_file_preserving): New function.
22211         * tests/test-copy-file.c: Include <stdlib.h>.
22212         (main): Test qcopy_file_preserving if the environment variable
22213         NO_STDERR_OUTPUT is set.
22214         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
22215         with NO_STDERR_OUTPUT
22216         * tests/test-copy-file-2.sh: Likewise.
22218 2012-01-10  Bruno Haible  <bruno@clisp.org>
22220         copy-file: Use 'quote' module consistently.
22221         * lib/copy-file.c (copy_file_preserving): Use quote().
22223         copy-file: Refactor.
22224         * lib/copy-file.c: Include quote.h.
22225         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
22226         message here.
22227         * modules/copy-file (Depends-on): Add quote.
22229         acl: Export qcopy_acl.
22230         * lib/acl.h (qcopy_acl): New declaration.
22231         * lib/copy-acl.c (qcopy_acl): Make non-static.
22233         acl: Rename a local variable.
22234         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
22236         acl: Align return values of copy_acl and qcopy_acl.
22237         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
22238         maybe < -1.
22240 2012-01-11  Eric Blake  <eblake@redhat.com>
22242         strptime: silence gcc warnings
22243         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
22244         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
22245         Reported by Daniel P. Berrange.
22247         inet_ntop: silence gcc warning
22248         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
22249         Reported by Daniel P. Berrange.
22251 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
22253         getloadavg test: skip the test on GNU/Linux without /proc mounted
22254         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
22255         file.  When /proc is not mounted, it always fails with ENOENT.
22256         * tests/test-getloadavg.c (main): Treat ENOENT return code from
22257         getloadavg(3) the same way as ENOSYS and ENOTSUP.
22259 2012-01-10  Bruno Haible  <bruno@clisp.org>
22261         regex: Avoid link error on MSVC 9.
22262         * modules/regex (Depends-on): Add wctype.
22264 2012-01-10  Bruno Haible  <bruno@clisp.org>
22266         doc: Mention --with-tests option.
22267         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
22268         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
22269         --with-tests.
22270         Reported by Reuben Thomas.
22272 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
22274         users.txt: order package names lexicographically.
22275         * users.txt: Order package names lexicographically.
22277 2012-01-10  Jim Meyering  <meyering@redhat.com>
22279         maint.mk: fix description in comment
22280         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
22282         ignore-value: remove deprecated ignore_ptr function
22283         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
22284         * NEWS: Note this.
22286 2012-01-09  Jim Meyering  <meyering@redhat.com>
22288         test-init.sh: avoid a subshell
22289         * tests/test-init.sh: Remove protective subshell.
22290         Suggested by Bernhard Voelker.  While a subshell is normally
22291         required to protect against older shells (Solaris, FreeBSD) that
22292         warn about a missing program before performing redirection, the
22293         shell-selection tests performed by init.sh probably exclude any
22294         offending shell.
22296 2012-01-08  Bruno Haible  <bruno@clisp.org>
22298         setlocale tests: Avoid test failure on Solaris 11 2011-11.
22299         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
22300         variable.
22302 2012-01-08  Bruno Haible  <bruno@clisp.org>
22304         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
22305         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22306         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
22307         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
22308         macro.
22309         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
22310         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
22311         * lib/spawn_faction_addopen.c: Add workaround implementation if
22312         HAVE_WORKING_POSIX_SPAWN.
22313         * modules/spawn (Makefile): Substitute
22314         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
22315         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
22316         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
22317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
22318         (Depends-on): Update conditions.
22319         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22320         the Solaris 11 bug.
22322 2012-01-08  Bruno Haible  <bruno@clisp.org>
22324         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
22325         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22326         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
22327         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
22328         macro.
22329         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
22330         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
22331         * lib/spawn_faction_adddup2.c: Add workaround implementation if
22332         HAVE_WORKING_POSIX_SPAWN.
22333         * modules/spawn (Makefile): Substitute
22334         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
22335         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
22336         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
22337         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
22338         (Depends-on): Update conditions.
22339         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22340         the Solaris 11 bug.
22342 2012-01-08  Bruno Haible  <bruno@clisp.org>
22344         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
22345         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22346         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
22347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
22348         HAVE_WORKING_POSIX_SPAWN.
22349         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
22350         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
22351         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
22352         * lib/spawn_faction_addclose.c: Add workaround implementation if
22353         HAVE_WORKING_POSIX_SPAWN.
22354         * modules/spawn (Makefile): Substitute
22355         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
22356         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
22357         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
22358         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
22359         (Depends-on): Update conditions.
22360         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22361         the Solaris 11 bug.
22363 2012-01-08  Bruno Haible  <bruno@clisp.org>
22365         doc: Update for Solaris 11 2011-11.
22366         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
22367         * m4/printf.m4: Update comments.
22369 2012-01-08  Bruno Haible  <bruno@clisp.org>
22371         mktime: Avoid compilation error on Solaris 11.
22372         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
22374 2012-01-08  Bruno Haible  <bruno@clisp.org>
22376         doc: Small fix.
22377         * doc/posix-headers/nl_types.texi: Correct platforms list.
22379 2012-01-08  Simon Josefsson  <simon@josefsson.org>
22381         Add lgpl-3.0 module.
22382         * MODULES.html.sh (Support for building documentation): Add
22383         lgpl-3.0.
22384         * modules/lgpl-3.0: New file.
22386 2012-01-08  Jim Meyering  <meyering@redhat.com>
22388         select.c: indent with spaces, not TABs
22389         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
22391 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22393         quotearg: do not use grave accent for left quote
22394         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
22395         locale_quoting_style.
22396         (quotearg_buffer_restyled): Fix example.
22397         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
22399 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22401         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
22402         Most programs do not have translation catalogs for English and much
22403         less separate catalogs for British and American English.  Drop the
22404         suggestion to translators about these two, and provide it
22405         automatically for Unicode locales.  Like most programs, even those
22406         using American English, we use single quotation marks.  This conflicts
22407         with the American typographic convention, but works better when you
22408         cite the entire error message within double quotes.  It also tries not
22409         to clash with established practice and with what non-gnulib programs
22410         will usually do.
22411         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
22412         using an UTF-8 or GB-18030 locale.  The list of other locales with
22413         quotes was provided by Bruno Haible.
22414         (quotearg_buffer_restyled): Adjust instructions to translators.
22415         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
22416         text, since this would be wrong when using Unicode.
22417         * modules/quotearg: Depend on c-strcaseeq.
22419 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22421         quotearg: fix Wikipedia link
22422         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
22424 2012-01-07  Simon Josefsson  <simon@josefsson.org>
22426         Fix for mingw with MSVC9.
22427         * m4/ld-version-script.m4: Check that compiler rejects version
22428         scripts with syntax errors.  Reported by Bruno Haible
22429         <bruno@clisp.org>.
22431 2012-01-06  Bruno Haible  <bruno@clisp.org>
22433         Talk about "native Windows API", not "Woe32".
22434         * lib/accept4.c: Update comments to mention native Windows.
22435         * lib/execute.c: Likewise.
22436         * lib/fatal-signal.c: Likewise.
22437         * lib/localcharset.c: Likewise.
22438         * lib/nanosleep.c: Likewise.
22439         * lib/nl_langinfo.c: Likewise.
22440         * lib/pclose.c: Likewise.
22441         * lib/pipe-filter-gi.c: Likewise.
22442         * lib/pipe-filter-ii.c: Likewise.
22443         * lib/pipe.c: Likewise.
22444         * lib/pipe2.c: Likewise.
22445         * lib/popen.c: Likewise.
22446         * lib/progreloc.c: Likewise.
22447         * lib/relocatable.c: Likewise.
22448         * lib/sigaction.c: Likewise.
22449         * lib/sigprocmask.c: Likewise.
22450         * lib/spawn-pipe.h: Likewise.
22451         * lib/spawn-pipe.c: Likewise.
22452         * lib/spawni.c: Likewise.
22453         * lib/stat-time.h: Likewise.
22454         * lib/w32spawn.h: Likewise.
22455         * tests/test-isatty.c: Likewise.
22456         * lib/config.charset: More comments.
22457         * doc/gnulib-intro.texi: Mention native Windows.
22458         * doc/posix-functions/_Exit_C99.texi: Likewise.
22459         * doc/posix-headers/fcntl.texi: Likewise.
22461 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
22463         argp: Avoid crash if translator uses % characters in a translation.
22464         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
22465         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22467 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22469         doc: C11 and C++11 are now official
22470         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
22471         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
22472         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
22473         * modules/stdalign:
22474         Replace references to draft C1X to C11, and to draft C++0X to C++11.
22476 2012-01-06  Bruno Haible  <bruno@clisp.org>
22478         uc-is-grapheme-break tests: Tweak.
22479         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
22480         message.
22482 2012-01-06  Bruno Haible  <bruno@clisp.org>
22484         test-init.sh: correct the test for diff -u
22485         * tests/test-init.sh: Also redirect stdout to /dev/null.
22487 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
22489         Use ', not `, for quoting output.
22490         * build-aux/announce-gen (usage, sizes, print_news_deltas)
22491         (print_changelog_deltas, get_tool_versions, main program):
22492         * build-aux/git-version-gen:
22493         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
22494         * build-aux/move-if-change (help):
22495         * build-aux/useless-if-before-free (usage, main program):
22496         * check-module (parse_module_file, usage)
22497         (find_included_lib_files, check_module):
22498         * lib/argmatch.c (main) [TEST]:
22499         * lib/argp-help.c (_help):
22500         * lib/getopt1.c (main) [TEST]:
22501         * lib/git-merge-changelog.c (usage):
22502         * lib/xstrtol-error.c (xstrtol_error):
22503         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
22504         * m4/argz.m4 (gl_FUNC_ARGZ):
22505         * m4/bison.m4 (gl_BISON):
22506         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
22507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
22508         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22509         * m4/fpending.m4 (gl_PREREQ_FPENDING):
22510         * m4/gc-random.m4 (gl_GC_RANDOM):
22511         * m4/intl.m4 (gt_CHECK_DECL):
22512         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
22513         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
22514         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
22515         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
22516         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
22517         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
22518         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
22519         * tests/test-dirname.c (main):
22520         * tests/test-getpass.c (main):
22521         * tests/test-iconvme.c (main):
22522         * tests/test-parse-datetime.c (LOG):
22523         * tests/test-xstrtoimax.sh:
22524         * tests/test-xstrtol.sh:
22525         * tests/test-xstrtoll.sh:
22526         * tests/test-xstrtoumax.sh:
22527         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
22528         * top/GNUmakefile (abort-due-to-no-makefile):
22529         Quote 'like this', not `like this', as per the recent change to
22530         the GNU coding standards.
22532 2012-01-05  Bruno Haible  <bruno@clisp.org>
22534         strtoimax: Don't force a replacement on systems where intmax_t is int.
22535         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
22536         'intmax_t' is not larger than 'int'.
22537         Reported by Pádraig Brady <P@draigBrady.com>.
22539 2012-01-05  Bruno Haible  <bruno@clisp.org>
22541         doc: Mention NetBSD bugs.
22542         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
22543         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
22545 2012-01-05  Bruno Haible  <bruno@clisp.org>
22547         strtoumax tests: Enhance tests.
22548         * tests/test-strtoumax.c (main): Add tests for large values.
22550 2012-01-05  Bruno Haible  <bruno@clisp.org>
22552         strtoimax: Work around AIX 5.1 bug.
22553         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
22554         definition.
22555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
22556         Set HAVE_STRTOIMAX.
22557         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
22558         REPLACE_STRTOIMAX.
22559         * modules/inttypes-incomplete (Makefile.am): Substitute
22560         REPLACE_STRTOIMAX.
22561         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22562         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
22563         (Depends-on): Update conditions.
22564         * tests/test-strtoimax.c (main): Add tests for large values.
22565         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
22567 2012-01-05  Bruno Haible  <bruno@clisp.org>
22569         inttypes: Modernize.
22570         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
22571         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
22572         (Makefile.am): Update inttypes.h rule.
22574 2012-01-05  Jim Meyering  <meyering@redhat.com>
22576         init.sh: don't waste a subshell just to redirect stderr
22577         * tests/init.sh: In testing for diff -u and diff -c, use a
22578         stderr-redirecting exec inside `...` rather than a subshell.
22580         test-init.sh: avoid failure on HP-UX 11.00
22581         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
22582         resolves to diff -c or cmp.  Reported by Bruno Haible.
22584 2012-01-05  Bruno Haible  <bruno@clisp.org>
22586         Tests for module 'strtoull'.
22587         * modules/strtoull-tests: New file.
22588         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
22590 2012-01-05  Bruno Haible  <bruno@clisp.org>
22592         Tests for module 'strtoll'.
22593         * modules/strtoll-tests: New file.
22594         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
22596 2012-01-05  Bruno Haible  <bruno@clisp.org>
22598         Tests for module 'strtoul'.
22599         * modules/strtoul-tests: New file.
22600         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
22602 2012-01-05  Bruno Haible  <bruno@clisp.org>
22604         Tests for module 'strtol'.
22605         * modules/strtol-tests: New file.
22606         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
22608 2012-01-04  Jim Meyering  <meyering@redhat.com>
22610         test-init.sh: accommodate Solaris 5.10's different diff -u output
22611         * tests/test-init.sh: Also exempt @@ lines from the comparison
22612         of diff output, since Solaris 5.10 and GNU diff formats differ.
22613         Reported by Stefano Lattarini.
22615 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22617         test-posixtm: don't assume signed integer wraparound
22618         * tests/test-posixtm.c (main): Don't assume wraparound semantics
22619         after signed integer overflow.  Inspired by (though it may not
22620         fix) Bruno Haible's bug report in
22621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
22623         Spell out "Windows 9x" and "Windows XP".
22624         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
22625         "Windows 9x" and "WinXP" with "Windows XP".
22627 2012-01-04  Jim Meyering  <meyering@redhat.com>
22629         test-vc-list-files-cvs.sh: remove obsolete comment
22630         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
22631         double exit.  Now that's all encapsulated via skip_ and Exit.
22633 2012-01-04  Bruno Haible  <bruno@clisp.org>
22635         Talk about "native Windows API", not "Win32".
22636         * lib/classpath.c: Update comments to mention native Windows.
22637         * lib/csharpexec.c: Likewise.
22638         * lib/dup2.c: Likewise.
22639         * lib/error.c: Likewise.
22640         * lib/fcntl.c: Likewise.
22641         * lib/filename.h: Likewise.
22642         * lib/findprog.c: Likewise.
22643         * lib/get-rusage-as.c: Likewise.
22644         * lib/get-rusage-data.c: Likewise.
22645         * lib/getpagesize.c: Likewise.
22646         * lib/javaexec.c: Likewise.
22647         * lib/msvc-inval.c: Likewise.
22648         * lib/msvc-nothrow.c: Likewise.
22649         * lib/nanosleep.c: Likewise.
22650         * lib/nonblocking.c: Likewise.
22651         * lib/printf-parse.c: Likewise.
22652         * lib/setlocale.c: Likewise.
22653         * lib/sigaction.c: Likewise.
22654         * lib/strerror_r.c: Likewise.
22655         * lib/tmpdir.c: Likewise.
22656         * lib/vasnprintf.c: Likewise.
22657         * lib/w32spawn.h: Likewise.
22658         * lib/waitpid.c: Likewise.
22659         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
22660         * m4/locale-ar.m4: Likewise.
22661         * m4/locale-fr.m4: Likewise.
22662         * m4/locale-ja.m4: Likewise.
22663         * m4/locale-tr.m4: Likewise.
22664         * m4/locale-zh.m4: Likewise.
22665         * m4/printf.m4: Likewise.
22666         * tests/test-cloexec.c: Likewise.
22667         * tests/test-copy-acl.sh: Likewise.
22668         * tests/test-copy-file.sh: Likewise.
22669         * tests/test-file-has-acl.sh: Likewise.
22670         * tests/test-set-mode-acl.sh: Likewise.
22671         * tests/test-dup-safer.c: Likewise.
22672         * tests/test-dup2.c: Likewise.
22673         * tests/test-dup3.c: Likewise.
22674         * tests/test-fcntl.c: Likewise.
22675         * tests/test-nonblocking-pipe.h: Likewise.
22676         * tests/test-nonblocking-socket.h: Likewise.
22677         * tests/test-pipe.c: Likewise.
22678         * tests/test-pipe2.c: Likewise.
22679         * tests/test-spawn-pipe-child.c: Likewise.
22680         * doc/acl-resources.txt: Likewise.
22681         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22682         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
22683         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
22684         * lib/localcharset.c: Update comments to mention native Windows.
22685         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22686         * lib/localename.c: Likewise.
22687         * lib/progreloc.c: Likewise.
22688         * lib/relocatable.c: Likewise.
22689         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22690         (windows_compute_revents): Renamed from win32_compute_revents.
22691         (windows_compute_revents_socket): Renamed from
22692         win32_compute_revents_socket.
22693         * lib/select.c: Update comments to mention native Windows.
22694         (windows_poll_handle): Renamed from win32_poll_handle.
22695         * m4/threadlib.m4: Update comments to mention native Windows.
22696         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
22697         --enable-threads=windows instead of --enable-threads=win32. Set
22698         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
22699         * lib/glthread/lock.h: Update comments to mention native Windows.
22700         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
22701         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
22702         USE_WIN32_THREADS.
22703         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
22704         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
22705         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
22706         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
22707         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
22708         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
22709         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
22710         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
22711         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
22712         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
22713         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
22714         * tests/test-tls.c: Likewise.
22715         Rationale:
22716         Microsoft renamed the "Win32 API" to "Windows API", as it is available
22717         on both 32-bit and 64-bit Windows systems.
22718         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
22719         line of distinction is between "native Windows" on one side and Unix/
22720         POSIX systems on the other side. More details in
22721         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
22722         Suggested by Paul Eggert.
22724 2012-01-03  Bruno Haible  <bruno@clisp.org>
22726         isatty: Support for MSVC 9.
22727         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
22728         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
22729         (_isatty_nothrow): New function.
22730         (isatty): Use it instead of _isatty.
22731         (IsConsoleHandle): Add comment, from Paolo Bonzini.
22732         * lib/poll.c (IsConsoleHandle): Likewise.
22733         * lib/select.c (IsConsoleHandle): Likewise.
22734         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
22735         (gl_PREREQ_ISATTY): New macro.
22736         * modules/isatty (Depends-on): Add msvc-inval.
22737         (configure.ac): Invoke gl_PREREQ_ISATTY.
22739 2012-01-03  Jim Meyering  <meyering@redhat.com>
22741         maint.mk: remove temporary transition aid from over 1.5 years ago
22742         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
22743         purpose was to aid in the transition (avoiding silent malfunction)
22744         from that old name to the new _sc_search_regexp.  This shim was
22745         added by commit 219c504b.
22747         init.sh: do not try to accommodate compare arguments starting with "-"
22748         * tests/init.sh (compare_dev_null_): Do not try to accommodate
22749         compare arguments that start with "-".  Besides, we do not worry
22750         about this when invoking diff or cmp; why start now with sed?
22751         Using "--" to separate options from argument would trigger sed
22752         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
22753         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
22755 2012-01-02  Bruno Haible  <bruno@clisp.org>
22757         Enhance tests for module 'isatty'.
22758         * modules/isatty-tests (Depends-on): Add pipe-posix.
22759         * tests/test-isatty.c: Include <fcntl.h>.
22760         (DEV_NULL): New macro.
22761         (main): Test the resut of isatty() also on regular files, pipes, and
22762         /dev/null.
22764         New module 'isatty'.
22765         * lib/unistd.in.h (isatty): New declaration.
22766         * lib/isatty.c: New file, based on an idea of
22767         Bastien Roucariès <roucaries.bastien@gmail.com>.
22768         * m4/isatty.m4: New file.
22769         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
22770         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
22771         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
22772         REPLACE_ISATTY.
22773         * modules/isatty: New file.
22774         * doc/posix-functions/isatty.texi: Mention the new module.
22775         Suggested by Paolo Bonzini.
22777 2012-01-02  Bruno Haible  <bruno@clisp.org>
22779         canonicalize: Tweak 2011-12-29 commit.
22780         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
22781         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
22783 2012-01-02  Jim Meyering  <meyering@redhat.com>
22785         gitlog-to-changelog: describe input syntax in --help output
22786         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
22788         gitlog-to-changelog: fix typo in --help: show backslash before email @
22789         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
22790         in sources, but not in actual output.
22792 2011-12-30  Jim Meyering  <meyering@redhat.com>
22794         gitlog-to-changelog: don't malfunction when name contains %-directive
22795         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
22796         in a name string cause trouble.  E.g., with a user name of "%s",
22797         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
22799 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
22801         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
22802         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
22803         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
22804         the "  (tiny change)" notation that is appended to the standard
22805         ChangeLog "date  name  email" header line.
22807 2012-01-01  Jim Meyering  <meyering@redhat.com>
22809         test-framework-sh: init.sh: fix "make dist" failure
22810         When using gnulib-tool's --with-tests option and any module that
22811         depends on test-framework-sh, "make dist" would fail due to the
22812         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
22813         in the gltests directory, and not in the gllib/ directory.
22814         One way to work around that is to move the EXTRA_DIST += init.sh
22815         from the primary module to the -tests one:
22816         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
22817         * modules/test-framework-sh (Makefile.am): ...not here.
22818         Reported by Tom G. Christensen in
22819         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
22821         version-etc: update copyright year reported by --version
22822         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
22824 2011-12-31  Pádraig Brady  <P@draigBrady.com>
22826         canonicalize: only stat() if required
22827         * lib/canonicalize.c (canonicalize_filename_mode):
22828         Avoid calling l?stat() when both CAN_MISSING,
22829         and CAN_NOLINKS are set, as we neither need
22830         to resolve symlinks or test component existence.
22832 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
22834         doc: cover st_ino issues once; add OpenVMS etc.
22835         * doc/posix-functions/stat.texi (stat):
22836         * doc/posix-functions/lstat.texi (lstat):
22837         * doc/posix-functions/fstatat.texi (fstatat):
22838         * doc/posix-functions/fstat.texi (fstat):
22839         Move general 'struct stat' stuff to sys_stat.texi,
22840         leaving behind a pointer.
22841         * doc/posix-headers/sys_stat.texi (sys/stat.h):
22842         Merge duplicate info about 'struct stat' problems into here.
22843         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
22844         and suggest partial workarounds.
22846         same-inode: port to OpenVMS
22847         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
22848         three st_ino values.
22850 2011-12-30  Pádraig Brady  <P@draigBrady.com>
22852         canonicalize: fix references to stat() and lstat()
22853         * lib/canonicalize.c (canonicalize_filename_mode):
22854         Ensure references always resolve to a replacement
22855         function if required (even via a macro).
22857 2011-12-30  Jim Meyering  <meyering@redhat.com>
22859         gitlog-to-changelog: remove a little duplication
22860         * build-aux/gitlog-to-changelog (main): Grep @lines once,
22861         rather than twice.
22863 2011-12-29  Pádraig Brady  <P@draigBrady.com>
22865         canonicalize: add support for not resolving symlinks
22866         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
22867         indicate we don't want to follow symlinks.  Also
22868         provide CAN_MODE_MASK to aid setting these existing
22869         mutually exclusive values.
22870         * lib/canonicalize.c (canonicalize_filename_mode):
22871         Extract the flags from can_mode parameter, which
22872         are currently just used to select between stat()
22873         and lstat().  Also ensure that mutually exclusive
22874         values are flagged immediately as invalid.
22875         * tests/test-canonicalize.c: Verify symlinks are
22876         not followed, and that invalid flag combinations
22877         are diagnosed.
22879 2011-12-25  Jim Meyering  <meyering@redhat.com>
22881         gitlog-to-changelog: do not clump multi-paragraph entries
22882         Identical header lines (date,name,email+coauthors) are suppressed,
22883         thus putting all entries with those same characteristics under
22884         a single header.  However, when a log entry consists of two or
22885         more paragraphs, it may not be clear where it starts and ends.
22886         This change makes it so that such an entry is always separated
22887         from others by a header line, even when that header would
22888         otherwise be suppressed.
22889         * build-aux/gitlog-to-changelog: Implement the above.
22890         Inspired by a related request from Stefano Lattarini in
22891         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
22893 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22895         announce-gen: fix `cmd' typo in diagnostic
22896         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
22897         diagnostic: a missing '$' meant that the command was not output.
22899 2011-12-23  Jim Meyering  <meyering@redhat.com>
22901         test-framework-sh: distribute init.sh
22902         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
22903         Otherwise, "make -C gnulib-tests check" (at least in grep) would
22904         fail due to the lack of init.sh.
22906         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
22907         * modules/atexit-tests: Rather than listing tests/init.sh,
22908         now that there's a module for it, simply depend on that new module.
22909         * modules/closein-tests: Likewise.
22910         * modules/exclude-tests: Likewise.
22911         * modules/getcwd-tests: Likewise.
22912         * modules/perror-tests: Likewise.
22913         * modules/pread-tests: Likewise.
22914         * modules/pwrite-tests: Likewise.
22915         * modules/vc-list-files-tests: Likewise.
22916         * modules/verify-tests: Likewise.
22917         * modules/xalloc-die-tests: Likewise.
22918         * modules/xstrtoimax-tests: Likewise.
22919         * modules/xstrtol-tests: Likewise.
22920         * modules/xstrtoll-tests: Likewise.
22921         * modules/xstrtoumax-tests: Likewise.
22922         * modules/yesno-tests: Likewise.
22924 2011-12-22  Jim Meyering  <meyering@redhat.com>
22926         test-framework-sh: add minimal tests of init.sh's compare function
22927         * modules/test-framework-sh-tests: New file.
22928         * tests/test-init.sh: New file.
22930         test-framework-sh: new module
22931         * modules/test-framework-sh: New file.
22932         * MODULES.html.sh (Support for maintaining and releasing projects):
22933         List it.
22935         init.sh: do not emit simulated diff output to stderr
22936         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
22938 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22940         .gitignore: ignore gnulib.dvi and regex.info
22941         * doc/.gitignore:add gnulib.dvi and regex.info
22943 2011-12-22  Jim Meyering  <meyering@redhat.com>
22945         init.sh: correct previous change
22946         * tests/init.sh (compare): My previous change was wrong.
22947         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
22949         init.sh: avoid unwarranted test failure when using "set -e"
22950         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
22951         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
22952         a use like "compare exp out" would get evoke an unconditional failure.
22954 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
22956         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
22957         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
22958         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
22959         autoreconf that did not.
22960         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
22961         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22963 2011-12-17  Jim Meyering  <meyering@redhat.com>
22965         bootstrap: remove some now-unneeded code
22966         This script arose back when gnulib-tool was young.
22967         Since then, it has seen improvements that render much of this
22968         script unnecessary.  In particular, it can now make symlinks
22969         to the files it uses.  Also, I no longer see as much value in
22970         marking files as read-only via comments.
22971         If you relied on the symlink-creation feature of the preceding
22972         version of this script, you can get most of that functionality
22973         by adding the --symlink option to the definition of
22974         gnulib_tool_option_extras in your bootstrap.conf file.
22975         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
22976         Run autopoint and libtoolize *before* gnulib-tool.
22977         After it, run an abbreviated autoreconf, rather than a loop around
22978         all tools.
22979         (slirp, bt_mark_as_generated): Remove functions.
22981 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22983         ftoastr: fix typo
22984         * lib/ftoastr.h: Fix misspelling in comment.
22986 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
22988         * top/README-release: fix punctuation.
22990 2011-12-17  Jim Meyering  <meyering@redhat.com>
22992         bootstrap: correct the recent buildreq change
22993         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
22994         had no effect.
22995         * build-aux/bootstrap (buildreq): Bracket each search term with
22996         "*...*", so that the shell "case" statement works as intended.
22997         Add comments.
22999 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
23001         build: let bootstrap resort to wget when downloading .po files
23002         * build-aux/bootstrap (download_po_files): Fallback to wget when
23003         downloading the .po files via rsync fails.  This is necessary to
23004         bootstrap from behind a strict firewall.
23006 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23008         stdint: don't assume C++11 when compiling with g++
23009         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
23010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
23011         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
23012         work also in C++ before C++11, as that improperly inhibits
23013         generating a substitute stdint.h for that case.
23015 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23017         alloca: protect comment from gnulib-tool
23018         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
23019         that gnulib-tool doesn't think it's a license, and munge it to
23020         say "GCC version 3".
23022 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
23024         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
23025         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
23026         $(abs_top_builddir) instead of $(top_builddir).
23028 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
23030         strftime-tests: also test nanoseconds
23031         * tests/test-strftime.c (T): Add a test of %N.
23033 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
23035         inttypes, stdint: add C++11 support
23036         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
23037         when including inttypes.h and stdint.h.  Support this change to
23038         the standard.
23039         * doc/posix-headers/inttypes.texi (inttypes.h):
23040         * doc/posix-headers/stdint.texi (stdint.h): Document this.
23041         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
23042         Define if not defined already, for the benefit of pre-C++11 hosts.
23043         Define the standard format macros (e.g., PRId8) always.
23044         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
23045         Likewise, if __cpluspus.  Define the standard constant and limit
23046         macros (e.g., INT8_C, INT8_MAX) always.
23047         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
23048         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
23049         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
23050         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
23051         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
23052         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
23053         Likewise.
23055 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23057         nonblocking tests: Fix test failure on Linux/PPC.
23058         Suggested by Prerna Saxena in
23059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
23060         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
23061         Set to 1100000.
23063 2011-12-12  Jim Meyering  <meyering@redhat.com>
23065         argmatch: don't hard-code `' when listing valid option arguments
23066         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
23067         use the quote function to add quotes.  Use fputs rather than
23068         fprintf for the format string with no format directive.
23070 2011-12-07  Eric Blake  <eblake@redhat.com>
23072         bootstrap: detect tools required by gnulib-tool
23073         * build-aux/bootstrap (buildreq): Provide minimum implicit
23074         dependencies.
23075         * DEPENDENCIES: Mention patch as a prereq.
23077 2011-12-04  Bruno Haible  <bruno@clisp.org>
23079         sethostname: Port to Windows platforms.
23080         * lib/sethostname.c: Provide an alternate implementation for Windows
23081         platforms.
23082         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
23083         (main): Skip the test if sethostname() fails with EPERM. On Windows
23084         platforms, don't check the result of gethostname().
23086 2011-12-04  Bruno Haible  <bruno@clisp.org>
23087             Jim Meyering  <meyering@redhat.com>
23089         tests: Avoid spurious error message on platforms without mktemp program.
23090         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
23092 2011-12-04  Bruno Haible  <bruno@clisp.org>
23094         sethostname: Fix documentation.
23095         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
23096         "not fixed" section.
23098 2011-12-03  Bruno Haible  <bruno@clisp.org>
23100         gnulib-tool: Verify that the License field is present and non-empty.
23101         * gnulib-tool (func_get_license_raw): New function, extracted from
23102         func_get_license.
23103         (func_get_license): Use it. Warn if the module is not a test module and
23104         has no license.
23105         Suggested by Jim Meyering.
23107 2011-12-03  Bruno Haible  <bruno@clisp.org>
23109         sethostname tests: Fix link error on mingw.
23110         * tests/test-sethostname1.c: New file, extracted from
23111         tests/test-sethostname.c.
23112         * tests/test-sethostname2.c: New file, extracted from
23113         tests/test-sethostname.c.
23114         * tests/test-sethostname.c: Remove file.
23115         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
23116         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
23117         (Depends-on): Add gethostname.
23118         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
23119         Link the latter with $(GETHOSTNAME_LIB).
23121         sethostname tests: Fix compilation error on mingw.
23122         * tests/test-sethostname.c: Don't include <sys/types.h>.
23123         (geteuid): Use a dummy value without uid_t.
23124         * modules/sethostname-tests (Depends-on): Remove sys_types.
23126         sethostname tests: Avoid a gcc warning.
23127         * tests/test-sethostname.c (main): Remove an unused variable.
23129         Tweak last commit.
23130         * modules/sethostname-tests (Files): Sort by decreasing importance.
23131         (configure.ac): Check for geteuid.
23132         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
23133         the test when there's nothing to test. Drop an unnecessary cast.
23134         Improve an error message. Verify that the final sethostname() call
23135         succeeds.
23137 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23139         Add a test suite for the sethostname module.
23140         * modules/sethostname-tests: New file.  A test program
23141         for the sethostname module.
23142         * tests/test-sethostname.c: Likewise.
23144 2011-12-03  Bruno Haible  <bruno@clisp.org>
23146         Tweak last commit.
23147         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
23148         Fix preprocessor directives indentation. Fix typos.
23149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
23150         * modules/unistd (Makefile): Likewise.
23152 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23154         Integrate the sethostname module into unistd.
23155         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
23156         into the unistd.h header.
23157         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
23158         preprocessor directives.
23159         * modules/unistd: Setup the Makefile substitutions of the
23160         SETHOSTNAME preprocessor directives.
23162 2011-12-03  Bruno Haible  <bruno@clisp.org>
23164         Tweak last commit.
23165         * lib/sethostname.c: Don't include <string.h>.
23166         (sethostname): No need to copy the argument string to the stack. Don't
23167         call clearerr. Preserve errno when fprintf failed.
23168         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
23169         Don't invoke AC_REPLACE_FUNCS.
23170         * modules/sethostname (Link): Remove empty section.
23171         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
23172         failure problem.
23174 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23176         New module 'sethostname'.
23177         * lib/sethostname.c (sethostname): New file.  Provide sethostname
23178         for systems that lack it.
23179         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
23180         sethostname declaration and function.
23181         * modules/sethostname: New file.  Define the sethostname module.
23183 2011-12-03  Bruno Haible  <bruno@clisp.org>
23185         Tweak last commit.
23186         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
23188 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23190         Split the HOST_NAME_MAX detection into a separate m4 macro.
23191         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
23192         macro so it can be used by the pending sethostname module.
23194 2011-12-03  Bruno Haible  <bruno@clisp.org>
23196         Fix module descriptions syntax.
23197         * modules/argv-iter (License): Fix syntax.
23198         * modules/di-set (License): Likewise.
23199         * modules/ino-map (License): Likewise.
23200         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
23202 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23204         stdalign: port to Clang 3.0
23205         Problem reported by Simon Josefsson in
23206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
23207         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
23208         which has <stdalign.h> but which does not define alignof.
23209         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
23211 2011-12-01  Eric Blake  <eblake@redhat.com>
23213         mktempd: silence dd usage
23214         * build-aux/mktempd (rand_bytes): Silence dd.
23216 2011-11-30  Simon Josefsson  <simon@josefsson.org>
23218         manywarnings: Don't mention gcc version in docstring.
23219         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
23220         Jim Meyering <meyering@redhat.com>.
23222 2011-11-30  Jim Meyering  <meyering@redhat.com>
23224         hash: mark a few floating point constants with "f" suffix
23225         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
23226         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
23227         floating point constants with "f", since they're destined to be
23228         saved/used as "float"s.
23230 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
23232         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
23233         * tests/test-float.c (test_long_double): Correct and re-enable the
23234         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
23236 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
23238         Avoid subtracting two pointers that don't point into the same block.
23239         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
23240         only pointers into the same memory block are subtracted. We cannot
23241         assume that sizeof (ptrdiff_t) == sizeof (void *).
23243 2011-11-29  Eric Blake  <eblake@redhat.com>
23245         maint.mk: add syntax check for use of compare from init.sh
23246         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
23247         moved here from coreutils.
23249         manywarnings: drop -Wunsuffixed-float-constants
23250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
23251         '1.0D', which is the only way to silence this warning for 'double'.
23253 2011-11-29  Jim Meyering  <meyering@redhat.com>
23255         hash: mark compute_bucket_size with the pure attribute
23256         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
23258         quotearg, propername: correct pragma guard expression
23259         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
23260         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
23262 2011-11-28  Jim Meyering  <meyering@redhat.com>
23264         propername: do not mark proper_name with the const attribute
23265         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
23266         since it examines data pointed to by its parameter.
23267         * lib/propername.c (proper_name): Instead, add a pragma to suppress
23268         the suggestion from -Wsuggest-attribute=const.
23270         propername: mark one more function as const
23271         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
23273 2011-11-27  Jim Meyering  <meyering@redhat.com>
23275         mark functions with const and pure attributes
23277         Mark functions per suggestions from gcc-4.6 when using these options:
23278         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
23279         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
23280         Follow these guidelines: when possible, apply the attribute to
23281         an extern declaration, not to its definition.  Apply it to the
23282         definition only when the definition is static.
23283         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
23284         * lib/argv-iter.h (argv_iter_n_args): Likewise.
23285         * lib/base64.h (isbase64): Likewise.
23286         * lib/basename-lgpl.c (last_component, base_len): Likewise.
23287         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
23288         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
23289         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
23290         (c_tolower, c_toupper): Likewise.
23291         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
23292         * lib/chdir-long.c (find_non_slash): Likewise.
23293         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
23294         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
23295         * lib/file-type.h (file_type): Likewise.
23296         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
23297         * lib/filevercmp.c (verrevcmp): Likewise.
23298         * lib/freadahead.h (freadahead): Likewise.
23299         * lib/fts.c (fts_maxarglen): Likewise.
23300         * lib/hash-pjw.h (hash_pjw): Likewise.
23301         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
23302         * lib/hash.c (is_prime, next_prime): Likewise.
23303         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
23304         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
23305         (hash_table_ok, hash_get_first, hash_string): Likewise.
23306         (compute_bucket_size): Likewise.
23307         * lib/i-ring.h (i_ring_empty): Likewise.
23308         * lib/isnan.c (isnanl): Likewise.
23309         * lib/math.h (isnanl, rpl_isnanl): Likewise.
23310         * lib/memcasecmp.h (memcasecmp): Likewise.
23311         * lib/memchr2.h (memchr2): Likewise.
23312         * lib/memcmp2.h (memcmp2): Likewise.
23313         * lib/parse-datetime.y (lookup_zone): Likewise.
23314         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
23315         [!WINDOWS_SOCKETS]: Likewise.
23316         * lib/strnlen1.h (strnlen1): Likewise.
23317         * lib/uniwidth.in.h (uc_width): Likewise.
23318         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
23319         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
23320         (quoting_options_from_style): Add a comment.
23321         * lib/propername.h (proper_name): Add a comment.
23323 2011-11-27  Bruno Haible  <bruno@clisp.org>
23325         Remove unused macros from !_LIBC code in glibc-borrowed files.
23326         * lib/fnmatch.c (STRCOLL): Remove macro.
23327         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
23328         * lib/glob.c (__stat, __readdir64): Remove macros.
23329         * lib/tempname.c (__open64, __xstat64): Remove macros.
23330         Suggested by Paul Eggert.
23332 2011-11-27  Bruno Haible  <bruno@clisp.org>
23334         getcwd: Fix link error on MSVC 9.
23335         * modules/getcwd (Depends-on): Add readdir, rewinddir.
23337 2011-11-27  Bruno Haible  <bruno@clisp.org>
23339         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
23340         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
23341         HAVE_OPENDIR is 0.
23342         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
23343         HAVE_CLOSEDIR is 0.
23344         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
23345         is 0.
23346         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
23348 2011-11-27  Bruno Haible  <bruno@clisp.org>
23350         getcwd: Fix bug from 2011-08-17.
23351         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
23352         platforms that need it.
23353         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
23354         code of 4 to be a failure, not a success. This ensures that
23355         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
23357 2011-11-27  Bruno Haible  <bruno@clisp.org>
23359         binary-io tests: Avoid test failure on mingw when libtool is used.
23360         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
23361         Don't verify the size of t-bin-out1.tmp here.
23362         * tests/test-binary-io.sh: Verify it here.
23363         Reported by Simon Josefsson.
23365 2011-11-26  Bruno Haible  <bruno@clisp.org>
23367         Fix conflict between two instantiations of module 'unistd'.
23368         * gnulib-tool (func_emit_autoconf_snippet): Substitute
23369         ${include_guard_prefix} also in the autoconf snippet.
23370         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
23371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
23372         GNULIB_UNISTD_H_GETOPT.
23373         * modules/getopt-posix (configure.ac): Set the
23374         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
23375         * modules/getopt-gnu (configure.ac): Likewise.
23376         * modules/unistd (Makefile.am): Change the substitution value of
23377         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
23378         Reported by Simon Josefsson.
23380 2011-11-25  Bruno Haible  <bruno@clisp.org>
23382         pagealign_alloc: Doc and comments.
23383         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
23384         module.
23385         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
23387 2011-11-25  Jim Meyering  <meyering@redhat.com>
23389         test-update-copyright.sh: avoid false-positive failure
23390         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
23391         around false positive failure on Cygwin/Windows.  The latter was
23392         matching erroneously-created files with names like
23393         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
23395 2011-11-25  Simon Josefsson  <simon@josefsson.org>
23397         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
23398         * m4/valgrind-tests.m4: Check that the parameters that will be
23399         used works, not just a subset of them.  Reported by Bruno Haible
23400         <bruno@clisp.org>.
23402 2011-11-24  Jim Meyering  <meyering@redhat.com>
23404         test-stdalign.c: comment out long double tests
23405         * tests/test-stdalign.c: Don't try to reduce alignment of long double
23406         variables.  That provokes errors like this from gcc-4.7.0 20111124:
23407         error: '_Alignas' specifiers cannot reduce alignment of \
23408         'static_longdouble_alignas'.
23410 2011-11-22  Jim Meyering  <meyering@redhat.com>
23412         init.sh: make "compare /dev/null FILE" output more readable
23413         * tests/init.sh (compare_): Document the preferred order of arguments.
23414         (emit_diff_u_header_): New function.
23415         (compare_dev_null_): Emit a simulated diff, rather than just the
23416         contents of the unexpected file.  Suggestion from Bruno Haible.
23418 2011-11-21  Jim Meyering  <meyering@redhat.com>
23419             Eric Blake  <eblake@redhat.com>
23421         init.sh: work around OSF/1 5.1's mishandling of /dev/null
23422         * tests/init.sh: Make our compare function slightly more portable.
23423         Reported by Bruno Haible in
23424         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
23426 2011-11-21  Simon Josefsson  <simon@josefsson.org>
23428         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
23429         before using it, in code that ends up in config.h.
23431 2011-11-20  Bruno Haible  <bruno@clisp.org>
23433         getcwd: Work around getcwd bug on AIX 5..7.
23434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
23435         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
23436         Use a different value for gl_cv_func_getcwd_path_max. Move the
23437         definition of HAVE_PARTLY_WORKING_GETCWD from here...
23438         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
23439         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
23440         Define HAVE_MINIMALLY_WORKING_GETCWD.
23441         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
23442         where it is not even minimally working, that is, on AIX.
23443         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
23444         m4/getcwd-path-max.m4.
23445         (main): Update exit code computation.
23446         * doc/posix-functions/getcwd.texi: Mention list of platforms where
23447         getcwd does not handle long file names.
23449 2011-11-20  Bruno Haible  <bruno@clisp.org>
23451         getcwd: Fix bug from 2009-09-10.
23452         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
23453         like "no".
23455 2011-11-20  Simon Josefsson  <simon@josefsson.org>
23457         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
23459 2011-11-20  Bruno Haible  <bruno@clisp.org>
23461         fma tests: Avoid shadowing local variables.
23462         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
23463         expected.
23465 2011-11-20  Bruno Haible  <bruno@clisp.org>
23467         copysignf tests: Fix.
23468         * tests/test-copysignf.c: Fix signature check.
23470 2011-11-20  Bruno Haible  <bruno@clisp.org>
23472         fma: Remove unused code.
23473         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
23474         unused macros.
23476 2011-11-20  Bruno Haible  <bruno@clisp.org>
23478         sethostname: Fix doc about AIX.
23479         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
23480         sethostname; it has it.
23482         sethostname: Mention more portability problems.
23483         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
23484         problem.
23485         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23487 2011-11-19  Bruno Haible  <bruno@clisp.org>
23489         Depend on module fcntl-h when AT_FDCWD is used.
23490         * modules/utimens (Depends-on): Add fcntl-h.
23491         * modules/areadlinkat (Depends-on): Likewise.
23492         * modules/areadlinkat-with-size (Depends-on): Likewise.
23493         * modules/faccessat (Depends-on): Likewise.
23494         * modules/fchmodat (Depends-on): Likewise.
23495         * modules/fchownat (Depends-on): Likewise.
23496         * modules/getcwd (Depends-on): Likewise.
23497         * modules/mkdirat (Depends-on): Likewise.
23498         * modules/mkfifoat (Depends-on): Likewise.
23499         * modules/readlinkat (Depends-on): Likewise.
23500         * modules/symlinkat (Depends-on): Likewise.
23501         * modules/dup2-tests (Depends-on): Likewise.
23502         * modules/fdutimensat-tests (Depends-on): Likewise.
23503         * modules/futimens-tests (Depends-on): Likewise.
23505 2011-11-19  Bruno Haible  <bruno@clisp.org>
23507         euidaccess: Update a comment.
23508         * lib/euidaccess.c: Update comment about platforms with faccessat.
23510 2011-11-19  Bruno Haible  <bruno@clisp.org>
23512         openat: Fix file list.
23513         * modules/openat (Files): Remove lib/at-func.c.
23515 2011-11-19  Bruno Haible  <bruno@clisp.org>
23517         fstatat: Simplify.
23518         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
23519         gnulib should define rpl_fstatat, there is a
23520         "#define fstatat rpl_fstatat" in <sys/stat.h>.
23522 2011-11-19  Bruno Haible  <bruno@clisp.org>
23524         Ensure 'inline' can be used in tests/test-utimens-common.h.
23525         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
23526         * modules/futimens-tests (configure.ac): Likewise.
23527         * modules/utimens-tests (configure.ac): Likewise.
23528         * modules/utimensat-tests (configure.ac): Likewise.
23530 2011-11-19  Simon Josefsson  <simon@josefsson.org>
23532         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
23533         not hash_insert0.
23534         (hash_insert_if_absent): Doc fix.
23536 2011-11-19  Simon Josefsson  <simon@josefsson.org>
23538         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
23540 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23542         test-getcwd: disambiguate exit status
23543         * tests/test-getcwd.c (test_long_name): Return 0..7.
23544         (main): Exit with an unambiguous exit status.  The old
23545         code yielded a mysterious mixture of two failure codes.
23547         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
23548         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
23549         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
23550         rpl_fstatat or fstatat.  This should fix the other problem
23551         reported by Kai Habel in
23552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
23553         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
23554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
23555         and I reproduced it on a Solaris 8 host we still have in production.
23557 2011-11-18  Jim Meyering  <meyering@redhat.com>
23559         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
23560         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
23561         Add a sentence to the comment.
23562         (hash_insert0): New function that simply calls hash_insert_if_absent.
23563         * lib/hash.h (hash_insert_if_absent): Declare it.
23564         (hash_insert0): Add deprecation attribute.
23565         (_GL_ATTRIBUTE_DEPRECATED): Define.
23566         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
23567         not hash_insert0.
23568         * NEWS: Mention it, even though it's not really an incompatible change.
23570 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
23572         openat: avoid compilation failure due to lack of <errno.h> inclusion
23573         * lib/openat.c: Include <errno.h>.
23575 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23577         * modules/getcwd (Depends-on): Add fdopendir.
23578         This fixes one of the two problems reported by Kai Habel in
23579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
23581         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
23582         stdalign problem reported by Ian Beckwith in
23583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
23584         * modules/crypto/gc-arcfour (Depends-on):
23585         Depend conditionally on crypto/arcfour.
23586         * modules/crypto/gc-arctwo (Depends-on):
23587         Depend conditionally on crypto/arctwo.
23588         * modules/crypto/gc-des (Depends-on):
23589         Depend conditionally on crypto/des.
23590         * modules/crypto/gc-hmac-md5 (Depends-on):
23591         Depend conditionally on crypto/hmac-md5.
23592         * modules/crypto/gc-hmac-sha1 (Depends-on):
23593         Depend conditionally on crypto/hmac-sha1.
23594         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
23595         * modules/crypto/gc-md4 (Depends-on):
23596         Depend conditionally on crypto/md4.
23597         * modules/crypto/gc-md5 (Depends-on):
23598         Depend conditionally on crypto/md5.
23599         * modules/crypto/gc-rijndael (Depends-on):
23600         Depend conditionally on crypto/rijndael.
23601         * modules/crypto/gc-sha1 (Depends-on):
23602         Depend conditionally on crypto/sha1.
23603         * modules/crypto/gc-arcfour:
23604         * modules/crypto/gc-arctwo:
23605         * modules/crypto/gc-des:
23606         * modules/crypto/gc-hmac-md5:
23607         * modules/crypto/gc-hmac-sha1:
23608         * modules/crypto/gc-md2:
23609         * modules/crypto/gc-md4:
23610         * modules/crypto/gc-md5:
23611         * modules/crypto/gc-rijndael:
23612         * modules/crypto/gc-sha1:
23613         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
23614         now that the conditional dependencies do the work for us.
23616 2011-11-17  Jim Meyering  <meyering@redhat.com>
23618         tests: factor st_ctime-comparison out of two headers
23619         * tests/test-utimens-common.h (ctime_compare): Define.
23620         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
23621         * tests/test-lutimens.h (test_lutimens): Likewise.
23622         * tests/test-utimens.h (test_utimens): Likewise.
23624         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
23625         Invoke the test program via an init.sh-using wrapper.
23626         * tests/test-getcwd.sh: New file.
23627         * modules/getcwd-tests (Files): Add it.
23628         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
23630 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
23632         gitlog-to-changelog: support multi-author commits.
23633         The FSF cares about keeping track of all authors of patches to its
23634         projects, but Git doesn't provide obvious support for multi-author
23635         changesets. Consensus seems to be forming around the use of extra
23636         Signed-off-by inspired lines in the log message formatted as
23637         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
23638         multi-author commits between version control systems.
23639         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
23640         log message and output in standard ChangeLog multi-author format.
23641         Reported by Peter Rosin <peda@lysator.liu.se>
23643 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23644             Bruno Haible  <bruno@clisp.org>
23646         Fix some modules' file list.
23647         * modules/fstatat (Files): Add m4/lstat.m4.
23648         * modules/openat (Files): Likewise.
23649         * modules/unlinkat (Files): Likewise.
23651 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
23653         maint.mk: fix tight-scope.mk generation in VPATH builds.
23654         * top/maint.mk (tight-scope.mk): Make sure to prefix file
23655         reference with $(srcdir) so that the file is found correctly even
23656         when running `make syntax-check' in a VPATH build.
23658 2011-11-13  Bruno Haible  <bruno@clisp.org>
23659             Jim Meyering  <meyering@redhat.com>
23661         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
23662         * tests/init.sh (compare): Remove "No differences encountered" or
23663         synonymous output from the 'diff' program.
23665 2011-11-13  Bruno Haible  <bruno@clisp.org>
23667         Makefile: Tweak indentation.
23668         * Makefile: Use tab as first character in every line that contains rule
23669         commands.
23671 2011-11-13  Bruno Haible  <bruno@clisp.org>
23673         Syntax check for copyright statements.
23674         * check-copyright: New file.
23675         * Makefile (sc_check_copyright): New rule.
23677 2011-11-13  Simon Josefsson  <simon@josefsson.org>
23679         * build-aux/git-version-gen: Add --prefix to configure the tag
23680         match string.
23682 2011-11-13  Simon Josefsson  <simon@josefsson.org>
23684         * build-aux/git-version-gen: Add --help and --version.
23686 2011-11-12  Jim Meyering  <meyering@redhat.com>
23688         revamp the other test-exclude?.sh scripts to use init.sh, too
23689         * tests/test-exclude1.sh: Use init.sh.
23690         * tests/test-exclude2.sh: Likewise.
23691         * tests/test-exclude3.sh: Likewise.
23692         * tests/test-exclude4.sh: Likewise.
23693         * tests/test-exclude5.sh: Likewise.
23694         * tests/test-exclude6.sh: Likewise.
23695         * tests/test-exclude7.sh: Likewise.
23696         * tests/test-exclude8.sh: Likewise.
23697         * modules/exclude-tests (Files): List init.sh.
23699         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
23700         These shell scripts ignored failure of the binary test-exclude,
23701         so making the latter return 77 didn't cause them to be skipped.
23702         * tests/test-exclude5.sh: Exit with test-exclude's error status
23703         when that program fails.  Revamp to use init.sh.
23704         * tests/test-exclude2.sh: Likewise.
23706         test-exclude: fix a typo
23707         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
23709 2011-11-11  Bruno Haible  <bruno@clisp.org>
23711         obstack: Fix compilation error on MSVC 9.
23712         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
23714 2011-11-11  Jim Meyering  <meyering@redhat.com>
23716         test-exclude: skip tests rather than failing on deficient systems
23717         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
23718         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
23719         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
23720         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
23722 2011-11-10  Bruno Haible  <bruno@clisp.org>
23724         ptsname_r test: Avoid gcc warning on glibc systems.
23725         * tests/test-ptsname_r.c (null_ptr): New function.
23726         (test_errors): Use it.
23728 2011-11-10  Bruno Haible  <bruno@clisp.org>
23730         ptsname_r: Avoid compilation error on OSF/1 5.1.
23731         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
23732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
23733         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
23734         function is not declared or incompatibly declared.
23735         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
23736         * modules/ptsname_r (Depends-on, configure.ac): Update.
23737         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
23739 2011-11-10  Bruno Haible  <bruno@clisp.org>
23741         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
23742         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
23743         When cross-compiling, guess yes on all platforms except AIX.
23744         Reported by Ludovic Courtès <ludo@gnu.org>.
23746 2011-11-09  Bruno Haible  <bruno@clisp.org>
23748         ptsname_r tests: Fix bugs.
23749         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
23750         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
23752 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23754         fstatat: work with cross-compilation
23755         Problem reported by Ludovic Courtès in
23756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
23757         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
23758         "cross-compiling" and assume the bug is present.  Replace
23759         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
23760         an inverted sense, to be more conservative about our assumptions.
23761         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
23763 2011-11-09  Bruno Haible  <bruno@clisp.org>
23765         Improve MODULES.html output.
23766         * modules/mkfifoat (Description): Use the word "function".
23767         * modules/readlinkat (Description): Likewise.
23768         * modules/symlinkat (Description): Likewise.
23770 2011-11-09  Eric Blake  <eblake@redhat.com>
23772         ptsname_r-tests: new test module
23773         * modules/ptsname_r-tests: New module.
23774         * tests/test-ptsname_r.c: New file.
23776         ptsname_r: new module
23777         * modules/ptsname_r: New module.
23778         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
23779         * lib/ptsname.c (__ptsname_r): Split...
23780         * lib/ptsname_r.c: ...into new file.
23781         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
23782         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
23783         * modules/stdlib (Makefile.am): Substitute witnesses.
23784         * lib/stdlib.in.h (ptsname_r): Declare it.
23785         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
23786         * MODULES.html.sh (Misc): Likewise.
23787         * modules/ptsname (Depends-on): Alter dependency.
23788         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
23790 2011-11-09  Jim Meyering  <meyering@redhat.com>
23792         announce-gen: be more concise when there's only one URL+tarball
23793         * build-aux/announce-gen (get_tool_versions): When you distribute
23794         only one type of tarball, combine the first two "Here are..."
23795         sections and make the key-checking grammar independent of
23796         how many tarballs there are.
23798 2011-11-09  Eric Blake  <eblake@redhat.com>
23800         openpty: provide a stub on mingw
23801         * lib/pty.in.h (includes): Provide forward declarations.
23802         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
23804         raise: fix mingw handling of SIGPIPE
23805         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
23807 2011-11-08  Bruno Haible  <bruno@clisp.org>
23809         More conditional dependencies.
23810         * modules/faccessat (Depends-on): Add conditions.
23811         * modules/fchmodat (Depends-on): Likewise.
23812         * modules/fchownat (Depends-on): Likewise.
23813         * modules/fstatat (Depends-on): Likewise.
23814         * modules/mkfifoat (Depends-on): Likewise.
23815         * modules/readlinkat (Depends-on): Likewise.
23816         * modules/symlinkat (Depends-on): Likewise.
23817         * modules/unlinkat (Depends-on): Likewise.
23818         * modules/utimensat (Depends-on): Likewise.
23819         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
23820         * modules/linkat (Depends-on): Refine the conditions.
23821         * modules/renameat (Depends-on): Likewise.
23823 2011-11-08  Bruno Haible  <bruno@clisp.org>
23825         faccessat: Move AC_LIBOBJ invocation to module description.
23826         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
23827         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
23828         invocation from here...
23829         * modules/faccessat (configure.ac): ... to here. Invoke
23830         gl_PREREQ_FACCESSAT.
23832 2011-11-08  Bruno Haible  <bruno@clisp.org>
23834         faccessat: Simplify autoconf macro.
23835         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
23836         gl_FUNC_EUIDACCESS.
23838 2011-11-08  Bruno Haible  <bruno@clisp.org>
23840         renameat: Fix dependencies.
23841         * modules/renameat (Depends-on): Add stdbool.
23843 2011-11-08  Bruno Haible  <bruno@clisp.org>
23845         mkfifoat: Fix module description.
23846         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
23847         not gl_UNISTD_MODULE_INDICATOR.
23849 2011-11-08  Bruno Haible  <bruno@clisp.org>
23851         fstatat: Remove unused dependency.
23852         * modules/fstatat (Depends-on): Remove fstat.
23854 2011-11-08  Simon Josefsson  <simon@josefsson.org>
23856         GNUmakefile: behave when Makefile is missing.
23857         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
23859 2011-11-08  Bruno Haible  <bruno@clisp.org>
23861         openat: Conditionalize dependencies.
23862         * lib/openat.c: Reduce the scope of some #includes.
23863         * modules/openat (Depends-on): Add conditions.
23865 2011-11-07  Jim Meyering  <meyering@redhat.com>
23867         maint.mk: extract GPG key ID without using a temporary file
23868         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
23869         without using a temporary file.  Based on a suggestion from Werner Koch
23870         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
23872 2011-11-07  Eric Blake  <eblake@redhat.com>
23874         grantpt: fix typo
23875         * lib/stdlib.in.h (grantpt): Check correct function.
23877         maint.mk: silence new syntax check
23878         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
23880 2011-11-06  Bruno Haible  <bruno@clisp.org>
23882         Doc about floating-point and math API.
23883         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
23884         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
23886 2011-11-06  Bruno Haible  <bruno@clisp.org>
23888         stdalign tests: Skip the test when compiled by Sun C.
23889         * tests/test-stdalign.c (main): Skip the test on Sun C.
23891 2011-11-06  Bruno Haible  <bruno@clisp.org>
23893         ansi-c++-opt: Complete the 2011-06-05 change.
23894         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
23895         does not support namespaces, set the variable to "no", not to ":".
23897 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23899         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
23901 2011-11-06  Bruno Haible  <bruno@clisp.org>
23903         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
23904         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
23905         (minus_zerol) [HP-UX]: New macro.
23906         (unary_minus) [HP-UX]: New function.
23907         (copysignl) [HP-UX]: Use unary_minus function.
23909 2011-11-06  Bruno Haible  <bruno@clisp.org>
23911         ldexp, ldexpf, ldexpl: Enhance tests.
23912         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
23913         and tests/test-ldexpl.c.
23914         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
23915         LDEXP, MIN_EXP, MAX_EXP): New macros.
23916         Include test-ldexp.h.
23917         (main): Just call test_function.
23918         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
23919         infinity.h, nan.h.
23920         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23921         MAX_EXP): New macros.
23922         Include test-ldexp.h.
23923         (x, y): Remove variables.
23924         (main): Just call test_function.
23925         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
23926         infinity.h, nan.h.
23927         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23928         MAX_EXP): New macros.
23929         Include test-ldexp.h.
23930         (x, y): Remove variables.
23931         (main): Just call test_function.
23932         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
23933         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
23934         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23935         (Depends-on): Add isnand-nolibm, signbit, float.
23936         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
23937         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23938         (Depends-on): Add isnanf-nolibm, signbit, float.
23940 2011-11-06  Bruno Haible  <bruno@clisp.org>
23942         math tests: Cosmetics.
23943         * tests/test-math-c++.cc: Reorder declarations.
23945 2011-11-05  Bruno Haible  <bruno@clisp.org>
23947         fma*: Simplify test.
23948         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
23949         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
23951         Tests for module 'fmal'.
23952         * modules/fmal-tests: New file.
23953         * tests/test-fmal1.c: New file.
23954         * tests/test-fmal2.c: New file.
23956         New module 'fmal'.
23957         * lib/math.in.h (fmal): New declaration.
23958         * lib/fmal.c: New file.
23959         * m4/fmal.m4: New file.
23960         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
23961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
23962         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
23963         REPLACE_FMAL.
23964         * modules/fmal: New file.
23965         * doc/posix-functions/fmal.texi: Mention the new module and the various
23966         bugs.
23968         Tests for module 'fmaf'.
23969         * modules/fmaf-tests: New file.
23970         * tests/test-fmaf1.c: New file.
23971         * tests/test-fmaf2.c: New file.
23973         New module 'fmaf'.
23974         * lib/math.in.h (fmaf): New declaration.
23975         * lib/fmaf.c: New file.
23976         * m4/fmaf.m4: New file.
23977         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
23978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
23979         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
23980         REPLACE_FMAF.
23981         * modules/fmaf: New file.
23982         * doc/posix-functions/fmaf.texi: Mention the new module and the various
23983         bugs.
23985         Tests for module 'fma'.
23986         * modules/fma-tests: New file.
23987         * tests/test-fma1.c: New file.
23988         * tests/test-fma1.h: New file.
23989         * tests/test-fma2.c: New file.
23990         * tests/test-fma2.h: New file.
23992         New module 'fma'.
23993         * lib/math.in.h (fma): New declaration.
23994         * lib/fma.c: New file.
23995         * m4/fma.m4: New file.
23996         * m4/fegetround.m4: New file.
23997         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
23998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
23999         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
24000         REPLACE_FMA.
24001         * modules/fma: New file.
24002         * doc/posix-functions/fma.texi: Mention the new module and the various
24003         bugs.
24005         Extend gl_MATHFUNC.
24006         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
24007         Support 'void' as argument type.
24008         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
24010 2011-11-05  Jim Meyering  <meyering@redhat.com>
24012         maint.mk: also prohibit inclusion of dirent.h without use
24013         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
24015 2011-11-05  Bruno Haible  <bruno@clisp.org>
24017         ldexpl tests: Avoid test failure on MSVC 9.
24018         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
24019         value. Needed in order to enforce the conversion from a value greater
24020         than LDBL_MAX to Infinity.
24022 2011-11-05  Bruno Haible  <bruno@clisp.org>
24024         New modules 'at-internal', 'openat-h', split off from module 'openat'.
24025         * modules/at-internal: New file, extracted from modules/openat.
24026         * modules/openat-h: New file.
24027         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
24028         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
24029         * modules/openat (Description): Add reference to POSIX function.
24030         (Files): Remove lib/openat.h, lib/openat-proc.c.
24031         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
24032         intprops, unistd.
24033         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
24034         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
24035         gl_FCNTL_MODULE_INDICATOR.
24036         (Include): Remove unistd.h, openat.h.
24037         * modules/areadlinkat (Files): Add lib/at-func.c.
24038         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
24039         openat-die, openat-h, save-cwd.
24040         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
24041         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
24042         openat-die, openat-h, save-cwd, unistd.
24043         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
24044         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24045         openat-h, save-cwd. Remove fcntl-h, openat.
24046         * modules/fchmodat (Files): Remove lib/openat.h.
24047         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
24048         openat, stdbool, unistd.
24049         * modules/fchownat (Files): Remove lib/openat.h.
24050         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
24051         openat, stdbool, sys_stat.
24052         * modules/fdopendir (Files): Remove lib/openat-priv.h,
24053         lib/openat-proc.c.
24054         (Depends-on): Add at-internal.
24055         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
24056         * modules/fstatat (Files): Remove lib/openat.h.
24057         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
24058         stdbool, unistd.
24059         * modules/fts (Depends-on): Add openat-h.
24060         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
24061         openat.
24062         * modules/mkdirat (Files): Remove lib/openat.h.
24063         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
24064         openat, stdbool, sys_stat.
24065         * modules/mkfifoat (Files): Add lib/at-func.c.
24066         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24067         openat-h, save-cwd. Remove fcntl-h, openat.
24068         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
24069         * modules/readlinkat (Files): Add lib/at-func.c.
24070         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24071         openat-h, save-cwd. Remove fcntl-h, openat.
24072         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
24073         openat.
24074         * modules/selinux-at (Files): Add lib/at-func.c.
24075         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
24076         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
24077         * modules/symlinkat (Files): Add lib/at-func.c.
24078         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24079         openat-h, save-cwd. Remove fcntl-h, openat.
24080         * modules/unlinkat (Files): Remove lib/openat.h.
24081         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
24082         stdbool.
24083         * modules/utimensat (Files): Add lib/at-func.c.
24084         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
24085         openat-die, openat-h, save-cwd.
24086         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
24087         * modules/fdutimensat-tests (Depends-on): Add openat.
24088         * modules/fstatat-tests (Depends-on): Add openat-h.
24089         * modules/readlinkat-tests (Depends-on): Add openat.
24090         * modules/symlinkat-tests (Depends-on): Add openat.
24092 2011-11-05  Bruno Haible  <bruno@clisp.org>
24094         openat: Include <stdbool.h>.
24095         * lib/openat.c: Include <stdbool.h>.
24097 2011-11-04  Bruno Haible  <bruno@clisp.org>
24099         fchownat, renameat, unlinkat: Fix dependencies.
24100         * modules/fchownat (Depends-on): Add fstatat.
24101         * modules/renameat (Depends-on): Likewise.
24102         * modules/unlinkat (Depends-on): Likewise.
24104 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
24106         openat: remove direct dependency on dirent
24107         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
24108         and hasn't been needed ever since fdopendir was split into its own
24109         module on 2009-08-31.
24110         * modules/openat (Depends-on): Remove dirent.
24112 2011-11-04  Bruno Haible  <bruno@clisp.org>
24114         renameat: Optimize code size.
24115         * modules/renameat (configure.ac): Don't compile at-func2.c if
24116         REPLACE_RENAMEAT is 1.
24118 2011-11-04  Bruno Haible  <bruno@clisp.org>
24120         openat tests: Fix file list.
24121         * modules/openat-tests (Files): Add tests/test-open.h.
24123 2011-11-04  Bruno Haible  <bruno@clisp.org>
24125         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
24126         * modules/fchmodat (Depends-on): Add openat-die.
24127         * modules/fchownat (Depends-on): Likewise.
24128         * modules/linkat (Depends-on): Likewise.
24129         * modules/renameat (Depends-on): Likewise.
24130         * modules/openat (Depends-on): Add dirent.
24132 2011-11-04  Jim Meyering  <meyering@redhat.com>
24134         at-func*.c: fix comments
24135         * lib/at-func2.c: Correct/improve first-line comment.
24136         * lib/at-func.c: Correct grammar in first-line comment.
24138 2011-11-04  Bruno Haible  <bruno@clisp.org>
24140         New module 'mkdirat', split off from module 'openat'.
24141         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
24142         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
24143         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
24144         * modules/mkdirat: New file, extracted from modules/openat.
24145         * modules/openat (Files): Remove lib/mkdirat.c.
24146         (Depends-on): Remove mkdir.
24147         (configure.ac): Remove AC_LIBOBJ of mkdirat.
24148         (Include): Remove <sys/stat.h>.
24149         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
24150         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
24151         tests/test-mkdir.h.
24152         (Depends-on): Remove ignore-value.
24153         (Makefile.am): Remove rules for test-mkdirat.
24154         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
24155         of module 'openat'.
24156         * NEWS: Mention the change.
24158 2011-11-04  Bruno Haible  <bruno@clisp.org>
24160         closedir: Avoid warning on mingw.
24161         * lib/closedir.c: Include <unistd.h>.
24163 2011-11-04  Bruno Haible  <bruno@clisp.org>
24165         New module 'fstatat', split off from module 'openat'.
24166         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
24167         defined.
24168         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
24169         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
24170         gl_FUNC_FSTATAT.
24171         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
24172         * modules/fstatat: New file, extracted from modules/openat.
24173         * modules/openat (Files): Remove lib/fstatat.c.
24174         (Depends-on): Remove lstat.
24175         (configure.ac): Remove AC_LIBOBJ of fstatat.
24176         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
24177         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
24178         tests/test-lstat.h, tests/test-stat.h.
24179         (Depends-on): Remove getcwd-lgpl.
24180         (Makefile.am): Remove rules for test-fstatat.
24181         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
24182         of module 'openat'.
24183         * NEWS: Mention the change.
24184         * modules/getcwd (Depends-on): Add fstatat.
24185         * modules/linkat (Depends-on): Likewise.
24186         * modules/mkfifoat-tests (Depends-on): Likewise.
24187         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
24189 2011-11-03  Bruno Haible  <bruno@clisp.org>
24191         New module 'unlinkat', split off from module 'openat'.
24192         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
24193         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
24194         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
24195         * modules/unlinkat: New file, extracted from modules/openat. Correct
24196         the dependency conditions.
24197         * modules/openat (Files): Remove lib/unlinkat.c.
24198         (Depends-on): Remove rmdir, unlink.
24199         (configure.ac): Remove AC_LIBOBJ of unlinkat.
24200         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
24201         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
24202         tests/test-rmdir.h, tests/test-unlink.h.
24203         (Depends-on): Remove unlinkdir.
24204         (Makefile.am): Remove rules for test-unlinkat.
24205         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
24206         of module 'openat'.
24207         * NEWS: Mention the change.
24208         * modules/linkat-tests (Depends-on): Add unlinkat.
24209         * modules/mkfifoat-tests (Depends-on): Likewise.
24210         * modules/readlinkat-tests (Depends-on): Likewise.
24212 2011-11-02  Bruno Haible  <bruno@clisp.org>
24214         New module 'fchmodat', split off from module 'openat'.
24215         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
24216         defined.
24217         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
24218         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
24219         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
24220         * modules/fchmodat: New file, extracted from modules/openat.
24221         * modules/openat (Files): Remove lib/fchmodat.c.
24222         (configure.ac): Remove AC_LIBOBJ of fchmodat.
24223         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
24224         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
24225         (Makefile.am): Remove rules for test-fchmodat.
24226         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
24227         of module 'openat'.
24228         * NEWS: Mention the change.
24230 2011-11-02  Jim Meyering  <meyering@redhat.com>
24232         putenv: indent #definition of "environ" to placate cppi
24233         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
24235         gitlog-to-changelog: provide a ChangeLog-repair mechanism
24236         Git logs are often treated as immutable, because editing them
24237         changes the SHA1 checksums of all descendants.  Thus, errors in
24238         git logs tend to stay there forever.  However, when we generate
24239         a ChangeLog file -- typically for distribution -- from that git log,
24240         we can actually make corrections in the generated file.  The key
24241         lies in recording in machine-readable/applicable form the desired
24242         corrections.  See --help for description and an example.
24243         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
24244         (usage): Describe it; alphabetize option descriptions.
24245         (main): Honor the new option, carefully.
24247 2011-11-01  Jim Meyering  <meyering@redhat.com>
24249         gitlog-to-changelog: avoid an infloop
24250         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
24251         that ends up being empty.
24253 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24255         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
24256         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
24257         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
24258         contains (possibly-quoted) backslashes.  This should avoid
24259         all-too-common shell bugs if COMPLICATED contains backslashes in
24260         the "wrong" places.  Reported by David Evans in
24261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
24262         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
24263         because we want ASCII ranges.  Is there some reason we don't use
24264         the C locale everywhere in this script?
24265         (func_module, top level): Avoid unwanted pathname expansion when
24266         $repo_url_prefix or $repo_url_suffix_repl contain shell
24267         metacharacters like '?' and '*'.
24269 2011-11-01  Bruno Haible  <bruno@clisp.org>
24271         fchownat: Improve description.
24272         * modules/fchownat (Description): Add link to function.
24274 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24276         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
24277         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
24278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
24279         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
24281 2011-11-01  Bruno Haible  <bruno@clisp.org>
24283         alignof: Avoid collision with stdalign module.
24284         * lib/alignof.h (alignof): Remove macro.
24285         * NEWS: Mention the change.
24286         Reported by Paul Eggert.
24288 2011-11-01  Bruno Haible  <bruno@clisp.org>
24290         New module 'fchownat', split off from module 'openat'.
24291         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
24292         defined.
24293         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
24294         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
24295         invoke gl_FUNC_FCHOWNAT.
24296         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
24297         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
24298         * modules/fchownat: New file, extracted from modules/openat.
24299         * modules/openat (Files): Remove lib/fchownat.c.
24300         (Depends-on): Remove lchown.
24301         (configure.ac): Remove AC_LIBOBJ of fchownat.
24302         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
24303         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
24304         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
24305         (Depends-on): Remove mgetgroups, usleep, stat-time.
24306         (configure.ac): Remove test for getegid.
24307         (Makefile.am): Remove rules for test-fchownat.
24308         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
24309         of module 'openat'.
24310         * NEWS: Mention the change.
24312 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
24314         stdalign: port better to MSVC and to Sun C 5.11
24315         This fixes some of the problems reported by Bruno Haible in
24316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
24317         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
24318         shortcomings of MSVC and of Sun C 5.11.
24319         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
24320         around __declspec arg.
24321         * modules/stdalign-tests (Files): Add tests/macros.h.
24322         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
24323         Include macros.h, for ASSERT.
24324         (DECLARE_ALIGNED): Remove.
24325         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
24326         to catch bug), and to 1 if not (simplifies the rest of the code).
24327         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
24328         (CHECK_AUTO): Remove.
24329         (CHECK_ALIGNED): Check only the alignment of the static vars,
24330         since auto var alignment isn't supported by Sun C 5.11.
24331         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
24332         ASSERT failures are easier to diagnose.
24334 2011-10-31  Bruno Haible  <bruno@clisp.org>
24336         doc about some IRIX 5.3 problems.
24337         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
24338         on IRIX 5.3.
24339         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
24340         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
24341         5.3.
24342         * doc/posix-functions/grantpt.texi: Likewise.
24343         * doc/posix-functions/unlockpt.texi: Likewise.
24344         * doc/posix-functions/lgamma.texi: Likewise.
24345         * doc/posix-functions/nextafter.texi: Likewise.
24346         * doc/posix-functions/remainder.texi: Likewise.
24347         * doc/posix-functions/select.texi: Mention misplaced declaration on
24348         IRIX 5.3.
24349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24351 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
24353         gitlog-to-changelog: fix git-log invocation.
24354         git-log mishandles date strings before 1970-01-01 UTC, and there is
24355         no use to specify --since=1970-01-01 by default anyway.
24356         * build-aux/gitlog-to-changelog: By default, when no --since option
24357         was given, do not specify explicit --since option to git-log.
24359 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
24361         gitlog-to-changelog: new option --append-dot.
24362         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
24363         first non-blank line of each commit message terminated with a dot.
24365 2011-10-30  Bruno Haible  <bruno@clisp.org>
24367         ffsl, ffsll: Avoid compilation error due to 'restrict'.
24368         * lib/ffsl.h: Include <config.h>.
24369         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
24371 2011-10-30  Jim Meyering  <meyering@redhat.com>
24373         GNUmakefile: reenable "make syntax-check" for most projects
24374         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
24375         build-aux variable", "syntax-check" would do nothing but succeed with
24376         the "No version control files detected..." diagnostic (unless you
24377         happened to override _build-aux via cfg.mk).
24378         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
24379         to precede inclusion of maint.mk.  Otherwise, these variables would
24380         be used undefined in any project that does not override the default.
24382 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
24384         gitlog-to-changelog: treat a message with only blank lines as empty.
24385         * build-aux/gitlog-to-changelog: Move the code that removes leading and
24386         trailing blank lines before the code that issues a warning about an
24387         empty commit message.
24389 2011-10-30  Jim Meyering  <meyering@redhat.com>
24391         test-parse-datetime.c: avoid new DST-related false positive test failure
24392         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
24393         based on the time/date we'll convert, not the current time.
24394         Otherwise, the moment we cross a DST boundary like today's in
24395         Europe, (CEST to CET), that offset ends up being one hour off.
24397 2011-10-27  Bruno Haible  <bruno@clisp.org>
24399         fstat: Tweak documentation.
24400         * modules/fstat (Description): More precise description.
24402 2011-10-27  Bruno Haible  <bruno@clisp.org>
24404         Update documentation regarding 'largefile' module.
24405         * doc/posix-functions/fstat.texi: Tweak wording.
24406         * doc/posix-functions/opendir.texi: Mention that the module fixes the
24407         problems with huge directories and/or small ino_t types.
24408         * doc/posix-functions/readdir.texi: Likewise.
24409         * doc/posix-functions/rewinddir.texi: Likewise.
24411 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
24413         maint.mk: don't maintain a second build-aux variable.
24414         * maint.mk (build_aux): Removed.  The maintainer-makefile module
24415         depends on GNUmakefile, which already maintains a cfg.mk
24416         overridable $(_build-aux) for projects with a non-standard
24417         build-aux directory location, although without the $(srcdir)
24418         prefix.  Use that variable consistently instead of introducing a
24419         second one.  Adjust all call sites.
24421 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24423         Add stdalign module and use it in other modules.
24424         This is based on a previous proposal by Bruno Haible
24425         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
24427         stdalign: new module
24428         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
24429         * modules/stdalign: New files.
24430         * MODULES.html.sh (c1x_core_properties): Add stdalign.
24431         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
24433         stdalign-tests: new module
24434         * modules/stdalign-tests, tests/test-stdalign.c: New files.
24436         argp: use stdalign
24437         * lib/argp-parse.c: Include <stdalign.h>.
24438         (alignof): Remove.
24439         * modules/argp (Depends-on): Add stdalign.
24441         crypto libraries: use stdalign
24442         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
24443         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
24444         Do not include <stdlib.h> twice, in md4.c.
24445         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
24446         because we are accessing a pointer's bit-pattern, not a size.
24447         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
24448         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
24449         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
24450         * modules/crypto/sha512: Likewise.
24452         sys_socket: use stdalign, not alignof
24453         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
24454         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
24456 2011-10-27  Bruno Haible  <bruno@clisp.org>
24458         raise test: Avoid a test failure on Linux/MIPS.
24459         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
24460         because 99 is a valid signal on Linux/MIPS.
24462 2011-10-27  Bruno Haible  <bruno@clisp.org>
24464         nonblocking tests: Fix test failure on Linux/MIPS.
24465         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
24466         Set to 270000.
24468 2011-10-27  Bruno Haible  <bruno@clisp.org>
24470         utimensat: Work around problem on Linux/hppa.
24471         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
24472         values.
24473         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
24475 2011-10-25  Jim Meyering  <meyering@redhat.com>
24477         maint.mk: fix a bug in sc_prohibit_stddef_without_use
24478         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
24479         after symbols like NULL, size_t, etc.
24480         Reported by Alfred M. Szmidt.
24482         maint.mk: exempt ENODATA from a syntax-check rule
24483         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
24484         from the sc_prohibit_always-defined_macros syntax-check rule.
24485         Add a comment.  See this for more details:
24486         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
24488 2011-10-23  Jim Meyering  <meyering@redhat.com>
24490         fts: close parent dir FD before returning from post-traversal fts_read
24491         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
24492         unlink A, even though an FD open on A remained.  This is suboptimal
24493         (holding a file descriptor open longer than needed), but otherwise not
24494         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
24495         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
24496         that represents a real problem: it causes the removal of A to fail
24497         with e.g., "rm: cannot remove `A': Device or resource busy"
24499         fts visits each directory twice and keeps a cache (fts_fd_ring) of
24500         directory file descriptors.  After completing the final, FTS_DP,
24501         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
24502         cache, but then proceeded to add a new FD to it via the subsequent
24503         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
24504         final file descriptor would be closed only via fts_close's call to
24505         fd_ring_clear.  Now, it is usually closed earlier, via the final
24506         FTS_DP-returning fts_read call.
24507         * lib/fts.c (restore_initial_cwd): New function, converted from
24508         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
24509         Update callers.
24510         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
24511         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
24513 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
24514             Bruno Haible  <bruno@clisp.org>
24515             Jim Meyering  <jim@meyering.net>
24517         readme-release: improve safety of release prep instructions.
24518         * README-release: Don't git pull all branches when only master
24519         is needed for the release process.
24520         Run make maintainer-clean before changing trees and merging.
24521         Don't try to run ./configure right after git pull in case files
24522         that influence the bootstrap process have changed, move the
24523         ./configure step to after running ./bootstrap.
24524         Don't bootstrap "one last time"... it's the first time!
24526 2011-10-22  Bruno Haible  <bruno@clisp.org>
24528         errno, strerror-override: Support for MSVC 10.
24529         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
24530         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
24531         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
24532         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
24533         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
24534         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
24535         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
24536         Assign values compatible with MSVC 10.
24537         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
24538         New macros.
24539         (GNULIB_defined_EWINSOCK): New macro.
24540         * lib/strerror-override.c (strerror_override): Update accordingly.
24541         * lib/strerror-override.h: Likewise.
24542         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
24543         longer equal to the corresponding errno value.
24544         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24546 2011-10-22  Bruno Haible  <bruno@clisp.org>
24548         perror: Recognize when test program crashes.
24549         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
24550         strerror, set gl_cv_func_perror_works to no.
24551         Reported by Daniel Richard G. <skunk@iskunk.org>.
24553         perror: Fix indentation.
24554         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
24556 2011-10-22  Bruno Haible  <bruno@clisp.org>
24558         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
24559         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
24560         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
24561         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
24562         functions, not as a macro.
24563         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
24564         macros.
24565         (isfinite, isinf, isnan, signbit): Check overloaded functions and
24566         absence of macro.
24567         Suggested by Eric Blake.
24568         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24570 2011-10-21  Bruno Haible  <bruno@clisp.org>
24572         relocatable-prog-wrapper: Don't leave object files behind.
24573         * build-aux/install-reloc: Re-synchronize list of .o files to be
24574         removed with list of compilation units.
24576 2011-10-20  Bruno Haible  <bruno@clisp.org>
24578         openpty, posix_openpt: Remove code duplication.
24579         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
24580         * lib/openpty.c: Include <stdlib.h>.
24581         (openpty): Use posix_openpt on all platforms except IRIX.
24582         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
24584 2011-10-20  Bruno Haible  <bruno@clisp.org>
24586         unlockpt: Detect invalid argument.
24587         * lib/unlockpt.c: Include <fcntl.h>.
24588         (unlockpt): Check whether fd is valid, using fcntl().
24589         * modules/unlockpt (Depends-on): Add fcntl-h.
24591 2011-10-20  Bruno Haible  <bruno@clisp.org>
24593         openpty: Avoid compilation error on AIX 6.1.
24594         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
24596 2011-10-20  Bruno Haible  <bruno@clisp.org>
24598         posix_openpt: Support for OpenBSD.
24599         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
24600         (posix_openpt) [OpenBSD]: New code.
24601         * lib/grantpt.c: Include <fcntl.h>.
24602         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
24603         * modules/grantpt (Depends-on): Add fcntl-h.
24605 2011-10-20  Bruno Haible  <bruno@clisp.org>
24607         posix_openpt test: Coding style.
24608         * tests/test-posix_openpt.c: Use GNU coding style.
24610 2011-10-20  Bruno Haible  <bruno@clisp.org>
24612         grantpt: Support --avoid=pt_chown.
24613         * modules/grantpt (Files): Add lib/pty-private.h.
24615 2011-10-20  Bruno Haible  <bruno@clisp.org>
24617         posix_openpt: Fix autoconf macro.
24618         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
24619         unneeded check for _getpty.
24621 2011-10-20  Bruno Haible  <bruno@clisp.org>
24623         openpty: Update comments.
24624         * lib/openpty.c: Add comments about Minix.
24626 2011-10-19  Eric Blake  <eblake@redhat.com>
24628         openpty: relax license
24629         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
24631         pt_chown: use configmake to simplify build
24632         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
24634         ptsname and others: relax license
24635         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
24636         * modules/unlockpt (License): Likewise.
24637         * modules/pt_chown (License): Likewise.
24638         * modules/ptsname (License): Likewise.
24639         * modules/ttyname_r (License): Likewise.
24641 2011-10-19  Jim Meyering  <meyering@redhat.com>
24643         posix_openpt: remove spurious #endif
24644         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
24646 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
24648         maint.mk: Respect $(build_aux) in web-manual rule.
24649         * top/maint.mk (web-manual): Find gen-announce script in user's
24650         $(build_aux) directory instead of hard-coding 'build-aux'.
24652 2011-10-19  Bruno Haible  <bruno@clisp.org>
24654         posix_openpt: Fix compilation error.
24655         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
24656         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
24657         Mention the openpty module as an alternative.
24659 2011-10-19  Bruno Haible  <bruno@clisp.org>
24661         Support for old NeXTstep 3.3 frexp().
24662         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
24663         execution time of the test to 5 seconds.
24664         Reported by Daniel Richard G. <skunk@iskunk.org>.
24666 2011-10-19  Bruno Haible  <bruno@clisp.org>
24668         Support for old NeXTstep 3.3 sed.
24669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
24670         part, use /.../, not \|...|. Escape periods in the header file name.
24671         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
24672         Reported by Daniel Richard G. <skunk@iskunk.org>.
24674 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24676         Support for old NeXTstep 3.3 gcc.
24677         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
24678         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
24679         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
24680         * lib/spawn.in.h (_Restrict_arr_): Likewise.
24681         * lib/regex.h (_Restrict_arr_): Likewise.
24682         * lib/regex_internal.h (re_token_t): Likewise.
24683         * lib/regexec.c (check_node_accept_bytes): Likewise.
24684         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
24686 2011-10-18  Eric Blake  <eblake@redhat.com>
24688         posix_openpt: new module
24689         * modules/posix_openpt: New module.
24690         * m4/posix_openpt.m4: New file.
24691         * lib/posix_openpt.c: Likewise.
24692         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
24693         (gl_STDLIB_H_DEFAULTS): Set defaults.
24694         * modules/stdlib (Makefile.am): Substitute macros.
24695         * lib/stdlib.in.h (posix_openpt): Declare.
24696         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
24697         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
24698         * modules/posix_openpt-tests: New test module.
24699         * tests/test-posix_openpt.c: New test.
24701 2011-10-15  Bruno Haible  <bruno@clisp.org>
24703         xstrtoll: Fix compilation failure.
24704         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
24705         from lib/strtol.c.
24706         * doc/posix-headers/limits.texi: Mention missing numerical limits on
24707         some platforms.
24708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24710 2011-10-15  Bruno Haible  <bruno@clisp.org>
24712         vasnprintf: Optimize bit search operation.
24713         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
24714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
24715         gl_DOUBLE_EXPONENT_LOCATION.
24716         * modules/vasnprintf (Files): Add m4/exponentd.m4.
24717         * modules/unistdio/u8-vasnprintf (Files): Likewise.
24718         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
24719         * modules/unistdio/u16-vasnprintf (Files): Likewise.
24720         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
24721         * modules/unistdio/u32-vasnprintf (Files): Likewise.
24722         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
24723         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
24724         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
24726 2011-10-15  Bruno Haible  <bruno@clisp.org>
24728         vasnprintf: Fix comments.
24729         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
24731 2011-10-14  Bruno Haible  <bruno@clisp.org>
24733         Tests for module 'integer_length_ll'.
24734         * modules/integer_length_ll-tests: New file.
24735         * tests/test-integer_length_ll.c: New file.
24737         New module 'integer_length_ll'.
24738         * lib/integer_length_ll.c: New file.
24739         * modules/integer_length_ll: New file.
24741 2011-10-14  Bruno Haible  <bruno@clisp.org>
24743         Tests for module 'integer_length_l'.
24744         * modules/integer_length_l-tests: New file.
24745         * tests/test-integer_length_l.c: New file.
24747         New module 'integer_length_l'.
24748         * lib/integer_length_l.c: New file.
24749         * modules/integer_length_l: New file.
24751 2011-10-14  Bruno Haible  <bruno@clisp.org>
24753         Tests for module 'integer_length'.
24754         * modules/integer_length-tests: New file.
24755         * tests/test-integer_length.c: New file.
24757         New module 'integer_length'.
24758         * lib/integer_length.h: New file.
24759         * lib/integer_length.c: New file.
24760         * modules/integer_length: New file.
24762 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24764         popen: Fix dependency conditions.
24765         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
24767 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24769         perror: Fix autoconf test.
24770         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
24771         <stdlib.h> and <string.h>.
24773 2011-10-14  Bruno Haible  <bruno@clisp.org>
24775         ffsl: Optimize on 64-bit platforms.
24776         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
24777         unrolling.
24779 2011-10-13  Bruno Haible  <bruno@clisp.org>
24781         ffsl: Optimize on 32-bit platforms.
24782         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
24783         use ffs() without a loop.
24785         ffsl, ffsll: Optimize for GCC.
24786         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
24787         * lib/ffsl.c (GCC_BUILTIN): New macro.
24788         * lib/ffsll.c (GCC_BUILTIN): Likewise.
24790 2011-10-13  Bruno Haible  <bruno@clisp.org>
24792         ffs, bcopy, memset: Support symbol renaming via config.h.
24793         * lib/ffs.c: Include <config.h>.
24794         * lib/bcopy.c: Likewise.
24795         * lib/memset.c: Likewise.
24797 2011-10-10  Bruno Haible  <bruno@clisp.org>
24799         atanl: Simplify for platforms where 'long double' == 'double'.
24800         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24801         alternative implementation.
24802         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24803         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24804         * modules/atanl (Depends-on): Add atan. Update conditions.
24806 2011-10-10  Bruno Haible  <bruno@clisp.org>
24808         acosl: Simplify for platforms where 'long double' == 'double'.
24809         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24810         alternative implementation.
24811         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24812         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24813         * modules/acosl (Depends-on): Add acos. Update conditions.
24815 2011-10-10  Bruno Haible  <bruno@clisp.org>
24817         asinl: Simplify for platforms where 'long double' == 'double'.
24818         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24819         alternative implementation.
24820         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24821         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24822         * modules/asinl (Depends-on): Add asin. Update conditions.
24824 2011-10-10  Bruno Haible  <bruno@clisp.org>
24826         tanl: Simplify for platforms where 'long double' == 'double'.
24827         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24828         implementation.
24829         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24830         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24831         * modules/tanl (Depends-on): Add tan. Update conditions.
24832         (configure.ac): Don't compile trigl.c if
24833         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24835 2011-10-10  Bruno Haible  <bruno@clisp.org>
24837         cosl: Simplify for platforms where 'long double' == 'double'.
24838         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24839         implementation.
24840         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24841         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24842         * modules/cosl (Depends-on): Add cos. Update conditions.
24843         (configure.ac): Don't compile sincosl.c and trigl.c if
24844         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24846 2011-10-10  Bruno Haible  <bruno@clisp.org>
24848         sinl: Simplify for platforms where 'long double' == 'double'.
24849         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24850         implementation.
24851         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24852         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24853         * modules/sinl (Depends-on): Add sin. Update conditions.
24854         (configure.ac): Don't compile sincosl.c and trigl.c if
24855         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24857 2011-10-10  Bruno Haible  <bruno@clisp.org>
24859         logl: Simplify for platforms where 'long double' == 'double'.
24860         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24861         implementation.
24862         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24863         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24864         * modules/logl (Depends-on): Add log. Update conditions.
24866 2011-10-10  Bruno Haible  <bruno@clisp.org>
24868         expl: Simplify for platforms where 'long double' == 'double'.
24869         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24870         implementation.
24871         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24872         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24873         * modules/expl (Depends-on): Add exp. Update conditions.
24875 2011-10-10  Bruno Haible  <bruno@clisp.org>
24877         sqrtl: Simplify for platforms where 'long double' == 'double'.
24878         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24879         alternative implementation.
24880         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24881         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24882         * modules/sqrtl (Depends-on): Update conditions.
24884 2011-10-10  Bruno Haible  <bruno@clisp.org>
24886         ldexpl: Simplify for platforms where 'long double' == 'double'.
24887         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24888         alternative implementation.
24889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24890         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24891         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
24893 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
24895         ffsll: set correct witness
24896         * modules/ffsll (configure.ac): Fix typo.
24898 2011-10-10  Bruno Haible  <bruno@clisp.org>
24900         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
24901         * lib/printf-frexpl.c: Include <config.h>.
24902         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24903         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
24904         second time.
24905         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
24906         gl_LONG_DOUBLE_VS_DOUBLE.
24907         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
24908         conditions.
24910 2011-10-10  Bruno Haible  <bruno@clisp.org>
24912         frexpl: Simplify for platforms where 'long double' == 'double'.
24913         * lib/frexpl.c: Include <config.h>.
24914         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24915         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24916         time.
24917         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24918         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24919         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
24920         * modules/frexpl (Depends-on): Add frexp. Update conditions.
24921         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
24922         conditions.
24924 2011-10-10  Jim Meyering  <meyering@redhat.com>
24926         test-renameat: don't leave behind a temporary file
24927         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
24928           ERROR: files left in build directory after distclean:
24929           ./gltests/test-renameat.too
24930           make[1]: *** [distcleancheck] Error 1
24931         Reported by Tom G. Christensen.
24933 2011-10-09  Bruno Haible  <bruno@clisp.org>
24935         rint: Determine RINT_LIBM correctly on AIX 7.
24936         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
24937         directly, not only through a function pointer. Also accept an optional
24938         4th argument with extra code.
24939         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
24940         rintf() call by gcc when optimizing.
24942         mathfunc.m4: Refactor.
24943         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
24944         m4 variable.
24946 2011-10-09  Bruno Haible  <bruno@clisp.org>
24948         rintl: Simplify for platforms where 'long double' == 'double'.
24949         * lib/rintl.c: Include <config.h>.
24950         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24951         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24952         time.
24953         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24954         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24955         * modules/rintl (Depends-on): Add rint. Update conditions.
24957 2011-10-09  Bruno Haible  <bruno@clisp.org>
24959         roundl: Simplify for platforms where 'long double' == 'double'.
24960         * lib/roundl.c: Include <config.h>.
24961         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24962         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24963         time.
24964         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24965         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24966         * modules/roundl (Depends-on): Add round. Update conditions.
24968 2011-10-09  Bruno Haible  <bruno@clisp.org>
24970         truncl: Simplify for platforms where 'long double' == 'double'.
24971         * lib/truncl.c: Include <config.h>.
24972         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24973         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24974         time.
24975         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24976         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24977         * modules/truncl (Depends-on): Add trunc. Update conditions.
24979 2011-10-09  Bruno Haible  <bruno@clisp.org>
24981         ceill: Simplify for platforms where 'long double' == 'double'.
24982         * lib/ceill.c: Include <config.h>.
24983         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24984         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24985         time.
24986         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24987         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24988         * modules/ceill (Depends-on): Add ceil. Update conditions.
24990 2011-10-09  Bruno Haible  <bruno@clisp.org>
24992         floorl: Simplify for platforms where 'long double' == 'double'.
24993         * lib/floorl.c: Include <config.h>.
24994         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24995         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24996         time.
24997         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24998         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24999         * modules/floorl (Depends-on): Add floor. Update conditions.
25001 2011-10-09  Bruno Haible  <bruno@clisp.org>
25003         rint: Fix ordering constraints.
25004         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
25005         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25006         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25008 2011-10-09  Bruno Haible  <bruno@clisp.org>
25010         copysignl: Simplify for platforms where 'long double' == 'double'.
25011         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25012         alternative.
25013         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25014         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25015         * modules/copysignl (Depends-on): Add copysign. Update conditions.
25017 2011-10-09  Bruno Haible  <bruno@clisp.org>
25019         Tests for module 'rintl'.
25020         * modules/rintl-tests: New file.
25021         * tests/test-rintl.c: New file.
25023         New module 'rintl'.
25024         * lib/math.in.h (rintl): New declaration.
25025         * lib/rintl.c: New file.
25026         * m4/rintl.m4: New file.
25027         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
25028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
25029         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
25030         * modules/rintl: New file.
25031         * tests/test-math-c++.cc: Check the declaration of rintl.
25032         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
25033         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
25034         * doc/posix-functions/rintl.texi: Mention the new module.
25036 2011-10-09  Bruno Haible  <bruno@clisp.org>
25038         Tests for module 'rintf'.
25039         * modules/rintf-tests: New file.
25040         * tests/test-rintf.c: New file.
25042         New module 'rintf'.
25043         * lib/math.in.h (rintf): New declaration.
25044         * lib/rintf.c: New file.
25045         * m4/rintf.m4: New file.
25046         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
25047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
25048         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
25049         * modules/rintf: New file.
25050         * tests/test-math-c++.cc: Check the declaration of rintf.
25051         * doc/posix-functions/rintf.texi: Mention the new module.
25053 2011-10-09  Bruno Haible  <bruno@clisp.org>
25055         rint: Support for MSVC.
25056         * lib/math.in.h (rint): New declaration.
25057         * lib/rint.c: New file.
25058         * m4/rint.m4: New file.
25059         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
25060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
25061         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
25062         * modules/rint (Description): Fix.
25063         (Files): Add lib/rint.c, m4/rint.m4.
25064         (Depends-on): Add math.
25065         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
25066         gl_MATH_MODULE_INDICATOR.
25067         * tests/test-math-c++.cc: Check the declaration of rint.
25068         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
25069         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
25070         * doc/posix-functions/rint.texi: Mention the replacement provided by
25071         the module.
25073         rint tests: More tests.
25074         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
25075         minus-zero.h, infinity.h, nan.h.
25076         (main): Skip the test if the current rounding mode is not standard. Add
25077         tests for negative numbers, minus zero, infinity, NaN.
25078         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
25079         tests/nan.h.
25080         (Depends-on): Add isnand-nolibm.
25082 2011-10-09  Bruno Haible  <bruno@clisp.org>
25084         Tests for module 'copysignl'.
25085         * modules/copysignl-tests: New file.
25086         * tests/test-copysignl.c: New file.
25088         New module 'copysignl'.
25089         * lib/math.in.h (copysignl): New declaration.
25090         * lib/copysignl.c: New file.
25091         * m4/copysignl.m4: New file.
25092         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
25093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
25094         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
25095         HAVE_COPYSIGNL.
25096         * modules/copysignl: New file.
25097         * tests/test-math-c++.cc: Check the declaration of copysignl.
25098         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
25099         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
25100         * doc/posix-functions/copysignl.texi: Mention the new module.
25102 2011-10-09  Bruno Haible  <bruno@clisp.org>
25104         Tests for module 'copysignf'.
25105         * modules/copysignf-tests: New file.
25106         * tests/test-copysignf.c: New file.
25108         New module 'copysignf'.
25109         * lib/math.in.h (copysignf): New declaration.
25110         * lib/copysignf.c: New file.
25111         * m4/copysignf.m4: New file.
25112         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
25113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
25114         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
25115         HAVE_COPYSIGNF.
25116         * modules/copysignf: New file.
25117         * tests/test-math-c++.cc: Check the declaration of copysignf.
25118         * doc/posix-functions/copysignf.texi: Mention the new module.
25120 2011-10-09  Bruno Haible  <bruno@clisp.org>
25122         Ensure that HAVE_* variables are set to 1 before they are set to 0.
25123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
25124         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
25125         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
25126         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
25127         gl_SIGNAL_H_DEFAULTS.
25129 2011-10-09  Bruno Haible  <bruno@clisp.org>
25131         poll: Make macro safer.
25132         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
25133         ac_cv_header_poll_h is not set.
25135 2011-10-09  Bruno Haible  <bruno@clisp.org>
25137         copysign: Provide replacement.
25138         * lib/math.in.h (copysign): New declaration.
25139         * lib/copysign.c: New file.
25140         * m4/copysign.m4: New file.
25141         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
25142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
25143         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
25144         HAVE_COPYSIGN.
25145         * modules/copysign (Description): Clarify.
25146         (Files): Add lib/copysign.c, m4/copysign.m4.
25147         (Depends-on): Add math, signbit.
25148         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
25149         gl_MATH_MODULE_INDICATOR.
25150         * tests/test-math-c++.cc: Check the declaration of copysign.
25151         * doc/posix-functions/copysign.texi: Mention the effects of the module
25152         on Minix and MSVC.
25154 2011-10-09  Bruno Haible  <bruno@clisp.org>
25156         isinf: Ensure macro on AIX 5.1.
25157         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
25158         macro.
25159         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
25161 2011-10-09  Bruno Haible  <bruno@clisp.org>
25163         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
25164         * modules/snprintf-posix-tests (configure.ac): Require
25165         gl_LONG_DOUBLE_VS_DOUBLE.
25166         * modules/sprintf-posix-tests (configure.ac): Likewise.
25167         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
25168         * modules/vasprintf-posix-tests (configure.ac): Likewise.
25169         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
25170         * modules/vsprintf-posix-tests (configure.ac): Likewise.
25171         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
25172         tests on platforms where 'long double' is the same as 'double'.
25173         * tests/test-sprintf-posix.h (test_function): Likewise.
25174         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25175         * tests/test-vasprintf-posix.c (test_function): Likewise.
25177         *printf: Fix for platforms where 'long double' == 'double'.
25178         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
25179         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
25180         * modules/dprintf-posix (Files): Add m4/math_h.m4.
25181         * modules/fprintf-posix (Files): Likewise.
25182         * modules/obstack-printf-posix (Files): Likewise.
25183         * modules/snprintf-posix (Files): Likewise.
25184         * modules/sprintf-posix (Files): Likewise.
25185         * modules/vasnprintf (Files): Likewise.
25186         * modules/vasnprintf-posix (Files): Likewise.
25187         * modules/vasprintf-posix (Files): Likewise.
25188         * modules/vdprintf-posix (Files): Likewise.
25189         * modules/vfprintf-posix (Files): Likewise.
25190         * modules/vsnprintf-posix (Files): Likewise.
25191         * modules/vsprintf-posix (Files): Likewise.
25192         * modules/unistdio/u8-vasnprintf (Files): Likewise.
25193         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
25194         * modules/unistdio/u16-vasnprintf (Files): Likewise.
25195         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
25196         * modules/unistdio/u32-vasnprintf (Files): Likewise.
25197         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
25198         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
25200         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
25201         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
25202         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25203         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
25204         'long double'.
25205         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
25207         isinf: Fix for platforms where 'long double' == 'double'.
25208         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
25209         Don't blindly assume 80-bit 'long double'.
25211         isfinite: Fix for platforms where 'long double' == 'double'.
25212         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
25213         Don't blindly assume 80-bit 'long double'.
25215         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
25216         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
25217         * modules/isfinite-tests (configure.ac): Require
25218         gl_LONG_DOUBLE_VS_DOUBLE.
25219         * modules/isinf-tests (configure.ac): Likewise.
25220         * modules/isnan-tests (configure.ac): Likewise.
25221         * modules/isnanl-tests (configure.ac): Likewise.
25222         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
25223         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
25224         tests on platforms where 'long double' is the same as 'double'.
25225         * tests/test-isinf.c (test_isinfl): Likewise.
25226         * tests/test-isnan.c (test_long_double): Likewise.
25227         * tests/test-isnanl.h (main): Likewise.
25229 2011-10-08  Bruno Haible  <bruno@clisp.org>
25231         Tests for module 'tanhf'.
25232         * modules/tanhf-tests: New file.
25233         * tests/test-tanhf.c: New file.
25235         New module 'tanhf'.
25236         * lib/math.in.h (tanhf): New declaration.
25237         * lib/tanhf.c: New file.
25238         * m4/tanhf.m4: New file.
25239         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
25240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
25241         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
25242         * modules/tanhf: New file.
25243         * tests/test-math-c++.cc: Check the declaration of tanhf.
25244         * doc/posix-functions/tanhf.texi: Mention the new module.
25246         tanh: Use a .m4 file.
25247         * m4/tanh.m4: New file.
25248         * modules/tanh (Files): Add it.
25249         (configure.ac): Just invoke gl_FUNC_TANH.
25251 2011-10-08  Bruno Haible  <bruno@clisp.org>
25253         Tests for module 'coshf'.
25254         * modules/coshf-tests: New file.
25255         * tests/test-coshf.c: New file.
25257         New module 'coshf'.
25258         * lib/math.in.h (coshf): New declaration.
25259         * lib/coshf.c: New file.
25260         * m4/coshf.m4: New file.
25261         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
25262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
25263         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
25264         * modules/coshf: New file.
25265         * tests/test-math-c++.cc: Check the declaration of coshf.
25266         * doc/posix-functions/coshf.texi: Mention the new module.
25268         cosh: Use a .m4 file.
25269         * m4/cosh.m4: New file.
25270         * modules/cosh (Files): Add it.
25271         (configure.ac): Just invoke gl_FUNC_COSH.
25273 2011-10-08  Bruno Haible  <bruno@clisp.org>
25275         Tests for module 'sinhf'.
25276         * modules/sinhf-tests: New file.
25277         * tests/test-sinhf.c: New file.
25279         New module 'sinhf'.
25280         * lib/math.in.h (sinhf): New declaration.
25281         * lib/sinhf.c: New file.
25282         * m4/sinhf.m4: New file.
25283         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
25284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
25285         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
25286         * modules/sinhf: New file.
25287         * tests/test-math-c++.cc: Check the declaration of sinhf.
25288         * doc/posix-functions/sinhf.texi: Mention the new module.
25290         sinh: Use a .m4 file.
25291         * m4/sinh.m4: New file.
25292         * modules/sinh (Files): Add it.
25293         (configure.ac): Just invoke gl_FUNC_SINH.
25295 2011-10-08  Bruno Haible  <bruno@clisp.org>
25297         Tests for module 'atan2f'.
25298         * modules/atan2f-tests: New file.
25299         * tests/test-atan2f.c: New file.
25301         New module 'atan2f'.
25302         * lib/math.in.h (atan2f): New declaration.
25303         * lib/atan2f.c: New file.
25304         * m4/atan2f.m4: New file.
25305         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
25306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
25307         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
25308         * modules/atan2f: New file.
25309         * tests/test-math-c++.cc: Check the declaration of atan2f.
25310         * doc/posix-functions/atan2f.texi: Mention the new module.
25312         atan2: Use a .m4 file.
25313         * m4/atan2.m4: New file.
25314         * modules/atan2 (Files): Add it.
25315         (configure.ac): Just invoke gl_FUNC_ATAN2.
25317 2011-10-08  Bruno Haible  <bruno@clisp.org>
25319         Tests for module 'atanf'.
25320         * modules/atanf-tests: New file.
25321         * tests/test-atanf.c: New file.
25323         New module 'atanf'.
25324         * lib/math.in.h (atanf): New declaration.
25325         * lib/atanf.c: New file.
25326         * m4/atanf.m4: New file.
25327         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
25328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
25329         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
25330         * modules/atanf: New file.
25331         * tests/test-math-c++.cc: Check the declaration of atanf.
25332         * doc/posix-functions/atanf.texi: Mention the new module.
25334         atan: Use a .m4 file.
25335         * m4/atan.m4: New file.
25336         * modules/atan (Files): Add it.
25337         (configure.ac): Just invoke gl_FUNC_ATAN.
25339 2011-10-08  Bruno Haible  <bruno@clisp.org>
25341         Tests for module 'acosf'.
25342         * modules/acosf-tests: New file.
25343         * tests/test-acosf.c: New file.
25345         New module 'acosf'.
25346         * lib/math.in.h (acosf): New declaration.
25347         * lib/acosf.c: New file.
25348         * m4/acosf.m4: New file.
25349         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
25350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
25351         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
25352         * modules/acosf: New file.
25353         * tests/test-math-c++.cc: Check the declaration of acosf.
25354         * doc/posix-functions/acosf.texi: Mention the new module.
25356         acos: Use a .m4 file.
25357         * m4/acos.m4: New file.
25358         * modules/acos (Files): Add it.
25359         (configure.ac): Just invoke gl_FUNC_ACOS.
25361 2011-10-08  Bruno Haible  <bruno@clisp.org>
25363         Tests for module 'asinf'.
25364         * modules/asinf-tests: New file.
25365         * tests/test-asinf.c: New file.
25367         New module 'asinf'.
25368         * lib/math.in.h (asinf): New declaration.
25369         * lib/asinf.c: New file.
25370         * m4/asinf.m4: New file.
25371         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
25372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
25373         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
25374         * modules/asinf: New file.
25375         * tests/test-math-c++.cc: Check the declaration of asinf.
25376         * doc/posix-functions/asinf.texi: Mention the new module.
25378         asin: Use a .m4 file.
25379         * m4/asin.m4: New file.
25380         * modules/asin (Files): Add it.
25381         (configure.ac): Just invoke gl_FUNC_ASIN.
25383 2011-10-08  Bruno Haible  <bruno@clisp.org>
25385         Tests for module 'tanf'.
25386         * modules/tanf-tests: New file.
25387         * tests/test-tanf.c: New file.
25389         New module 'tanf'.
25390         * lib/math.in.h (tanf): New declaration.
25391         * lib/tanf.c: New file.
25392         * m4/tanf.m4: New file.
25393         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
25394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
25395         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
25396         * modules/tanf: New file.
25397         * tests/test-math-c++.cc: Check the declaration of tanf.
25398         * doc/posix-functions/tanf.texi: Mention the new module.
25400         tan: Use a .m4 file.
25401         * m4/tan.m4: New file.
25402         * modules/tan (Files): Add it.
25403         (configure.ac): Just invoke gl_FUNC_TAN.
25405 2011-10-08  Bruno Haible  <bruno@clisp.org>
25407         Tests for module 'cosf'.
25408         * modules/cosf-tests: New file.
25409         * tests/test-cosf.c: New file.
25411         New module 'cosf'.
25412         * lib/math.in.h (cosf): New declaration.
25413         * lib/cosf.c: New file.
25414         * m4/cosf.m4: New file.
25415         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
25416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
25417         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
25418         * modules/cosf: New file.
25419         * tests/test-math-c++.cc: Check the declaration of cosf.
25420         * doc/posix-functions/cosf.texi: Mention the new module.
25422         cos: Use a .m4 file.
25423         * m4/cos.m4: New file.
25424         * modules/cos (Files): Add it.
25425         (configure.ac): Just invoke gl_FUNC_COS.
25427 2011-10-08  Bruno Haible  <bruno@clisp.org>
25429         Tests for module 'sinf'.
25430         * modules/sinf-tests: New file.
25431         * tests/test-sinf.c: New file.
25433         New module 'sinf'.
25434         * lib/math.in.h (sinf): New declaration.
25435         * lib/sinf.c: New file.
25436         * m4/sinf.m4: New file.
25437         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
25438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
25439         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
25440         * modules/sinf: New file.
25441         * tests/test-math-c++.cc: Check the declaration of sinf.
25442         * doc/posix-functions/sinf.texi: Mention the new module.
25444         sin: Use a .m4 file.
25445         * m4/sin.m4: New file.
25446         * modules/sin (Files): Add it.
25447         (configure.ac): Just invoke gl_FUNC_SIN.
25449 2011-10-08  Bruno Haible  <bruno@clisp.org>
25451         Tests for module 'powf'.
25452         * modules/powf-tests: New file.
25453         * tests/test-powf.c: New file.
25455         New module 'powf'.
25456         * lib/math.in.h (powf): New declaration.
25457         * lib/powf.c: New file.
25458         * m4/powf.m4: New file.
25459         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
25460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
25461         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
25462         * modules/powf: New file.
25463         * tests/test-math-c++.cc: Check the declaration of powf.
25464         * doc/posix-functions/powf.texi: Mention the new module.
25466         pow: Use a .m4 file.
25467         * m4/pow.m4: New file.
25468         * modules/pow (Files): Add it.
25469         (configure.ac): Just invoke gl_FUNC_POW.
25471 2011-10-08  Bruno Haible  <bruno@clisp.org>
25473         Tests for module 'log10f'.
25474         * modules/log10f-tests: New file.
25475         * tests/test-log10f.c: New file.
25477         New module 'log10f'.
25478         * lib/math.in.h (log10f): New declaration.
25479         * lib/log10f.c: New file.
25480         * m4/log10f.m4: New file.
25481         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
25482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
25483         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
25484         * modules/log10f: New file.
25485         * tests/test-math-c++.cc: Check the declaration of log10f.
25486         * doc/posix-functions/log10f.texi: Mention the new module.
25488         log10: Use a .m4 file.
25489         * m4/log10.m4: New file.
25490         * modules/log10 (Files): Add it.
25491         (configure.ac): Just invoke gl_FUNC_LOG10.
25493 2011-10-08  Bruno Haible  <bruno@clisp.org>
25495         Tests for module 'logf'.
25496         * modules/logf-tests: New file.
25497         * tests/test-logf.c: New file.
25499         New module 'logf'.
25500         * lib/math.in.h (logf): New declaration.
25501         * lib/logf.c: New file.
25502         * m4/logf.m4: New file.
25503         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
25504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
25505         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
25506         * modules/logf: New file.
25507         * tests/test-math-c++.cc: Check the declaration of logf.
25508         * doc/posix-functions/logf.texi: Mention the new module.
25510         log: Use a .m4 file.
25511         * m4/log.m4: New file.
25512         * modules/log (Files): Add it.
25513         (configure.ac): Just invoke gl_FUNC_LOG.
25515 2011-10-08  Bruno Haible  <bruno@clisp.org>
25517         Tests for module 'expf'.
25518         * modules/expf-tests: New file.
25519         * tests/test-expf.c: New file.
25521         New module 'expf'.
25522         * lib/math.in.h (expf): New declaration.
25523         * lib/expf.c: New file.
25524         * m4/expf.m4: New file.
25525         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
25526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
25527         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
25528         * modules/expf: New file.
25529         * tests/test-math-c++.cc: Check the declaration of expf.
25530         * doc/posix-functions/expf.texi: Mention the new module.
25532         exp: Use a .m4 file.
25533         * m4/exp.m4: New file.
25534         * modules/exp (Files): Add it.
25535         (configure.ac): Just invoke gl_FUNC_EXP.
25537 2011-10-08  Bruno Haible  <bruno@clisp.org>
25539         Tests for module 'sqrtf'.
25540         * modules/sqrtf-tests: New file.
25541         * tests/test-sqrtf.c: New file.
25543         New module 'sqrtf'.
25544         * lib/math.in.h (sqrtf): New declaration.
25545         * lib/sqrtf.c: New file.
25546         * m4/sqrtf.m4: New file.
25547         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
25548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
25549         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
25550         * modules/sqrtf: New file.
25551         * tests/test-math-c++.cc: Check the declaration of sqrtf.
25552         * doc/posix-functions/sqrtf.texi: Mention the new module.
25554 2011-10-08  Bruno Haible  <bruno@clisp.org>
25556         Tests: Avoid link failures w.r.t. libintl.
25557         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
25558         $(LIBINTL).
25559         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
25560         $(LIBINTL).
25561         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
25562         against $(LIBINTL).
25563         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
25564         $(LIBINTL).
25565         * modules/openat-tests (Makefile.am): Link test-fchmodat against
25566         $(LIBINTL).
25567         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
25569 2011-10-08  Bruno Haible  <bruno@clisp.org>
25571         pow tests: Defeat compiler optimizations.
25572         * tests/test-pow.c (main): Assign arguments to x and y before use.
25574 2011-10-08  Bruno Haible  <bruno@clisp.org>
25576         gnulib-tool: Improve last commit.
25577         * gnulib-tool (func_modules_transitive_closure): Simplify code.
25578         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
25579         ignore dependencies that are not among the modules list.
25581 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
25583         gnulib-tool: don't follow dependencies to avoided modules
25584         This fixes a bug that is related to the previous one.
25585         * gnulib-tool (func_modules_transitive_closure)
25586         (func_emit_autoconf_snippets):
25587         Check whether a dependency is acceptable before using it.
25588         (--extract-dependencies): Report an error if --avoid is also used,
25589         since this combination of options is not yet supported.
25591         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
25592         Problem reported by Peter Dyballa in
25593         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
25594         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
25595         when echoing "$condition".
25597 2011-10-07  Bruno Haible  <bruno@clisp.org>
25599         Fix documentation about math functions on MacOS X.
25600         * doc/posix-functions/exp2.texi: Don't say the function is missing on
25601         MacOS X 10.5.
25602         * doc/posix-functions/fdim.texi: Likewise.
25603         * doc/posix-functions/feclearexcept.texi: Likewise.
25604         * doc/posix-functions/fegetenv.texi: Likewise.
25605         * doc/posix-functions/fegetround.texi: Likewise.
25606         * doc/posix-functions/feholdexcept.texi: Likewise.
25607         * doc/posix-functions/feraiseexcept.texi: Likewise.
25608         * doc/posix-functions/fesetenv.texi: Likewise.
25609         * doc/posix-functions/fesetround.texi: Likewise.
25610         * doc/posix-functions/fetestexcept.texi: Likewise.
25611         * doc/posix-functions/feupdateenv.texi: Likewise.
25612         * doc/posix-functions/fmax.texi: Likewise.
25613         * doc/posix-functions/fmin.texi: Likewise.
25614         * doc/posix-functions/log2.texi: Likewise.
25615         * doc/posix-functions/modff.texi: Likewise.
25616         * doc/posix-functions/nan.texi: Likewise.
25617         * doc/posix-functions/nanf.texi: Likewise.
25618         * doc/posix-functions/nextafterf.texi: Likewise.
25619         * doc/posix-functions/remquo.texi: Likewise.
25621 2011-10-07  Bruno Haible  <bruno@clisp.org>
25623         modff: Drop assumption about library that defines modff.
25624         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
25625         AC_CHECK_FUNCS.
25626         * modules/modff (Files): Add m4/mathfunc.m4.
25628 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
25630         raise tests: Avoid a GCC warning.
25631         * tests/test-raise.c (handler): Use _Noreturn.
25633 2011-10-07  Bruno Haible  <bruno@clisp.org>
25635         Tests for module 'ldexpf'.
25636         * modules/ldexpf-tests: New file.
25637         * tests/test-ldexpf.c: New file.
25639         New module 'ldexpf'.
25640         * lib/math.in.h (ldexpf): New declaration.
25641         * lib/ldexpf.c: New file.
25642         * m4/ldexpf.m4: New file.
25643         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
25644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
25645         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
25646         * modules/ldexpf: New file.
25647         * tests/test-math-c++.cc: Check the declaration of ldexpf.
25648         * doc/posix-functions/ldexpf.texi: Mention the new module.
25650 2011-10-06  Bruno Haible  <bruno@clisp.org>
25652         frexpf: Work around problems on IRIX and mingw.
25653         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
25654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
25655         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
25656         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
25657         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
25658         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
25659         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
25661 2011-10-06  Bruno Haible  <bruno@clisp.org>
25663         fabsf: Drop assumption about library that defines fabsf.
25664         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
25665         AC_CHECK_FUNCS.
25666         * modules/fabsf (Files): Add m4/mathfunc.m4.
25668 2011-10-06  Bruno Haible  <bruno@clisp.org>
25670         frexpf: Drop assumption about library that defines frexpf.
25671         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
25672         'int *', 'float *', 'long double *', 'float', 'long double'.
25673         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
25674         AC_CHECK_FUNCS.
25675         * modules/frexpf (Files): Add m4/mathfunc.m4.
25677         Tests for module 'frexpf'.
25678         * modules/frexpf-tests: New file.
25679         * tests/test-frexpf.c: New file.
25681         New module 'frexpf'.
25682         * lib/math.in.h (frexpf): New declaration.
25683         * lib/frexpf.c: New file.
25684         * m4/frexpf.m4: New file.
25685         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
25686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
25687         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
25688         * modules/frexpf: New file.
25689         * tests/test-math-c++.cc: Check the declaration of frexpf.
25690         * doc/posix-functions/frexpf.texi: Mention the new module.
25692 2011-10-06  Bruno Haible  <bruno@clisp.org>
25694         math: Sort function declarations of math.in.h.
25695         * lib/math.in.h (frexp, logb): Move declarations.
25697 2011-10-05  Bruno Haible  <bruno@clisp.org>
25699         Tests for module 'modff'.
25700         * modules/modff-tests: New file.
25701         * tests/test-modff.c: New file.
25703         New module 'modff'.
25704         * lib/math.in.h (modff): New declaration.
25705         * lib/modff.c: New file.
25706         * m4/modff.m4: New file.
25707         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
25708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
25709         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
25710         * modules/modff: New file.
25711         * tests/test-math-c++.cc: Check the declaration of modff.
25712         * doc/posix-functions/modff.texi: Mention the new module.
25714         modf tests: Make test sharper.
25715         * tests/test-modf.c (main): Strengthen upper bound.
25717         modf: Use a .m4 file.
25718         * m4/modf.m4: New file.
25719         * modules/modf (Files): Add it.
25720         (configure.ac): Just invoke gl_FUNC_MODF.
25722 2011-10-05  Bruno Haible  <bruno@clisp.org>
25724         Tests for module 'fmodf'.
25725         * modules/fmodf-tests: New file.
25726         * tests/test-fmodf.c: New file.
25728         New module 'fmodf'.
25729         * lib/math.in.h (fmodf): New declaration.
25730         * lib/fmodf.c: New file.
25731         * m4/fmodf.m4: New file.
25732         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
25733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
25734         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
25735         * modules/fmodf: New file.
25736         * tests/test-math-c++.cc: Check the declaration of fmodf.
25737         * doc/posix-functions/fmodf.texi: Mention the new module.
25739         fmod: Use a .m4 file.
25740         * m4/fmod.m4: New file.
25741         * modules/fmod (Files): Add it.
25742         (configure.ac): Just invoke gl_FUNC_FMOD.
25744 2011-10-05  Bruno Haible  <bruno@clisp.org>
25746         Tests for module 'fabsf'.
25747         * modules/fabsf-tests: New file.
25748         * tests/test-fabsf.c: New file.
25750         New module 'fabsf'.
25751         * lib/math.in.h (fabsf): New declaration.
25752         * lib/fabsf.c: New file.
25753         * m4/fabsf.m4: New file.
25754         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
25755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
25756         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
25757         * modules/fabsf: New file.
25758         * tests/test-math-c++.cc: Check the declaration of fabsf.
25759         * doc/posix-functions/fabsf.texi: Mention the new module.
25761         fabs: Use a .m4 file.
25762         * m4/fabs.m4: New file.
25763         * modules/fabs (Files): Add it.
25764         (configure.ac): Just invoke gl_FUNC_FABS.
25766 2011-10-05  Jim Meyering  <meyering@redhat.com>
25768         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
25769         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
25770         ls -lL regression introduced in coreutils-8.12, it does so at the
25771         cost of an additional stat call in the common case.  Besides, now
25772         that the kernel change that prompted commit 95f7c57f has been reverted
25773         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
25774         we have no use for commit 95f7c57f, "file-has-acl: use
25775         acl_extended_file_nofollow if available".
25777 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
25779         file-has-acl: revert unintended change in behavior of ls -L
25780         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
25781         derived from...
25782         (file_has_acl): ...code here.  Call it.
25783         This problem was introduced with 2011-07-22 commit 95f7c57f,
25784         "file-has-acl: use acl_extended_file_nofollow if available".
25785         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
25787 2011-10-03  Bruno Haible  <bruno@clisp.org>
25789         poll: Avoid link errors on MSVC.
25790         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
25791         * modules/poll (Depends-on): Add sockets.
25792         (Link): New section.
25793         * NEWS: Mention the change.
25794         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
25795         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
25796         $(LIB_POLL) instead of $(LIBSOCKET).
25798 2011-10-03  Bruno Haible  <bruno@clisp.org>
25800         sys_select tests: Fix link error on MSVC 9.
25801         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
25802         with $(LIB_SELECT) instead of $(LIBSOCKET).
25804 2011-10-03  Bruno Haible  <bruno@clisp.org>
25806         sys_select: Fix compilation error on mingw.
25807         * lib/sys_select.in.h: On native Windows, include <io.h>.
25809 2011-10-03  Bruno Haible  <bruno@clisp.org>
25811         wmemset: Support for MSVC.
25812         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
25813         whether wmemset() exists.
25815 2011-10-03  Bruno Haible  <bruno@clisp.org>
25817         wmemmove: Support for MSVC.
25818         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
25819         whether wmemmove() exists.
25821 2011-10-03  Bruno Haible  <bruno@clisp.org>
25823         wmemcpy: Support for MSVC.
25824         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
25825         whether wmemcpy() exists.
25827 2011-10-03  Bruno Haible  <bruno@clisp.org>
25829         wmemcmp: Support for MSVC.
25830         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
25831         whether wmemcmp() exists.
25833 2011-10-03  Bruno Haible  <bruno@clisp.org>
25835         wmemchr: Support for MSVC.
25836         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
25837         whether wmemchr() exists.
25839 2011-10-03  Bruno Haible  <bruno@clisp.org>
25841         glthread/*, strsignal: Support for MSVC.
25842         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
25843         including <winsock.h> on MSVC 9.
25844         * lib/glthread/lock.h: Likewise.
25845         * lib/glthread/thread.h: Likewise.
25846         * lib/glthread/tls.h: Likewise.
25847         * lib/glthread/yield.h: Likewise.
25848         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
25849         if HAVE_UNISTD_H is false.
25850         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
25852 2011-10-03  Bruno Haible  <bruno@clisp.org>
25854         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
25855         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
25856         Set to 100000.
25858 2011-10-03  Bruno Haible  <bruno@clisp.org>
25860         acl: Fix specification.
25861         * lib/file-has-acl.c (file_has_acl): Fix specification.
25863 2011-10-03  Bruno Haible  <bruno@clisp.org>
25865         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
25866         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
25867         (compute_curr_prefix, shared_library_fullname,
25868         find_shared_library_fullname, get_shared_library_fullname, relocate):
25869         Use it together with PIC && INSTALLDIR.
25870         Reported by <jojelino@gmail.com>
25871         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
25873 2011-10-01  Jim Meyering  <meyering@redhat.com>
25875         maint.mk: adjust a release-related rule not to require use of gzip
25876         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
25877         Instead, check each file in $(DIST_ARCHIVES).  This is better for
25878         projects that build only .tar.xz files.  Also fix an erroneous test.
25880         test-linkat: don't leave behind a temporary file
25881         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
25882         Otherwise, coreutils' "make distcheck" would fail with this:
25883           Only in /c/cu/tests/torture/coreutils/test/\
25884             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
25885           make[2]: *** [my-distcheck] Error 1
25887         float, math: add omitted file
25888         * lib/itold.c: Add file, required for yesterday's float change.
25890 2011-10-01  Bruno Haible  <bruno@clisp.org>
25892         isinf: Fix for OpenBSD/x86.
25893         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
25894         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
25895         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
25897 2011-10-01  Bruno Haible  <bruno@clisp.org>
25899         isfinite: Fix syntax error in configure test.
25900         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
25902         isfinite: Fix typo.
25903         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
25904         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
25906 2011-10-01  Bruno Haible  <bruno@clisp.org>
25908         nonblocking tests: Fix test failure on Linux/IA-64.
25909         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
25910         Set to 270000.
25912 2011-10-01  Bruno Haible  <bruno@clisp.org>
25914         mkfifoat tests: Fix a test failure on mingw.
25915         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
25916         with error ENOSYS.
25918 2011-09-30  Bruno Haible  <bruno@clisp.org>
25920         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
25921         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
25922         'long double'. Set REPLACE_ITOLD.
25923         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
25924         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
25925         * lib/itold.c: New file.
25926         * modules/float (Files): Add lib/itold.c.
25927         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
25928         (Makefile.am): Substitute REPLACE_ITOLD.
25929         * modules/math (Depends-on): Add float.
25930         (Makefile.am): Substitute REPLACE_ITOLD.
25931         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
25932         * doc/posix-headers/math.texi: Likewise.
25933         * doc/posix-functions/logl.texi: Likewise.
25935 2011-09-30  Bruno Haible  <bruno@clisp.org>
25937         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
25938         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
25939         Set to 140000.
25941 2011-09-30  Bruno Haible  <bruno@clisp.org>
25943         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
25944         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
25945         invocation, say "right after AC_PROG_CC_STDC", not "right after
25946         AC_PROG_CC".
25947         Reported by Gary V. Vaughan <gary@gnu.org>.
25949 2011-09-30  Bruno Haible  <bruno@clisp.org>
25951         Centralize C99 requirement.
25952         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
25953         * modules/stdarg (configure.ac-early): Invoke it instead of
25954         AC_PROG_CC_STDC.
25955         Reported by Gary V. Vaughan and Paul Eggert.
25957 2011-09-29  Bruno Haible  <bruno@clisp.org>
25959         float: Fix LDBL_MAX value on Linux/PowerPC.
25960         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
25961         on Linux/PowerPC.
25962         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
25963         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
25964         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
25965         platform.
25966         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
25968 2011-09-29  Bruno Haible  <bruno@clisp.org>
25970         doc: Improve doc about gl_EARLY.
25971         * doc/gnulib-tool.texi (Initial import): Mention where to place an
25972         AC_PROG_CC_STDC invocation.
25973         Reported by Gary V. Vaughan <gary@gnu.org>.
25975 2011-09-28  Bruno Haible  <bruno@clisp.org>
25977         fgetc, fputc, fread, fwrite tests: Fix link error.
25978         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
25979         on non-MSVC platforms.
25980         * tests/test-fputc.c (main): Likewise.
25981         * tests/test-fread.c (main): Likewise.
25982         * tests/test-fwrite.c (main): Likewise.
25983         Reported by Jim Meyering.
25985 2011-09-27  Bruno Haible  <bruno@clisp.org>
25987         fputc, fwrite tests: Avoid test failure on MSVC.
25988         * tests/test-fgetc.c: Include msvc-inval.h.
25989         (main): Invoke gl_msvc_inval_ensure_handler.
25990         * tests/test-fputc.c: Include msvc-inval.h.
25991         (main): Invoke gl_msvc_inval_ensure_handler.
25992         * tests/test-fread.c: Include msvc-inval.h.
25993         (main): Invoke gl_msvc_inval_ensure_handler.
25994         * tests/test-fwrite.c: Include msvc-inval.h.
25995         (main): Invoke gl_msvc_inval_ensure_handler.
25996         * modules/fgetc-tests (Depends-on): Add msvc-inval.
25997         * modules/fputc-tests (Depends-on): Likewise.
25998         * modules/fread-tests (Depends-on): Likewise.
25999         * modules/fwrite-tests (Depends-on): Likewise.
26001 2011-09-27  Bruno Haible  <bruno@clisp.org>
26003         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
26004         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
26005         (raise): Remove older, duplicated declaration.
26006         (_gl_raise_SIGPIPE): New declaration.
26007         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
26008         (rpl_raise): Remove function.
26009         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
26010         a gnulib-defined SIGPIPE here.
26011         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
26012         'sigprocmask' has detected missing signal-blocking and the module
26013         'sigpipe' is enabled.
26014         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26016 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
26018         base64-tests: avoid memory leak
26019         * tests/test-base64.c (main): Plug memory leak.
26021         base32: new module
26022         * modules/base32: New module.
26023         * lib/base32.c: New file.
26024         * lib/base32.h: Likewise.
26025         * m4/base32.m4: Likewise.
26026         * modules/base32-tests: New test.
26027         * tests/test-base32.c: Likewise.
26028         * MODULES.html.sh (Misc): Mention it.
26030 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26032         gnulib: use more-standard license notice wording
26033         * gnulib-tool (func_emit_copyright_notice): When emitting a
26034         license notice into a file, use the standard wording as suggested
26035         by the current information for GNU maintainers, except say "file"
26036         rather than "program".  The new wording gives a license version
26037         number, which addresses an issue raised by Glenn Morris in
26038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
26039         * m4/onceonly.m4: Use that same wording here, too.
26041         dup2: minor simplification
26042         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
26043         as lib/dup2.c no longer uses 'inline'.
26045 2011-09-25  Bruno Haible  <bruno@clisp.org>
26047         strings: Fix compilation error on MSVC.
26048         * lib/strings.in.h: Include <stddef.h> for size_t.
26050 2011-09-25  Bruno Haible  <bruno@clisp.org>
26052         fflush et al.: Document limitation on MSVC.
26053         * doc/posix-functions/fflush.texi: Document possible crash in handling
26054         mode other than DEFAULT_HANDLING.
26055         * doc/posix-functions/fgetc.texi: Likewise.
26056         * doc/posix-functions/fputc.texi: Likewise.
26057         * doc/posix-functions/fread.texi: Likewise.
26058         * doc/posix-functions/fwrite.texi: Likewise.
26060 2011-09-25  Bruno Haible  <bruno@clisp.org>
26062         msvc-inval: Allow three invalid parameter handling modes.
26063         * lib/msvc-inval.h: Don't include <stdlib.h> here.
26064         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
26065         macros.
26066         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
26067         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
26068         SANE_LIBRARY_HANDLING as a no-op.
26069         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
26070         <stdlib.h>.
26071         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
26073 2011-09-25  Bruno Haible  <bruno@clisp.org>
26075         msvc-inval: Make handler multithread-safe.
26076         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
26077         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
26078         declarations.
26079         (gl_msvc_inval_current): New declaration.
26080         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
26081         Operate on the structure returned by gl_msvc_inval_current().
26082         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
26083         Remove varaiables.
26084         (tls_index, tls_initialized): New variables.
26085         (not_per_thread): New variable.
26086         (gl_msvc_inval_current): New function.
26087         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
26088         returned by gl_msvc_inval_current().
26090 2011-09-25  Bruno Haible  <bruno@clisp.org>
26092         msvc-inval: Install handler globally.
26093         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
26094         !_MSC_VER.
26095         (gl_msvc_invalid_parameter_handler): Remove declaration.
26096         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
26097         declarations.
26098         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
26099         Install the handler globally, don't uninstall it.
26100         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
26101         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
26102         currently valid, call RaiseException instead.
26103         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
26104         for !_MSC_VER.
26106 2011-09-25  Bruno Haible  <bruno@clisp.org>
26108         strerror_r-posix: Fix for MSVC 9.
26109         * lib/strerror_r.c (local_snprintf): New function.
26110         (snprintf): Define to local_snprintf, not to _snprintf.
26112 2011-09-25  Bruno Haible  <bruno@clisp.org>
26114         ftruncate: Support for MSVC 9.
26115         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
26116         (chsize_nothrow): New function.
26117         (chsize): Redefine as a macro.
26118         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
26119         * modules/ftruncate (Depends-on): Add msvc-inval.
26121 2011-09-25  Bruno Haible  <bruno@clisp.org>
26123         New module 'fstat'.
26124         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
26125         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
26126         * lib/fchdir.c (rpl_fstat): Remove function.
26127         * m4/fstat.m4: New file.
26128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
26129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
26130         declared.
26131         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
26132         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
26133         * modules/fstat: New file.
26134         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
26135         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
26136         is set.
26137         * doc/posix-functions/fstat.texi: Mention the new module and the
26138         problem on MSVC.
26139         * NEWS: Mention the change.
26140         * modules/acl (Depends-on): Add fstat.
26141         * modules/chdir-safer (Depends-on): Likewise.
26142         * modules/chown (Depends-on): Likewise.
26143         * modules/copy-file (Depends-on): Likewise.
26144         * modules/fchdir (Depends-on): Likewise.
26145         * modules/fdopendir (Depends-on): Likewise.
26146         * modules/fopen (Depends-on): Likewise.
26147         * modules/fts (Depends-on): Likewise.
26148         * modules/getcwd (Depends-on): Likewise.
26149         * modules/isapipe (Depends-on): Likewise.
26150         * modules/linkat (Depends-on): Likewise.
26151         * modules/lseek (Depends-on): Likewise.
26152         * modules/mkdir-p (Depends-on): Likewise.
26153         * modules/open (Depends-on): Likewise.
26154         * modules/openat (Depends-on): Likewise.
26155         * modules/read-file (Depends-on): Likewise.
26156         * modules/renameat (Depends-on): Likewise.
26157         * modules/utimens (Depends-on): Likewise.
26159 2011-09-25  Bruno Haible  <bruno@clisp.org>
26161         linkat: Fix compilation on MSVC 9.
26162         * lib/linkat.c: Don't include <stdint.h>.
26164 2011-09-25  Bruno Haible  <bruno@clisp.org>
26166         fclose: Support for MSVC 9.
26167         * lib/fclose.c: Include msvc-inval.h.
26168         (fclose_nothrow): New function.
26169         (rpl_fclose): Use it.
26170         * modules/fclose (Depends-on): Add msvc-inval.
26171         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
26173 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26175         dup2: minor simplifications
26176         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
26177         that it's a performance win.
26178         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
26179         ! defined __CYGWIN__)" to "ifdef F_GETFL".
26181 2011-09-24  Jim Meyering  <meyering@redhat.com>
26183         test-futimens: avoid a warning from gcc -Wshadow
26184         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
26185         to avoid a shadowing warning.
26187 2011-09-24  Bruno Haible  <bruno@clisp.org>
26189         fdopen: Support for MSVC 9.
26190         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
26191         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
26192         * lib/fdopen.c: Include msvc-inval.h.
26193         (fdopen_nothrow): New function.
26194         (rpl_fdopen): Use it.
26195         * modules/fdopen (Depends-on): Add msvc-inval.
26196         * modules/fclose-tests (Depends-on): Add fdopen.
26197         * modules/fflush-tests (Depends-on): Likewise.
26198         * modules/fgetc-tests (Depends-on): Likewise.
26199         * modules/fputc-tests (Depends-on): Likewise.
26200         * modules/fread-tests (Depends-on): Likewise.
26201         * modules/freopen-tests (Depends-on): Likewise.
26202         * modules/fseeko-tests (Depends-on): Likewise.
26203         * modules/ftello-tests (Depends-on): Likewise.
26204         * modules/fwrite-tests  (Depends-on): Likewise.
26205         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
26207 2011-09-24  Bruno Haible  <bruno@clisp.org>
26209         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
26210         * modules/fgetc-tests (Depends-on): Add unistd.
26211         * modules/fputc-tests (Depends-on): Likewise.
26212         * modules/fread-tests (Depends-on): Likewise.
26213         * modules/fwrite-tests (Depends-on): Likewise.
26215 2011-09-24  Bruno Haible  <bruno@clisp.org>
26217         dup: Simplify autoconf test.
26218         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
26219         on gl_MSVC_INVAL's result.
26221 2011-09-24  Bruno Haible  <bruno@clisp.org>
26223         Tests for function fwrite().
26224         * modules/fwrite-tests: New file.
26225         * tests/test-fwrite.c: New file.
26226         * modules/stdio-tests (Depends-on): Add fwrite-tests.
26228         Tests for function fread().
26229         * modules/fread-tests: New file.
26230         * tests/test-fread.c: New file.
26231         * modules/stdio-tests (Depends-on): Add fread-tests.
26233         Activate fputc tests.
26234         * modules/stdio-tests (Depends-on): Add fputc-tests.
26236         Enhance fgetc, fputc tests.
26237         * tests/test-fgetc.c (main): Also test the stream's error indicator.
26238         * tests/test-fputc.c (main): Likewise.
26240 2011-09-24  Bruno Haible  <bruno@clisp.org>
26242         write: Support for MSVC 9.
26243         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
26244         is not 1.
26245         * lib/write.c (write_nothrow): New function.
26246         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
26247         not 1. Use write_nothrow.
26248         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
26249         invalid parameter handler.
26250         (gl_PREREQ_WRITE): New macro.
26251         * modules/write (Depends-on): Add msvc-inval.
26252         (configure.ac): Invoke gl_PREREQ_WRITE.
26253         * doc/posix-functions/write.texi: Mention the problem on MSVC.
26255 2011-09-24  Bruno Haible  <bruno@clisp.org>
26257         read: Fix last commit.
26258         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
26260 2011-09-24  Bruno Haible  <bruno@clisp.org>
26262         dup2: Fix last commit.
26263         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
26264         (rpl_dup2): Disable fcntl workaround on native Windows.
26266         sigprocmask: Make code safer.
26267         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
26268         section that changes macro definitions for this compilation unit.
26270 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26272         dup2: clarify by coalescing Windows-specific material
26273         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
26274         "msvc-nothrow.h"' to the Windows-specific section, so that the
26275         Emacs source need not contain these include files.
26276         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
26277         Windows-specific fixes into this function rather than just the
26278         nothrow fix, as this shortens and clarifies the code.  Always
26279         define as a function, as that's a bit cleaner than having it be
26280         sometimes a function and sometimes a macro.
26281         (rpl_dup2): Move the Windows-specific stuff out of here and into
26282         ms_windows_dup2.  Don't protect the Haiku-related fix with
26283         "#if !defined __linux__", as the same code also works around
26284         a Linux kernel bug, and it doesn't add any system calls on any
26285         platform.  Add comment about FreeBSD 6.1.
26287         sigprocmask: move #include directive
26288         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
26289         Windows-specific section, so that the Emacs source need not
26290         contain msvc-inval.h.
26292 2011-09-23  Bruno Haible  <bruno@clisp.org>
26294         read: Support for MSVC 9.
26295         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
26296         is not 1.
26297         * lib/read.c (read_nothrow): New function.
26298         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
26299         read_nothrow.
26300         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
26301         invalid parameter handler.
26302         (gl_PREREQ_READ): New macro.
26303         * modules/read (Depends-on): Add msvc-inval.
26304         (configure.ac): Invoke gl_PREREQ_READ.
26305         * doc/posix-functions/read.texi: Mention the problem on MSVC.
26307 2011-09-23  Bruno Haible  <bruno@clisp.org>
26309         close: Support for MSVC 9.
26310         * lib/close.c: Include <errno.h>, msvc-inval.h.
26311         (close_nothrow): New function.
26312         (rpl_close): Use it.
26313         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
26314         invalid parameter handler.
26315         * modules/close (Depends-on): Add msvc-inval.
26316         * modules/dup2-tests (Depends-on): Add close.
26317         * modules/dup3-tests (Depends-on): Likewise.
26318         * modules/fcntl-tests (Depends-on): Likewise.
26319         * modules/spawn-pipe-tests (Depends-on): Likewise.
26320         * modules/unistd-safer-tests (Depends-on): Likewise.
26321         * doc/posix-functions/close.texi: Mention the problem on MSVC.
26323 2011-09-23  Bruno Haible  <bruno@clisp.org>
26325         New module 'dup'.
26326         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
26327         Allow replacement.
26328         * lib/dup.c: New file.
26329         * lib/fchdir.c (rpl_dup): Remove function.
26330         * m4/dup.m4: New file.
26331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
26332         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
26333         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
26334         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
26335         * modules/dup: New file.
26336         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
26337         'dup' module is in use.
26338         * modules/fdopendir (Depends-on): Add dup.
26339         * modules/fdutimensat-tests (Depends-on): Likewise.
26340         * modules/fts (Depends-on): Likewise.
26341         * modules/futimens-tests (Depends-on): Likewise.
26342         * modules/posix_spawnp-tests (Depends-on): Likewise.
26343         * modules/unistd-safer-tests (Depends-on): Likewise.
26344         * modules/utimens-tests (Depends-on): Likewise.
26345         * doc/posix-functions/dup.texi: Mention the new module and the problem
26346         on MSVC.
26348 2011-09-23  Bruno Haible  <bruno@clisp.org>
26350         getdtablesize: Support for MSVC 9.
26351         * lib/getdtablesize.c: Include msvc-inval.h.
26352         (_setmaxstdio_nothrow): New function.
26353         (_setmaxstdio): Redefine it.
26354         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
26355         * modules/getdtablesize (Depends-on): Add msvc-inval.
26356         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
26358 2011-09-23  Bruno Haible  <bruno@clisp.org>
26360         signal-h: Rename from signal.
26361         * modules/signal-h: Renamed from modules/signal.
26362         * modules/pthread_sigmask (Depends-on): Update.
26363         * modules/raise (Depends-on): Likewise.
26364         * modules/sigaction (Depends-on): Likewise.
26365         * modules/sigpipe (Depends-on): Likewise.
26366         * modules/sigprocmask (Depends-on): Likewise.
26367         * modules/sys_select (Depends-on): Likewise.
26368         * modules/signal-h-tests: Renamed from modules/signal-tests.
26369         (Files, Depends-on, Makefile.am): Update.
26370         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
26371         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
26372         (Files, Makefile.am): Update.
26373         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
26374         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
26375         * modules/signal: New placeholder file.
26376         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
26377         * doc/posix-headers/signal.texi: Update.
26378         * NEWS: Mention the change.
26380 2011-09-23  Bruno Haible  <bruno@clisp.org>
26382         sigprocmask: Avoid crashes through signal() on MSVC 9.
26383         * lib/sigprocmask.c: Include msvc-inval.h.
26384         (signal_nothrow): New function.
26385         (signal): Redefine it.
26386         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
26387         * modules/sigprocmask (Depends-on): Add msvc-inval.
26388         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
26390 2011-09-23  Bruno Haible  <bruno@clisp.org>
26392         Tests for module 'raise'.
26393         * modules/raise-tests: New file.
26394         * tests/test-raise.c: New file.
26396         raise: Support for MSVC.
26397         * lib/signal.in.h (raise): New declaration.
26398         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
26399         for native Windows platforms.
26400         * m4/raise.m4: New file.
26401         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
26402         HAVE_RAISE, REPLACE_RAISE.
26403         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
26404         REPLACE_RAISE.
26405         * modules/raise (Status, Notice): Remove fields.
26406         (Files): Add m4/raise.m4.
26407         (Depends-on): Add signal, msvc-inval.
26408         (configure.ac): Use the common idioms.
26409         (Maintainer): Add me.
26410         * tests/test-signal-c++.cc: Check the signature of raise.
26411         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
26413 2011-09-23  Bruno Haible  <bruno@clisp.org>
26415         pipe2: Fix compilation on pre-C99 compilers.
26416         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
26418 2011-09-23  Bruno Haible  <bruno@clisp.org>
26420         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
26421         * lib/msvc-nothrow.h: New file.
26422         * lib/msvc-nothrow.c: New file.
26423         * m4/msvc-nothrow.m4: New file.
26424         * modules/msvc-nothrow: New file.
26425         * lib/dup2.c: Include msvc-nothrow.h.
26426         (rpl_dup2): No need to protect _get_osfhandle call here.
26427         * lib/accept4.c: Include msvc-nothrow.h.
26428         * lib/error.c: Likewise.
26429         * lib/fcntl.c: Likewise.
26430         * lib/lseek.c: Likewise.
26431         * lib/nonblocking.c: Likewise.
26432         * lib/poll.c: Likewise.
26433         * lib/read.c: Likewise.
26434         * lib/select.c: Likewise.
26435         * lib/sockets.h: Likewise.
26436         * lib/sockets.c: Likewise.
26437         * lib/stdio-read.c: Likewise.
26438         * lib/stdio-write.c: Likewise.
26439         * lib/write.c: Likewise.
26440         * lib/w32sock.h: Likewise.
26441         * lib/w32spawn.h: Likewise.
26442         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
26443         * lib/fsync.c: Likewise.
26444         * lib/isapipe.c: Likewise.
26445         * modules/dup2 (Depends-on): Add msvc-nothrow.
26446         * modules/accept4 (Depends-on): Likewise.
26447         * modules/error (Depends-on): Likewise.
26448         * modules/fcntl (Depends-on): Likewise.
26449         * modules/lseek (Depends-on): Likewise.
26450         * modules/nonblocking (Depends-on): Likewise.
26451         * modules/poll (Depends-on): Likewise.
26452         * modules/read (Depends-on): Likewise.
26453         * modules/select (Depends-on): Likewise.
26454         * modules/sockets (Depends-on): Likewise.
26455         * modules/sigpipe (Depends-on): Likewise.
26456         * modules/write (Depends-on): Likewise.
26457         * modules/accept (Depends-on): Likewise.
26458         * modules/bind (Depends-on): Likewise.
26459         * modules/connect (Depends-on): Likewise.
26460         * modules/gethostname (Depends-on): Likewise.
26461         * modules/getpeername (Depends-on): Likewise.
26462         * modules/getsockname (Depends-on): Likewise.
26463         * modules/getsockopt (Depends-on): Likewise.
26464         * modules/ioctl (Depends-on): Likewise.
26465         * modules/listen (Depends-on): Likewise.
26466         * modules/recv (Depends-on): Likewise.
26467         * modules/recvfrom (Depends-on): Likewise.
26468         * modules/send (Depends-on): Likewise.
26469         * modules/sendto (Depends-on): Likewise.
26470         * modules/setsockopt (Depends-on): Likewise.
26471         * modules/shutdown (Depends-on): Likewise.
26472         * modules/socket (Depends-on): Likewise.
26473         * modules/execute (Depends-on): Likewise.
26474         * modules/spawn-pipe (Depends-on): Likewise.
26475         * modules/flock (Depends-on): Likewise.
26476         * modules/fsync (Depends-on): Likewise.
26477         * modules/isapipe (Depends-on): Likewise.
26478         * tests/test-cloexec.c: Include msvc-nothrow.h.
26479         * tests/test-dup-safer.c: Likewise.
26480         * tests/test-dup2.c: Likewise.
26481         * tests/test-dup3.c: Likewise.
26482         * tests/test-fcntl.c: Likewise.
26483         * tests/test-pipe.c: Likewise.
26484         * tests/test-pipe2.c: Likewise.
26485         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
26486         * modules/unistd-safer-tests (Depends-on): Likewise.
26487         * modules/dup2-tests (Depends-on): Likewise.
26488         * modules/dup3-tests (Depends-on): Likewise.
26489         * modules/fcntl-tests (Depends-on): Likewise.
26490         * modules/pipe-posix-tests (Depends-on): Likewise.
26491         * modules/pipe2-tests (Depends-on): Likewise.
26493 2011-09-23  Bruno Haible  <bruno@clisp.org>
26495         dup2: Make code more maintainable.
26496         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
26497         (rpl_dup2): Use it.
26498         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
26499         * modules/dup2 (configure.ac): Invoke it.
26500         Reported by Paul Eggert.
26502 2011-09-23  Bruno Haible  <bruno@clisp.org>
26504         msvc-inval: Fix compilation error.
26505         * lib/msvc-inval.h: Include <excpt.h>.
26507 2011-09-23  Bruno Haible  <bruno@clisp.org>
26509         mkdir: Tweak for MSVC 9.
26510         * lib/sys_stat.in.h: Update comments.
26511         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
26513         Tests for module 'chdir'.
26514         * modules/chdir-tests: New file.
26515         * tests/test-chdir.c: New file.
26517         New module 'chdir'.
26518         * modules/chdir: New file.
26519         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
26520         (chdir): New declaration.
26521         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
26522         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
26523         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
26524         * tests/test-unistd-c++.cc: Check signature of chdir.
26525         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
26526         * modules/chdir-long (Depends-on): Add chdir.
26527         * modules/fchdir (Depends-on): Likewise.
26528         * modules/rename (Depends-on): Likewise.
26529         * modules/savewd (Depends-on): Likewise.
26531         rmdir: Support for mingw, MSVC 9.
26532         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
26533         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
26535         getcwd: Tweak for MSVC 9.
26536         * lib/unistd.in.h: Update comments.
26537         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
26539 2011-09-22  Bruno Haible  <bruno@clisp.org>
26541         strerror_r-posix: Avoid a link error on MSVC.
26542         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
26543         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
26545 2011-09-22  Bruno Haible  <bruno@clisp.org>
26547         select: Avoid link errors on MSVC.
26548         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
26549         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
26550         * modules/pselect (Link): Likewise.
26551         * NEWS: Mention the change.
26552         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
26553         test-select-stdin against $(LIB_SELECT).
26554         * modules/pselect-tests (Makefile.am): Link test-pselect against
26555         $(LIB_SELECT).
26557 2011-09-22  Bruno Haible  <bruno@clisp.org>
26559         select: Avoid compilation error on MSVC.
26560         * lib/select.c: Don't include <stdbool.h>.
26562 2011-09-21  Bruno Haible  <bruno@clisp.org>
26564         Consolidate all uses of PATH_MAX in *.m4 files.
26565         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
26566         macros.
26567         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
26568         and gl_PATHMAX_SNIPPET.
26569         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
26570         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26571         * modules/chdir-long (Files): Add m4/pathmax.m4.
26572         * modules/getcwd (Files): Likewise.
26574 2011-09-21  Bruno Haible  <bruno@clisp.org>
26576         ftruncate: Un-deprecate, concentrate on Win32 support.
26577         * modules/ftruncate (Status, Notice): Remove sections.
26578         (Depends-on): Add largefile.
26579         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
26580         non-mingw platforms.
26581         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
26582         include <io.h>.
26583         * modules/perror-tests (Depends-on): Add ftruncate.
26584         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
26585         'ftruncate' module.
26587 2011-09-21  Bruno Haible  <bruno@clisp.org>
26589         Add dependencies to new dirent related modules.
26590         * modules/opendir (Depends-on): Add closedir.
26591         * modules/getcwd (Depends-on): Add opendir, closedir.
26592         * modules/dirent-safer-tests (Depends-on): Likewise.
26593         * modules/fdopendir-tests (Depends-on): Likewise.
26594         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
26595         * modules/renameat-tests (Depends-on): Likewise.
26597 2011-09-21  Bruno Haible  <bruno@clisp.org>
26599         opendir: Avoid compilation error on mingw.
26600         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
26601         * modules/opendir (Depends-on): Add unistd.
26603 2011-09-21  Bruno Haible  <bruno@clisp.org>
26605         ftruncate tests: Avoid a test failure on mingw.
26606         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
26608 2011-09-21  Bruno Haible  <bruno@clisp.org>
26610         select tests: Avoid test failures on OSF/1 5.1 and mingw.
26611         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
26612         native Windows.
26614 2011-09-21  Bruno Haible  <bruno@clisp.org>
26616         New module 'fdopen'.
26617         * lib/stdio.in.h (fdopen): New declaration.
26618         * lib/fdopen.c: New file.
26619         * m4/fdopen.m4: New file.
26620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
26621         REPLACE_FDOPEN.
26622         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
26623         REPLACE_FDOPEN.
26624         * modules/fdopen: New file.
26625         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
26626         * tests/test-stdio-c++.cc: Check signature of fdopen.
26627         * doc/posix-functions/fdopen.texi: Mention the new module.
26629 2011-09-21  Bruno Haible  <bruno@clisp.org>
26631         unlockpt tests: Avoid test failure on NetBSD 5.1.
26632         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
26633         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
26635 2011-09-21  Bruno Haible  <bruno@clisp.org>
26637         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
26638         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
26639         * tests/test-getlogin_r.c (main): Likewise.
26641 2011-09-20  Bruno Haible  <bruno@clisp.org>
26643         time tests: Don't require pid_t.
26644         * doc/posix-headers/time.texi: Revert last change.
26645         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
26646         * tests/test-time.c: Comment out the check for pid_t.
26648 2011-09-20  Bruno Haible  <bruno@clisp.org>
26650         fsync tests: Avoid a test failure on mingw.
26651         * tests/test-fsync.c (main): Allow a failure with EIO.
26653 2011-09-20  Bruno Haible  <bruno@clisp.org>
26655         euidaccess: Update comments.
26656         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
26658 2011-09-20  Bruno Haible  <bruno@clisp.org>
26660         Ensure EBADF returns for socket functions on mingw.
26661         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
26662         descriptor is invalid.
26663         * lib/bind.c (rpl_bind): Likewise.
26664         * lib/connect.c (rpl_connect): Likewise.
26665         * lib/getpeername.c (rpl_getpeername): Likewise.
26666         * lib/getsockname.c (rpl_getsockname): Likewise.
26667         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26668         * lib/listen.c (rpl_listen): Likewise.
26669         * lib/recv.c (rpl_recv): Likewise.
26670         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26671         * lib/send.c (rpl_send): Likewise.
26672         * lib/sendto.c (rpl_sendto): Likewise.
26673         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26674         * lib/shutdown.c (rpl_shutdown): Likewise.
26676 2011-09-20  Bruno Haible  <bruno@clisp.org>
26678         select tests: EBADF tests.
26679         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
26680         test_bad_fd): New functions.
26681         (test_function): Invoke also test_bad_fd.
26683 2011-09-20  Bruno Haible  <bruno@clisp.org>
26685         Tests for module 'posix_spawn_file_actions_addopen.
26686         * modules/posix_spawn_file_actions_addopen-tests: New file.
26687         * tests/test-posix_spawn_file_actions_addopen.c: New file.
26689         Tests for module 'posix_spawn_file_actions_adddup2'.
26690         * modules/posix_spawn_file_actions_adddup2-tests: New file.
26691         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
26693         Tests for module 'posix_spawn_file_actions_addclose'.
26694         * modules/posix_spawn_file_actions_addclose-tests: New file.
26695         * tests/test-posix_spawn_file_actions_addclose.c: New file.
26697 2011-09-20  Bruno Haible  <bruno@clisp.org>
26699         Tests for module 'unlockpt'.
26700         * modules/unlockpt-tests: New file.
26701         * tests/test-unlockpt.c: New file.
26702         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
26704         Tests for module 'grantpt'.
26705         * modules/grantpt-tests: New file.
26706         * tests/test-grantpt.c: New file.
26707         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
26709 2011-09-20  Bruno Haible  <bruno@clisp.org>
26711         freopen tests: EBADF tests.
26712         * tests/test-freopen.c: Include errno.h, unistd.h.
26713         (main): Add tests for EBADF, commented out for the moment.
26715         fclose tests: EBADF tests.
26716         * tests/test-fclose.c (main): Add tests for EBADF.
26718         fflush tests: EBADF tests.
26719         * tests/test-fflush.c: Include errno.h, macros.h.
26720         (main): Add tests for EBADF.
26722         ftello tests: EBADF tests.
26723         * tests/test-ftello4.sh: New file.
26724         * tests/test-ftello4.c: New file.
26725         * modules/ftello-tests (Files): Add them.
26726         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
26728         fseeko tests: EBADF tests.
26729         * tests/test-fseeko4.sh: New file.
26730         * tests/test-fseeko4.c: New file.
26731         * modules/fseeko-tests (Files): Add them.
26732         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
26734         Tests for function fputc().
26735         * modules/fputc-tests: New file.
26736         * tests/test-fputc.c: New file.
26737         * modules/stdio-tests (Depends-on): Add fputc-tests.
26739         Tests for function fgetc().
26740         * modules/fgetc-tests: New file.
26741         * tests/test-fgetc.c: New file.
26742         * modules/stdio-tests (Depends-on): Add fgetc-tests.
26744         Tests for function fdopen().
26745         * modules/fdopen-tests: New file.
26746         * tests/test-fdopen.c: New file.
26747         * modules/stdio-tests (Depends-on): Add fdopen-tests.
26749         Tests for module 'vdprintf'.
26750         * modules/vdprintf-tests: New file.
26751         * tests/test-vdprintf.c: New file.
26753         Tests for module 'dprintf'.
26754         * modules/dprintf-tests: New file.
26755         * tests/test-dprintf.c: New file.
26757 2011-09-20  Bruno Haible  <bruno@clisp.org>
26759         Tests for module 'ioctl'.
26760         * modules/ioctl-tests: New file.
26761         * tests/test-ioctl.c: New file.
26763 2011-09-20  Bruno Haible  <bruno@clisp.org>
26765         fcntl tests: EBADF tests.
26766         * tests/test-fcntl.c (main): Add more tests for EBADF.
26768 2011-09-20  Bruno Haible  <bruno@clisp.org>
26770         utimensat tests: EBADF tests.
26771         * tests/test-utimensat.c (main): Add tests for EBADF.
26773         renameat tests: EBADF tests.
26774         * tests/test-renameat.c (main): Add tests for EBADF.
26776         mkfifoat tests: EBADF tests.
26777         * tests/test-mkfifoat.c (main): Add tests for EBADF.
26779         readlinkat tests: EBADF tests.
26780         * tests/test-readlinkat.c (main): Add tests for EBADF.
26782         symlinkat tests: EBADF tests.
26783         * tests/test-symlinkat.c (main): Add tests for EBADF.
26785         linkat tests: EBADF tests.
26786         * tests/test-linkat.c (main): Add tests for EBADF.
26788         Tests for module 'faccessat'.
26789         * modules/faccessat-tests: New file.
26790         * tests/test-faccessat.c: New file.
26792         fdopendir tests: EBADF tests.
26793         * tests/test-fdopendir.c (main): Add more tests for EBADF.
26795         openat tests: EBADF tests.
26796         * tests/test-fchownat.c (main): Add tests for EBADF.
26797         * tests/test-fstatat.c (main): Likewise.
26798         * tests/test-mkdirat.c (main): Likewise.
26799         * tests/test-openat.c (main): Likewise.
26800         * tests/test-unlinkat.c (main): Likewise.
26801         * tests/test-fchmodat.c: New file.
26802         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
26803         (Makefile.am): Also run 'test-fchmodat'.
26805 2011-09-20  Bruno Haible  <bruno@clisp.org>
26807         utimens, futimens, fdutimensat tests: EBADF tests.
26808         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
26810         Tests for function fstat().
26811         * modules/fstat-tests: New file.
26812         * tests/test-fstat.c: New file.
26813         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
26815 2011-09-20  Bruno Haible  <bruno@clisp.org>
26817         test-ttyname_r tests: EBADF tests.
26818         * tests/test-ttyname_r.c (main): Add tests for EBADF.
26820         Tests for module 'isatty'.
26821         * modules/isatty-tests: New file.
26822         * tests/test-isatty.c: New file.
26824         Tests for module 'write'.
26825         * modules/write-tests: New file.
26826         * tests/test-write.c: New file.
26828         Tests for module 'read'.
26829         * modules/read-tests: New file.
26830         * tests/test-read.c: New file.
26832         pwrite tests: EBADF tests.
26833         * tests/test-pwrite.c (main): Add tests for EBADF.
26835         pread tests: EBADF tests.
26836         * tests/test-pread.c (main): Add tests for EBADF.
26838         lseek tests: EBADF tests.
26839         * tests/test-lseek.c (main): Add more tests for EBADF.
26841         Tests for module 'ftruncate'.
26842         * modules/ftruncate-tests: New file.
26843         * tests/test-ftruncate.sh: New file.
26844         * tests/test-ftruncate.c: New file.
26846         fsync tests: EBADF tests.
26847         * tests/test-fsync.c (main): Add more tests for EBADF.
26849         fdatasync tests: EBADF tests.
26850         * tests/test-fdatasync.c (main): Add more tests for EBADF.
26852         Tests for module 'fchown'.
26853         * modules/fchown-tests: New file.
26854         * tests/test-fchown.c: New file.
26856         Tests for module 'fchmod'.
26857         * modules/fchmod-tests: New file.
26858         * tests/test-fchmod.c: New file.
26860         fchdir tests: EBADF tests.
26861         * tests/test-fchdir.c (main): Add more tests for EBADF.
26863         dup2 tests: EBADF tests.
26864         * tests/test-dup2.c (main): Add more tests for EBADF.
26866         Tests for module 'dup'.
26867         * modules/dup-tests: New file.
26868         * tests/test-dup.c: New file.
26870         Tests for module 'close'.
26871         * modules/close-tests: New file.
26872         * tests/test-close.c: New file.
26874 2011-09-20  Bruno Haible  <bruno@clisp.org>
26876         Tests for module 'shutdown'.
26877         * modules/shutdown-tests: New file.
26878         * tests/test-shutdown.c: New file.
26880         Tests for module 'setsockopt'.
26881         * modules/setsockopt-tests: New file.
26882         * tests/test-setsockopt.c: New file.
26884         Tests for module 'sendto'.
26885         * modules/sendto-tests: New file.
26886         * tests/test-sendto.c: New file.
26888         Tests for module 'send'.
26889         * modules/send-tests: New file.
26890         * tests/test-send.c: New file.
26892         Tests for module 'recvfrom'.
26893         * modules/recvfrom-tests: New file.
26894         * tests/test-recvfrom.c: New file.
26896         Tests for module 'recv'.
26897         * modules/recv-tests: New file.
26898         * tests/test-recv.c: New file.
26900         Tests for module 'listen'.
26901         * modules/listen-tests: New file.
26902         * tests/test-listen.c: New file.
26904         Tests for module 'getsockopt'.
26905         * modules/getsockopt-tests: New file.
26906         * tests/test-getsockopt.c: New file.
26908         Tests for module 'getsockname'.
26909         * modules/getsockname-tests: New file.
26910         * tests/test-getsockname.c: New file.
26912         Tests for module 'getpeername'.
26913         * modules/getpeername-tests: New file.
26914         * tests/test-getpeername.c: New file.
26916         Tests for module 'connect'.
26917         * modules/connect-tests: New file.
26918         * tests/test-connect.c: New file.
26920         Tests for module 'bind'.
26921         * modules/bind-tests: New file.
26922         * tests/test-bind.c: New file.
26924         accept4 tests: Fix for native Windows.
26925         * tests/test-accept4.c: Include sockets.h.
26926         (main): Invoke gl_sockets_startup.
26927         * modules/accept4-tests (Depends-on): Add sockets.
26929         accept tests: Fix for native Windows.
26930         * tests/test-accept.c: Include sockets.h.
26931         (main): Invoke gl_sockets_startup.
26932         * modules/accept-tests (Depends-on): Add sockets.
26934 2011-09-19  Bruno Haible  <bruno@clisp.org>
26936         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
26937         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
26938         do...while(0).
26939         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
26940         Suggested by Paul Eggert.
26942 2011-09-19  Bruno Haible  <bruno@clisp.org>
26944         sched: Ensure pid_t is defined.
26945         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
26946         not define pid_t.
26947         * lib/sched.in.h: Include <sys/types.h>.
26948         * doc/posix-headers/sched.texi: Mention the pid_t problem.
26949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26951 2011-09-19  Bruno Haible  <bruno@clisp.org>
26953         msvc-inval: Ensure the entire expansion is a single statement.
26954         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
26955         of braces.
26957 2011-09-19  Jim Meyering  <meyering@redhat.com>
26959         tests: use printf, not echo in init.sh's warn_ function
26960         * tests/init.sh (warn_): Use printf, not echo.  The latter would
26961         misbehave when given strings containing a backslash or starting
26962         with e.g., -n.  James Youngman suggested setting IFS.
26964 2011-09-19  Eric Blake  <eblake@redhat.com>
26966         futimens: enhance test
26967         * tests/test-futimens.h (test_futimens): Also check for EBADF on
26968         closed non-negative fd.
26970         date: accept 'hence' as opposite of 'ago'
26971         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
26972         * tests/test-parse-datetime.c (main): Enhance test.
26973         Suggested by Jesse Wilson.
26975 2011-09-19  Jim Meyering  <meyering@redhat.com>
26977         getcwd: don't fail in a deep directory on a system without openat
26978         Before this change, getcwd would fail when called from a directory
26979         of depth PATH_MAX / 3 or greater.  That was due to the fact that
26980         the non-openat implementation used "..", "../..", "../../..", etc.
26981         to access ancestor directories.  With too many, that string would
26982         be longer than PATH_MAX.
26983         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
26984         using gnulib's openat replacement.
26985         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
26986         we're using the replacement function.
26988 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
26990         maint.mk: avoid warnings from perl about missing files
26991         * top/maint.mk (def_sym_regex): Ignore files listed in
26992         $(gl_other_headers_) that do not exist, say because a project
26993         does not use a corresponding module.
26995 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
26997         stat: use pathmax.h only if needed
26998         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
26999         This is better for Emacs, which does not have a mingw port and
27000         therefore can avoid the pathmax module.
27002         utimens: remove dependency on dup2
27003         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
27004         to work around the Linux kernel bug.
27005         * modules/utimens (Depends-on): Remove dup2.
27007 2011-09-18  Bruno Haible  <bruno@clisp.org>
27009         inet_ntop, inet_pton: Look for it also in libresolv.
27010         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
27011         libnsl, search for it in libresolv.
27012         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27013         Needed on Solaris 7.
27015 2011-09-18  Bruno Haible  <bruno@clisp.org>
27017         accept, accept4 tests: Avoid link error on Solaris.
27018         * modules/accept-tests (Makefile.am): Link test-accept against
27019         $(LIBSOCKET).
27020         * modules/accept4-tests (Makefile.am): Link test-accept4 against
27021         $(LIBSOCKET).
27023         accept4: Avoid link error on Solaris.
27024         * modules/accept4 (Link): New section.
27026         socket functions: Avoid link errors on Solaris.
27027         * modules/accept (Depends-on): Add socketlib.
27028         (Link): New section.
27029         * modules/bind (Depends-on): Add socketlib.
27030         (Link): New section.
27031         * modules/connect (Depends-on): Add socketlib.
27032         (Link): New section.
27033         * modules/getpeername (Depends-on): Add socketlib.
27034         (Link): New section.
27035         * modules/getsockname (Depends-on): Add socketlib.
27036         (Link): New section.
27037         * modules/getsockopt (Depends-on): Add socketlib.
27038         (Link): New section.
27039         * modules/listen (Depends-on): Add socketlib.
27040         (Link): New section.
27041         * modules/recv (Depends-on): Add socketlib.
27042         (Link): New section.
27043         * modules/recvfrom (Depends-on): Add socketlib.
27044         (Link): New section.
27045         * modules/send (Depends-on): Add socketlib.
27046         (Link): New section.
27047         * modules/sendto (Depends-on): Add socketlib.
27048         (Link): New section.
27049         * modules/setsockopt (Depends-on): Add socketlib.
27050         (Link): New section.
27051         * modules/shutdown (Depends-on): Add socketlib.
27052         (Link): New section.
27053         * modules/socket (Depends-on): Add socketlib.
27054         (Link): New section.
27056 2011-09-18  Bruno Haible  <bruno@clisp.org>
27058         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
27059         * tests/test-ptsname.c (main): Terminate the test if it takes longer
27060         than 5 seconds.
27061         * modules/ptsname-tests (configure.ac): Test for alarm.
27063 2011-09-18  Bruno Haible  <bruno@clisp.org>
27065         posix_spawn_file_actions_add*: Fix module dependencies.
27066         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
27067         posix_spawn_file_actions_init.
27068         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
27069         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
27071 2011-09-18  Bruno Haible  <bruno@clisp.org>
27073         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
27074         * tests/test-rename.h (test_rename): Allow error code EEXIST.
27075         * tests/test-renameat.c (main): Likewise.
27077 2011-09-18  Bruno Haible  <bruno@clisp.org>
27079         Tests for module 'accept4'.
27080         * modules/accept4-tests: New file.
27081         * tests/test-accept4.c: New file.
27083 2011-09-18  Bruno Haible  <bruno@clisp.org>
27085         Tests for module 'accept'.
27086         * modules/accept-tests: New file.
27087         * tests/test-accept.c: New file.
27089 2011-09-18  Bruno Haible  <bruno@clisp.org>
27091         dup2: Support for MSVC.
27092         * lib/dup2.c: Include msvc-inval.h.
27093         (rpl_dup2): Handle invalid parameter notifications during dup2 and
27094         _get_osfhandle calls.
27095         * modules/dup2 (Depends-on): Add msvc-inval.
27096         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
27098         New module 'msvc-inval'.
27099         * lib/msvc-inval.h: New file.
27100         * lib/msvc-inval.c: New file.
27101         * m4/msvc-inval.m4: New file.
27102         * modules/msvc-inval: New file.
27104 2011-09-17  Bruno Haible  <bruno@clisp.org>
27106         Tests for module 'pclose'.
27107         * modules/pclose-tests: New file.
27109         New module 'pclose'.
27110         * lib/stdio.in.h (pclose): New declaration.
27111         * lib/pclose.c: New file.
27112         * m4/pclose.m4: New file.
27113         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
27114         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
27115         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
27116         * modules/pclose: New file.
27117         * modules/popen-tests (Depends-on): Add pclose.
27118         * modules/popen-safer-tests (Depends-on): Likewise.
27119         * doc/posix-functions/pclose.texi: Mention the new module.
27121 2011-09-17  Bruno Haible  <bruno@clisp.org>
27123         popen: Support for MSVC.
27124         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
27125         * lib/popen.c (popen): Provide alternate definition for native Windows.
27126         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
27127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
27128         * modules/popen (Depends-on, configure.ac): Update condition.
27129         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
27130         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
27131         fixed.
27133 2011-09-17  Bruno Haible  <bruno@clisp.org>
27135         isnanl, isnand, isnanf: Work around MSVC bug.
27136         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
27138 2011-09-17  Bruno Haible  <bruno@clisp.org>
27140         sys_socket tests: Fix recent mistake.
27141         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
27143 2011-09-17  Bruno Haible  <bruno@clisp.org>
27145         putenv: Support for MSVC.
27146         * modules/putenv (Depends-on): Add environ.
27147         * lib/putenv.c (environ): Disable declaration.
27148         * lib/unistd.in.h: Update comment.
27150 2011-09-17  Bruno Haible  <bruno@clisp.org>
27152         math: Avoid macro redefinition warnings on MSVC.
27153         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
27154         Undefine before redefining.
27156 2011-09-17  Bruno Haible  <bruno@clisp.org>
27158         doc: Mention functions which are declared as macros.
27159         * doc/posix-functions/*[fl].texi: Mention that some functions are
27160         defined as macros with arguments only.
27162 2011-09-17  Bruno Haible  <bruno@clisp.org>
27164         Add dependencies to new dirent related modules.
27165         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
27166         * modules/fts (Depends-on): Likewise.
27167         * modules/glob (Depends-on): Likewise.
27168         * modules/savedir (Depends-on): Likewise.
27169         * modules/scandir (Depends-on): Likewise.
27170         * modules/dirent-safer (Depends-on): Add opendir, closedir.
27171         * modules/fdopendir (Depends-on): Add opendir.
27173 2011-09-17  Bruno Haible  <bruno@clisp.org>
27175         inet_pton: Support for MSVC on Windows Vista or newer.
27176         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
27177         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
27178         HAVE_DECL_INET_PTON is defined.
27179         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
27180         On platforms with <winsock2.h>, test whether inet_pton is declared in
27181         <ws2tcpip.h>. If so, arrange to replace it.
27182         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
27183         REPLACE_INET_PTON.
27184         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
27185         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
27186         (Depends-on, configure.ac): Update condition.
27187         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
27189 2011-09-17  Bruno Haible  <bruno@clisp.org>
27191         inet_ntop: Support for MSVC on Windows Vista or newer.
27192         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
27193         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
27194         HAVE_DECL_INET_NTOP is defined.
27195         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
27196         On platforms with <winsock2.h>, test whether inet_ntop is declared in
27197         <ws2tcpip.h>. If so, arrange to replace it.
27198         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
27199         REPLACE_INET_NTOP.
27200         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
27201         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
27202         (Depends-on, configure.ac): Update condition.
27203         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
27205 2011-09-16  Eric Blake  <eblake@redhat.com>
27207         test-fsync: yet another enhancement
27208         * tests/test-fsync.c (main): Also test behavior on read-only text
27209         file.
27211 2011-09-16  Bruno Haible  <bruno@clisp.org>
27213         Enhance fsync, fdatasync tests.
27214         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
27215         * tests/test-fdatasync.c (main): Likewise.
27217 2011-09-16  Bruno Haible  <bruno@clisp.org>
27219         Support for MSVC compiler: Ensure mode_t gets defined.
27220         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
27221         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27223         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
27224         * tests/test-fcntl-h.c: Check that mode_t is defined.
27225         * tests/test-sys_stat.c: Likewise.
27226         * tests/test-sys_types.c: Likewise.
27227         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
27228         * doc/posix-headers/sys_stat.texi: Likewise.
27229         * doc/posix-headers/sys_types.texi: Likewise.
27231 2011-09-16  Bruno Haible  <bruno@clisp.org>
27233         sys_stat: Support for MSVC.
27234         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
27235         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
27236         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
27237         MSVC.
27239 2011-09-16  Bruno Haible  <bruno@clisp.org>
27241         Support for MSVC compiler: Ensure off_t gets defined.
27242         * lib/unistd.in.h: Include <sys/types.h>.
27243         * tests/test-fcntl-h.c: Check that off_t is defined.
27244         * tests/test-sys_stat.c: Likewise.
27245         * tests/test-sys_types.c: Likewise.
27247 2011-09-16  Eric Blake  <eblake@redhat.com>
27249         fdatasync: port to Solaris
27250         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
27251         * modules/fdatasync (Link): Document it.
27252         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
27254         fdatasync: port to MacOS X 10.7
27255         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
27256         declared.
27257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
27258         * modules/unistd (Makefile.am): Substitute it.
27259         * lib/unistd.in.h (fdatasync): Declare on MacOS.
27260         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
27262         fdatasync: minor improvements
27263         * modules/fdatasync (Depends-on): Add condition for fsync.
27264         * lib/fdatasync.c (fdatasync): Add comment.
27265         * tests/test-unistd-c++.cc: Test fdatasync.
27267         unistd: update refs to newer POSIX
27268         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
27269         Suggested by Bruno Haible.
27271         fdatasync: new module
27272         * modules/fsync (Description): Document difference to fdatasync.
27273         * modules/fdatasync: New module.
27274         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
27275         * lib/fdatasync.c (fdatasync): Likewise.
27276         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
27277         defaults.
27278         * modules/unistd (Makefile.am): Set witnesses.
27279         * lib/unistd.in.h (fdatasync): Declare.
27280         * MODULES.html.sh: Document it.
27281         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
27282         * modules/fdatasync-tests: New test.
27283         * tests/test-fdatasync.c: Likewise.
27285 2011-09-16  Eric Blake  <eblake@redhat.com>
27287         test-fsync: enhance tests
27288         * modules/fsync-tests (Depends-on): Add errno, for mingw.
27289         * tests/test-fsync.c (main): Enhance test.
27291 2011-09-15  Bruno Haible  <bruno@clisp.org>
27293         Support for MSVC compiler: Ensure ssize_t gets defined.
27294         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
27295         * doc/posix-headers/stdio.texi: Likewise.
27296         * modules/stdio (Depends-on): Add ssize_t.
27297         * modules/sys_socket (Depends-on): Likewise.
27298         * modules/sys_types (Depends-on): Likewise.
27299         * modules/sys_uio (Depends-on): Likewise.
27300         * modules/unistd (Depends-on): Likewise.
27301         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
27302         * tests/test-sys_types.c: Check that ssize_t is defined.
27304 2011-09-14  Bruno Haible  <bruno@clisp.org>
27306         Avoid using #, the m4 comment starter character, near brackets.
27307         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
27308         delimiter character in sed expressions.
27309         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27310         Suggested by Eric Blake.
27312         Properly quote AC_CHECK_DECLS' 4th argument.
27313         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
27314         argument.
27315         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27316         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27318         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27319         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27320         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
27321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
27322         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
27323         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
27324         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27325         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
27326         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27327         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27328         * m4/isinf.m4 (gl_ISINF): Likewise.
27329         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27330         * m4/readutmp.m4 (gl_READUTMP): Likewise.
27331         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27332         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27334         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
27335         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27336         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27337         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
27338         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27339         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27340         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
27342         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27344         Reported by Eric Blake.
27346         Properly quote AC_CHECK_DECL's 4th argument.
27347         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
27348         argument.
27349         * m4/argp.m4 (gl_ARGP): Likewise.
27350         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27351         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27352         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27353         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27354         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
27355         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
27356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
27357         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27358         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27359         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27360         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27361         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27362         Reported by Eric Blake.
27364 2011-09-14  Eric Blake  <eblake@redhat.com>
27366         opendir: avoid compile warning
27367         * lib/opendir.c (includes): Always include errno.h.
27368         Reported by Tatsuro MATSUOKA.
27370 2011-09-14  Jim Meyering  <meyering@redhat.com>
27372         maint.mk: sc_tight_scope: propagate failure from sub-make
27373         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
27374         Reported by Martin von Gagern.
27376 2011-09-13  Bruno Haible  <bruno@clisp.org>
27378         tempname: Support for MSVC.
27379         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
27380         MSVC.
27381         * modules/tempname (Depends-on): Add fcntl-h.
27383 2011-09-13  Bruno Haible  <bruno@clisp.org>
27385         sys_time: Support for MSVC.
27386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
27387         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
27388         include <winsock2.h>.
27389         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
27390         function declarations that collide with POSIX.
27391         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
27392         (Makefile.am): Substitute HAVE_WINSOCK2_H.
27394 2011-09-13  Bruno Haible  <bruno@clisp.org>
27396         stat: Support for MSVC.
27397         * lib/stat.c: Include pathmax.h.
27398         * modules/stat (Depends-on): Add pathmax.
27400         pathmax: Support for native Windows.
27401         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
27403 2011-09-12  Bruno Haible  <bruno@clisp.org>
27405         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
27406         * lib/dirent.in.h (struct dirent): New type.
27407         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
27408         DT_WHT): New macros.
27409         (DIR): New type.
27410         (opendir, closedir): Declare only if the module 'opendir' is enabled.
27411         (readdir, rewinddir): New declarations.
27412         * lib/dirent-private.h: New file.
27413         * lib/opendir.c: New file.
27414         * lib/readdir.c: New file.
27415         * lib/rewinddir.c: New file.
27416         * lib/closedir.c: New file.
27417         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
27418         * m4/opendir.m4: New file.
27419         * m4/readdir.m4: New file.
27420         * m4/rewinddir.m4: New file.
27421         * m4/closedir.m4: New file.
27422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
27423         REPLACE_CLOSEDIR here.
27424         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
27425         readdir, rewinddir are declared.
27426         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
27427         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
27428         HAVE_REWINDDIR, HAVE_CLOSEDIR.
27429         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
27430         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
27431         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
27432         * modules/opendir: New file.
27433         * modules/readdir: New file.
27434         * modules/rewinddir: New file.
27435         * modules/closedir: New file.
27436         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
27437         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
27438         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
27439         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
27440         * NEWS: Mention the 'fchdir' change.
27442 2011-09-11  Bruno Haible  <bruno@clisp.org>
27444         asm-underscore.m4: Support for MSVC.
27445         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
27446         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
27448 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
27450         Doc about crypt functions.
27451         * doc/posix-functions/crypt.texi: Expand range of glibc versions
27452         needing for _GNU_SOURCE to get crypt.
27453         * doc/posix-functions/encrypt.texi: Likewise.
27454         * doc/posix-functions/setkey.texi: Likewise.
27456 2011-09-11  Bruno Haible  <bruno@clisp.org>
27458         doc: Update regarding MSVC 9.
27459         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
27460         tested".
27461         * doc/posix-functions/*.texi: Update with info about MSVC 9.
27462         * doc/posix-headers/*.texi: Likewise.
27463         * doc/pastposix-functions/*.texi: Likewise.
27464         * doc/glibc-functions/*.texi: Likewise.
27465         * doc/glibc-headers/*.texi: Likewise.
27467 2011-09-11  Bruno Haible  <bruno@clisp.org>
27469         unistd et al.: Don't assume <unistd.h> exists.
27470         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
27471         does not exist.
27472         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
27473         exist. But include <stdlib.h>.
27474         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
27475         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
27476         symlink() does not exist.
27477         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
27478         include <io.h> instead.
27479         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
27480         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
27481         include <direct.h> instead.
27482         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
27483         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27484         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
27485         <io.h> instead.
27486         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
27487         correctly if the system does not have hard links.
27488         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
27489         <direct.h> instead.
27490         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
27491         it when looking for function declarations.
27492         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
27493         <direct.h> and <io.h> instead.
27494         * doc/posix-headers/unistd.texi: More details about MSVC problem.
27496 2011-09-11  Bruno Haible  <bruno@clisp.org>
27498         strcase: Support for MSVC.
27499         * modules/strcase (Status, Notice): Remove obsoletion mark.
27500         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
27501         * doc/posix-functions/strncasecmp.texi: Likewise.
27503         strings: Don't assume <strings.h> exists.
27504         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
27505         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
27506         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
27507         * doc/posix-headers/strings.texi: Mention the MSVC problem.
27509 2011-09-11  Bruno Haible  <bruno@clisp.org>
27511         dirent: Don't assume <dirent.h> exists.
27512         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
27513         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
27514         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
27515         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
27517 2011-09-11  Bruno Haible  <bruno@clisp.org>
27519         Fix wint_t on MSVC.
27520         * lib/wchar.in.h (wint_t): On MSVC, override it.
27521         * lib/wctype.in.h (wint_t): Likewise.
27522         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
27523         MSVC.
27524         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
27525         * doc/posix-headers/wctype.texi: Likewise.
27527 2011-09-11  Bruno Haible  <bruno@clisp.org>
27529         sys_types: Fix typo.
27530         * lib/sys_types.in.h: Fix typo in comment.
27531         Reported by Paul Eggert.
27533         Support for MSVC compiler: Ensure size_t gets defined.
27534         * modules/strings (Depends-on): Add 'sys_types'.
27535         * modules/sys_uio (Depends-on): Likewise.
27536         * lib/sys_uio.in.h: Update comment.
27538         C++ tests for module 'sys_types'.
27539         * modules/sys_types-c++-tests: New file.
27540         * tests/test-sys_types-c++.cc: New file.
27542         Tests for module 'sys_types'.
27543         * modules/sys_types-tests: New file.
27544         * tests/test-sys_types.c: New file.
27546         New module 'sys_types'.
27547         * lib/sys_types.in.h: New file.
27548         * m4/sys_types_h.m4: New file.
27549         * modules/sys_types: New file.
27550         * doc/posix-headers/sys_types.texi: Mention the new module and the
27551         size_t problem on MSVC 9.
27553 2011-09-11  Bruno Haible  <bruno@clisp.org>
27555         Support for MSVC compiler: Avoid division by a literal 0.
27556         * lib/math.in.h (NAN): Define through a function call also on MSVC.
27557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
27558         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
27559         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
27560         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
27561         * tests/infinity.h: New file.
27562         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
27563         on MSVC.
27564         * tests/test-ceilf1.c: Include infinity.h.
27565         (main): Use Infinityf.
27566         * tests/test-ceil1.c: Include infinity.h.
27567         (main): Use Infinityd.
27568         * tests/test-ceill.c: Include infinity.h.
27569         (main): Use Infinityl.
27570         * tests/test-dprintf-posix.c: Include infinity.h.
27571         (test_function): Use Infinityd.
27572         * tests/test-floorf1.c: Include infinity.h.
27573         (main): Use Infinityf.
27574         * tests/test-floor1.c: Include infinity.h.
27575         (main): Use Infinityd.
27576         * tests/test-floorl.c: Include infinity.h.
27577         (main): Use Infinityl.
27578         * tests/test-fprintf-posix.c: Include infinity.h.
27579         (test_function): Use Infinityd.
27580         * tests/test-frexp.c: Include infinity.h.
27581         (main): Use Infinityd.
27582         * tests/test-frexpl.c: Include infinity.h.
27583         (main): Use Infinityl.
27584         * tests/test-isfinite.c: Include infinity.h.
27585         (test_isfinitef): Use Infinityf.
27586         (test_isfinited): Use Infinityd.
27587         (test_isfinitel): Use Infinityl.
27588         * tests/test-isinf.c: Include infinity.h.
27589         (test_isinff): Use Infinityf.
27590         (test_isinfd): Use Infinityd.
27591         (test_isinfl): Use Infinityl.
27592         * tests/test-isnan.c: Include infinity.h.
27593         (test_float): Use Infinityf.
27594         (test_double): Use Infinityd.
27595         (test_long_double): Use Infinityl.
27596         * tests/test-isnanf.h: Include infinity.h.
27597         (main): Use Infinityf.
27598         * tests/test-isnand.h: Include infinity.h.
27599         (main): Use Infinityd.
27600         * tests/test-isnanl.h: Include infinity.h.
27601         (main): Use Infinityl.
27602         * tests/test-ldexpl.c: Include infinity.h.
27603         (main): Use Infinityl.
27604         * tests/test-printf-posix.h: Include infinity.h.
27605         (test_function): Use Infinityd.
27606         * tests/test-roundf1.c: Include infinity.h.
27607         (main): Use Infinityf.
27608         * tests/test-round1.c: Include infinity.h.
27609         (main): Use Infinityd.
27610         * tests/test-roundl.c: Include infinity.h.
27611         (main): Use Infinityl.
27612         * tests/test-signbit.c: Include infinity.h.
27613         (test_signbitf): Use Infinityf.
27614         (test_signbitd): Use Infinityd.
27615         (test_signbitl): Use Infinityl.
27616         * tests/test-snprintf-posix.h: Include infinity.h.
27617         (test_function): Use Infinityd, Infinityl.
27618         * tests/test-sprintf-posix.h: Include infinity.h.
27619         (test_function): Use Infinityd, Infinityl.
27620         * tests/test-truncf1.c: Include infinity.h.
27621         (main): Use Infinityf.
27622         * tests/test-trunc1.c: Include infinity.h.
27623         (main): Use Infinityd.
27624         * tests/test-truncl.c: Include infinity.h.
27625         (main): Use Infinityl.
27626         * tests/test-vasnprintf-posix.c: Include infinity.h.
27627         (test_function): Use Infinityd, Infinityl.
27628         * tests/test-vasprintf-posix.c: Include infinity.h.
27629         (test_function): Use Infinityd, Infinityl.
27630         * modules/ceilf-tests (Files): Add tests/infinity.h.
27631         * modules/ceil-tests (Files): Likewise.
27632         * modules/ceill-tests (Files): Likewise.
27633         * modules/dprintf-posix-tests (Files): Likewise.
27634         * modules/floorf-tests (Files): Likewise.
27635         * modules/floor-tests (Files): Likewise.
27636         * modules/floorl-tests (Files): Likewise.
27637         * modules/fprintf-posix-tests (Files): Likewise.
27638         * modules/frexp-tests (Files): Likewise.
27639         * modules/frexp-nolibm-tests (Files): Likewise.
27640         * modules/frexpl-tests (Files): Likewise.
27641         * modules/frexpl-nolibm-tests (Files): Likewise.
27642         * modules/isfinite-tests (Files): Likewise.
27643         * modules/isinf-tests (Files): Likewise.
27644         * modules/isnan-tests (Files): Likewise.
27645         * modules/isnanf-tests (Files): Likewise.
27646         * modules/isnanf-nolibm-tests (Files): Likewise.
27647         * modules/isnand-tests (Files): Likewise.
27648         * modules/isnand-nolibm-tests (Files): Likewise.
27649         * modules/isnanl-tests (Files): Likewise.
27650         * modules/isnanl-nolibm-tests (Files): Likewise.
27651         * modules/ldexpl-tests (Files): Likewise.
27652         * modules/printf-posix-tests (Files): Likewise.
27653         * modules/roundf-tests (Files): Likewise.
27654         * modules/round-tests (Files): Likewise.
27655         * modules/roundl-tests (Files): Likewise.
27656         * modules/signbit-tests (Files): Likewise.
27657         * modules/snprintf-posix-tests (Files): Likewise.
27658         * modules/sprintf-posix-tests (Files): Likewise.
27659         * modules/truncf-tests (Files): Likewise.
27660         * modules/trunc-tests (Files): Likewise.
27661         * modules/truncl-tests (Files): Likewise.
27662         * modules/vasnprintf-posix-tests (Files): Likewise.
27663         * modules/vasprintf-posix-tests (Files): Likewise.
27664         * modules/vdprintf-posix-tests (Files): Likewise.
27665         * modules/vfprintf-posix-tests (Files): Likewise.
27666         * modules/vprintf-posix-tests (Files): Likewise.
27667         * modules/vsnprintf-posix-tests (Files): Likewise.
27668         * modules/vsprintf-posix-tests (Files): Likewise.
27669         * modules/xprintf-posix-tests (Files): Likewise.
27671 2011-09-11  Bruno Haible  <bruno@clisp.org>
27673         Ensure pid_t gets defined.
27674         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
27675         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
27676         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27677         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27678         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27679         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
27680         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27681         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27682         * tests/test-fcntl-h.c: Check that pid_t is defined.
27683         * tests/test-sched.c: Likewise.
27684         * tests/test-termios.c: Likewise.
27685         * tests/test-time.c: Likewise.
27686         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
27687         * doc/posix-headers/signal.texi: Likewise.
27688         * doc/posix-headers/sys_types.texi: Likewise.
27689         * doc/posix-headers/time.texi: Likewise.
27691 2011-09-11  Bruno Haible  <bruno@clisp.org>
27693         acl: Fix compilation on Solaris 10 (older version).
27694         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
27695         of ACE_EVERYONE.
27696         * lib/set-mode-acl.c (qset_acl): Likewise.
27697         Reported by Christian Jullien <eligis@orange.fr>.
27699 2011-09-10  Bruno Haible  <bruno@clisp.org>
27701         iconv, unsetenv: Add support for MSVC compiler.
27702         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
27703         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
27705 2011-09-10  Bruno Haible  <bruno@clisp.org>
27707         *printf: Add support for MSVC compiler.
27708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
27709         handles the exception caused by the %n directive. When cross-compiling,
27710         guess no on native Windows.
27711         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27712         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
27713         emulate it through vsnprintf.
27714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
27715         * doc/posix-functions/dprintf.texi: Update documentation regarding
27716         MSVC 9.
27717         * doc/posix-functions/fprintf.texi: Likewise.
27718         * doc/posix-functions/printf.texi: Likewise.
27719         * doc/posix-functions/snprintf.texi: Likewise.
27720         * doc/posix-functions/sprintf.texi: Likewise.
27721         * doc/posix-functions/swprintf.texi: Likewise.
27722         * doc/posix-functions/vdprintf.texi: Likewise.
27723         * doc/posix-functions/vfprintf.texi: Likewise.
27724         * doc/posix-functions/vprintf.texi: Likewise.
27725         * doc/posix-functions/vsnprintf.texi: Likewise.
27726         * doc/posix-functions/vsprintf.texi: Likewise.
27727         * doc/glibc-functions/asprintf.texi: Likewise.
27728         * doc/glibc-functions/obstack_printf.texi: Likewise.
27729         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27730         * doc/glibc-functions/vasprintf.texi: Likewise.
27732 2011-09-10  Bruno Haible  <bruno@clisp.org>
27734         nocrash: Add support for native Windows.
27735         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
27737 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
27738             Bruno Haible  <bruno@clisp.org>
27740         absolute-header, include-next: Add support for MSVC compiler.
27741         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
27742         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
27743         directory separator in #line directives.
27744         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
27745         recognize also backslash as directory separator in #line directives.
27747 2011-09-08  Jim Meyering  <meyering@redhat.com>
27749         maint.mk: mark the post-release commit log with "maint: " prefix
27750         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
27751         one-line commit-log summary.
27753 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
27754             Bruno Haible  <bruno@clisp.org>
27756         Doc about crypt functions.
27757         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
27758         systems.
27759         * doc/posix-functions/encrypt.texi: Likewise.
27760         * doc/posix-functions/setkey.texi: Likewise.
27762 2011-09-08  Simon Josefsson  <simon@josefsson.org>
27764         * lib/gc.h: Fix copyright header.
27766 2011-09-07  Bruno Haible  <bruno@clisp.org>
27768         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
27769         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
27770         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
27772 2011-09-07  Bruno Haible  <bruno@clisp.org>
27774         openat: Work around compilation error with OSF/1 5.1 DTK cc.
27775         * lib/fopen.c: Use different syntax for include of <stdio.h>.
27776         * lib/freopen.c: Likewise.
27777         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
27778         * lib/lstat.c: Likewise.
27779         * lib/stat.c: Likewise.
27780         * lib/open.c: Use different syntax for include of <fcntl.h>.
27781         * lib/openat.c: Include fcntl.h again, explicitly.
27783 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
27785         parse-datetime: document the newly accepted format
27786         * doc/parse-datetime.texi (Combined date and time of day items):
27787         New section.
27789 2011-09-06  Bruno Haible  <bruno@clisp.org>
27791         acl: Fix a test failure on newer Solaris 10 with ZFS.
27792         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
27793         ENOSYS as no ACL.
27794         Reported by Jim Meyering.
27796 2011-09-06  Bruno Haible  <bruno@clisp.org>
27798         acl: Update for AIX >= 5.3 with NFS.
27799         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
27800         ENOSYS as no ACL.
27802         acl: Fix a test failure on AIX >= 5.3 with NFS.
27803         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
27804         as no ACL.
27806 2011-09-06  Bruno Haible  <bruno@clisp.org>
27808         acl: Fix a test failure on IRIX 6.5 with NFS.
27809         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
27810         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
27811         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
27812         * lib/copy-acl.c (qcopy_acl): Likewise.
27814 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27816         openat: port to AIX 7.1 with large files
27817         AIX 7.1 does a "#define openat open64at" if large files are in use,
27818         so we can't simply #undef openat.  Use the orig_openat trick (similar
27819         to orig_open in lib/open.c) to work around the problem.  Problem
27820         reported by Kevin Brott for GNU tar, in the thread containing
27821         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
27822         * lib/openat.c (__need_system_fcntl_h): Define first.
27823         Include <fcntl.h> and <sys/types.h> before undefining.
27824         (orig_openat) [HAVE_OPENAT]: New inline function.
27825         (openat) [HAVE_OPENAT]: Do not undef.
27826         (rpl_openat): Use orig_openat, not openat.
27828 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27829             Bruno Haible  <bruno@clisp.org>
27831         acl: Avoid errors on NonStop Kernel.
27832         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
27833         ENOTSUP errors.
27835 2011-09-05  Bruno Haible  <bruno@clisp.org>
27837         acl: Clean up Solaris code.
27838         * lib/acl-internal.h: Remove no-op #if.
27839         * lib/file-has-acl.c: Likewise.
27840         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
27841         * lib/copy-acl.c (qcopy_acl): Likewise.
27843 2011-09-05  Bruno Haible  <bruno@clisp.org>
27845         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
27846         binaries built on the original Solaris 10.
27847         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
27848         trivial.
27850 2011-09-05  Bruno Haible  <bruno@clisp.org>
27852         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27853         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
27854         10.
27855         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
27856         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
27857         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
27858         instead of acl_get, facl_get, acl_set, facl_set.
27860 2011-09-05  Bruno Haible  <bruno@clisp.org>
27862         copy-file: Try unit tests on more file systems.
27863         * tests/test-copy-file-1.sh: New file.
27864         * tests/test-copy-file-2.sh: New file.
27865         * modules/copy-file-tests (Files): Add them.
27866         (Makefile.am): Add them to TESTS.
27868         acl: Try unit tests on more file systems.
27869         * tests/test-file-has-acl-1.sh: New file.
27870         * tests/test-file-has-acl-2.sh: New file.
27871         * tests/test-set-mode-acl-1.sh: New file.
27872         * tests/test-set-mode-acl-2.sh: New file.
27873         * tests/test-copy-acl-1.sh: New file.
27874         * tests/test-copy-acl-2.sh: New file.
27875         * modules/acl-tests (Files): Add them.
27876         (Makefile.am): Add them to TESTS.
27878 2011-09-04  Bruno Haible  <bruno@clisp.org>
27880         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27881         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
27882         10.
27883         (OLD_ALLOW, OLD_DENY): New macros.
27884         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
27885         ACE_ACCESS_ALLOWED_ACE_TYPE.
27886         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
27887         ACE_ACCESS_DENIED_ACE_TYPE.
27888         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
27889         (NEW_ACE_EXECUTE): Fix value.
27890         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
27891         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
27892         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
27893         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
27894         NEW_ACE_SYNCHRONIZE): New macros.
27895         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
27896         instead of acl_fromtext, acl_set, facl_set.
27897         Fixes a coreutils/tests/cp/perm failure.
27899 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
27901         openat: test for fstatat (..., 0) bug
27902         Further testing with tar suggests that fstatat (..., 0)
27903         does not work in general, on AIX 7.1; see
27904         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
27905         So, give up entirely on AIX 7.1's fstatat, and fall back on our
27906         replacement fstatat (which is what older AIX releases were using
27907         anyway).
27908         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
27909         use is now changed to orig_fstatat.  This was probably the right
27910         thing to do anyway.
27911         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
27912         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
27913         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
27914         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
27915         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
27916         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
27917         if the bug is found.
27919         openat: test for fstatat (AT_FDCWD, ..., 0) bug
27920         This tests for another fstatat bug on AIX 7.1:
27921         fstatat (AT_FDCWD, ..., 0) does not work.  See
27922         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
27923         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
27924         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
27925         (rpl_fstatat): Adjust so that it works around either (or both)
27926         bugs if present.
27927         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
27929 2011-09-03  Karl Berry  <karl@gnu.org>
27931         * doc/regex.texi (Character Class Operators): Avoid literal ":"
27932         in index entries.
27934 2011-09-02  Bruno Haible  <bruno@clisp.org>
27936         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
27937         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
27938         values of AR, ARFLAGS, RANLIB.
27939         Reported by John W. Eaton <jwe@gnu.org> for Octave.
27941 2011-09-02  Bruno Haible  <bruno@clisp.org>
27943         Find 'ar' program that fits with --host argument.
27944         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
27946 2011-09-02  Bruno Haible  <bruno@clisp.org>
27948         tests: init.sh: Support any non-GNU diff.
27949         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
27950         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
27951         Solaris 8.
27953 2011-09-02  Bruno Haible  <bruno@clisp.org>
27955         tests: init.sh: work also with any non-GNU diff that supports -u
27956         * tests/init.sh: Relax check for diff -u support.
27957         Rather than checking for GNU diff via --version, simply check
27958         for support for -u itself.  Useful at least on OpenBSD 4.9,
27959         AIX 7.1, IRIX 6.5, and Solaris 10.
27961 2011-09-01  Bruno Haible  <bruno@clisp.org>
27963         strtoimax, strtoumax: Document problem on HP-UX 11.
27964         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
27965         * doc/posix-functions/strtoumax.texi: Likewise.
27967 2011-09-01  Bruno Haible  <bruno@clisp.org>
27969         strtoumax: Avoid link error on OSF/1 with DTK cc.
27970         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
27971         defined as a function.
27972         * modules/strtoumax (Depends-on, configure.ac): Test only whether
27973         strtoumax is defined, not whether it is declared.
27975 2011-09-01  Bruno Haible  <bruno@clisp.org>
27977         strtoimax: Avoid link error on OSF/1 with DTK cc.
27978         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
27979         defined as a function.
27980         * modules/strtoimax (Depends-on, configure.ac): Test only whether
27981         strtoimax is defined, not whether it is declared.
27983 2011-09-01  Bruno Haible  <bruno@clisp.org>
27985         imaxdiv: Avoid link error on OSF/1 with DTK cc.
27986         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
27987         as a function.
27988         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
27989         whether it is declared.
27991 2011-09-01  Bruno Haible  <bruno@clisp.org>
27993         imaxabs: Avoid link error on OSF/1 with DTK cc.
27994         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
27995         as a function.
27996         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
27997         whether it is declared.
27999 2011-09-01  Bruno Haible  <bruno@clisp.org>
28001         Tests for module 'strtoumax'.
28002         * modules/strtoumax-tests: New file.
28003         * tests/test-strtoumax.c: New file.
28005         Tests for module 'strtoimax'.
28006         * modules/strtoimax-tests: New file.
28007         * tests/test-strtoimax.c: New file.
28009         Tests for module 'imaxdiv'.
28010         * modules/imaxdiv-tests: New file.
28011         * tests/test-imaxdiv.c: New file.
28013         Tests for module 'imaxabs'.
28014         * modules/imaxabs-tests: New file.
28015         * tests/test-imaxabs.c: New file.
28017 2011-09-01  Bruno Haible  <bruno@clisp.org>
28019         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
28020         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
28021         pthread_create.
28023 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28025         openat: work around AIX 7.1 fstatat issue
28026         This should fix the problem that was not properly fixed
28027         in the previous change, dated 2011-08-30.
28028         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
28029         __need_system_stat_h defined.
28030         (orig_fstatat) [HAVE_FSTATAT]: New function.
28031         (rpl_fstatat): Go back to the old way of doing things,
28032         except call orig_fstatat instead of fstatat.
28033         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
28034         Remove unnecessary check whether fstatat fills in st_size etc.
28036 2011-09-01  Bruno Haible  <bruno@clisp.org>
28038         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
28039         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
28040         just include the system's header.
28042 2011-08-31  Jim Meyering  <meyering@redhat.com>
28044         tests: avoid spurious assertion failure in test-float.c on ppc64
28045         * tests/test-float.c (test_long_double): Comment out an assertion,
28046         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
28047         with gcc-4.4.4.
28049         maint: indent with spaces, not TABs
28050         I need to get in the habit of running gnulib's "make check".
28051         Both of these would have been caught.
28052         * m4/largefile.m4: Indent with spaces, not TABs.
28053         * lib/parse-datetime.y (iso_8601_time): Likewise.
28054         Spotted by Pádraig Brady.
28056         test-parse-datetime.c: accommodate a relatively strict gcc warning
28057         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
28058         to avoid a warning from gcc's -Werror=missing-declarations.
28059         Insert a few spaces-before-funcall-parenthesis.
28061 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
28063         parse-datetime: accept ISO 8601 date and time rep with "T" separator
28064         The parser now accepts ISO 8601 date-time strings with "T" as the
28065         separator.  It has long parsed dates like "2004-02-29 16:21:42"
28066         with a space between the date and time strings.  Now it also parses
28067         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
28068         variants like "2004-02-29T16:21:42.333-07:00"
28069         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
28070         of day representation using the 'T' separator character.
28071         * doc/parse-datetime.texi (General date syntax): replace use of
28072         deprecated --iso-8601 option with --rfc-3339 in example of date
28073         command output formats that can be parsed.
28074         * tests/test-parse-datetime.c (tm_diff): New function, taken from
28075         lib/parse-datetime.y.
28076         (gmt_offset): New function.
28077         (main): Add additional test cases to validate ISO8601 extended
28078         date and time of day parsing.
28080 2011-08-31  Bruno Haible  <bruno@clisp.org>
28082         freopen: Documentation.
28083         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
28084         name.
28085         Reported by Claudio Bley <claudio.bley@gmail.com>.
28087 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
28089         freopen: Don't crash if the filename argument is NULL.
28090         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
28091         NULL.
28093 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28095         openat: work around AIX 7.1 fstatat bug
28096         Problem reported by Kevin Brott for GNU tar, in the thread containing
28097         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
28098         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
28099         FSTATAT_ST_SIZE_ETC_BROKEN.
28100         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
28101         rpl_fstatat.
28102         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
28103         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
28104         AC_CHECK_FUNCS_ONCE for fstatat.
28105         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
28106         fchmodat, mkdirat, openat and unlinkat.
28108 2011-08-30  Bruno Haible  <bruno@clisp.org>
28110         Avoid endless recursions if config.h includes some header files.
28111         * lib/fopen.c (__need_FILE): Define already before including config.h.
28112         * lib/freopen.c (__need_FILE): Likewise.
28113         * lib/open.c (__need_system_fcntl_h): Likewise.
28114         * lib/stat.c (__need_system_sys_stat_h): Likewise.
28115         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
28116         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28118 2011-08-25  Karl Berry  <karl@gnu.org>
28120         * config/srclist.txt (ylwrap): new try.
28121         * build-aux/ylwrap: new file.
28123 2011-08-23  Bruno Haible  <bruno@clisp.org>
28125         tmpdir: Use a good default directory on native Windows.
28126         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
28127         (P_tmpdir): Default to _P_tmpdir on native Windows.
28128         (path_search): On native Windows, try the value returned by GetTempPath
28129         before trying P_tmpdir.
28130         * modules/tmpdir (Depends-on): Add pathmax.
28131         Suggested by John Darrington <john@darrington.wattle.id.au>.
28133 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
28135         doc: fix typo in README-release
28136         * top/README-release: Capitalize first word of a sentence.
28138 2011-08-19  Jim Meyering  <meyering@redhat.com>
28140         fts: do not exhaust memory when processing million-entry directories
28141         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
28142         directory would require about 256*N bytes of memory.  Thus, it was
28143         easy to construct a directory too large to be processed by any of
28144         those tools.  With this change, fts' maximum memory utilization is
28145         now limited to around 30MB.
28146         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
28147         (fts_read): When we've processed the final entry (i.e., when
28148         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
28149         using the parent entry to read any remaining entries.  Dispatch
28150         depending on what fts_build returns:
28151         - NULL+stop, aka failure: stop
28152         - NULL otherwise: move up in the dir hierarchy
28153         - non-NULL: handle this new entry
28154         (fts_build): Declare and use new local, continue_readdir.
28155         Prepare to be called from fts_read, when the entries
28156         from a partially-read directory have just been exhausted.
28157         In that case, we'll skip the opendir and instead use the parent's
28158         fts_dirp and derive dir_fd from that.
28159         Finally, in the readdir loop, if we read max_entries entries,
28160         exit the loop ensuring *not* to call closedir.  This is required
28161         so that fts_dirp can be reused on a subsequent call.
28162         Prompted by Ben England's report of memory exhaustion in find
28163         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
28165         maint: fts: move decl of `dp' down into while loop; split a long line
28166         * lib/fts.c (fts_build): No semantic change.
28168         fts: add/use new struct member, fts_dirp
28169         We are about to use this to manage any directory with
28170         too many entries to read all of them into memory at once.
28171         To do that, we'll need to save the DIR* pointer in each
28172         affected FTSENT struct.
28173         * lib/fts_.h: Include <dirent.h>.
28174         (struct FTSENT) [fts_dirp]: New member.
28175         * lib/fts.c (closedir_and_clear): Define.
28176         Use it in place of closedir so that we are sure to
28177         clear the new fts_dirp member when done with it.
28178         (fts_alloc): Initialize the new member.
28179         (fts_lfree): Free, if needed.
28181         maint: fts: give __opendir2 a new parameter and rename
28182         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
28183         than surreptitiously using sole caller's "dir_fd".
28184         (fts_opendir): Rename from __opendir2.
28186         maint: fts.c: remove __opendir2's now-unused parameter, oflag
28187         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
28189         maint: fts.c: correct off-by-one indentation
28190         * lib/fts.c (fts_build): Correct indentation, change style
28191         of a couple of block comments, and bracing style.
28193         maint: fts.c: move __opendir2 #define "up" out of function body
28194         * lib/fts.c (__opendir2): Move "up".  No semantic change.
28196         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
28197         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
28198         out for a long time and besides was useful only on BSD systems.
28200 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28202         regex: port to Stratus OpenVOS
28203         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
28204         define to empty, rather than attempting nonportable optimizations.
28205         Problem reported by Paul Green in:
28206         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
28207         and fix suggested by Eric Blake in:
28208         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
28210 2011-08-17  Eric Blake  <eblake@redhat.com>
28212         getcwd: fix test failures on mingw
28213         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
28214         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
28215         test if long directory cannot be created, and allow mingw errno.
28217         getcwd-lgpl: fix m4 to match relaxed test for BSD
28218         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
28219         (gl_FUNC_GETCWD_SIGNATURE): New macro.
28220         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
28221         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
28222         signature problem.
28224         getcwd: fix compilation on mingw64
28225         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
28226         getcwd.
28227         Reported by Marc-André Lureau.
28229         pipe2: silence compiler warning
28230         * lib/pipe2.c (pipe2): Hide label if it is not used.
28232 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
28234         relocatable-prog: fix link error
28235         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
28236         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
28237         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
28238         into modules/relocatable-lib without noticing that
28239         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
28240         also needs to build relocatable.c.
28242 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28244         getaddrinfo: fix sh typo in gai_strerrorA decl checking
28245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
28246         shell code: it contained a 'break' that was not in a loop.
28247         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
28248         via a shell-language loop; this may have been true in old Autoconf
28249         versions, but it's not true in Autoconf 2.68.  I found this bug
28250         when testing coreutils git on Solaris 8, whose shell complains
28251         about the syntax error.
28253 2011-08-12  Simon Josefsson  <simon@josefsson.org>
28255         * lib/base64.c: Fix comment to reference RFC 4648.
28256         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
28257         <gvtulder@gmail.com>.
28259 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28261         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
28263         po/Makefile.in.in: fix make -q problem
28264         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
28265         rule, since there's no file named 'check-macro-version' and its
28266         use as a file breaks make -q.
28267         (all): Don't depend on check-macro-version.
28268         (CHECK_MACRO_VERSION): New macro.
28269         (stamp-po): Use it.
28271         configmake: fix make -q problem
28272         * modules/configmake (configmake.h): Update configmake.h's time stamp
28273         even if the file does not change.  Otherwise, 'make -q' fails.
28274         Problem reported by Simon Josefsson in
28275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
28277 2011-08-11  Jim Meyering  <meyering@redhat.com>
28279         git-version-gen: correct the advice in a comment
28280         * build-aux/git-version-gen: Correct comment.
28281         Don't recommend to list .tarball-version in .gitignore.
28283 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28285         base64: fix off-by-one buffer size bug
28286         Problem and (trivial) fix reported by Gijs van Tulder in
28287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
28288         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
28289         * tests/test-base64.c (main): Catch the bug.
28291 2011-08-10  Eric Blake  <eblake@redhat.com>
28293         closein: correct comments
28294         * lib/closein.c (close_stdin): Improve comments.
28296 2011-08-09  Bruno Haible  <bruno@clisp.org>
28298         More tests for 'fseeko'.
28299         * tests/test-fseeko3.c: New file, from Eric Blake.
28300         * tests/test-fseeko3.sh: New file.
28301         * modules/fseeko-tests (Files): Add them.
28302         (TESTS): Add test-fseeko3.sh.
28303         (check_PROGRAMS): Add test-fseeko3.
28305 2011-08-09  Eric Blake  <eblake@redhat.com>
28307         fseeko: remove unneeded hack
28308         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
28310         fseeko: fix bug on glibc
28311         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
28312         Reported by John W. Eaton.
28314 2011-08-08  Bruno Haible  <bruno@clisp.org>
28316         unictype/base: Fix interoperability with preinstalled libunistring.
28317         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
28318         Reported by Simon Josefsson.
28320 2011-08-08  Bruno Haible  <bruno@clisp.org>
28322         iswblank: Detect declaration correctly.
28323         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
28324         AC_CHECK_DECLS invocation.
28326 2011-08-08  Bruno Haible  <bruno@clisp.org>
28328         tcgetsid: Detect declaration correctly.
28329         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
28330         AC_CHECK_DECLS invocation.
28331         Reported by Simon Josefsson.
28333 2011-08-08  Eric Blake  <eblake@redhat.com>
28335         largefile: fix typo that regressed large file support
28336         * modules/largefile (configure.ac-early): Fix section name.
28338 2011-08-06  Karl Berry  <karl@gnu.org>
28340         * MODULES.html.sh (func_all_files): _Noreturn is no longer
28341         a separate module.
28343 2011-08-05  Simon Josefsson  <simon@josefsson.org>
28345         openat: Fix warnings and commens when building unlinkat.c on Hurd.
28346         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
28347         get prototype for free.
28349 2011-08-04  Bruno Haible  <bruno@clisp.org>
28351         Tests for module 'pathmax'.
28352         * modules/pathmax-tests: New file.
28353         * tests/test-pathmax.c: New file.
28355         canonicalize-lgpl: Support larger filenames on the Hurd.
28356         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
28357         Reported by Paul Eggert.
28359         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
28360         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
28361         * lib/chdir-long.h: Include pathmax.h.
28362         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
28363         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
28364         (PATH_MAX): Remove code that is done by pathmax.h.
28365         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
28366         * lib/tmpfile.c: Add a comment.
28367         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
28368         * modules/chdir-long (Depends-on): Add pathmax.
28369         * modules/getcwd (Depends-on): Add pathmax.
28370         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
28371         is not defined.
28372         * doc/posix-headers/limits.texi: Mention the pathmax module.
28373         * NEWS: Mention the change.
28375 2011-08-02  Bruno Haible  <bruno@clisp.org>
28377         pthread_sigmask: Actually use results of gl_THREADLIB.
28378         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
28379         gl_THREADLIB, not gl_[]THREADLIB.
28380         Reported by Eric Blake.
28382 2011-08-02  Jim Meyering  <meyering@redhat.com>
28384         maint.mk: relax the default _gl_TS_function_match regexp
28385         * top/maint.mk (_gl_TS_function_match): Don't require at least one
28386         space between function name and "(" in an "extern" declaration.
28387         That would fail to match a decl with no space there: extern void foo();
28389 2011-07-31  Iain Nicol  <iain@thenicols.net>
28391         git-version-gen: document that EXTRA_DIST must include .version
28392         * build-aux/git-version-gen: In the how-to-use comment, document
28393         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
28394         will fail when run from an unpacked distribution tarball.
28396 2011-08-01  Bruno Haible  <bruno@clisp.org>
28398         wctype-h: Fix last change.
28399         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
28400         REPLACE_TOWLOWER to 0.
28401         Reported by Sam Steingold <sds@gnu.org>.
28403 2011-07-31  Bruno Haible  <bruno@clisp.org>
28405         frexpl: Update autoconf test.
28406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
28407         according to changes of 2011-06-20.
28409 2011-07-31  Bruno Haible  <bruno@clisp.org>
28411         sys_utsname: Add support for Minix.
28412         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
28413         <sys/utsname.h>.
28414         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28415         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
28417 2011-07-31  Bruno Haible  <bruno@clisp.org>
28419         strings: Add support for Minix.
28420         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
28421         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28422         * doc/posix-headers/strings.texi: Document the Minix problem.
28424 2011-07-31  Bruno Haible  <bruno@clisp.org>
28426         wctype-h: Add support for Minix.
28427         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
28428         REPLACE_TOWLOWER.
28429         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
28430         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
28431         REPLACE_ISWCNTRL.
28433 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
28435         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
28436         This is a performance improvement for 64-bit hosts: it causes the
28437         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
28439 2011-07-31  Bruno Haible  <bruno@clisp.org>
28441         stdioext: Add support for Minix.
28442         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
28443         * lib/fpurge.c (fpurge): Likewise.
28444         * lib/freadahead.c (freadahead): Likewise.
28445         * lib/freadable.c (freadable): Likewise.
28446         * lib/freading.c (freading): Likewise.
28447         * lib/freadptr.c (freadptr): Likewise.
28448         * lib/freadseek.c (freadptrinc): Likewise.
28449         * lib/fseeko.c (rpl_fseeko): Likewise.
28450         * lib/fseterr.c (fseterr): Likewise.
28451         * lib/fwritable.c (fwritable): Likewise.
28452         * lib/fwriting.c (fwriting): Likewise.
28453         * lib/fflush.c (clear_ungetc_buffer): Update comment.
28454         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
28456 2011-07-31  Bruno Haible  <bruno@clisp.org>
28458         errno: Port to Minix.
28459         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
28460         ECONNABORTED are defined.
28461         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
28462         GNULIB_defined_ECONNABORTED): New macros.
28463         * lib/strerror-override.h (strerror_override): Test also
28464         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
28465         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
28466         ECONNABORTED.
28467         * doc/posix-headers/errno.texi: Mention the Minix problem.
28469 2011-07-31  Bruno Haible  <bruno@clisp.org>
28471         Work around declaration collisions on Minix.
28472         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
28473         defined, set REPLACE_MBSINIT.
28474         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
28475         defined, set REPLACE_MBRTOWC.
28476         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
28477         set REPLACE_MBRLEN.
28478         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
28479         defined, set REPLACE_MBSRTOWCS.
28480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
28481         defined, set REPLACE_WCRTOMB.
28482         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
28483         defined, set REPLACE_WCSRTOMBS.
28485 2011-07-31  Bruno Haible  <bruno@clisp.org>
28487         Add support for Minix with ACK compiler.
28488         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
28489         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
28490         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
28492 2011-07-31  Bruno Haible  <bruno@clisp.org>
28494         Documentation about Minix.
28495         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
28496         * doc/glibc-headers/*.texi: Likewise.
28497         * doc/posix-functions/*.texi: Likewise.
28498         * doc/glibc-functions/*.texi: Likewise.
28500 2011-07-31  Bruno Haible  <bruno@clisp.org>
28502         snippet/warn-on-use: Fix indentation.
28503         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
28505 2011-07-25  Jim Meyering  <meyering@redhat.com>
28507         tests: test-update-copyright.sh: remove unnecessary "rm" commands
28508         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
28509         commands.
28511 2011-07-27  Jim Meyering  <meyering@redhat.com>
28513         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
28514         * top/maint.mk (gl_extract_significant_defines_): Now that
28515         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
28516         gnulib/lib/signal.in.h, and now that we recommend to
28517         define-if-undefined those two symbols in application code,
28518         we must filter them out of the "significant" list.
28519         This avoids a "make syntax-check" failure in coreutils.
28521 2011-07-26  Eric Blake  <eblake@redhat.com>
28523         warnings: add comments about previous patch
28524         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
28525         * m4/include_next.m4: Likewise.
28526         * m4/warn-on-use.m4: Likewise.
28527         * m4/warnings.m4: Likewise, and simplify use.
28528         Suggested by Stefano Lattarini.
28530         include-next, warnings: support older autoconf
28531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
28532         AS_VAR_PUSHDEF in a way that works with older autoconf.
28533         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
28534         Reported by Daniel P. Berrange.
28536 2011-07-25  Bruno Haible  <bruno@clisp.org>
28538         fseek, ftell: Fix doc.
28539         * doc/posix-functions/fseek.texi: Reword statement about
28540         AC_SYS_LARGEFILE.
28541         * doc/posix-functions/ftell.texi: Likewise.
28543 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28544             Bruno Haible  <bruno@clisp.org>
28546         Add dependencies to the 'largefile' module.
28547         * modules/fopen (Depends-on): Add 'largefile'.
28548         * modules/freopen (Depends-on): Likewise.
28549         * modules/fseeko (Depends-on): Likewise.
28550         * modules/ftello (Depends-on): Likewise.
28551         * modules/glob (Depends-on): Likewise.
28552         * modules/lseek (Depends-on): Likewise.
28553         * modules/lstat (Depends-on): Likewise.
28554         * modules/mkostemp (Depends-on): Likewise.
28555         * modules/mkostemps (Depends-on): Likewise.
28556         * modules/mkstemp (Depends-on): Likewise.
28557         * modules/mkstemps (Depends-on): Likewise.
28558         * modules/open (Depends-on): Likewise.
28559         * modules/openat (Depends-on): Likewise.
28560         * modules/pread (Depends-on): Likewise.
28561         * modules/pwrite (Depends-on): Likewise.
28562         * modules/scandir (Depends-on): Likewise.
28563         * modules/stat (Depends-on): Likewise.
28564         * modules/tmpfile (Depends-on): Likewise.
28565         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
28566         since the containing module now depends on the largefile module.
28567         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
28568         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
28569         off_t is fixed by gnulib.
28570         * doc/posix-functions/freopen.texi: Likewise.
28571         * doc/posix-functions/fseeko.texi: Likewise.
28572         * doc/posix-functions/fstatat.texi: Likewise.
28573         * doc/posix-functions/ftello.texi: Likewise.
28574         * doc/posix-functions/glob.texi: Likewise.
28575         * doc/posix-functions/lseek.texi: Likewise.
28576         * doc/posix-functions/lstat.texi: Likewise.
28577         * doc/posix-functions/mkstemp.texi: Likewise.
28578         * doc/posix-functions/open.texi: Likewise.
28579         * doc/posix-functions/openat.texi: Likewise.
28580         * doc/posix-functions/pread.texi: Likewise.
28581         * doc/posix-functions/pwrite.texi: Likewise.
28582         * doc/posix-functions/scandir.texi: Likewise.
28583         * doc/posix-functions/stat.texi: Likewise.
28584         * doc/posix-functions/tmpfile.texi: Likewise.
28585         * doc/glibc-functions/mkostemp.texi: Likewise.
28586         * doc/glibc-functions/mkostemps.texi: Likewise.
28587         * doc/glibc-functions/mkstemps.texi: Likewise.
28589 2011-07-25  Bruno Haible  <bruno@clisp.org>
28591         fcntl: Move AC_LIBOBJ invocation to module description.
28592         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
28593         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
28595         fcntl: Remove call-in from fchdir.m4.
28596         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
28597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
28599         dup3: Remove potential call-in from fchdir.m4.
28600         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
28601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
28603         dup2: Move AC_LIBOBJ invocation to module description.
28604         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
28605         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
28606         Don't invoke AC_LIBOBJ.
28607         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
28609         dup2: Remove call-in from fchdir.m4.
28610         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
28611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
28613         fclose: Move AC_LIBOBJ invocation to module description.
28614         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
28615         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
28616         to 1.
28617         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
28619         fclose: Remove call-in from close.m4.
28620         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
28621         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
28623         close: Move AC_LIBOBJ invocation to module description.
28624         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
28625         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
28626         1.
28627         * modules/close (configure.ac): Invoke AC_LIBOBJ.
28629         close: Remove call-in from fchdir.m4.
28630         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
28631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
28633         open: Move AC_LIBOBJ invocation to module description.
28634         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
28635         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
28636         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
28638         open: Remove call-in from fchdir.m4.
28639         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
28640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
28642         fchdir: Start to remove gl_REPLACE_* idiom.
28643         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
28644         (gl_FUNC_FCHDIR): Invoke it.
28646 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28648         * lib/ftell.c (ftell): Comment out cast.
28650         close: use gl_REPLACE_FCLOSE only if defined
28651         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
28652         is defined.  The close module doesn't depend on the fclose module
28653         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
28654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
28655         I reproduced the problem with "./gnulib-tool --test close sys_socket".
28657 2011-07-24  Jim Meyering  <meyering@redhat.com>
28659         test-select.h: avoid warning when using gcc's -Wmissing-declarations
28660         * tests/test-select.h (test_function): Declare as "static".
28662 2011-07-24  Bruno Haible  <bruno@clisp.org>
28664         doc: Mention the effects of AC_SYS_LARGEFILE.
28665         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
28666         on this function.
28667         * doc/posix-functions/aio_error.texi: Likewise.
28668         * doc/posix-functions/aio_fsync.texi: Likewise.
28669         * doc/posix-functions/aio_read.texi: Likewise.
28670         * doc/posix-functions/aio_return.texi: Likewise.
28671         * doc/posix-functions/aio_suspend.texi: Likewise.
28672         * doc/posix-functions/aio_write.texi: Likewise.
28673         * doc/posix-functions/fgetpos.texi: Likewise.
28674         * doc/posix-functions/fopen.texi: Likewise.
28675         * doc/posix-functions/freopen.texi: Likewise.
28676         * doc/posix-functions/fsetpos.texi: Likewise.
28677         * doc/posix-functions/fstatvfs.texi: Likewise.
28678         * doc/posix-functions/ftruncate.texi: Likewise.
28679         * doc/posix-functions/ftw.texi: Likewise.
28680         * doc/posix-functions/getrlimit.texi: Likewise.
28681         * doc/posix-functions/glob.texi: Likewise.
28682         * doc/posix-functions/lio_listio.texi: Likewise.
28683         * doc/posix-functions/lockf.texi: Likewise.
28684         * doc/posix-functions/mkstemp.texi: Likewise.
28685         * doc/posix-functions/mmap.texi: Likewise.
28686         * doc/posix-functions/nftw.texi: Likewise.
28687         * doc/posix-functions/openat.texi: Likewise.
28688         * doc/posix-functions/opendir.texi: Likewise.
28689         * doc/posix-functions/posix_fadvise.texi: Likewise.
28690         * doc/posix-functions/posix_fallocate.texi: Likewise.
28691         * doc/posix-functions/pread.texi: Likewise.
28692         * doc/posix-functions/pwrite.texi: Likewise.
28693         * doc/posix-functions/readdir.texi: Likewise.
28694         * doc/posix-functions/readdir_r.texi: Likewise.
28695         * doc/posix-functions/rewinddir.texi: Likewise.
28696         * doc/posix-functions/scandir.texi: Likewise.
28697         * doc/posix-functions/seekdir.texi: Likewise.
28698         * doc/posix-functions/setrlimit.texi: Likewise.
28699         * doc/posix-functions/statvfs.texi: Likewise.
28700         * doc/posix-functions/telldir.texi: Likewise.
28701         * doc/posix-functions/tmpfile.texi: Likewise.
28702         * doc/posix-functions/truncate.texi: Likewise.
28703         * doc/glibc-functions/fallocate.texi: Likewise.
28704         * doc/glibc-functions/fstatfs.texi: Likewise.
28705         * doc/glibc-functions/fts_children.texi: Likewise.
28706         * doc/glibc-functions/fts_read.texi: Likewise.
28707         * doc/glibc-functions/getdirentries.texi: Likewise.
28708         * doc/glibc-functions/mkostemp.texi: Likewise.
28709         * doc/glibc-functions/mkostemps.texi: Likewise.
28710         * doc/glibc-functions/mkstemps.texi: Likewise.
28711         * doc/glibc-functions/preadv.texi: Likewise.
28712         * doc/glibc-functions/pwritev.texi: Likewise.
28713         * doc/glibc-functions/sendfile.texi: Likewise.
28714         * doc/glibc-functions/statfs.texi: Likewise.
28716 2011-07-24  Bruno Haible  <bruno@clisp.org>
28718         doc: Fix typo.
28719         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
28721 2011-07-24  Bruno Haible  <bruno@clisp.org>
28723         doc: Mention fsusage.
28724         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
28726 2011-07-24  Bruno Haible  <bruno@clisp.org>
28728         doc: Mention new glibc headers and functions.
28729         * doc/glibc-headers/gshadow.texi: New file.
28730         * doc/glibc-functions/endsgent.texi: New file.
28731         * doc/glibc-functions/fgetsgent.texi: New file.
28732         * doc/glibc-functions/fgetsgent_r.texi: New file.
28733         * doc/glibc-functions/getsgent.texi: New file.
28734         * doc/glibc-functions/getsgent_r.texi: New file.
28735         * doc/glibc-functions/getsgnam.texi: New file.
28736         * doc/glibc-functions/getsgnam_r.texi: New file.
28737         * doc/glibc-functions/putsgent.texi: New file.
28738         * doc/glibc-functions/setsgent.texi: New file.
28739         * doc/glibc-functions/sgetsgent.texi: New file.
28740         * doc/glibc-functions/sgetsgent_r.texi: New file.
28741         * doc/glibc-functions/malloc_info.texi: New file.
28742         * doc/glibc-functions/preadv.texi: New file.
28743         * doc/glibc-functions/pwritev.texi: New file.
28744         * doc/glibc-functions/register_printf_modifier.texi: New file.
28745         * doc/glibc-functions/register_printf_specifier.texi: New file.
28746         * doc/glibc-functions/register_printf_type.texi: New file.
28747         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
28748         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
28749         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
28750         * doc/glibc-functions/pthread_getname_np.texi: New file.
28751         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
28752         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
28753         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
28754         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
28755         * doc/glibc-functions/pthread_setname_np.texi: New file.
28756         * doc/glibc-functions/pthread_sigqueue.texi: New file.
28757         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
28758         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
28759         * doc/glibc-functions/qsort_r.texi: New file.
28760         * doc/glibc-functions/quick_exit.texi: New file.
28761         * doc/glibc-functions/syncfs.texi: New file.
28762         * doc/gnulib.texi: Include them.
28763         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
28764         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
28765         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
28766         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
28767         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
28768         * doc/glibc-functions/execvpe.texi: Likewise.
28770 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
28772         ftell: don't include <unistd.h>
28773         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
28774         guaranteed to define off_t, and the ftell module depends on the
28775         stdio module.
28777         ftell: do not assume wraparound signed arithmetic
28778         * lib/ftell.c: Include <limits.h>.
28779         (ftell): Don't assume wraparound signed arithmetic.
28781 2011-07-24  Bruno Haible  <bruno@clisp.org>
28783         close: No longer depend on module 'fclose'.
28784         * modules/close (Depends-on): Remove fclose.
28785         * NEWS: Mention the change.
28786         Suggested by Sam Steingold <sds@gnu.org>.
28788 2011-07-24  Bruno Haible  <bruno@clisp.org>
28790         fsusage: Enable large volume support on AIX >= 5.2.
28791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
28792         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
28793         instead of STAT_STATVFS.
28794         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
28796         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
28797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
28798         f_blocks field only on MacOS X.
28800         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
28801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
28802         * modules/fsusage (Depends-on): Add largefile.
28804 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
28806         * README: Modernize discussion of signed integers.
28807         Assuming overflow wraparound is no longer safe.
28808         Mention ones' complement and signed magnitude.
28810 2011-07-22  Bruno Haible  <bruno@clisp.org>
28812         select tests, pselect tests: Refactor.
28813         * tests/test-select.h: New file, extracted from tests/test-select.c.
28814         (select_fn): New type.
28815         (test, do_select, do_select_nowait, do_select_wait, test_tty,
28816         test_connect_first, test_accept_first, test_pair, test_socket_pair,
28817         test_pipe): Add my_select argument.
28818         (test_function): Renamed from main. Add my_select argument.
28819         * tests/test-select.c: Move most code to tests/test-select.h. Include
28820         test-select.h.
28821         * modules/select-tests (Files): Add tests/test-select.h.
28822         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
28823         (my_select, main): New functions.
28824         * modules/pselect-tests (Files): Add tests/test-select.h,
28825         tests/macros.h, tests/signature.h.
28826         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
28827         (configure.ac): Check for <sys/wait.h>.
28829 2011-07-22  Bruno Haible  <bruno@clisp.org>
28831         sys_select tests: Check the signature of FD_*.
28832         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
28833         signature tests from here...
28834         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
28835         here.
28836         * modules/sys_select-tests (Files): Add tests/signature.h.
28838 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
28840         largefile: new module, replacing large-inode
28841         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
28842         * MODULES.html.sh: Add largefile, remove large-inode.
28843         * modules/largefile, m4/largefile.m4: New files.
28844         * modules/large-inode, m4/large-inode.m4: Remove.
28846         fsusage: port to MacOS X 10.7 with 4 TiB file systems
28847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
28848         implementations that use only 32 bits to count blocks.
28849         On typical hosts with 1024-byte blocks, this fails with file
28850         systems as small as 4 TiB.  Problem reported by Herb Wartens
28851         <http://debbugs.gnu.org/9140> and this should also fix a similar
28852         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
28854         large-inode: New module
28855         * MODULES.html.sh: Add it.
28856         * modules/large-inode, m4/large-inode.m4: New files.
28858         extensions: Enable extensions on MacOS X 10.5 and later.
28859         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
28861 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
28863         file-has-acl: use acl_extended_file_nofollow if available
28864         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
28865         (acl_extended_file): New macro.
28866         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
28867         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
28869 2011-07-21  Bruno Haible  <bruno@clisp.org>
28871         Declare system functions in a way that works with C++.
28872         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
28873         declare fdopendir as extern "C".
28874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
28875         declare frexpl as extern "C".
28876         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
28877         declare gai_strerror as extern "C".
28878         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
28879         programs, declare gai_strerror as extern "C".
28880         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
28881         declare getlogin_r as extern "C".
28882         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
28883         as extern "C".
28884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
28885         declare ldexpl as extern "C".
28886         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
28887         as extern "C".
28888         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
28889         program, declare getmntinfo as extern "C".
28890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
28891         stpncpy as extern "C".
28892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
28893         program, declare __xpg_strerror_r as extern "C".
28894         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
28895         strndup as extern "C".
28896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
28897         declare memset and bzero as extern "C".
28898         Reported by Sam Steingold <sds@gnu.org>.
28900 2011-07-12  Jim Meyering  <meyering@redhat.com>
28902         maint.mk: prohibit inclusion of "verify.h" without use
28903         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
28905 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28907         timer-time: A new module to check for timer_settime()
28908         * m4/timer_time.m4: Check for the posix function.
28909         * modules/timer-time: Add the new module.
28910         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
28911         Mention it.
28913 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
28914             Bruno Haible  <bruno@clisp.org>
28916         pthread_sigmask: assume POSIX threads if --avoid=threadlib
28917         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
28918         not defined, assume POSIX threads and look for pthread_sigmask in
28919         $LIBS, without changing $CPPFLAGS.
28921 2011-07-19  Bruno Haible  <bruno@clisp.org>
28923         strstr: Update cross-compilation guess.
28924         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
28925         CPUs, guess no, in view of glibc
28926         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
28927         Suggested by Eric Blake. Reported by Reuben Thomas.
28929 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28931         getopt-gnu: suppress core dumps from detection code
28932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
28933         to suppress core dumps that may well occur on glibc systems.
28934         * modules/getopt-gnu: Depend on nocrash.
28936 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28938         pthread_sigmask: ensure usleep is declared
28939         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
28940         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
28942 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28944         doc: Document NonStop portability issues.
28945         * doc/posix-functions/sigaction.texi (sigaction):
28946         * doc/posix-headers/signal.texi (signal.h):
28947         Document NonStop.  See Joachim Schmitz in
28948         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
28950 2011-07-15  Bruno Haible  <bruno@clisp.org>
28952         ffsl, ffsll: Avoid unportable behaviour.
28953         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
28955 2011-07-15  Bruno Haible  <bruno@clisp.org>
28957         ffs: More tests.
28958         * tests/test-ffs.c (NBITS): New macro.
28959         (main): Add more tests.
28960         * tests/test-ffsl.c (NBITS): New macro.
28961         (main): Add more tests.
28962         * tests/test-ffsll.c (NBITS): New macro.
28963         (main): Add more tests.
28965 2011-07-15  Eric Blake  <eblake@redhat.com>
28967         ffsl, ffsll: new modules
28968         * modules/ffsl: New file.
28969         * modules/ffsll: Likewise.
28970         * m4/ffsl.m4: Likewise.
28971         * m4/ffsll.m4: Likewise.
28972         * lib/ffsl.c: Likewise.
28973         * lib/ffsl.h: Likewise.
28974         * lib/ffsll.c: Likewise.
28975         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
28976         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
28977         * modules/string (Makefile.am): Substitute witnesses.
28978         * lib/strings.in.h (ffsl, ffsll): Declare.
28979         * modules/ffsl-tests: New test file.
28980         * modules/ffsll-tests: Likewise.
28981         * tests/test-ffsl.c: Likewise.
28982         * tests/test-ffsll.c: Likewise.
28983         * MODULES.html.sh (Integer arithmetic functions): Mention it.
28984         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
28985         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
28987         ffs: fix m4 prerequisite
28988         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
28990         ffs: avoid undefined behavior
28991         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
28992         * tests/test-ffs.c (naive, main): Avoid signed shifts.
28993         Reported by Bruno Haible.
28995 2011-07-12  Bruno Haible  <bruno@clisp.org>
28997         pthread_sigmask: Rely on module 'threadlib'.
28998         * modules/pthread_sigmask (Depends-on): Add threadlib.
28999         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
29000         is defined.
29002 2011-07-12  Bruno Haible  <bruno@clisp.org>
29004         regex: Depend on module 'strcase'.
29005         * modules/regex (Depends-on): Add strcase, for strcasecmp().
29007 2011-07-12  Jim Meyering  <meyering@redhat.com>
29009         warn-on-use: fix typo in file name
29010         * modules/snippet/warn-on-use (Files): Correct file name:
29011         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
29013 2011-07-12  Bruno Haible  <bruno@clisp.org>
29015         strings: Document module.
29016         * doc/posix-headers/strings.texi: Mention module 'strings'.
29018 2011-07-12  Bruno Haible  <bruno@clisp.org>
29020         Rename module '_Noreturn' to 'snippet/_Noreturn'.
29021         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
29022         (Files, Makefile.am): Update.
29023         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
29024         * modules/stdlib (Depends-on): Update.
29026 2011-07-12  Bruno Haible  <bruno@clisp.org>
29028         * NEWS: Mention the changes.
29030         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
29031         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
29032         (Files, Makefile.am): Update.
29033         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
29034         * modules/arpa_inet (Depends-on): Update.
29035         * modules/ctype (Depends-on): Update.
29036         * modules/dirent (Depends-on): Update.
29037         * modules/fcntl-h (Depends-on): Update.
29038         * modules/glob (Depends-on): Update.
29039         * modules/iconv-h (Depends-on): Update.
29040         * modules/inttypes-incomplete (Depends-on): Update.
29041         * modules/langinfo (Depends-on): Update.
29042         * modules/locale (Depends-on): Update.
29043         * modules/math (Depends-on): Update.
29044         * modules/netdb (Depends-on): Update.
29045         * modules/poll-h (Depends-on): Update.
29046         * modules/pty (Depends-on): Update.
29047         * modules/search (Depends-on): Update.
29048         * modules/signal (Depends-on): Update.
29049         * modules/spawn (Depends-on): Update.
29050         * modules/stdio (Depends-on): Update.
29051         * modules/stdlib (Depends-on): Update.
29052         * modules/string (Depends-on): Update.
29053         * modules/strings (Depends-on): Update.
29054         * modules/sys_file (Depends-on): Update.
29055         * modules/sys_ioctl (Depends-on): Update.
29056         * modules/sys_select (Depends-on): Update.
29057         * modules/sys_socket (Depends-on): Update.
29058         * modules/sys_stat (Depends-on): Update.
29059         * modules/sys_time (Depends-on): Update.
29060         * modules/sys_times (Depends-on): Update.
29061         * modules/sys_utsname (Depends-on): Update.
29062         * modules/sys_wait (Depends-on): Update.
29063         * modules/termios (Depends-on): Update.
29064         * modules/time (Depends-on): Update.
29065         * modules/unistd (Depends-on): Update.
29066         * modules/wchar (Depends-on): Update.
29067         * modules/wctype-h (Depends-on): Update.
29068         * MODULES.html.sh (Support for building libraries and executables):
29069         Update.
29071         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
29072         * modules/snippet/unused-parameter: Renamed from
29073         modules/unused-parameter.
29074         (Files, Makefile.am): Update.
29075         * build-aux/snippet/unused-parameter.h: Renamed from
29076         build-aux/unused-parameter.h.
29077         * modules/selinux-h (Depends-on): Update.
29078         * modules/unistr/base (Depends-on): Update.
29079         * MODULES.html.sh (Core language properties): Update.
29081         Rename module 'link-warning' to 'snippet/link-warning'.
29082         * modules/snippet/link-warning: Renamed from modules/link-warning.
29083         (Files, Makefile.am): Update.
29084         * build-aux/snippet/link-warning.h: Renamed from
29085         build-aux/link-warning.h.
29086         * MODULES.html.sh (Support for building libraries and executables):
29087         Update.
29089         Rename module 'c++defs' to 'snippet/c++defs'.
29090         * modules/snippet/c++defs: Renamed from modules/c++defs.
29091         (Files, Makefile.am): Update.
29092         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
29093         * modules/arpa_inet (Depends-on): Update.
29094         * modules/ctype (Depends-on): Update.
29095         * modules/dirent (Depends-on): Update.
29096         * modules/fcntl-h (Depends-on): Update.
29097         * modules/glob (Depends-on): Update.
29098         * modules/iconv-h (Depends-on): Update.
29099         * modules/langinfo (Depends-on): Update.
29100         * modules/locale (Depends-on): Update.
29101         * modules/math (Depends-on): Update.
29102         * modules/netdb (Depends-on): Update.
29103         * modules/poll-h (Depends-on): Update.
29104         * modules/pty (Depends-on): Update.
29105         * modules/search (Depends-on): Update.
29106         * modules/signal (Depends-on): Update.
29107         * modules/spawn (Depends-on): Update.
29108         * modules/stdio (Depends-on): Update.
29109         * modules/stdlib (Depends-on): Update.
29110         * modules/string (Depends-on): Update.
29111         * modules/strings (Depends-on): Update.
29112         * modules/sys_ioctl (Depends-on): Update.
29113         * modules/sys_select (Depends-on): Update.
29114         * modules/sys_socket (Depends-on): Update.
29115         * modules/sys_stat (Depends-on): Update.
29116         * modules/sys_time (Depends-on): Update.
29117         * modules/sys_wait (Depends-on): Update.
29118         * modules/termios (Depends-on): Update.
29119         * modules/time (Depends-on): Update.
29120         * modules/unistd (Depends-on): Update.
29121         * modules/wchar (Depends-on): Update.
29122         * modules/wctype-h (Depends-on): Update.
29124         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
29125         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
29126         (Files, Makefile.am): Update.
29127         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
29128         * modules/argv-iter (Depends-on): Update.
29129         * modules/arpa_inet (Depends-on): Update.
29130         * modules/dirent (Depends-on): Update.
29131         * modules/fcntl-h (Depends-on): Update.
29132         * modules/fnmatch (Depends-on): Update.
29133         * modules/getopt-posix (Depends-on): Update.
29134         * modules/glob (Depends-on): Update.
29135         * modules/iconv-h (Depends-on): Update.
29136         * modules/inttypes-incomplete (Depends-on): Update.
29137         * modules/locale (Depends-on): Update.
29138         * modules/math (Depends-on): Update.
29139         * modules/netdb (Depends-on): Update.
29140         * modules/search (Depends-on): Update.
29141         * modules/signal (Depends-on): Update.
29142         * modules/spawn (Depends-on): Update.
29143         * modules/stdio (Depends-on): Update.
29144         * modules/stdlib (Depends-on): Update.
29145         * modules/string (Depends-on): Update.
29146         * modules/strings (Depends-on): Update.
29147         * modules/sys_socket (Depends-on): Update.
29148         * modules/sys_stat (Depends-on): Update.
29149         * modules/sys_time (Depends-on): Update.
29150         * modules/sys_times (Depends-on): Update.
29151         * modules/sys_utsname (Depends-on): Update.
29152         * modules/time (Depends-on): Update.
29153         * modules/unistd (Depends-on): Update.
29154         * modules/wchar (Depends-on): Update.
29155         * MODULES.html.sh (Support for building libraries and executables):
29156         Update.
29158 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
29160         Improvements on _Noreturn and related modules.
29162         modules/_Exit-tests: test _Noreturn too
29163         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
29164         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
29165         (main): Use them.
29167         stdnoreturn, stdnoreturn-tests: remove modules
29168         They're not needed here and a bit premature for use elsewhere.  See
29169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
29170         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
29171         * tests/test-stdnoreturn.c: Remove files.
29172         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
29173         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
29174         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
29175         and using noreturn.
29176         * modules/openat, modules/sigpipe-die, modules/xalloc:
29177         * modules/xmemdup0, modules/xstrtol:
29178         Remove dependency on stdnoreturn.
29180         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
29181         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
29182         Reparenthesize to avoid GCC warning.
29183         Support Microsoft's syntax.
29184         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
29186         _Noreturn-tests: remove module
29187         * modules/_Noreturn-tests: Remove.
29188         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
29189         * tests/test-_Noreturn.c: Remove.
29190         * tests/test-stdnoreturn.c: Merge from the old
29191         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
29193 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
29195         _Noreturn, stdnoreturn, and related modules.
29197         * top/maint.mk: Adjust to new noreturn support.
29198         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
29199         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
29201         xalloc: use stdnoreturn.h
29202         * lib/xalloc.h: Include <stdnoreturn.h>.
29203         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29204         * modules/xalloc (Depends-on): Add stdnoreturn.
29206         xstrtol: use stdnoreturn.h
29207         * lib/xstrtol.h: Include <stdnoreturn.h>.
29208         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29209         * modules/xstrtol (Depends-on): Add stdnoreturn.
29211         xmemdup0: use stdnoreturn.h
29212         * lib/xmemdup0.h: Include <stdnoreturn.h>.
29213         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29214         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
29216         sigpipe-die: use stdnoreturn.h
29217         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
29218         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29219         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
29221         openat: use stdnoreturn.h
29222         * lib/openat.h: Include <stdnoreturn.h>.
29223         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29224         * modules/openat (Depends-on): Add stdnoreturn.
29226         * lib/openat-die.c (openat_save_fail): Modernize comment.
29228         * lib/xalloc-die.c (xalloc_die): Modernize comment.
29230         * lib/glthread/thread.h: Modernize comment.
29232         obstack: use _Noreturn
29233         * lib/obstack.c (__attribute__): Remove macro.
29234         (print_and_abort): Use _Noreturn.
29236         c-stack: use _Noreturn
29237         * lib/c-stack.c (die, overflow_handler, segv_handler):
29238         Use _Noreturn rather than __attribute__((noreturn)).
29240         argmatch-tests, exclude_tests: use _Noreturn
29241         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
29242         Remove.
29243         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
29245         stdlib: use _Noreturn
29246         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
29247         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
29248         * modules/stdlib (Depends-on): Add _Noreturn.
29249         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
29251         stdnoreturn-tests: new module
29252         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
29254         stdnoreturn: new module
29255         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
29256         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
29258         _Noreturn-tests: new module
29259         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
29261         _Noreturn: new module
29262         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
29263         New section, mentioning it.
29264         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
29266         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
29268 2011-07-11  Eric Blake  <eblake@redhat.com>
29270         ffs: new module
29271         * modules/ffs: New file.
29272         * m4/ffs.m4: Likewise.
29273         * lib/ffs.c: Likewise.
29274         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
29275         * modules/strings (Makefile.am): Substitute witness.
29276         (Depends-on): Add c++defs.
29277         * lib/strings.in.h (ffs): Declare.
29278         * modules/ffs-tests: New test file.
29279         * tests/test-ffs.c: Test new module.
29280         * MODULES.html.sh (Integer arithmetic functions): Mention it.
29281         * doc/posix-functions/ffs.texi (ffs): Likewise.
29283         regex: avoid compiler warning
29284         * lib/regex.c (includes): Include <strings.h>, for use of
29285         strcasecmp in regcomp.c.
29286         Reported by Joachim Schmitz.
29288 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29290         stdint: respect system's intmax_t if INTMAX_MAX
29291         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
29292         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
29293         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
29294         long but int64_t is long long, and where we will clash with the
29295         system intmax_t if we override it.  See
29296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
29297         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
29298         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
29299         similarly for UINTMAX_C.
29301 2011-07-08  Bruno Haible  <bruno@clisp.org>
29303         pthread_sigmask tests: Avoid a compiler warning.
29304         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
29305         non-zero.
29307         sigprocmask tests: A better way to avoid a compiler warning.
29308         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
29309         (main): Complain if system() returns non-zero.
29310         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
29312 2011-07-08  Bruno Haible  <bruno@clisp.org>
29314         pthread_sigmask: Work around IRIX bug.
29315         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
29316         bug.
29317         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
29318         there may be unblocked pending signals.
29319         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
29321 2011-07-08  Bruno Haible  <bruno@clisp.org>
29323         pthread_sigmask: Work around Cygwin bug.
29324         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
29325         bug.
29326         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
29327         the system's pthread_sigmask function.
29328         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
29330 2011-07-08  Bruno Haible  <bruno@clisp.org>
29332         pthread_sigmask: Work around bug in single-threaded implementation.
29333         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
29334         FreeBSD, HP-UX, Solaris bug.
29335         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
29336         * lib/pthread_sigmask.c: Include <stddef.h>.
29337         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
29338         the system's pthread_sigmask function.
29339         * modules/pthread_sigmask (configure.ac): Invoke
29340         gl_PREREQ_PTHREAD_SIGMASK.
29341         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
29342         HP-UX, Solaris.
29344 2011-07-08  Eric Blake  <eblake@redhat.com>
29346         test-sigprocmask: avoid compiler warning
29347         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
29348         * tests/test-sigprocmask.c (main): Use it to silence warning.
29349         Reported by Jim Meyering.
29351         test-snprintf: avoid compiler warning
29352         * tests/test-snprintf.c (main): Avoid shadowed declaration.
29353         * tests/test-vsnprintf.c (main): Likewise.
29354         Reported by Jim Meyering.
29356 2011-07-08  Bruno Haible  <bruno@clisp.org>
29358         Tests for module 'pthread_sigmask'.
29359         * modules/pthread_sigmask-tests: New file.
29360         * tests/test-pthread_sigmask1.c: New file, based on
29361         tests/test-sigprocmask.c.
29362         * tests/test-pthread_sigmask2.c: New file.
29364 2011-07-08  Jim Meyering  <meyering@redhat.com>
29366         test-getopt.h: avoid warning about an unused variable
29367         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
29369 2011-07-07  Jim Meyering  <meyering@redhat.com>
29371         maint: reduce list of files exempt from sc_prohibit_leading_TABs
29372         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
29373         now that it no longer contains leading TABs.
29374         Remove unused "url=FIXME" statement.
29376 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29378         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
29379         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29380         When gl_THREADLIB is not in use, assume that the POSIX sematics
29381         are desired.  This is better for Emacs, which uses POSIX semantics
29382         on GNUish and/or POSIXish platforms, and does not use threads at
29383         all otherwise.
29385         pthread_sigmask: fix typo when testing for libraries
29386         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29387         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
29389 2011-07-08  Eric Blake  <eblake@redhat.com>
29391         fts: introduce FTS_NOATIME
29392         * lib/fts_.h (FTS_NOATIME): New bit flag.
29393         (FTS_OPTIONMASK): Adjust.
29394         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
29395         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
29397 2011-07-08  Bruno Haible  <bruno@clisp.org>
29399         Tests for module 'thread'.
29400         * modules/thread-tests: New file.
29401         * tests/test-thread_self.c: New file.
29402         * tests/test-thread_create.cc: New file.
29404 2011-07-08  Bruno Haible  <bruno@clisp.org>
29406         thread: Avoid gcc warnings when using gl_thread_self().
29407         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
29408         'void *'.
29409         (gl_thread_self_pointer): Update.
29411 2011-07-07  Bruno Haible  <bruno@clisp.org>
29413         signal-c++-tests: Check declaration of pthread_sigmask.
29414         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
29415         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
29416         $(LIB_PTHREAD_SIGMASK).
29418 2011-07-07  Bruno Haible  <bruno@clisp.org>
29420         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
29421         * lib/signal.in.h (pthread_sigmask): Override if
29422         REPLACE_PTHREAD_SIGMASK is 1.
29423         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29424         REPLACE_PTHREAD_SIGMASK.
29425         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
29426         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
29427         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
29428         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
29429         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
29431 2011-07-07  Bruno Haible  <bruno@clisp.org>
29433         pthread_sigmask: Ensure declaration in <signal.h>.
29434         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
29435         include <pthread.h>.
29436         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
29437         problem.
29439 2011-07-07  Bruno Haible  <bruno@clisp.org>
29441         pthread_sigmask: Document the module.
29442         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
29444 2011-07-07  Bruno Haible  <bruno@clisp.org>
29446         pthread_sigmask: Follow gnulib conventions.
29447         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
29448         gl_PTHREAD_SIGMASK.
29449         * modules/pthread_sigmask (configure.ac): Update.
29451 2011-07-07  Bruno Haible  <bruno@clisp.org>
29453         pthread_sigmask: Make declaration C++ safe.
29454         * lib/signal.in.h: In two special conditions, just do an #include_next.
29455         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
29456         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
29457         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29458         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
29459         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
29460         not REPLACE_PTHREAD_MASK.
29461         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
29462         not REPLACE_PTHREAD_MASK.
29463         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
29465 2011-07-07  Bruno Haible  <bruno@clisp.org>
29467         pthread_sigmask: Fix return value.
29468         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
29469         * lib/pthread_sigmask.c: New file.
29470         * modules/pthread_sigmask (Files): Add it.
29471         (configure.ac): Invoke AC_LIBOBJ.
29473 2011-07-07  Eric Blake  <eblake@redhat.com>
29475         getopt: more portable argv creation
29476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
29477         const, use char arrays rather than strings.
29478         Suggested by Paul Eggert.
29480 2011-07-07  Bruno Haible  <bruno@clisp.org>
29482         Tests for module 'sigprocmask'.
29483         * modules/sigprocmask-tests: New file.
29484         * tests/test-sigprocmask.c: New file.
29486 2011-07-07  Bruno Haible  <bruno@clisp.org>
29488         float tests: Tweak.
29489         * tests/test-float.c (main): Tweak skip message.
29491 2011-07-07  Eric Blake  <eblake@redhat.com>
29493         getopt: avoid compiler warning during configure
29494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
29495         assigning string literals to non-const pointer.
29497         getopt-gnu: avoid crash in glibc getopt
29498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
29499         * tests/test-getopt.h (test_getopt): Enhance test.
29500         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29501         * doc/posix-functions/getopt.texi (getopt): Document it.
29502         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29503         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29504         Likewise.
29506 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
29508         getopt: handle W; without long options in getopt [BZ #12922]
29509         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
29510         but no long options are defined, just return 'W'.
29512 2011-07-07  Bruno Haible  <bruno@clisp.org>
29514         Avoid literal tabs.
29515         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
29516         variable containing a tab instead of a literal tab.
29517         Reported by Jim Meyering.
29519 2011-07-07  Bruno Haible  <bruno@clisp.org>
29521         Comments.
29522         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
29524 2011-07-06  Bruno Haible  <bruno@clisp.org>
29526         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
29527         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
29528         <winsock2.h>.
29529         (rpl_fd_isset, FD_ISSET): New definitions, copied from
29530         lib/sys_socket.in.h.
29531         (close, gethostname): Hide declarations from <winsock2.h>.
29532         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29533         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
29534         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
29535         (select): Don't override if gnulib's <sys/select.h> was already
29536         included.
29537         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29538         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29539         setsockopt, shutdown, select): Tweak indentation.
29541 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29543         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
29544         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
29545         in an application that does not use the sys_select module.
29547 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
29549         poll: do not return 0 on timeout=-1
29550         * lib/poll.c: Loop with yield if no events occurred.
29552 2011-07-06  Eric Blake  <eblake@redhat.com>
29554         pthread_sigmask: always replace when not using pthread
29555         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
29556         replacement when using some threading other than pthread.  Fix
29557         logic bug.
29559 2011-07-06  Bruno Haible  <bruno@clisp.org>
29561         Comments.
29562         * m4/printf.m4: Update comments about mingw.
29564 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29566         sys_select: define sigset_t more portably
29567         * lib/sys_select.in.h: Always include <sys/types.h>, since
29568         we now need sigset_t and mingw defines it there.
29569         Include <signal.h> before split inclusion guard, to avoid
29570         mishaps on Solaris, whose <signal.h> eventually includes us.
29571         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
29572         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
29573         which come from ...
29574         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
29575         gl_CHECK_TYPE_SIGSET_T.
29576         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
29577         does the real work.
29578         * modules/sys_select (Depends-on): Add 'signal'.
29580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
29581         Suggested by Bruno Haible.
29583         pselect: Use pthread_sigmask, not sigprocmask.
29584         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
29585         multithreaded apps better than sigprocmask does.
29586         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
29587         sigprocmask directly.
29589 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29591         * lib/pselect.c (pselect): Use plain name, without "rpl_".
29592         Don't #undef,  since we don't need any underlying pselect.
29593         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
29594         (Depends-on): Add select.
29595         (Link): Add $(LIBSOCKET).
29596         These changes suggested by Bruno Haible.
29598         pselect: document better
29599         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
29600         * doc/posix-functions/pselect.texi (pselect): Document new module.
29602         pthread_sigmask: new module
29603         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
29604         * doc/posix-functions/pthread_sigmask.texi: Document new module.
29605         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
29606         This is done only as a macro; I don't know how well that'll
29607         work for C++.  Move <sys/types.h> include before the include_next,
29608         to avoid mishap on Solaris.
29609         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
29610         * modules/signal (Makefile.am): Substitute the check's results.
29611         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
29613         test-pselect: new module
29614         * modules/pselect-tests, tests/test-pselect.c: New files.
29615         * tests/test-select.c, tests/test-sys_select-c++.cc:
29616         If TEST_PSELECT is defined, test pselect instead of testing select.
29618         * tests/test-sys_select.c (sigset_t): Test for it, too.
29619         Suggested by Bruno Haible.
29621 2011-07-05  Eric Blake  <eblake@redhat.com>
29623         snprintf: guarantee %1$d, for libintl
29624         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
29625         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29626         * doc/posix-functions/snprintf.texi (snprintf): Update.
29627         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29628         * tests/test-snprintf.c (main): Enhance test.
29629         * tests/test-vsnprintf.c (main): Likewise.
29631 2011-07-05  Jim Meyering  <meyering@redhat.com>
29633         maint: exempt stdio-read.c and stdio-write.c from the cppi check
29634         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
29635         per Bruno's request, to accommodate this idiom (no space after "#")
29636         even when the function is inside an #if block:
29637         char *
29638         gets (char *s)
29639         #undef gets
29640         {
29641           ...
29642         }
29644 2011-07-04  Jim Meyering  <meyering@redhat.com>
29646         maint: indent with spaces, not TABs, and add a rule to check this
29647         * tests/test-userspec.c: Indent with spaces, not TABs.
29648         * tests/test-argp.c: Likewise.
29649         * tests/test-c-stack2.sh: Likewise.
29650         * tests/test-parse-duration.sh: Likewise
29651         * m4/strtod.m4: Likewise.
29652         * m4/alloca.m4: Likewise.
29653         * m4/pselect.m4: Likewise.
29654         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
29656 2011-07-03  Jim Meyering  <meyering@redhat.com>
29658         maint.mk: correct omissions in prohibit_argmatch_without_use check
29659         This rule would mistakenly report that argmatch.h is included without
29660         use even when both the argmatch and invalid_arg macro were used.
29661         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
29662         of argmatch and invalid_arg.
29664 2011-07-03  Bruno Haible  <bruno@clisp.org>
29666         Comments about EINTR.
29667         * lib/safe-read.h: Explain the purpose of this module.
29668         * lib/safe-write.h: Likewise.
29669         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
29670         module.
29671         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
29672         module.
29673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29675 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29677         xnanosleep: Rewrite to use new dtotimespec module.
29678         It has the conversion code that used to be in xnanosleep.
29679         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
29680         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
29681         (TIME_T_MAX): Remove.
29682         (xnanosleep): Rewrite in terms of dtotimespec.
29683         * modules/xnanosleep (Depends-on): Add dtotimespec.
29684         Remove intprops, stdbool.
29686         timespec-add, timespec-sub: new modules
29687         * lib/timespec.h (timespec_add, timespec_sub): New decls.
29688         * lib/timespec-add.c, lib/timespec-sub.c:
29689         * modules/timespec-add, modules/timespec-sub: New files.
29691         dtotimespec: new module
29692         * lib/timespec.h (dtotimespec): New decl.
29693         * lib/dtotimespec.c, modules/dtotimespec: New files.
29695         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
29697         pselect: new module
29698         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
29699         (pselect): New decls.
29700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
29701         since the standard pselect decl uses 'restrict'.
29702         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
29703         HAVE_PSELECT, REPLACE_PSELECT.
29704         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
29705         HAVE_PSELECT, REPLACE_PSELECT.
29706         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
29708         sys_select: don't depend on sys_socket
29709         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
29710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
29711         This fix works on GNU and GNU-like platforms, but has not been tested
29712         on native Windows.
29713         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
29714         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
29715         gl_HEADER_SYS_SOCKET.
29716         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
29717         gl_PREREQ_SYS_H_WINSOCK2.
29719 2011-06-29  Eric Blake  <eblake@redhat.com>
29721         pipe2: fix C89 compile problem
29722         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
29723         Reported by Bruno Haible.
29725         pipe, pipe2: don't corrupt fd on error
29726         * lib/pipe.c (pipe): Leave fd unchanged on error.
29727         * lib/pipe2.c (pipe2): Likewise.
29728         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
29729         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29731 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
29733         mmap-anon: do not use regular expressions inadvertently
29734         * m4/mmap-anon.m4: Remove trailing period from strings sought
29735         in the output.
29737 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
29739         nanosleep: fix integer overflow problem
29740         * lib/nanosleep.c (my_usleep): Don't assume signed integer
29741         arithmetic wraps around on overflow.
29743         nanosleep: simplify carrying
29744         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
29745         first call to the underyling nanosleep, not for the last one.
29746         This doesn't fix any bugs, but it simplifies the computation of
29747         the remaining delay.  Found while auditing integer overflow issues.
29749         dup2: remove test for existence of fcntl
29750         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
29751         "#if HAVE_FCNTL", in the configure-time test program.
29752         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
29753         and therefore speeds up "configure" a bit.  Found while
29754         adding the dup2 module to Emacs.
29756 2011-06-24  Eric Blake  <eblake@redhat.com>
29758         maint.mk: enhance useless header checks
29759         * top/maint.mk (_sc_header_without_use): Check both include
29760         styles.
29761         (sc_prohibit_assert_without_use)
29762         (sc_prohibit_close_stream_without_use)
29763         (sc_prohibit_getopt_without_use)
29764         (sc_prohibit_quotearg_without_use)
29765         (sc_prohibit_quote_without_use)
29766         (sc_prohibit_long_options_without_use)
29767         (sc_prohibit_inttostr_without_use)
29768         (sc_prohibit_ignore_value_without_use)
29769         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
29770         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
29771         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
29772         (sc_prohibit_hash_pjw_without_use)
29773         (sc_prohibit_safe_read_without_use)
29774         (sc_prohibit_argmatch_without_use)
29775         (sc_prohibit_canonicalize_without_use)
29776         (sc_prohibit_root_dev_ino_without_use)
29777         (sc_prohibit_openat_without_use)
29778         (sc_prohibit_c_ctype_without_use)
29779         (sc_prohibit_signal_without_use)
29780         (sc_prohibit_stdio--_without_use)
29781         (sc_prohibit_stdio-safer_without_use)
29782         (sc_prohibit_strings_without_use)
29783         (sc_prohibit_intprops_without_use)
29784         (sc_prohibit_stddef_without_use)
29785         (sc_prohibit_xfreopen_without_use): Update clients.
29787 2011-06-24  Jim Meyering  <meyering@redhat.com>
29789         syntax-check: keep one maint.mk rule in sync with its header
29790         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
29791         of the bug Eric has just fixed, with today's commit 25e4c2ec.
29792         I prefer to avoid temporary files here, so use <(...), but that
29793         is not supported by /bin/sh, so...
29794         (SHELL): Define to /bin/bash.
29796 2011-06-24  Eric Blake  <eblake@redhat.com>
29798         maint.mk: update sc_prohibit_intprops_without_use
29799         * top/maint.mk (_intprops_names): Match recent changes.
29801 2011-06-24  Bruno Haible  <bruno@clisp.org>
29803         strerror-override: No-op tweak.
29804         * lib/strerror-override.h (strerror_override): Reorder conditions,
29805         for consistency with lib/strerror-override.c.
29807 2011-06-23  Eric Blake  <eblake@redhat.com>
29809         maint.mk: test further PATH_MAX issues
29810         * top/maint.mk (sc_prohibit_path_max_array): Rename...
29811         (sc_prohibit_path_max_allocation): ...and also test alloca.
29812         Suggested by Jim Meyering.
29814 2011-06-22  Eric Blake  <eblake@redhat.com>
29816         maint.mk: add syntax-check to avoid char[PATH_MAX]
29817         * top/maint.mk (sc_prohibit_path_max_array): New rule.
29819         stat: be robust to PATH_MAX definition
29820         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
29821         * modules/stat (Depends-on): Add verify.
29823         link: work around IRIX bug
29824         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
29825         * lib/link.c (rpl_link): Work around it.
29826         * tests/test-link.h (test_link): Enhance test.
29827         * doc/posix-functions/link.texi (link): Document the bug.
29829         getopt: silence clang warning
29830         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
29831         dereference.
29832         Reported by Gustavo Martin Domato.
29834 2011-06-22  Jim Meyering  <meyering@redhat.com>
29836         bootstrap: do not insert a blank line into each .gitignore file
29837         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
29839 2011-06-21  Eric Blake  <eblake@redhat.com>
29841         perror: test for output mismatch
29842         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
29843         perror on IRIX.
29845         strerror_r: fix OpenBSD behavior on out-of-range
29846         * lib/strerror_r.c (strerror_r): Always use maximal string.
29847         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
29849         strerror_r: fix OpenBSD behavior on 0
29850         * lib/strerror-override.c (strerror_override): Also override 0
29851         when needed.
29852         * lib/strerror-override.h (strerror_override): Likewise.
29853         * lib/strerror.c (strerror): Simplify, now that 0 override is done
29854         earlier.
29855         * lib/strerror_r.c (strerror_r): Likewise.
29856         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
29857         behavior...
29858         (gl_FUNC_STRERROR_0): ...into new macro.
29859         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
29860         is overridden.
29861         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
29862         * modules/strerror-override (Files): Add strerror.m4.
29863         (configure.ac): Also provide override for 0 when needed.
29864         * doc/posix-functions/strerror.texi (strerror): Document this.
29865         * doc/posix-functions/perror.texi (perror): Likewise.
29867         perror: adjust array size
29868         * modules/perror (Depends-on): Add strerror-override.
29869         * lib/perror.c (perror): Use it to avoid magic number.
29871         strerror-override: reduce size
29872         * lib/strerror-override.c (strerror_override): Use fewer lines.
29874 2011-06-20  Bruno Haible  <bruno@clisp.org>
29876         pathmax: Ensure correct value for PATH_MAX on HP-UX.
29877         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
29879 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29881         alloca: port to compilers that can optimize like GCC 4.6.0
29882         * lib/alloca.c (find_stack_direction): New signature, taken from
29883         Autoconf git.  This works with GCC 4.6.0.  This code should never
29884         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
29885         be used with other compilers that optimize as well as GCC 4.6.0 does.
29886         (alloca): Adjust to new signature.
29887         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
29888         New macro, which patches Autoconf in a similar way.
29890         c-stack: stop worrying about stack direction
29891         * lib/c-stack.c (find_stack_direction): Remove.
29892         (segv_handler): Don't worry about stack direction growth, as it's
29893         too much of a pain to configure this correctly, given how compilers
29894         are optimizing-away our stack-growth detection code.  Instead, assume
29895         that any access to just before or just after the stack is OK.
29896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
29897         Don't require AC_FUNC_ALLOCA; no longer needed.
29899 2011-06-20  Eric Blake  <eblake@redhat.com>
29901         test-stat: don't allocate PATH_MAX bytes
29902         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
29903         PATH_MAX-sized buffer.
29904         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
29905         * modules/stat-tests (Depends-on): Likewise.
29906         * tests/test-fstatat.c (includes): Drop pathmax.h.
29907         * tests/test-stat.c (includes): Likewise.
29908         Reported by Bruno Haible.
29910 2011-06-20  Bruno Haible  <bruno@clisp.org>
29912         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
29913         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
29914         * lib/float.c: New file.
29915         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
29916         REPLACE_FLOAT_LDBL.
29917         * modules/float (Files): Add lib/float.c.
29918         (configure.ac): Invoke AC_LIBOBJ.
29919         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
29921 2011-06-20  Bruno Haible  <bruno@clisp.org>
29923         Tests for module 'float'.
29924         * modules/float-tests: New file.
29925         * tests/test-float.c: New file.
29927 2011-06-19  Bruno Haible  <bruno@clisp.org>
29929         isinf: Coding style.
29930         * lib/isinf.c: Use GNU coding style.
29932 2011-06-19  Bruno Haible  <bruno@clisp.org>
29934         linkat test: Avoid test failure on AIX 7.1.
29935         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
29936         * tests/test-link.h (test_link): Likewise.
29938 2011-06-19  Bruno Haible  <bruno@clisp.org>
29940         pread test: Avoid test failure on OpenBSD 4.9.
29941         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
29943 2011-06-19  Bruno Haible  <bruno@clisp.org>
29945         sprintf-posix: Fix test failure on AIX 7.1.
29946         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
29947         * doc/posix-functions/dprintf.texi: Mention limited precision problem
29948         on AIX.
29949         * doc/posix-functions/fprintf.texi: Likewise.
29950         * doc/posix-functions/printf.texi: Likewise.
29951         * doc/posix-functions/snprintf.texi: Likewise.
29952         * doc/posix-functions/sprintf.texi: Likewise.
29953         * doc/posix-functions/vdprintf.texi: Likewise.
29954         * doc/posix-functions/vfprintf.texi: Likewise.
29955         * doc/posix-functions/vprintf.texi: Likewise.
29956         * doc/posix-functions/vsnprintf.texi: Likewise.
29957         * doc/posix-functions/vsprintf.texi: Likewise.
29959 2011-06-19  Bruno Haible  <bruno@clisp.org>
29961         roundl-ieee: Fix test failure on AIX 7.1.
29962         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
29963         * doc/posix-functions/roundl.texi: Mention problem with negative
29964         arguments.
29966 2011-06-19  Bruno Haible  <bruno@clisp.org>
29968         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29969         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
29970         * doc/posix-functions/round.texi: Mention problem with negative
29971         arguments.
29972         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
29974 2011-06-19  Bruno Haible  <bruno@clisp.org>
29976         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29977         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
29978         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
29979         * doc/posix-functions/roundf.texi: Mention problem with negative
29980         arguments.
29981         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
29983 2011-06-19  Bruno Haible  <bruno@clisp.org>
29985         ceilf-ieee: Work around bug on MacOS X 10.5.
29986         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
29988         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
29989         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
29990         IEEE compliant, avoid compiler optimizations.
29991         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
29992         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29993         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
29994         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29995         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29996         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29997         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29999         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30002 2011-06-19  Bruno Haible  <bruno@clisp.org>
30004         ceilf-ieee: Work around bug on AIX 7.1.
30005         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
30006         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
30008 2011-06-19  Bruno Haible  <bruno@clisp.org>
30010         ceil-ieee: Work around bug on AIX 7.1.
30011         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
30012         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
30014 2011-06-18  Bruno Haible  <bruno@clisp.org>
30016         fsync test: Avoid test failure on MacOS X and AIX.
30017         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
30018         EINVAL.
30020 2011-06-18  Bruno Haible  <bruno@clisp.org>
30022         openat, fdopendir tests: Fix link errors.
30023         * modules/openat-tests (Depends-on): Add progname.
30024         * modules/fdopendir-tests (Depends-on): Likewise.
30025         * tests/test-fchownat.c: Include progname.h.
30026         (main): Call set_program_name.
30027         * tests/test-fstatat.c: Include progname.h.
30028         (main): Call set_program_name.
30029         * tests/test-mkdirat.c: Include progname.h.
30030         (main): Call set_program_name.
30031         * tests/test-openat.c: Include progname.h.
30032         (main): Call set_program_name.
30033         * tests/test-unlinkat.c: Include progname.h.
30034         (main): Call set_program_name.
30035         * tests/test-fdopendir.c: Include progname.h.
30036         (main): Call set_program_name.
30038 2011-06-18  Bruno Haible  <bruno@clisp.org>
30040         Doc update.
30041         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
30042         HP-UX.
30043         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
30045 2011-06-18  Bruno Haible  <bruno@clisp.org>
30047         getcwd tests: Avoid compilation error on HP-UX 11.31.
30048         * modules/getcwd-tests (Depends-on): Add pathmax.
30049         * tests/test-getcwd.c: Include pathmax.h.
30051 2011-06-18  Bruno Haible  <bruno@clisp.org>
30053         isfinite, isinf: Fix link error on AIX 6 and 7.
30054         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
30055         needed, also test the macro with a 'float' argument.
30056         * m4/isinf.m4 (gl_ISINF): Likewise.
30058 2011-06-18  Bruno Haible  <bruno@clisp.org>
30060         getloadavg: Don't clobber LIBS. Regression from previous commit.
30061         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
30062         AC_CHECK_LIB from here...
30063         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
30064         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
30065         gl_func_getloadavg_done.
30066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30068 2011-06-18  Bruno Haible  <bruno@clisp.org>
30070         clean-temp: Improve documentation.
30071         * lib/clean-temp.h: Explain better how to use this module.
30072         Reported by John Darrington <john@darrington.wattle.id.au>.
30074 2011-06-17  Bruno Haible  <bruno@clisp.org>
30076         pread, pwrite: Avoid cc warning on AIX.
30077         * lib/unistd.in.h (pread): Undefine before defining as a macro.
30078         (pwrite): Likewise.
30080 2011-06-17  Bruno Haible  <bruno@clisp.org>
30082         spawn-pipe tests: Fix link error.
30083         * tests/test-spawn-pipe-child.c: Undefine fprintf.
30084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30086 2011-06-17  Bruno Haible  <bruno@clisp.org>
30088         Tests: Remove unnecessary dependency.
30089         * modules/canonicalize-tests (Depends-on): Remove progname.
30090         * modules/chown-tests (Depends-on): Likewise.
30091         * modules/dirname-tests (Depends-on): Likewise.
30092         * modules/fdopendir-tests (Depends-on): Likewise.
30093         * modules/fdutimensat-tests (Depends-on): Likewise.
30094         * modules/hash-tests (Depends-on): Likewise.
30095         * modules/lchown-tests (Depends-on): Likewise.
30096         * modules/linkat-tests (Depends-on): Likewise.
30097         * modules/renameat-tests (Depends-on): Likewise.
30098         * modules/spawn-pipe-tests (Depends-on): Likewise.
30099         * modules/utimensat-tests (Depends-on): Likewise.
30101 2011-06-17  Bruno Haible  <bruno@clisp.org>
30103         spawn-pipe tests: Fix link error.
30104         * tests/test-spawn-pipe-child.c: Undefine fflush.
30106 2011-06-17  Bruno Haible  <bruno@clisp.org>
30108         Fix tests link errors.
30109         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
30110         * modules/chown-tests (Makefile.am): Don't link test-chown with
30111         LIBINTL.
30112         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
30113         LIBINTL.
30114         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
30115         LIBINTL.
30116         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
30117         LIBINTL.
30119 2011-06-16  Bruno Haible  <bruno@clisp.org>
30121         crypto/gc-sha1: Fix recent regression.
30122         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
30123         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
30125         crypto/gc-md5: Fix recent regression.
30126         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
30128         crypto/gc-md4: Fix recent regression.
30129         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
30130         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
30132         crypto/gc-arctwo: Fix recent regression.
30133         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
30134         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
30136         crypto/gc-rijndael: Fix recent regression.
30137         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
30138         (configure.ac): Invoke AC_LIBOBJ here.
30139         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
30140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30142         crypto/gc-hmac-sha1: Fix recent regression.
30143         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
30144         (configure.ac): Invoke AC_LIBOBJ here.
30145         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
30146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30148         crypto/gc-hmac-md5: Fix recent regression.
30149         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
30150         (configure.ac): Invoke AC_LIBOBJ here.
30151         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
30152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30154         crypto/gc-des: Fix recent regression.
30155         * modules/crypto/gc-des (Files): Remove m4/des.m4.
30156         (configure.ac): Invoke AC_LIBOBJ here.
30157         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
30158         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30160         crypto/gc-arcfour: Fix recent regression.
30161         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
30162         (configure.ac): Invoke AC_LIBOBJ here.
30163         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
30164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30166 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
30168         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
30169         After the 2011-05-21 change, this macro requires
30170         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
30171         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30173 2011-06-16  Bruno Haible  <bruno@clisp.org>
30175         fprintftime: Move AC_LIBOBJ invocations to module description.
30176         * m4/fprintftime.m4: Remove file.
30177         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
30178         (configure.ac): Remove gl_FPRINTFTIME call.
30179         (Makefile.am): Augment lib_SOURCES.
30180         Reported by Jim Meyering.
30182 2011-06-16  Bruno Haible  <bruno@clisp.org>
30184         tmpfile-safer: Finish 2011-05-23 commit.
30185         * m4/stdio-safer.m4: Really remove file.
30186         Reported by Jim Meyering.
30188 2011-06-16  Bruno Haible  <bruno@clisp.org>
30190         syntax-check: Fix typo.
30191         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
30192         printf-posix.m4.
30193         Reported by Jim Meyering.
30195 2011-06-13  Jim Meyering  <meyering@redhat.com>
30197         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
30198         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
30200 2011-05-23  Bruno Haible  <bruno@clisp.org>
30202         yesno: Move AC_LIBOBJ invocations to module description.
30203         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
30204         * modules/yesno (Makefile.am): Augment lib_SOURCES.
30206 2011-05-23  Bruno Haible  <bruno@clisp.org>
30208         xstrtol: Move AC_LIBOBJ invocations to module description.
30209         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
30210         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
30212 2011-05-23  Bruno Haible  <bruno@clisp.org>
30214         xstrtold: Move AC_LIBOBJ invocations to module description.
30215         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
30216         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
30218 2011-05-23  Bruno Haible  <bruno@clisp.org>
30220         xstrtod: Move AC_LIBOBJ invocations to module description.
30221         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
30222         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
30224 2011-05-23  Bruno Haible  <bruno@clisp.org>
30226         xnanosleep: Move AC_LIBOBJ invocations to module description.
30227         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
30228         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
30230 2011-05-23  Bruno Haible  <bruno@clisp.org>
30232         xgetcwd: Move AC_LIBOBJ invocations to module description.
30233         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
30234         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
30236 2011-05-23  Bruno Haible  <bruno@clisp.org>
30238         xalloc: Move AC_LIBOBJ invocations to module description.
30239         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
30240         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
30242 2011-05-23  Bruno Haible  <bruno@clisp.org>
30244         write-any-file: Move AC_LIBOBJ invocations to module description.
30245         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
30246         invocation.
30247         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
30249 2011-05-23  Bruno Haible  <bruno@clisp.org>
30251         utimens: Move AC_LIBOBJ invocations to module description.
30252         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
30253         * modules/utimens (Makefile.am): Augment lib_SOURCES.
30255 2011-05-23  Bruno Haible  <bruno@clisp.org>
30257         utimecmp: Move AC_LIBOBJ invocations to module description.
30258         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
30259         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
30261 2011-05-23  Bruno Haible  <bruno@clisp.org>
30263         userspec: Move AC_LIBOBJ invocations to module description.
30264         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
30265         * modules/userspec (Makefile.am): Augment lib_SOURCES.
30267 2011-05-23  Bruno Haible  <bruno@clisp.org>
30269         unlinkdir: Move AC_LIBOBJ invocations to module description.
30270         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
30271         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
30273 2011-05-23  Bruno Haible  <bruno@clisp.org>
30275         unistd-safer: Move AC_LIBOBJ invocations to module description.
30276         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
30277         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
30279 2011-05-23  Bruno Haible  <bruno@clisp.org>
30281         tempname: Move AC_LIBOBJ invocations to module description.
30282         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
30283         * modules/tempname (Makefile.am): Augment lib_SOURCES.
30285 2011-05-23  Bruno Haible  <bruno@clisp.org>
30287         strftime: Move AC_LIBOBJ invocations to module description.
30288         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
30289         * modules/strftime (Makefile.am): Augment lib_SOURCES.
30291 2011-05-23  Bruno Haible  <bruno@clisp.org>
30293         stdlib-safer: Move AC_LIBOBJ invocations to module description.
30294         * m4/stdlib-safer.m4: Remove file.
30295         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
30296         (configure.ac): Remove gl_STDLIB_SAFER call.
30297         (Makefile.am): Augment lib_SOURCES.
30299 2011-05-23  Bruno Haible  <bruno@clisp.org>
30301         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
30302         * m4/stdio-safer.m4: Remove file.
30303         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
30304         (configure.ac): Remove gl_TMPFILE_SAFER call.
30305         (Makefile.am): Augment lib_SOURCES.
30307 2011-05-23  Bruno Haible  <bruno@clisp.org>
30309         popen-safer: Move AC_LIBOBJ invocations to module description.
30310         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
30311         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
30312         (configure.ac): Remove gl_POPEN_SAFER call.
30313         (Makefile.am): Augment lib_SOURCES.
30315 2011-05-23  Bruno Haible  <bruno@clisp.org>
30317         freopen-safer: Move AC_LIBOBJ invocations to module description.
30318         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
30319         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
30320         (configure.ac): Remove gl_FREOPEN_SAFER call.
30321         (Makefile.am): Augment lib_SOURCES.
30323 2011-05-23  Bruno Haible  <bruno@clisp.org>
30325         fopen-safer: Move AC_LIBOBJ invocations to module description.
30326         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
30327         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
30328         (configure.ac): Remove gl_FOPEN_SAFER call.
30329         (Makefile.am): Augment lib_SOURCES.
30331 2011-05-23  Bruno Haible  <bruno@clisp.org>
30333         crypto/sha512: Move AC_LIBOBJ invocations to module description.
30334         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
30335         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
30337 2011-05-23  Bruno Haible  <bruno@clisp.org>
30339         crypto/sha256: Move AC_LIBOBJ invocations to module description.
30340         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
30341         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
30343 2011-05-23  Bruno Haible  <bruno@clisp.org>
30345         crypto/sha1: Move AC_LIBOBJ invocations to module description.
30346         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
30347         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
30349 2011-05-23  Bruno Haible  <bruno@clisp.org>
30351         settime: Move AC_LIBOBJ invocations to module description.
30352         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
30353         * modules/settime (Makefile.am): Augment lib_SOURCES.
30355 2011-05-23  Bruno Haible  <bruno@clisp.org>
30357         savedir: Move AC_LIBOBJ invocations to module description.
30358         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
30359         * modules/savedir (Makefile.am): Augment lib_SOURCES.
30361 2011-05-23  Bruno Haible  <bruno@clisp.org>
30363         save-cwd: Move AC_LIBOBJ invocations to module description.
30364         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
30365         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
30367 2011-05-23  Bruno Haible  <bruno@clisp.org>
30369         same: Move AC_LIBOBJ invocations to module description.
30370         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
30371         * modules/same (Makefile.am): Augment lib_SOURCES.
30373 2011-05-23  Bruno Haible  <bruno@clisp.org>
30375         safe-write: Move AC_LIBOBJ invocations to module description.
30376         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
30377         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
30378         instead of gl_SAFE_WRITE.
30379         (Makefile.am): Augment lib_SOURCES.
30381 2011-05-23  Bruno Haible  <bruno@clisp.org>
30383         safe-read: Move AC_LIBOBJ invocations to module description.
30384         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
30385         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
30386         of gl_SAFE_READ.
30387         (Makefile.am): Augment lib_SOURCES.
30389 2011-05-23  Bruno Haible  <bruno@clisp.org>
30391         safe-alloc: Move AC_LIBOBJ invocations to module description.
30392         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
30393         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
30395 2011-05-23  Bruno Haible  <bruno@clisp.org>
30397         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
30398         * m4/rijndael.m4: Remove file.
30399         * modules/crypto/rijndael (Files): Remove it.
30400         (configure.ac): Remove gl_RIJNDAEL call.
30401         (Makefile.am): Augment lib_SOURCES.
30403 2011-05-23  Bruno Haible  <bruno@clisp.org>
30405         readtokens: Move AC_LIBOBJ invocations to module description.
30406         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
30407         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
30409 2011-05-23  Bruno Haible  <bruno@clisp.org>
30411         read-file: Move AC_LIBOBJ invocations to module description.
30412         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
30413         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
30414         of gl_FUNC_READ_FILE.
30415         (Makefile.am): Augment lib_SOURCES.
30417 2011-05-23  Bruno Haible  <bruno@clisp.org>
30419         quotearg: Move AC_LIBOBJ invocations to module description.
30420         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
30421         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
30423 2011-05-23  Bruno Haible  <bruno@clisp.org>
30425         quote: Move AC_LIBOBJ invocations to module description.
30426         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
30427         * modules/quote (Makefile.am): Augment lib_SOURCES.
30429 2011-05-23  Bruno Haible  <bruno@clisp.org>
30431         posixver: Move AC_LIBOBJ invocations to module description.
30432         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
30433         * modules/posixver (Makefile.am): Augment lib_SOURCES.
30435 2011-05-23  Bruno Haible  <bruno@clisp.org>
30437         posixtm: Move AC_LIBOBJ invocations to module description.
30438         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
30439         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
30441 2011-05-23  Bruno Haible  <bruno@clisp.org>
30443         physmem: Move AC_LIBOBJ invocations to module description.
30444         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
30445         * modules/physmem (Makefile.am): Augment lib_SOURCES.
30447 2011-05-23  Bruno Haible  <bruno@clisp.org>
30449         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
30450         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
30451         invocation.
30452         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
30454 2011-05-23  Bruno Haible  <bruno@clisp.org>
30456         mpsort: Move AC_LIBOBJ invocations to module description.
30457         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
30458         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
30460 2011-05-23  Bruno Haible  <bruno@clisp.org>
30462         modechange: Move AC_LIBOBJ invocations to module description.
30463         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
30464         * modules/modechange (Makefile.am): Augment lib_SOURCES.
30466 2011-05-23  Bruno Haible  <bruno@clisp.org>
30468         mkdir-p: Move AC_LIBOBJ invocations to module description.
30469         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
30470         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
30472 2011-05-23  Bruno Haible  <bruno@clisp.org>
30474         mkancesdirs: Move AC_LIBOBJ invocations to module description.
30475         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
30476         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
30478 2011-05-23  Bruno Haible  <bruno@clisp.org>
30480         mgetgroups: Move AC_LIBOBJ invocations to module description.
30481         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
30482         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
30484 2011-05-23  Bruno Haible  <bruno@clisp.org>
30486         memxor: Move AC_LIBOBJ invocations to module description.
30487         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
30488         * modules/memxor (Makefile.am): Augment lib_SOURCES.
30490 2011-05-23  Bruno Haible  <bruno@clisp.org>
30492         memcoll: Move AC_LIBOBJ invocations to module description.
30493         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
30494         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
30496 2011-05-23  Bruno Haible  <bruno@clisp.org>
30498         memcasecmp: Move AC_LIBOBJ invocations to module description.
30499         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
30500         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
30502 2011-05-23  Bruno Haible  <bruno@clisp.org>
30504         crypto/md5: Move AC_LIBOBJ invocations to module description.
30505         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
30506         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
30508 2011-05-23  Bruno Haible  <bruno@clisp.org>
30510         crypto/md4: Move AC_LIBOBJ invocations to module description.
30511         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
30512         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
30514 2011-05-23  Bruno Haible  <bruno@clisp.org>
30516         crypto/md2: Move AC_LIBOBJ invocations to module description.
30517         * m4/md2.m4: Remove file.
30518         * modules/crypto/md2 (Files): Remove it.
30519         (configure.ac): Remove gl_MD2 call.
30520         (Makefile.am): Augment lib_SOURCES.
30522 2011-05-23  Bruno Haible  <bruno@clisp.org>
30524         long-options: Move AC_LIBOBJ invocations to module description.
30525         * m4/long-options.m4: Remove file.
30526         * modules/long-options (Files): Remove it.
30527         (configure.ac): Remove gl_LONG_OPTIONS call.
30528         (Makefile.am): Augment lib_SOURCES.
30530 2011-05-23  Bruno Haible  <bruno@clisp.org>
30532         i-ring: Move AC_LIBOBJ invocations to module description.
30533         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
30534         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
30536 2011-05-23  Bruno Haible  <bruno@clisp.org>
30538         idcache: Move AC_LIBOBJ invocations to module description.
30539         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
30540         * modules/idcache (Makefile.am): Augment lib_SOURCES.
30542 2011-05-23  Bruno Haible  <bruno@clisp.org>
30544         human: Move AC_LIBOBJ invocations to module description.
30545         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
30546         * modules/human (Makefile.am): Augment lib_SOURCES.
30548 2011-05-23  Bruno Haible  <bruno@clisp.org>
30550         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
30551         * m4/hmac-sha1.m4: Remove file.
30552         * modules/crypto/hmac-sha1 (Files): Remove it.
30553         (configure.ac): Remove gl_HMAC_SHA1 call.
30554         (Makefile.am): Augment lib_SOURCES.
30556 2011-05-23  Bruno Haible  <bruno@clisp.org>
30558         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
30559         * m4/hmac-md5.m4: Remove file.
30560         * modules/crypto/hmac-md5 (Files): Remove it.
30561         (configure.ac): Remove gl_HMAC_MD5 call.
30562         (Makefile.am): Augment lib_SOURCES.
30564 2011-05-23  Bruno Haible  <bruno@clisp.org>
30566         hash: Move AC_LIBOBJ invocations to module description.
30567         * m4/hash.m4: Remove file.
30568         * modules/hash (Files): Remove it.
30569         (configure.ac): Remove gl_HASH call.
30570         (Makefile.am): Augment lib_SOURCES.
30572 2011-05-23  Bruno Haible  <bruno@clisp.org>
30574         hard-locale: Move AC_LIBOBJ invocations to module description.
30575         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
30576         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
30578 2011-05-23  Bruno Haible  <bruno@clisp.org>
30580         getugroups: Move AC_LIBOBJ invocations to module description.
30581         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
30582         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
30584 2011-05-23  Bruno Haible  <bruno@clisp.org>
30586         gettime: Move AC_LIBOBJ invocations to module description.
30587         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
30588         * modules/gettime (Makefile.am): Augment lib_SOURCES.
30590 2011-05-23  Bruno Haible  <bruno@clisp.org>
30592         getndelim2: Move AC_LIBOBJ invocations to module description.
30593         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
30594         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
30596 2011-05-23  Bruno Haible  <bruno@clisp.org>
30598         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
30599         * m4/gc-pbkdf2-sha1.m4: Remove file.
30600         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
30601         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
30602         (Makefile.am): Augment lib_SOURCES.
30604 2011-05-23  Bruno Haible  <bruno@clisp.org>
30606         fts: Move AC_LIBOBJ invocations to module description.
30607         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
30608         * modules/fts (configure.ac): ... to here.
30610 2011-05-23  Bruno Haible  <bruno@clisp.org>
30612         file-type: Move AC_LIBOBJ invocations to module description.
30613         * m4/file-type.m4: Remove file.
30614         * modules/file-type (Files): Remove it.
30615         (configure.ac): Remove gl_FILE_TYPE call.
30616         (Makefile.am): Augment lib_SOURCES.
30618 2011-05-23  Bruno Haible  <bruno@clisp.org>
30620         filenamecat*: Respect rules for use of AC_LIBOBJ.
30621         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
30622         Remove AC_LIBOBJ invocation.
30623         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
30624         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
30626 2011-05-23  Bruno Haible  <bruno@clisp.org>
30628         filemode: Move AC_LIBOBJ invocations to module description.
30629         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
30630         * modules/filemode (Makefile.am): Augment lib_SOURCES.
30632 2011-05-23  Bruno Haible  <bruno@clisp.org>
30634         openat-safer: Move AC_LIBOBJ invocations to module description.
30635         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
30636         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
30638 2011-05-23  Bruno Haible  <bruno@clisp.org>
30640         fcntl-safer: Move AC_LIBOBJ invocations to module description.
30641         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
30642         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
30644 2011-05-23  Bruno Haible  <bruno@clisp.org>
30646         exclude: Move AC_LIBOBJ invocations to module description.
30647         * m4/exclude.m4: Remove file.
30648         * modules/exclude (Files): Remove it.
30649         (configure.ac): Remove gl_EXCLUDE call.
30650         (Makefile.am): Augment lib_SOURCES.
30652 2011-05-23  Bruno Haible  <bruno@clisp.org>
30654         dirname*: Respect rules for use of AC_LIBOBJ.
30655         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
30656         invocations.
30657         * modules/dirname (Makefile.am): Augment lib_SOURCES.
30658         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
30660 2011-05-23  Bruno Haible  <bruno@clisp.org>
30662         dirent-safer: Move AC_LIBOBJ invocations to module description.
30663         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
30664         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
30666 2011-05-23  Bruno Haible  <bruno@clisp.org>
30668         crypto/des: Move AC_LIBOBJ invocations to module description.
30669         * m4/des.m4: Remove file.
30670         * modules/crypto/des (Files): Remove it.
30671         (configure.ac): Remove gl_DES call.
30672         (Makefile.am): Augment lib_SOURCES.
30674 2011-05-23  Bruno Haible  <bruno@clisp.org>
30676         cycle-check: Move AC_LIBOBJ invocations to module description.
30677         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
30678         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
30680 2011-05-23  Bruno Haible  <bruno@clisp.org>
30682         c-strtold: Move AC_LIBOBJ invocations to module description.
30683         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
30684         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
30686 2011-05-23  Bruno Haible  <bruno@clisp.org>
30688         c-strtod: Move AC_LIBOBJ invocations to module description.
30689         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
30690         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
30692 2011-05-23  Bruno Haible  <bruno@clisp.org>
30694         crc: Move AC_LIBOBJ invocations to module description.
30695         * m4/crc.m4: Remove file.
30696         * modules/crc (Files): Remove it.
30697         (configure.ac): Remove gl_CRC call.
30698         (Makefile.am): Augment lib_SOURCES.
30700 2011-05-23  Bruno Haible  <bruno@clisp.org>
30702         close-stream: Move AC_LIBOBJ invocations to module description.
30703         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
30704         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
30706 2011-05-23  Bruno Haible  <bruno@clisp.org>
30708         closeout: Move AC_LIBOBJ invocations to module description.
30709         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
30710         * modules/closeout (Makefile.am): Augment lib_SOURCES.
30712 2011-05-23  Bruno Haible  <bruno@clisp.org>
30714         closein: Move AC_LIBOBJ invocations to module description.
30715         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
30716         * modules/closein (Makefile.am): Augment lib_SOURCES.
30718 2011-05-23  Bruno Haible  <bruno@clisp.org>
30720         cloexec: Move AC_LIBOBJ invocations to module description.
30721         * m4/cloexec.m4: Remove file.
30722         * modules/cloexec (Files): Remove it.
30723         (configure.ac): Remove gl_CLOEXEC call.
30724         (Makefile.am): Augment lib_SOURCES.
30726 2011-05-23  Bruno Haible  <bruno@clisp.org>
30728         check-version: Move AC_LIBOBJ invocations to module description.
30729         * m4/check-version.m4: Remove file.
30730         * modules/check-version (Files): Remove it.
30731         (configure.ac): Remove gl_CHECK_VERSION call.
30732         (Makefile.am): Augment lib_SOURCES.
30734 2011-05-23  Bruno Haible  <bruno@clisp.org>
30736         chdir-safer: Move AC_LIBOBJ invocations to module description.
30737         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
30738         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
30740 2011-05-23  Bruno Haible  <bruno@clisp.org>
30742         canonicalize: Move AC_LIBOBJ invocations to module description.
30743         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
30744         AC_LIBOBJ invocation.
30745         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
30747 2011-05-23  Bruno Haible  <bruno@clisp.org>
30749         canon-host: Move AC_LIBOBJ invocations to module description.
30750         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
30751         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
30752         instead of gl_CANON_HOST.
30753         (Makefile.am): Augment lib_SOURCES.
30755 2011-05-23  Bruno Haible  <bruno@clisp.org>
30757         backupfile: Move AC_LIBOBJ invocations to module description.
30758         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
30759         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
30761 2011-05-23  Bruno Haible  <bruno@clisp.org>
30763         argmatch: Move AC_LIBOBJ invocations to module description.
30764         * m4/argmatch.m4: Remove file.
30765         * modules/argmatch (Files): Remove it.
30766         (configure.ac): Remove gl_ARGMATCH call.
30767         (Makefile.am): Augment lib_SOURCES.
30769 2011-05-23  Bruno Haible  <bruno@clisp.org>
30771         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
30772         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
30773         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
30775 2011-05-23  Bruno Haible  <bruno@clisp.org>
30777         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
30778         * m4/arcfour.m4: Remove file.
30779         * modules/crypto/arcfour (Files): Remove it.
30780         (configure.ac): Remove gl_ARCFOUR call.
30781         (Makefile.am): Augment lib_SOURCES.
30783 2011-05-22  Bruno Haible  <bruno@clisp.org>
30785         write: Move AC_LIBOBJ invocations to module description.
30786         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
30787         * modules/write (configure.ac): ... to here.
30789 2011-05-22  Bruno Haible  <bruno@clisp.org>
30791         wmemset: Move AC_LIBOBJ invocations to module description.
30792         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
30793         here...
30794         * modules/wmemset (configure.ac): ... to here.
30796 2011-05-22  Bruno Haible  <bruno@clisp.org>
30798         wmemmove: Move AC_LIBOBJ invocations to module description.
30799         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
30800         here...
30801         * modules/wmemmove (configure.ac): ... to here.
30803 2011-05-22  Bruno Haible  <bruno@clisp.org>
30805         wmemcpy: Move AC_LIBOBJ invocations to module description.
30806         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
30807         here...
30808         * modules/wmemcpy (configure.ac): ... to here.
30810 2011-05-22  Bruno Haible  <bruno@clisp.org>
30812         wmemcmp: Move AC_LIBOBJ invocations to module description.
30813         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
30814         here...
30815         * modules/wmemcmp (configure.ac): ... to here.
30817 2011-05-22  Bruno Haible  <bruno@clisp.org>
30819         wmemchr: Move AC_LIBOBJ invocations to module description.
30820         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
30821         here...
30822         * modules/wmemchr (configure.ac): ... to here.
30824 2011-05-22  Bruno Haible  <bruno@clisp.org>
30826         wcswidth: Move AC_LIBOBJ invocations to module description.
30827         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
30828         here...
30829         * modules/wcswidth (configure.ac): ... to here.
30831 2011-05-22  Bruno Haible  <bruno@clisp.org>
30833         wcwidth: Respect rules for use of AC_LIBOBJ.
30834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
30835         invocation from here...
30836         * modules/wcwidth (configure.ac): ... to here.
30837         (Depends-on): Update conditions.
30839 2011-05-22  Bruno Haible  <bruno@clisp.org>
30841         wctype: Move AC_LIBOBJ invocations to module description.
30842         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
30843         invocation from here...
30844         * modules/wctype (configure.ac): ... to here.
30845         (Depends-on): Update conditions.
30847 2011-05-22  Bruno Haible  <bruno@clisp.org>
30849         wctrans: Move AC_LIBOBJ invocations to module description.
30850         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
30851         invocation from here...
30852         * modules/wctrans (configure.ac): ... to here.
30854 2011-05-22  Bruno Haible  <bruno@clisp.org>
30856         wctomb: Move AC_LIBOBJ invocations to module description.
30857         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
30858         invocations from here...
30859         * modules/wctomb (configure.ac): ... to here.
30861 2011-05-22  Bruno Haible  <bruno@clisp.org>
30863         wctob: Move AC_LIBOBJ invocations to module description.
30864         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
30865         gl_PREREQ_WCTOB invocations from here...
30866         * modules/wctob (configure.ac): ... to here.
30867         (Depends-on): Update conditions.
30869 2011-05-22  Bruno Haible  <bruno@clisp.org>
30871         wcsxfrm: Move AC_LIBOBJ invocations to module description.
30872         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
30873         here...
30874         * modules/wcsxfrm (configure.ac): ... to here.
30876 2011-05-22  Bruno Haible  <bruno@clisp.org>
30878         wcstok: Move AC_LIBOBJ invocations to module description.
30879         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
30880         * modules/wcstok (configure.ac): ... to here.
30882 2011-05-22  Bruno Haible  <bruno@clisp.org>
30884         wcsstr: Move AC_LIBOBJ invocations to module description.
30885         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
30886         * modules/wcsstr (configure.ac): ... to here.
30888 2011-05-22  Bruno Haible  <bruno@clisp.org>
30890         wcsspn: Move AC_LIBOBJ invocations to module description.
30891         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
30892         * modules/wcsspn (configure.ac): ... to here.
30894 2011-05-22  Bruno Haible  <bruno@clisp.org>
30896         wcsrtombs: Move AC_LIBOBJ invocations to module description.
30897         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
30898         gl_PREREQ_WCSRTOMBS invocations from here...
30899         * modules/wcsrtombs (configure.ac): ... to here.
30901 2011-05-22  Bruno Haible  <bruno@clisp.org>
30903         wcsrchr: Move AC_LIBOBJ invocations to module description.
30904         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
30905         here...
30906         * modules/wcsrchr (configure.ac): ... to here.
30908 2011-05-22  Bruno Haible  <bruno@clisp.org>
30910         wcspbrk: Move AC_LIBOBJ invocations to module description.
30911         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
30912         here...
30913         * modules/wcspbrk (configure.ac): ... to here.
30915 2011-05-22  Bruno Haible  <bruno@clisp.org>
30917         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
30918         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
30919         gl_PREREQ_WCSNRTOMBS invocations from here...
30920         * modules/wcsnrtombs (configure.ac): ... to here.
30922 2011-05-22  Bruno Haible  <bruno@clisp.org>
30924         wcsnlen: Move AC_LIBOBJ invocations to module description.
30925         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
30926         here...
30927         * modules/wcsnlen (configure.ac): ... to here.
30929 2011-05-22  Bruno Haible  <bruno@clisp.org>
30931         wcsncpy: Move AC_LIBOBJ invocations to module description.
30932         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
30933         here...
30934         * modules/wcsncpy (configure.ac): ... to here.
30936 2011-05-22  Bruno Haible  <bruno@clisp.org>
30938         wcsncmp: Move AC_LIBOBJ invocations to module description.
30939         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
30940         here...
30941         * modules/wcsncmp (configure.ac): ... to here.
30943 2011-05-22  Bruno Haible  <bruno@clisp.org>
30945         wcsncat: Move AC_LIBOBJ invocations to module description.
30946         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
30947         here...
30948         * modules/wcsncat (configure.ac): ... to here.
30950 2011-05-22  Bruno Haible  <bruno@clisp.org>
30952         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
30953         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
30954         from here...
30955         * modules/wcsncasecmp (configure.ac): ... to here.
30957 2011-05-22  Bruno Haible  <bruno@clisp.org>
30959         wcslen: Move AC_LIBOBJ invocations to module description.
30960         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
30961         * modules/wcslen (configure.ac): ... to here.
30963 2011-05-22  Bruno Haible  <bruno@clisp.org>
30965         wcsdup: Move AC_LIBOBJ invocations to module description.
30966         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
30967         * modules/wcsdup (configure.ac): ... to here.
30969 2011-05-22  Bruno Haible  <bruno@clisp.org>
30971         wcscspn: Move AC_LIBOBJ invocations to module description.
30972         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
30973         here...
30974         * modules/wcscspn (configure.ac): ... to here.
30976 2011-05-22  Bruno Haible  <bruno@clisp.org>
30978         wcscpy: Move AC_LIBOBJ invocations to module description.
30979         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
30980         * modules/wcscpy (configure.ac): ... to here.
30982 2011-05-22  Bruno Haible  <bruno@clisp.org>
30984         wcscoll: Move AC_LIBOBJ invocations to module description.
30985         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
30986         here...
30987         * modules/wcscoll (configure.ac): ... to here.
30989 2011-05-22  Bruno Haible  <bruno@clisp.org>
30991         wcscmp: Move AC_LIBOBJ invocations to module description.
30992         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
30993         * modules/wcscmp (configure.ac): ... to here.
30995 2011-05-22  Bruno Haible  <bruno@clisp.org>
30997         wcschr: Move AC_LIBOBJ invocations to module description.
30998         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
30999         * modules/wcschr (configure.ac): ... to here.
31001 2011-05-22  Bruno Haible  <bruno@clisp.org>
31003         wcscat: Move AC_LIBOBJ invocations to module description.
31004         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
31005         * modules/wcscat (configure.ac): ... to here.
31007 2011-05-22  Bruno Haible  <bruno@clisp.org>
31009         wcscasecmp: Move AC_LIBOBJ invocations to module description.
31010         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
31011         here...
31012         * modules/wcscasecmp (configure.ac): ... to here.
31014 2011-05-22  Bruno Haible  <bruno@clisp.org>
31016         wcrtomb: Move AC_LIBOBJ invocations to module description.
31017         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
31018         invocations from here...
31019         * modules/wcrtomb (configure.ac): ... to here.
31021 2011-05-22  Bruno Haible  <bruno@clisp.org>
31023         wcpncpy: Move AC_LIBOBJ invocations to module description.
31024         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
31025         here...
31026         * modules/wcpncpy (configure.ac): ... to here.
31028 2011-05-22  Bruno Haible  <bruno@clisp.org>
31030         wcpcpy: Move AC_LIBOBJ invocations to module description.
31031         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
31032         * modules/wcpcpy (configure.ac): ... to here.
31034 2011-05-22  Bruno Haible  <bruno@clisp.org>
31036         waitpid: Move AC_LIBOBJ invocations to module description.
31037         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
31038         invocation from here...
31039         * modules/waitpid (configure.ac): ... to here.
31041 2011-05-22  Bruno Haible  <bruno@clisp.org>
31043         utimensat: Move AC_LIBOBJ invocations to module description.
31044         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
31045         here...
31046         * modules/utimensat (configure.ac): ... to here.
31048 2011-05-22  Bruno Haible  <bruno@clisp.org>
31050         usleep: Move AC_LIBOBJ invocations to module description.
31051         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
31052         here...
31053         * modules/usleep (configure.ac): ... to here.
31055 2011-05-22  Bruno Haible  <bruno@clisp.org>
31057         unlockpt: Move AC_LIBOBJ invocations to module description.
31058         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
31059         gl_PREREQ_UNLOCKPT invocations from here...
31060         * modules/unlockpt (configure.ac): ... to here.
31062 2011-05-22  Bruno Haible  <bruno@clisp.org>
31064         unlink: Respect rules for use of AC_LIBOBJ.
31065         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
31066         * modules/unlink (configure.ac): ... to here.
31068 2011-05-22  Bruno Haible  <bruno@clisp.org>
31070         uname: Move AC_LIBOBJ invocations to module description.
31071         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
31072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
31073         here...
31074         * modules/uname (configure.ac): ... to here.
31076 2011-05-22  Bruno Haible  <bruno@clisp.org>
31078         ttyname_r: Move AC_LIBOBJ invocations to module description.
31079         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
31080         gl_PREREQ_TTYNAME_R invocations from here...
31081         * modules/ttyname_r (configure.ac): ... to here.
31083 2011-05-22  Bruno Haible  <bruno@clisp.org>
31085         tsearch: Move AC_LIBOBJ invocations to module description.
31086         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
31087         invocations from here...
31088         * modules/tsearch (configure.ac): ... to here.
31090 2011-05-22  Bruno Haible  <bruno@clisp.org>
31092         towctrans: Move AC_LIBOBJ invocations to module description.
31093         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
31094         AC_LIBOBJ invocation from here...
31095         * modules/towctrans (configure.ac): ... to here.
31097 2011-05-22  Bruno Haible  <bruno@clisp.org>
31099         tmpfile: Move AC_LIBOBJ invocations to module description.
31100         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
31101         invocations from here...
31102         * modules/tmpfile (configure.ac): ... to here.
31104 2011-05-22  Bruno Haible  <bruno@clisp.org>
31106         times: Move AC_LIBOBJ invocations to module description.
31107         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
31108         * modules/times (configure.ac): ... to here.
31110 2011-05-22  Bruno Haible  <bruno@clisp.org>
31112         time_r: Move AC_LIBOBJ invocations to module description.
31113         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
31114         invocations from here...
31115         * modules/time_r (configure.ac): ... to here.
31117 2011-05-22  Bruno Haible  <bruno@clisp.org>
31119         timegm: Move AC_LIBOBJ invocations to module description.
31120         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
31121         invocations from here...
31122         * modules/timegm (configure.ac): ... to here.
31124 2011-05-22  Bruno Haible  <bruno@clisp.org>
31126         tcgetsid: Move AC_LIBOBJ invocations to module description.
31127         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
31128         and gl_PREREQ_TCGETSID invocations from here...
31129         * modules/tcgetsid (configure.ac): ... to here.
31130         (Depends-on): Update conditions.
31132 2011-05-22  Bruno Haible  <bruno@clisp.org>
31134         symlinkat: Move AC_LIBOBJ invocations to module description.
31135         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
31136         here...
31137         * modules/symlinkat (configure.ac): ... to here.
31139 2011-05-22  Bruno Haible  <bruno@clisp.org>
31141         symlink: Move AC_LIBOBJ invocations to module description.
31142         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
31143         here...
31144         * modules/symlink (configure.ac): ... to here.
31146 2011-05-22  Bruno Haible  <bruno@clisp.org>
31148         strverscmp: Move AC_LIBOBJ invocations to module description.
31149         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
31150         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
31151         from here...
31152         * modules/strverscmp (configure.ac): ... to here.
31154 2011-05-22  Bruno Haible  <bruno@clisp.org>
31156         strtok_r: Move AC_LIBOBJ invocations to module description.
31157         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
31158         and gl_PREREQ_STRTOK_R invocations from here...
31159         * modules/strtok_r (configure.ac): ... to here.
31160         (Depends-on): Update conditions.
31162 2011-05-22  Bruno Haible  <bruno@clisp.org>
31164         strtoumax: Move AC_LIBOBJ invocations to module description.
31165         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
31166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
31167         from here...
31168         * modules/strtoumax (configure.ac): ... to here.
31170 2011-05-22  Bruno Haible  <bruno@clisp.org>
31172         strtoimax: Move AC_LIBOBJ invocations to module description.
31173         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
31174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
31175         from here...
31176         * modules/strtoimax (configure.ac): ... to here.
31178 2011-05-22  Bruno Haible  <bruno@clisp.org>
31180         strtoull: Move AC_LIBOBJ invocations to module description.
31181         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
31182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
31183         from here...
31184         * modules/strtoull (configure.ac): ... to here.
31186 2011-05-22  Bruno Haible  <bruno@clisp.org>
31188         strtoll: Move AC_LIBOBJ invocations to module description.
31189         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
31190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
31191         here...
31192         * modules/strtoll (configure.ac): ... to here.
31194 2011-05-22  Bruno Haible  <bruno@clisp.org>
31196         strtoul: Move AC_LIBOBJ invocations to module description.
31197         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
31198         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
31199         * modules/strtoul (configure.ac): ... to here.
31201 2011-05-22  Bruno Haible  <bruno@clisp.org>
31203         strtol: Move AC_LIBOBJ invocations to module description.
31204         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
31205         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
31206         * modules/strtol (configure.ac): ... to here.
31208 2011-05-22  Bruno Haible  <bruno@clisp.org>
31210         strtod: Move AC_LIBOBJ invocations to module description.
31211         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
31212         invocations from here...
31213         * modules/strtod (configure.ac): ... to here.
31215 2011-05-22  Bruno Haible  <bruno@clisp.org>
31217         strstr*: Move AC_LIBOBJ invocations to module description.
31218         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
31219         invocations from here...
31220         * modules/strstr-simple (configure.ac): ... to here.
31221         * modules/strstr (configure.ac): ... and here.
31223 2011-05-22  Bruno Haible  <bruno@clisp.org>
31225         strsignal: Move AC_LIBOBJ invocations to module description.
31226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
31227         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
31228         * modules/strsignal (configure.ac): ... to here.
31229         (Depends-on): Update conditions.
31231 2011-05-22  Bruno Haible  <bruno@clisp.org>
31233         strsep: Move AC_LIBOBJ invocations to module description.
31234         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
31235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
31236         here...
31237         * modules/strsep (configure.ac): ... to here.
31239 2011-05-22  Bruno Haible  <bruno@clisp.org>
31241         strptime: Move AC_LIBOBJ invocations to module description.
31242         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
31243         gl_PREREQ_STRPTIME invocations from here...
31244         * modules/strptime (configure.ac): ... to here.
31246 2011-05-22  Bruno Haible  <bruno@clisp.org>
31248         strpbrk: Move AC_LIBOBJ invocations to module description.
31249         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
31250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
31251         here...
31252         * modules/strpbrk (configure.ac): ... to here.
31254 2011-05-22  Bruno Haible  <bruno@clisp.org>
31256         strnlen: Move AC_LIBOBJ invocations to module description.
31257         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
31258         invocations from here...
31259         * modules/strnlen (configure.ac): ... to here.
31261 2011-05-22  Bruno Haible  <bruno@clisp.org>
31263         strndup: Move AC_LIBOBJ invocations to module description.
31264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
31265         invocations from here...
31266         * modules/strndup (configure.ac): ... to here.
31267         (Depends-on): Update conditions.
31269 2011-05-22  Bruno Haible  <bruno@clisp.org>
31271         strncat: Move AC_LIBOBJ invocations to module description.
31272         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
31273         invocations from here...
31274         * modules/strncat (configure.ac): ... to here.
31276 2011-05-22  Bruno Haible  <bruno@clisp.org>
31278         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
31279         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
31280         invocations from here...
31281         * modules/strdup (configure.ac): ... to here.
31282         * modules/strdup-posix (configure.ac): ... and here.
31284 2011-05-22  Bruno Haible  <bruno@clisp.org>
31286         strcspn: Move AC_LIBOBJ invocations to module description.
31287         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
31288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
31289         here...
31290         * modules/strcspn (configure.ac): ... to here.
31292 2011-05-22  Bruno Haible  <bruno@clisp.org>
31294         strchrnul: Move AC_LIBOBJ invocations to module description.
31295         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
31296         gl_PREREQ_STRCHRNUL invocations from here...
31297         * modules/strchrnul (configure.ac): ... to here.
31299 2011-05-22  Bruno Haible  <bruno@clisp.org>
31301         strcasestr*: Move AC_LIBOBJ invocations to module description.
31302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
31303         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
31304         * modules/strcasestr-simple (configure.ac): ... to here.
31305         * modules/strcasestr (configure.ac): ... and here.
31307 2011-05-22  Bruno Haible  <bruno@clisp.org>
31309         strcase: Move AC_LIBOBJ invocations to module description.
31310         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
31311         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
31312         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
31313         gl_PREREQ_STRNCASECMP invocations from here...
31314         * modules/strcase (configure.ac): ... to here.
31316 2011-05-22  Bruno Haible  <bruno@clisp.org>
31318         stpncpy: Move AC_LIBOBJ invocations to module description.
31319         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
31320         here...
31321         * modules/stpncpy (configure.ac): ... to here.
31323 2011-05-22  Bruno Haible  <bruno@clisp.org>
31325         stpcpy: Move AC_LIBOBJ invocations to module description.
31326         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
31327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
31328         here...
31329         * modules/stpcpy (configure.ac): ... to here.
31331 2011-05-21  Bruno Haible  <bruno@clisp.org>
31333         stat: Move AC_LIBOBJ invocations to module description.
31334         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
31335         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
31336         here...
31337         * modules/stat (configure.ac): ... to here.
31339 2011-05-21  Bruno Haible  <bruno@clisp.org>
31341         sleep: Move AC_LIBOBJ invocations to module description.
31342         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
31343         * modules/sleep (configure.ac): ... to here.
31345 2011-05-21  Bruno Haible  <bruno@clisp.org>
31347         signbit: Move AC_LIBOBJ invocations to module description.
31348         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
31349         * modules/signbit (configure.ac): ... to here.
31351 2011-05-21  Bruno Haible  <bruno@clisp.org>
31353         sigprocmask: Move AC_LIBOBJ invocations to module description.
31354         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
31355         gl_PREREQ_SIGPROMASK invocations from here...
31356         * modules/sigprocmask (configure.ac): ... to here.
31358 2011-05-21  Bruno Haible  <bruno@clisp.org>
31360         sigaction: Move AC_LIBOBJ invocations to module description.
31361         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
31362         gl_PREREQ_SIGACTION invocations from here...
31363         * modules/sigaction (configure.ac): ... to here.
31365 2011-05-21  Bruno Haible  <bruno@clisp.org>
31367         sig2str: Move AC_LIBOBJ invocations to module description.
31368         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
31369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
31370         here...
31371         * modules/sig2str (configure.ac): ... to here.
31373 2011-05-21  Bruno Haible  <bruno@clisp.org>
31375         setlocale: Move AC_LIBOBJ invocations to module description.
31376         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
31377         gl_PREREQ_SETLOCALE invocations from here...
31378         * modules/setlocale (configure.ac): ... to here.
31380 2011-05-21  Bruno Haible  <bruno@clisp.org>
31382         unsetenv: Move AC_LIBOBJ invocations to module description.
31383         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
31384         and gl_PREREQ_UNSETENV invocations from here...
31385         * modules/unsetenv (configure.ac): ... to here.
31386         (Depends-on): Update.
31388 2011-05-21  Bruno Haible  <bruno@clisp.org>
31390         setenv: Move AC_LIBOBJ invocations to module description.
31391         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
31392         here...
31393         * modules/setenv (configure.ac): ... to here.
31395 2011-05-21  Bruno Haible  <bruno@clisp.org>
31397         selinux-h: Move AC_LIBOBJ invocations to module description.
31398         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
31399         AC_LIBOBJ invocation from here...
31400         * modules/selinux-h (configure.ac): ... to here.
31402 2011-05-21  Bruno Haible  <bruno@clisp.org>
31404         select: Respect rules for use of AC_LIBOBJ.
31405         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
31406         here...
31407         * modules/select (configure.ac): ... to here.
31409 2011-05-21  Bruno Haible  <bruno@clisp.org>
31411         scandir: Move AC_LIBOBJ invocations to module description.
31412         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
31413         invocations from here...
31414         * modules/scandir (configure.ac): ... to here.
31416 2011-05-21  Bruno Haible  <bruno@clisp.org>
31418         rpmatch: Move AC_LIBOBJ invocations to module description.
31419         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
31420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
31421         here...
31422         * modules/rpmatch (configure.ac): ... to here.
31424 2011-05-21  Bruno Haible  <bruno@clisp.org>
31426         rmdir: Respect rules for use of AC_LIBOBJ.
31427         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
31428         * modules/rmdir (configure.ac): ... to here.
31430 2011-05-21  Bruno Haible  <bruno@clisp.org>
31432         renameat: Move AC_LIBOBJ invocations to module description.
31433         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
31434         here...
31435         * modules/renameat (configure.ac): ... to here.
31437 2011-05-21  Bruno Haible  <bruno@clisp.org>
31439         rename: Respect rules for use of AC_LIBOBJ.
31440         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
31441         here...
31442         * modules/rename (configure.ac): ... to here.
31444 2011-05-21  Bruno Haible  <bruno@clisp.org>
31446         remove: Move AC_LIBOBJ invocations to module description.
31447         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
31448         here...
31449         * modules/remove (configure.ac): ... to here.
31451 2011-05-21  Bruno Haible  <bruno@clisp.org>
31453         relocatable-lib: Move AC_LIBOBJ invocations to module description.
31454         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
31455         macro.
31456         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
31457         * modules/relocatable-lib (configure.ac): ... to here.
31458         * modules/relocatable-prog-wrapper (configure.ac): Invoke
31459         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
31461 2011-05-21  Bruno Haible  <bruno@clisp.org>
31463         relocatable-prog: Move AC_LIBOBJ invocations to module description.
31464         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
31465         here...
31466         * modules/relocatable-prog (configure.ac): ... to here.
31468 2011-05-21  Bruno Haible  <bruno@clisp.org>
31470         regex: Move AC_LIBOBJ invocations to module description.
31471         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
31472         invocations from here...
31473         * modules/regex (configure.ac): ... to here.
31475 2011-05-21  Bruno Haible  <bruno@clisp.org>
31477         realloc-*: Move AC_LIBOBJ invocations to module description.
31478         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
31479         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
31480         AC_LIBOBJ invocations from here...
31481         * modules/realloc-gnu (configure.ac): ... to here.
31482         * modules/realloc-posix (configure.ac): ... and here.
31484 2011-05-21  Bruno Haible  <bruno@clisp.org>
31486         readutmp: Move AC_LIBOBJ invocations to module description.
31487         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
31488         * modules/readutmp (configure.ac): ... to here.
31490 2011-05-21  Bruno Haible  <bruno@clisp.org>
31492         readlinkat: Move AC_LIBOBJ invocations to module description.
31493         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
31494         here...
31495         * modules/readlinkat (configure.ac): ... to here.
31497 2011-05-21  Bruno Haible  <bruno@clisp.org>
31499         readlink: Move AC_LIBOBJ invocations to module description.
31500         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
31501         gl_PREREQ_READLINK invocations from here...
31502         * modules/readlink (configure.ac): ... to here.
31504 2011-05-21  Bruno Haible  <bruno@clisp.org>
31506         readline: Move AC_LIBOBJ invocations to module description.
31507         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
31508         gl_PREREQ_READLINE invocations from here...
31509         * modules/readline (configure.ac): ... to here.
31511 2011-05-21  Bruno Haible  <bruno@clisp.org>
31513         read: Move AC_LIBOBJ invocations to module description.
31514         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
31515         * modules/read (configure.ac): ... to here.
31517 2011-05-21  Bruno Haible  <bruno@clisp.org>
31519         rawmemchr: Move AC_LIBOBJ invocations to module description.
31520         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
31521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
31522         from here...
31523         * modules/rawmemchr (configure.ac): ... to here.
31525 2011-05-21  Bruno Haible  <bruno@clisp.org>
31527         random_r: Move AC_LIBOBJ invocations to module description.
31528         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
31529         gl_PREREQ_RANDOM_R invocations from here...
31530         * modules/random_r (configure.ac): ... to here.
31532 2011-05-21  Bruno Haible  <bruno@clisp.org>
31534         pwrite: Move AC_LIBOBJ invocations to module description.
31535         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
31536         * modules/pwrite (configure.ac): ... to here.
31538 2011-05-21  Bruno Haible  <bruno@clisp.org>
31540         putenv: Move AC_LIBOBJ invocations to module description.
31541         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
31542         * modules/putenv (configure.ac): ... to here.
31544 2011-05-21  Bruno Haible  <bruno@clisp.org>
31546         login_tty: Move AC_LIBOBJ invocations to module description.
31547         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
31548         * modules/login_tty (configure.ac): ... to here.
31550 2011-05-21  Bruno Haible  <bruno@clisp.org>
31552         openpty: Move AC_LIBOBJ invocations to module description.
31553         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
31554         * modules/openpty (configure.ac): ... to here.
31556 2011-05-21  Bruno Haible  <bruno@clisp.org>
31558         forkpty: Move AC_LIBOBJ invocations to module description.
31559         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
31560         * modules/forkpty (configure.ac): ... to here.
31562 2011-05-21  Bruno Haible  <bruno@clisp.org>
31564         ptsname: Move AC_LIBOBJ invocations to module description.
31565         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
31566         invocations from here...
31567         * modules/ptsname (configure.ac): ... to here.
31569 2011-05-21  Bruno Haible  <bruno@clisp.org>
31571         pread: Move AC_LIBOBJ invocations to module description.
31572         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
31573         * modules/pread (configure.ac): ... to here.
31575 2011-05-21  Bruno Haible  <bruno@clisp.org>
31577         posix_spawn*: Move AC_LIBOBJ invocations to module description.
31578         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
31579         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
31580         * modules/posix_spawn (configure.ac): ... to here.
31581         * modules/posix_spawnp (configure.ac): ... and here.
31583 2011-05-21  Bruno Haible  <bruno@clisp.org>
31585         popen: Move AC_LIBOBJ invocations to module description.
31586         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
31587         invocations from here...
31588         * modules/popen (configure.ac): ... to here.
31590 2011-05-21  Bruno Haible  <bruno@clisp.org>
31592         poll: Move AC_LIBOBJ invocations to module description.
31593         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
31594         invocations from here...
31595         * modules/poll (configure.ac): ... to here.
31597 2011-05-21  Bruno Haible  <bruno@clisp.org>
31599         pipe-posix: Move AC_LIBOBJ invocations to module description.
31600         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
31601         * modules/pipe-posix (configure.ac): ... to here.
31603 2011-05-21  Bruno Haible  <bruno@clisp.org>
31605         openat: Respect rules for use of AC_LIBOBJ.
31606         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
31607         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31608         * modules/openat (configure.ac): ... to here.
31610 2011-05-21  Bruno Haible  <bruno@clisp.org>
31612         obstack-printf*: Move AC_LIBOBJ invocations to module description.
31613         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
31614         invocation from here...
31615         * modules/obstack-printf (configure.ac): ... to here.
31616         * modules/obstack-printf-posix (configure.ac): ... and here.
31618 2011-05-21  Bruno Haible  <bruno@clisp.org>
31620         nl_langinfo: Move AC_LIBOBJ invocations to module description.
31621         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
31622         from here...
31623         * modules/nl_langinfo (configure.ac): ... to here.
31625 2011-05-21  Bruno Haible  <bruno@clisp.org>
31627         nanosleep: Move AC_LIBOBJ invocations to module description.
31628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
31629         gl_PREREQ_NANOSLEEP invocations from here...
31630         * modules/nanosleep (configure.ac): ... to here.
31632 2011-05-21  Bruno Haible  <bruno@clisp.org>
31634         mountlist: Move AC_LIBOBJ invocations to module description.
31635         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
31636         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
31637         * modules/mountlist (configure.ac): ... to here.
31639 2011-05-21  Bruno Haible  <bruno@clisp.org>
31641         mktime: Respect rules for use of AC_LIBOBJ.
31642         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
31643         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
31644         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
31645         (gl_FUNC_MKTIME_INTERNAL): ... and here...
31646         * modules/mktime (configure.ac): ... to here.
31647         * modules/mktime-internal (configure.ac): ... and here.
31648         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
31650 2011-05-21  Bruno Haible  <bruno@clisp.org>
31652         mkstemps: Move AC_LIBOBJ invocations to module description.
31653         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
31654         here...
31655         * modules/mkstemps (configure.ac): ... to here.
31657 2011-05-21  Bruno Haible  <bruno@clisp.org>
31659         mkstemp: Move AC_LIBOBJ invocations to module description.
31660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
31661         gl_PREREQ_MKSTEMP invocations from here...
31662         * modules/mkstemp (configure.ac): ... to here.
31664 2011-05-21  Bruno Haible  <bruno@clisp.org>
31666         mkostemps: Move AC_LIBOBJ invocations to module description.
31667         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
31668         here...
31669         * modules/mkostemps (configure.ac): ... to here.
31671 2011-05-21  Bruno Haible  <bruno@clisp.org>
31673         mkostemp: Move AC_LIBOBJ invocations to module description.
31674         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
31675         gl_PREREQ_MKOSTEMP invocations from here...
31676         * modules/mkostemp (configure.ac): ... to here.
31678 2011-05-21  Bruno Haible  <bruno@clisp.org>
31680         mknod: Move AC_LIBOBJ invocations to module description.
31681         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
31682         * modules/mknod (configure.ac): ... to here.
31684 2011-05-21  Bruno Haible  <bruno@clisp.org>
31686         mkfifoat: Move AC_LIBOBJ invocations to module description.
31687         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
31688         here...
31689         * modules/mkfifoat (configure.ac): ... to here.
31691 2011-05-21  Bruno Haible  <bruno@clisp.org>
31693         mkfifo: Respect rules for use of AC_LIBOBJ.
31694         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
31695         here...
31696         * modules/mkfifo (configure.ac): ... to here.
31698 2011-05-21  Bruno Haible  <bruno@clisp.org>
31700         mkdtemp: Move AC_LIBOBJ invocations to module description.
31701         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
31702         invocations from here...
31703         * modules/mkdtemp (configure.ac): ... to here.
31705 2011-05-21  Bruno Haible  <bruno@clisp.org>
31707         mkdir: Move AC_LIBOBJ invocations to module description.
31708         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
31709         * modules/mkdir (configure.ac): ... to here.
31711 2011-05-21  Bruno Haible  <bruno@clisp.org>
31713         memset: Move AC_LIBOBJ invocations to module description.
31714         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
31715         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
31716         here...
31717         * modules/memset (configure.ac): ... to here.
31719 2011-05-21  Bruno Haible  <bruno@clisp.org>
31721         memrchr: Move AC_LIBOBJ invocations to module description.
31722         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
31723         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
31724         here...
31725         * modules/memrchr (configure.ac): ... to here.
31727 2011-05-21  Bruno Haible  <bruno@clisp.org>
31729         mempcpy: Move AC_LIBOBJ invocations to module description.
31730         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
31731         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
31732         here...
31733         * modules/mempcpy (configure.ac): ... to here.
31735 2011-05-21  Bruno Haible  <bruno@clisp.org>
31737         memmove: Move AC_LIBOBJ invocations to module description.
31738         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
31739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
31740         here...
31741         * modules/memmove (configure.ac): ... to here.
31743 2011-05-21  Bruno Haible  <bruno@clisp.org>
31745         memmem*: Move AC_LIBOBJ invocations to module description.
31746         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
31747         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
31748         here...
31749         (gl_FUNC_MEMMEM): ... and here...
31750         * modules/memmem-simple (configure.ac): ... to here.
31751         * modules/memmem (configure.ac): ... and here.
31753 2011-05-21  Bruno Haible  <bruno@clisp.org>
31755         memcpy: Move AC_LIBOBJ invocations to module description.
31756         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
31757         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
31758         here...
31759         * modules/memcpy (configure.ac): ... to here.
31761 2011-05-21  Bruno Haible  <bruno@clisp.org>
31763         memcmp: Simplify autoconf macro.
31764         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
31765         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
31766         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
31768 2011-05-21  Bruno Haible  <bruno@clisp.org>
31770         memcmp: Move AC_LIBOBJ invocations to module description.
31771         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
31772         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
31773         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
31774         * modules/memcmp (configure.ac): ... to here.
31775         (Depends-on): Update conditions.
31777 2011-05-21  Bruno Haible  <bruno@clisp.org>
31779         memchr: Respect rules for use of AC_LIBOBJ.
31780         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
31781         invocations from here...
31782         * modules/memchr (configure.ac): ... to here.
31784 2011-05-21  Bruno Haible  <bruno@clisp.org>
31786         mbtowc: Move AC_LIBOBJ invocations to module description.
31787         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
31788         invocations from here...
31789         * modules/mbtowc (configure.ac): ... to here.
31791 2011-05-21  Bruno Haible  <bruno@clisp.org>
31793         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
31794         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
31795         gl_PREREQ_MBSRTOWCS invocations from here...
31796         * modules/mbsrtowcs (configure.ac): ... to here.
31798 2011-05-21  Bruno Haible  <bruno@clisp.org>
31800         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
31801         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
31802         gl_PREREQ_MBSNRTOWCS invocations from here...
31803         * modules/mbsnrtowcs (configure.ac): ... to here.
31805 2011-05-21  Bruno Haible  <bruno@clisp.org>
31807         mbsinit: Move AC_LIBOBJ invocations to module description.
31808         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
31809         invocations from here...
31810         * modules/mbsinit (configure.ac): ... to here.
31812 2011-05-21  Bruno Haible  <bruno@clisp.org>
31814         mbrlen: Move AC_LIBOBJ invocations to module description.
31815         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
31816         invocations from here...
31817         * modules/mbrlen (configure.ac): ... to here.
31819 2011-05-21  Bruno Haible  <bruno@clisp.org>
31821         mbrtowc: Respect rules for use of AC_LIBOBJ.
31822         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
31823         invocations from here...
31824         * modules/mbrtowc (configure.ac): ... to here.
31826 2011-05-21  Bruno Haible  <bruno@clisp.org>
31828         malloc-*: Move AC_LIBOBJ invocations to module description.
31829         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
31830         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
31831         AC_LIBOBJ invocations from here...
31832         * modules/malloc-gnu (configure.ac): ... to here.
31833         * modules/malloc-posix (configure.ac): ... and here.
31835 2011-05-21  Bruno Haible  <bruno@clisp.org>
31837         lstat, openat: Respect rules for use of AC_LIBOBJ.
31838         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
31839         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
31840         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
31841         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
31842         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
31843         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
31844         here.
31845         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
31847 2011-05-21  Bruno Haible  <bruno@clisp.org>
31849         lseek: Move AC_LIBOBJ invocations to module description.
31850         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
31851         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
31852         * modules/lseek (configure.ac): ... to here.
31854 2011-05-21  Bruno Haible  <bruno@clisp.org>
31856         linkat: Move AC_LIBOBJ invocations to module description.
31857         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
31858         here...
31859         * modules/linkat (configure.ac): ... to here.
31861 2011-05-21  Bruno Haible  <bruno@clisp.org>
31863         link: Respect rules for use of AC_LIBOBJ.
31864         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
31865         * modules/link (configure.ac): ... to here.
31867 2011-05-21  Bruno Haible  <bruno@clisp.org>
31869         lchown: Move AC_LIBOBJ invocations to module description.
31870         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
31871         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31872         * modules/lchown (configure.ac): ... to here.
31874 2011-05-21  Bruno Haible  <bruno@clisp.org>
31876         iswctype: Move AC_LIBOBJ invocations to module description.
31877         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
31878         here...
31879         * modules/iswctype (configure.ac): ... to here.
31881 2011-05-21  Bruno Haible  <bruno@clisp.org>
31883         iswblank: Move AC_LIBOBJ invocations to module description.
31884         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
31885         here...
31886         * modules/iswblank (configure.ac): ... to here.
31888 2011-05-21  Bruno Haible  <bruno@clisp.org>
31890         atanl: Move AC_LIBOBJ invocations to module description.
31891         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
31892         * modules/atanl (configure.ac): ... to here.
31894 2011-05-21  Bruno Haible  <bruno@clisp.org>
31896         acosl: Move AC_LIBOBJ invocations to module description.
31897         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
31898         * modules/acosl (configure.ac): ... to here.
31900 2011-05-21  Bruno Haible  <bruno@clisp.org>
31902         asinl: Respect rules for use of AC_LIBOBJ.
31903         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
31904         * modules/asinl (configure.ac): ... to here.
31906 2011-05-21  Bruno Haible  <bruno@clisp.org>
31908         tanl: Move AC_LIBOBJ invocations to module description.
31909         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
31910         * modules/tanl (configure.ac): ... to here.
31912 2011-05-21  Bruno Haible  <bruno@clisp.org>
31914         cosl: Move AC_LIBOBJ invocations to module description.
31915         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
31916         * modules/cosl (configure.ac): ... to here.
31918 2011-05-21  Bruno Haible  <bruno@clisp.org>
31920         sinl: Move AC_LIBOBJ invocations to module description.
31921         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
31922         * modules/sinl (configure.ac): ... to here.
31924 2011-05-21  Bruno Haible  <bruno@clisp.org>
31926         logl: Move AC_LIBOBJ invocations to module description.
31927         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
31928         * modules/logl (configure.ac): ... to here.
31930 2011-05-21  Bruno Haible  <bruno@clisp.org>
31932         expl: Move AC_LIBOBJ invocations to module description.
31933         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
31934         * modules/expl (configure.ac): ... to here.
31936 2011-05-21  Bruno Haible  <bruno@clisp.org>
31938         roundl: Move AC_LIBOBJ invocations to module description.
31939         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
31940         * modules/roundl (configure.ac): ... to here.
31942 2011-05-21  Bruno Haible  <bruno@clisp.org>
31944         round: Move AC_LIBOBJ invocations to module description.
31945         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
31946         * modules/round (configure.ac): ... to here.
31948 2011-05-21  Bruno Haible  <bruno@clisp.org>
31950         roundf: Move AC_LIBOBJ invocations to module description.
31951         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
31952         * modules/roundf (configure.ac): ... to here.
31954 2011-05-21  Bruno Haible  <bruno@clisp.org>
31956         truncl: Move AC_LIBOBJ invocations to module description.
31957         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
31958         * modules/truncl (configure.ac): ... to here.
31960 2011-05-21  Bruno Haible  <bruno@clisp.org>
31962         trunc: Move AC_LIBOBJ invocations to module description.
31963         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
31964         * modules/trunc (configure.ac): ... to here.
31966 2011-05-21  Bruno Haible  <bruno@clisp.org>
31968         truncf: Move AC_LIBOBJ invocations to module description.
31969         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
31970         * modules/truncf (configure.ac): ... to here.
31972 2011-05-21  Bruno Haible  <bruno@clisp.org>
31974         ceill: Move AC_LIBOBJ invocations to module description.
31975         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
31976         * modules/ceill (configure.ac): ... to here.
31978 2011-05-21  Bruno Haible  <bruno@clisp.org>
31980         ceil: Move AC_LIBOBJ invocations to module description.
31981         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
31982         * modules/ceil (configure.ac): ... to here.
31984 2011-05-21  Bruno Haible  <bruno@clisp.org>
31986         ceilf: Move AC_LIBOBJ invocations to module description.
31987         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
31988         * modules/ceilf (configure.ac): ... to here.
31990 2011-05-21  Bruno Haible  <bruno@clisp.org>
31992         floorl: Respect rules for use of AC_LIBOBJ.
31993         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
31994         * modules/floorl (configure.ac): ... to here.
31996 2011-05-21  Bruno Haible  <bruno@clisp.org>
31998         floor: Respect rules for use of AC_LIBOBJ.
31999         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
32000         * modules/floor (configure.ac): ... to here.
32002 2011-05-21  Bruno Haible  <bruno@clisp.org>
32004         floorf: Move AC_LIBOBJ invocations to module description.
32005         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
32006         * modules/floorf (configure.ac): ... to here.
32008 2011-05-20  Bruno Haible  <bruno@clisp.org>
32010         sqrtl: Respect rules for use of AC_LIBOBJ.
32011         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
32012         * modules/sqrtl (configure.ac): ... to here.
32014 2011-05-20  Bruno Haible  <bruno@clisp.org>
32016         ldexpl: Respect rules for use of AC_LIBOBJ.
32017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
32018         * modules/ldexpl (configure.ac): ... to here.
32020 2011-05-20  Bruno Haible  <bruno@clisp.org>
32022         frexpl*: Respect rules for use of AC_LIBOBJ.
32023         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
32024         invocation from here...
32025         * modules/frexpl (configure.ac): ... to here.
32026         * modules/frexpl-nolibm (configure.ac): ... and here.
32028 2011-05-20  Bruno Haible  <bruno@clisp.org>
32030         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
32031         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
32032         invocation from here...
32033         * modules/frexp (configure.ac): ... to here.
32034         * modules/frexp-nolibm (configure.ac): ... and here.
32036 2011-05-20  Bruno Haible  <bruno@clisp.org>
32038         isnan: Respect rules for use of AC_LIBOBJ.
32039         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
32040         invocations here.
32041         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
32042         REPLACE_ISNAN.
32043         * modules/isnand (configure.ac): Likewise.
32044         * modules/isnanl (configure.ac): Likewise.
32046 2011-05-20  Bruno Haible  <bruno@clisp.org>
32048         isnanl*: Respect rules for use of AC_LIBOBJ.
32049         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
32050         invocation from here...
32051         * modules/isnanl (configure.ac): ... to here.
32052         * modules/isnanl-nolibm (configure.ac): ... and here.
32054 2011-05-20  Bruno Haible  <bruno@clisp.org>
32056         isnand*: Move AC_LIBOBJ invocations to module description.
32057         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
32058         invocation from here...
32059         * modules/isnand (configure.ac): ... to here.
32060         * modules/isnand-nolibm (configure.ac): ... and here.
32062 2011-05-20  Bruno Haible  <bruno@clisp.org>
32064         isnanf*: Move AC_LIBOBJ invocations to module description.
32065         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
32066         invocation from here...
32067         * modules/isnanf (configure.ac): ... to here.
32068         * modules/isnanf-nolibm (configure.ac): ... and here.
32070 2011-05-20  Bruno Haible  <bruno@clisp.org>
32072         isnan*: Separate the AC_LIBOBJ invocations.
32073         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
32074         AC_LIBOBJ invocation.
32075         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
32076         here.
32077         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
32078         AC_LIBOBJ invocation.
32079         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
32080         here.
32081         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
32082         AC_LIBOBJ invocation.
32083         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
32084         here.
32085         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
32087 2011-05-08  Bruno Haible  <bruno@clisp.org>
32089         isinf: Move AC_LIBOBJ invocations to module description.
32090         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
32091         * modules/isinf (configure.ac): ... to here.
32093 2011-05-08  Bruno Haible  <bruno@clisp.org>
32095         isfinite: Move AC_LIBOBJ invocations to module description.
32096         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
32097         * modules/isfinite (configure.ac): ... to here.
32099 2011-05-08  Bruno Haible  <bruno@clisp.org>
32101         isblank: Move AC_LIBOBJ invocations to module description.
32102         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
32103         here...
32104         * modules/isblank (configure.ac): ... to here.
32106 2011-05-08  Bruno Haible  <bruno@clisp.org>
32108         isapipe: Move AC_LIBOBJ invocations to module description.
32109         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
32110         gl_PREREQ_ISAPIPE invocations from here...
32111         * modules/isapipe (configure.ac): ... to here.
32112         (Depends-on): Update condition.
32114 2011-05-08  Bruno Haible  <bruno@clisp.org>
32116         ioctl: Move AC_LIBOBJ invocations to module description.
32117         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
32118         invocations from here...
32119         * modules/ioctl (configure.ac): ... to here.
32120         (Depends-on): Update condition.
32122 2011-05-08  Bruno Haible  <bruno@clisp.org>
32124         imaxdiv: Move AC_LIBOBJ invocations to module description.
32125         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
32126         invocations from here...
32127         * modules/imaxdiv (configure.ac): ... to here.
32129 2011-05-08  Bruno Haible  <bruno@clisp.org>
32131         imaxabs: Move AC_LIBOBJ invocations to module description.
32132         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
32133         invocations from here...
32134         * modules/imaxabs (configure.ac): ... to here.
32136 2011-05-08  Bruno Haible  <bruno@clisp.org>
32138         getaddrinfo: Move AC_LIBOBJ invocations to module description.
32139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
32140         AC_LIBOBJ invocations from here...
32141         * modules/getaddrinfo (configure.ac): ... to here.
32142         (Depends-on): Add conditions.
32144 2011-05-08  Bruno Haible  <bruno@clisp.org>
32146         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
32147         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
32148         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
32149         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
32150         (gl_PREREQ_INET_PTON): ... from here.
32151         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
32152         gl_PREREQ_INET_PTON here.
32153         (Depends-on): Update condition.
32155 2011-05-08  Bruno Haible  <bruno@clisp.org>
32157         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
32158         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
32159         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
32160         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
32161         (gl_PREREQ_INET_NTOP): ... from here.
32162         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
32163         gl_PREREQ_INET_NTOP here.
32164         (Depends-on): Update condition.
32166 2011-05-08  Bruno Haible  <bruno@clisp.org>
32168         iconv_open: Move AC_LIBOBJ invocations to module description.
32169         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
32170         AC_LIBOBJ invocations from here...
32171         * modules/iconv_open (configure.ac): ... to here.
32173 2011-05-08  Bruno Haible  <bruno@clisp.org>
32175         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
32176         If module 'iconv_open' is among the main modules and module
32177         'iconv_open-utf' is among the tests dependencies, then
32178         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
32179         return the special iconv_t values. Therefore iconv() and iconv_close()
32180         must support these special iconv_t values, already in lib, not only in
32181         tests.
32182         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
32183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
32184         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
32185         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
32186         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
32187         (Depends-on): Add the dependencies of iconv_open-utf.
32188         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
32189         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
32190         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
32192 2011-05-08  Bruno Haible  <bruno@clisp.org>
32194         group-member: Move AC_LIBOBJ invocations to module description.
32195         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
32196         gl_PREREQ_GROUP_MEMBER invocations from here...
32197         * modules/group-member (configure.ac): ... to here.
32199 2011-05-08  Bruno Haible  <bruno@clisp.org>
32201         grantpt: Move AC_LIBOBJ invocations to module description.
32202         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
32203         invocations from here...
32204         * modules/grantpt (configure.ac): ... to here.
32206 2011-05-08  Bruno Haible  <bruno@clisp.org>
32208         glob: Move AC_LIBOBJ invocations to module description.
32209         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
32210         from here...
32211         * modules/glob (configure.ac): ... to here.
32213 2011-05-08  Bruno Haible  <bruno@clisp.org>
32215         getusershell: Move AC_LIBOBJ invocations to module description.
32216         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
32217         Move AC_LIBOBJ invocation from here...
32218         * modules/getusershell (configure.ac): ... to here.
32219         (Depends-on): Update condition.
32221 2011-05-08  Bruno Haible  <bruno@clisp.org>
32223         gettimeofday: Move AC_LIBOBJ invocations to module description.
32224         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
32225         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
32226         gl_PREREQ_GETTIMEOFDAY invocations from here...
32227         * modules/gettimeofday (configure.ac): ... to here.
32229 2011-05-08  Bruno Haible  <bruno@clisp.org>
32231         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
32232         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
32233         just gl_FUNC_TZSET.
32234         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
32235         (gl_FUNC_TZSET_CLOBBER): Remove actions.
32236         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
32237         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
32239 2011-05-08  Bruno Haible  <bruno@clisp.org>
32241         getsubopt: Move AC_LIBOBJ invocations to module description.
32242         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
32243         gl_PREREQ_GETSUBOPT invocations from here...
32244         * modules/getsubopt (configure.ac): ... to here.
32246 2011-05-08  Bruno Haible  <bruno@clisp.org>
32248         getpass-gnu: Move AC_LIBOBJ invocations to module description.
32249         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
32250         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
32251         * modules/getpass-gnu (configure.ac): ... to here.
32253 2011-05-08  Bruno Haible  <bruno@clisp.org>
32255         getpass: Move AC_LIBOBJ invocations to module description.
32256         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
32257         gl_PREREQ_GETPASS invocations from here...
32258         * modules/getpass (configure.ac): ... to here.
32260 2011-05-08  Bruno Haible  <bruno@clisp.org>
32262         getpagesize: Move AC_LIBOBJ invocations to module description.
32263         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
32264         from here...
32265         * modules/getpagesize (configure.ac): ... to here.
32267 2011-05-08  Bruno Haible  <bruno@clisp.org>
32269         getopt: Move AC_LIBOBJ invocations to module description.
32270         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
32271         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
32272         invocations from here...
32273         * modules/getopt-gnu (configure.ac): ... to here.
32274         * modules/getopt-posix (configure.ac): ... and here.
32275         (Depends-on): Update condition.
32277 2011-05-08  Bruno Haible  <bruno@clisp.org>
32279         getopt, argp: Respect rules for use of AC_LIBOBJ.
32280         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
32281         (gl_REPLACE_GETOPT_ALWAYS): New macro.
32282         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
32283         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
32285 2011-05-08  Bruno Haible  <bruno@clisp.org>
32287         getlogin_r: Move AC_LIBOBJ invocations to module description.
32288         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
32289         gl_PREREQ_GETLOGIN_R invocations from here...
32290         * modules/getlogin_r (configure.ac): ... to here.
32292 2011-05-08  Bruno Haible  <bruno@clisp.org>
32294         getlogin: Move AC_LIBOBJ invocations to module description.
32295         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
32296         here...
32297         * modules/getlogin (configure.ac): ... to here.
32299 2011-05-08  Bruno Haible  <bruno@clisp.org>
32301         getloadavg: Move AC_LIBOBJ invocations to module description.
32302         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
32303         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
32304         * modules/getloadavg (configure.ac): ... to here.
32306 2011-05-08  Bruno Haible  <bruno@clisp.org>
32308         gethrxtime: Move AC_LIBOBJ invocations to module description.
32309         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
32310         LIB_GETHRXTIME from here...
32311         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
32312         invocations from here...
32313         * modules/gethrxtime (configure.ac): ... to here.
32315 2011-05-08  Bruno Haible  <bruno@clisp.org>
32317         gethostname: Move AC_LIBOBJ invocations to module description.
32318         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
32319         gl_PREREQ_GETHOSTNAME invocations from here...
32320         * modules/gethostname (configure.ac): ... to here.
32322 2011-05-08  Bruno Haible  <bruno@clisp.org>
32324         getgroups: Move AC_LIBOBJ invocations to module description.
32325         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
32326         here...
32327         * modules/getgroups (configure.ac): ... to here.
32329 2011-05-08  Bruno Haible  <bruno@clisp.org>
32331         getdtablesize: Move AC_LIBOBJ invocations to module description.
32332         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
32333         invocation from here...
32334         * modules/getdtablesize (configure.ac): ... to here.
32336 2011-05-08  Bruno Haible  <bruno@clisp.org>
32338         getdomainname: Move AC_LIBOBJ invocations to module description.
32339         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
32340         gl_PREREQ_GETDOMAINNAME invocations from here...
32341         * modules/getdomainname (configure.ac): ... to here.
32343 2011-05-08  Bruno Haible  <bruno@clisp.org>
32345         getline: Move AC_LIBOBJ invocations to module description.
32346         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
32347         invocations from here...
32348         * modules/getline (configure.ac): ... to here.
32350 2011-05-08  Bruno Haible  <bruno@clisp.org>
32352         getline: Simplify.
32353         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
32354         It's already handled through the module dependency.
32356 2011-05-08  Bruno Haible  <bruno@clisp.org>
32358         getdelim: Move AC_LIBOBJ invocations to module description.
32359         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
32360         and gl_PREREQ_GETDELIM invocations from here...
32361         * modules/getdelim (configure.ac): ... to here.
32362         (Depends-on): Fix condition.
32364 2011-05-08  Bruno Haible  <bruno@clisp.org>
32366         getcwd: Move AC_LIBOBJ invocations to module description.
32367         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
32368         invocations from here...
32369         * modules/getcwd (configure.ac): ... to here.
32371 2011-05-08  Bruno Haible  <bruno@clisp.org>
32373         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
32374         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
32375         here...
32376         * modules/getcwd-lgpl (configure.ac): ... to here.
32378 2011-05-07  Bruno Haible  <bruno@clisp.org>
32380         crypto/gc: Move AC_LIBOBJ invocations to module description.
32381         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
32382         * modules/crypto/gc (configure.ac): ... to here.
32384 2011-05-07  Bruno Haible  <bruno@clisp.org>
32386         fwriting: Move AC_LIBOBJ invocations to module description.
32387         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
32388         here...
32389         * modules/fwriting (configure.ac): ... to here.
32391 2011-05-07  Bruno Haible  <bruno@clisp.org>
32393         fwritable: Move AC_LIBOBJ invocations to module description.
32394         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
32395         here...
32396         * modules/fwritable (configure.ac): ... to here.
32398 2011-05-07  Bruno Haible  <bruno@clisp.org>
32400         futimens: Move AC_LIBOBJ invocations to module description.
32401         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
32402         here...
32403         * modules/futimens (configure.ac): ... to here.
32405 2011-05-07  Bruno Haible  <bruno@clisp.org>
32407         ftruncate: Move AC_LIBOBJ invocations to module description.
32408         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
32409         gl_PREREQ_FTRUNCATE invocations from here...
32410         * modules/ftruncate (configure.ac): ... to here.
32412 2011-05-07  Bruno Haible  <bruno@clisp.org>
32414         fsync: Move AC_LIBOBJ invocations to module description.
32415         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
32416         invocations from here...
32417         * modules/fsync (configure.ac): ... to here.
32419 2011-05-07  Bruno Haible  <bruno@clisp.org>
32421         fsusage: Move AC_LIBOBJ invocations to module description.
32422         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
32423         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
32424         * modules/fsusage (configure.ac): ... to here.
32426 2011-05-07  Bruno Haible  <bruno@clisp.org>
32428         freopen: Move AC_LIBOBJ invocations to module description.
32429         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
32430         invocations from here...
32431         * modules/freopen (configure.ac): ... to here.
32433 2011-05-07  Bruno Haible  <bruno@clisp.org>
32435         free: Move AC_LIBOBJ invocations to module description.
32436         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
32437         invocations from here...
32438         * modules/free (configure.ac): ... to here.
32440 2011-05-07  Bruno Haible  <bruno@clisp.org>
32442         freadable: Move AC_LIBOBJ invocations to module description.
32443         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
32444         here...
32445         * modules/freadable (configure.ac): ... to here.
32447 2011-05-07  Bruno Haible  <bruno@clisp.org>
32449         fpurge: Move AC_LIBOBJ invocations to module description.
32450         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
32451         invocations from here...
32452         * modules/fpurge (configure.ac): ... to here.
32454 2011-05-07  Bruno Haible  <bruno@clisp.org>
32456         fpending: Move AC_LIBOBJ invocations to module description.
32457         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
32458         gl_FUNC_FPENDING.
32459         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
32460         invocations from here...
32461         * modules/fpending (configure.ac): ... to here.
32463 2011-05-07  Bruno Haible  <bruno@clisp.org>
32465         fopen: Move AC_LIBOBJ invocations to module description.
32466         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
32467         invocations from here...
32468         * modules/fopen (configure.ac): ... to here.
32470 2011-05-07  Bruno Haible  <bruno@clisp.org>
32472         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
32473         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
32474         gl_FUNC_FNMATCH_POSIX.
32475         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
32476         invocations from here...
32477         * modules/fnmatch (configure.ac): ... to here.
32478         * modules/fnmatch-gnu (configure.ac): ... and here.
32480 2011-05-07  Bruno Haible  <bruno@clisp.org>
32482         flock: Move AC_LIBOBJ invocations to module description.
32483         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
32484         invocations from here...
32485         * modules/flock (configure.ac): ... to here.
32487 2011-05-07  Bruno Haible  <bruno@clisp.org>
32489         fileblocks: Move AC_LIBOBJ invocations to module description.
32490         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
32491         gl_PREREQ_FILEBLOCKS invocations from here...
32492         * modules/fileblocks (configure.ac): ... to here.
32494 2011-05-06  Bruno Haible  <bruno@clisp.org>
32496         fflush: Move AC_LIBOBJ invocations to module description.
32497         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
32498         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
32499         invocations from here...
32500         * modules/fflush (configure.ac): ... to here.
32502 2011-05-06  Bruno Haible  <bruno@clisp.org>
32504         fdopendir: Move AC_LIBOBJ invocations to module description.
32505         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
32506         here...
32507         * modules/fdopendir (configure.ac): ... to here.
32508         (Depends-on): Improve conditions.
32510 2011-05-06  Bruno Haible  <bruno@clisp.org>
32512         _Exit: Move AC_LIBOBJ invocations to module description.
32513         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
32514         invocations from here...
32515         * modules/_Exit (configure.ac): ... to here.
32517 2011-05-21  Bruno Haible  <bruno@clisp.org>
32519         euidaccess: Respect rules for use of AC_LIBOBJ.
32520         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
32521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
32522         from here...
32523         * modules/euidaccess (configure.ac): ... to here.
32525 2011-05-06  Bruno Haible  <bruno@clisp.org>
32527         error: Move AC_LIBOBJ invocations to module description.
32528         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
32529         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
32530         invocations from here...
32531         * modules/error (configure.ac): ... to here.
32533 2011-05-06  Bruno Haible  <bruno@clisp.org>
32535         duplocale: Move AC_LIBOBJ invocations to module description.
32536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
32537         gl_PREREQ_DUPLOCALE invocations from here...
32538         * modules/duplocale (configure.ac): ... to here.
32540 2011-05-05  Bruno Haible  <bruno@clisp.org>
32542         dirfd: Move AC_LIBOBJ invocations to module description.
32543         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
32544         gl_FUNC_DIRFD.
32545         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
32546         here...
32547         * modules/dirfd (configure.ac): ... to here.
32548         (Depends-on): Fix condition.
32550 2011-05-05  Bruno Haible  <bruno@clisp.org>
32552         chown: Respect rules for use of AC_LIBOBJ.
32553         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
32554         * modules/chown (configure.ac): ... to here.
32556 2011-05-05  Bruno Haible  <bruno@clisp.org>
32558         chdir-long: Move AC_LIBOBJ invocations to module description.
32559         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
32560         gl_PREREQ_CHDIR_LONG invocations from here...
32561         * modules/chdir-long (configure.ac): ... to here.
32563 2011-05-05  Bruno Haible  <bruno@clisp.org>
32565         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
32566         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
32567         from here...
32568         * modules/canonicalize-lgpl (configure.ac): ... to here.
32570 2011-05-05  Bruno Haible  <bruno@clisp.org>
32572         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
32573         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
32574         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
32575         REPLACE_CALLOC.
32576         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
32577         * modules/calloc-gnu (configure.ac): Likewise.
32579 2011-05-05  Bruno Haible  <bruno@clisp.org>
32581         btowc: Move AC_LIBOBJ invocations to module description.
32582         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
32583         invocations from here...
32584         * modules/btowc (configure.ac): ... to here.
32586 2011-05-21  Bruno Haible  <bruno@clisp.org>
32588         atexit: Move AC_LIBOBJ invocations to module description.
32589         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
32590         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
32591         here...
32592         * modules/atexit (configure.ac): ... to here.
32594 2011-05-05  Bruno Haible  <bruno@clisp.org>
32596         atoll: Move AC_LIBOBJ invocations to module description.
32597         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
32598         invocations from here...
32599         * modules/atoll (configure.ac): ... to here.
32601 2011-05-05  Bruno Haible  <bruno@clisp.org>
32603         argz: Move AC_LIBOBJ invocations to module description.
32604         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
32605         * modules/argz (configure.ac): ... to here.
32607 2011-05-05  Bruno Haible  <bruno@clisp.org>
32609         alphasort: Move AC_LIBOBJ invocations to module description.
32610         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
32611         gl_PREREQ_ALPHASORT invocations from here...
32612         * modules/alphasort (configure.ac): ... to here.
32614 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32616         verify: new macro verify_expr; verify_true deprecated
32617         * NEWS: Mention this.
32618         * doc/verify.texi (Compile-time Assertions): Document this.
32619         * lib/verify.h (verify_true): Deprecate.
32620         (verify_expr): New macro.
32621         * tests/test-verify.c (function): Test verify_expr.
32623 2011-06-14  Jim Meyering  <meyering@redhat.com>
32625         init.sh: give more portable redirection-related advice in a comment
32626         * tests/init.sh (stderr_fileno_): Update the advice in comments.
32627         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
32628         for lots of discussion.  Stefano Lattarini suggested the solution
32629         of putting "9>&2" after the command.  Reported by Bruno Haible.
32631 2011-06-13  Bruno Haible  <bruno@clisp.org>
32633         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
32634         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
32635         'none'.
32637 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32639         ftoastr: use strtof only if HAVE_STRTOF
32640         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
32641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
32642         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
32643         * modules/ftoastr (configure.ac): Check for strtof.
32645 2011-06-13  Bruno Haible  <bruno@clisp.org>
32647         gnulib-tool: Addendum to 2011-06-08 commit.
32648         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
32649         and --witness-c-macro have been given, augment AM_CPPFLAGS.
32651 2011-06-13  Bruno Haible  <bruno@clisp.org>
32653         fseeko: Provide a non-inline replacement of fseek().
32654         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
32655         * modules/fseeko (Depends-on): Add fseek.
32656         * modules/fseek (License): Change to LGPLv2+.
32658 2011-06-13  Bruno Haible  <bruno@clisp.org>
32660         ftello: Provide a non-inline replacement of ftell().
32661         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
32662         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
32663         not have ftello() (such as on mingw).
32664         * modules/ftello (Depends-on): Add ftell.
32665         * modules/ftell (License): Change to LGPLv2+.
32667 2011-05-07  Bruno Haible  <bruno@clisp.org>
32669         ftell: Move AC_LIBOBJ invocations to module description.
32670         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
32671         * modules/ftell (configure.ac): ... to here.
32673 2011-05-07  Bruno Haible  <bruno@clisp.org>
32675         ftello: Respect rules for use of AC_LIBOBJ.
32676         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
32677         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
32678         here...
32679         * modules/ftello (configure.ac): ... to here.
32681 2011-05-07  Bruno Haible  <bruno@clisp.org>
32683         fseeko: Simplify.
32684         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
32685         (gl_FUNC_FSEEKO): Inline it here.
32687 2011-05-07  Bruno Haible  <bruno@clisp.org>
32689         fseek: Move AC_LIBOBJ invocations to module description.
32690         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
32691         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
32692         * modules/fseek (configure.ac): ... to here.
32694 2011-05-07  Bruno Haible  <bruno@clisp.org>
32696         fseek: Respect rules for use of AC_LIBOBJ.
32697         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
32698         here...
32699         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
32701 2011-05-07  Bruno Haible  <bruno@clisp.org>
32703         fseeko: Respect rules for use of AC_LIBOBJ.
32704         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
32705         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
32706         here...
32707         * modules/fseeko (configure.ac): ... to here.
32709 2011-06-13  Bruno Haible  <bruno@clisp.org>
32711         gnulib-tool: Allow comments in the 'Depends-on' section.
32712         * doc/gnulib.texi (Module description): Mention comment syntax in the
32713         Depends-on section.
32714         * gnulib-tool (func_get_dependencies): Filter out comment lines.
32716 2011-06-13  Bruno Haible  <bruno@clisp.org>
32718         file-set.h: guard __attibute__ use, now that it's not always defined
32719         * lib/file-set.h (record_file): Use __attribute__ only with compiler
32720         versions that support it.  This fixes a coreutils build failure with
32721         the vendor cc on HP-UX 11.31.
32723 2011-06-12  Bruno Haible  <bruno@clisp.org>
32725         acl: Add support for HP-UX >= 11.11 JFS ACLs.
32726         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
32727         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
32728         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
32729         (acl, aclsort): New declarations.
32730         (aclv_nontrivial): New declaration.
32731         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
32732         (file_has_acl): Read also the second kind of HP-UX ACLs.
32733         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
32734         kind of HP-UX ACLs if the first kind fails.
32735         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
32736         second kind of HP-UX ACLs.
32737         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
32738         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
32739         agree.
32740         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
32741         hpuxjfs.
32742         Handle hpuxjfs.
32743         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
32744         hpuxjfs.
32745         Handle hpuxjfs.
32746         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
32747         (func_test_same_acls): Use both lsacl and getacl.
32748         Handle hpuxjfs.
32749         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
32750         (func_test_same_acls): Use both lsacl and getacl.
32751         Handle hpuxjfs.
32753 2011-06-12  Bruno Haible  <bruno@clisp.org>
32755         acl: Complete the 2010-08-10 fix.
32756         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
32757         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
32758         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
32759         explicitly.
32760         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
32761         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
32763 2011-06-12  Bruno Haible  <bruno@clisp.org>
32765         spawn-pipe tests: Comments.
32766         * tests/test-spawn-pipe-child.c (main): Update comment.
32767         Reported by James Youngman <jay@gnu.org>.
32769 2011-06-11  James Youngman  <jay@gnu.org>
32771         New module 'stat-size'.
32772         * modules/stat-size: New module.  Provides macros for accessing
32773         file size information in instances of struct stat.  Depends on the
32774         fileblocks module because it calls st_blocks.
32775         * lib/stat-size.h: New file, adapted from coreutils' system.h.
32776         * doc/gnulib.texi: Include stat-size.texi.
32777         * doc/stat-size.texi: Documentation for this module.
32778         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
32779         * m4/fileblocks.m4: Mention that stat-size depends on the call to
32780         AC_STRUCT_ST_BLOCKS.
32782 2011-06-09  Bruno Haible  <bruno@clisp.org>
32784         thread: Support pthreads-win32.
32785         * lib/glthread/thread.h (gl_thread_self): Define differently on
32786         pthreads-win32.
32787         (gl_null_thread): New declaration.
32788         (gl_thread_self_pointer): New macro.
32789         * lib/glthread/thread.c (gl_null_thread): New constant.
32790         * tests/test-lock.c: Use gl_thread_self_pointer instead of
32791         gl_thread_self.
32792         * tests/test-tls.c: Likewise.
32793         Suggested by Paul Eggert. Reported by Eric Blake.
32795 2011-06-09  Bruno Haible  <bruno@clisp.org>
32797         thread: Fix confusion between NULL and 0.
32798         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
32799         Reported by Paul Eggert.
32801 2011-06-09  Bruno Haible  <bruno@clisp.org>
32803         spawn-pipe tests: Avoid test failure on HP-UX 11.
32804         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
32805         is closed.
32807 2011-06-09  Bruno Haible  <bruno@clisp.org>
32809         acl tests: Fix compilation error on HP-UX 11.
32810         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
32812 2011-06-09  Bruno Haible  <bruno@clisp.org>
32814         rmdir: Avoid test failure on HP-UX 10.20.
32815         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
32816         EEXIST.
32818 2011-06-08  Eric Blake  <eblake@redhat.com>
32820         perror: fix test on mingw
32821         * modules/perror-tests (Depends-on): Add dup2.
32823         strerror_r-posix: fix on MacOS
32824         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
32825         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
32826         logic bug.
32827         * lib/strerror_r.c (strerror_r): Fix the bug.
32828         * lib/strerror.c (strerror): Likewise.
32829         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
32830         problem.
32831         * doc/posix-functions/strerror.texi (strerror): Likewise.
32832         * doc/posix-functions/perror.texi (perror): Likewise.
32833         * tests/test-strerror.c (main): Enhance test.
32834         * tests/test-strerror_r.c (main): Likewise.
32836 2011-06-08  Bruno Haible  <bruno@clisp.org>
32838         gnulib-tool: Better isolation between different gnulib-tool invocations.
32839         * gnulib-tool: New option --witness-c-macro.
32840         (witness_c_macro): New variable.
32841         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
32842         AM_CPPFLAGS define it as a C macro.
32843         (func_emit_tests_Makefile_am): Likewise.
32844         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
32845         read it from there.
32846         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
32847         m4_define, not AC_DEFUN.
32848         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
32849         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
32850         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
32851         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
32852         s|...|...|, to substitute the values of the GNULIB_* module indicator
32853         variables.
32854         * modules/dirent (Makefile.am): Likewise.
32855         * modules/fcntl-h (Makefile.am): Likewise.
32856         * modules/iconv-h (Makefile.am): Likewise.
32857         * modules/langinfo (Makefile.am): Likewise.
32858         * modules/locale (Makefile.am): Likewise.
32859         * modules/math (Makefile.am): Likewise.
32860         * modules/netdb (Makefile.am): Likewise.
32861         * modules/poll-h (Makefile.am): Likewise.
32862         * modules/pty (Makefile.am): Likewise.
32863         * modules/search (Makefile.am): Likewise.
32864         * modules/signal (Makefile.am): Likewise.
32865         * modules/spawn (Makefile.am): Likewise.
32866         * modules/stdio (Makefile.am): Likewise.
32867         * modules/stdlib (Makefile.am): Likewise.
32868         * modules/string (Makefile.am): Likewise.
32869         * modules/sys_ioctl (Makefile.am): Likewise.
32870         * modules/sys_select (Makefile.am): Likewise.
32871         * modules/sys_socket (Makefile.am): Likewise.
32872         * modules/sys_stat (Makefile.am): Likewise.
32873         * modules/sys_times (Makefile.am): Likewise.
32874         * modules/sys_utsname (Makefile.am): Likewise.
32875         * modules/sys_wait (Makefile.am): Likewise.
32876         * modules/termios (Makefile.am): Likewise.
32877         * modules/time (Makefile.am): Likewise.
32878         * modules/unistd (Makefile.am): Likewise.
32879         * modules/wchar (Makefile.am): Likewise.
32881 2011-06-08  Eric Blake  <eblake@redhat.com>
32883         strerror: simplify replacement
32884         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
32885         * modules/strerror (configure.ac): No prereqs needed here...
32886         * modules/strerror-override (configure.ac): ...but this needs it.
32887         (Files): Add file for needed prereq macro.
32889 2011-06-08  Bruno Haible  <bruno@clisp.org>
32891         strerror_r-posix: Tweaks.
32892         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
32893         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
32894         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
32895         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
32896         (gl_FUNC_STRERROR_R): ... to here.
32897         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
32899 2011-06-07  Eric Blake  <eblake@redhat.com>
32901         perror: document fixed bugs
32902         * doc/posix-functions/perror.texi (perror): Document recent
32903         patches.
32905 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32907         stat-time: get_stat_birthtime failure is better-defined
32908         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
32909         return a timestamp whose tv_sec and tv_nsec values are both -1.
32910         Previously, the spec said only that the tv_nsec value was negative.
32911         This upward-compatible change simplifies GNU tar a bit.
32913 2011-06-07  Eric Blake  <eblake@redhat.com>
32915         strerror_r-posix: work around cygwin 1.7.9
32916         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
32917         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
32918         bug without replacing strerror_r.
32919         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
32920         strerror_r is buggy, but without requiring strerror_r compilation.
32921         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
32923         test-perror: relax test to ignore cygwin bug
32924         * tests/test-perror2.c (main): Relax test on requiring detection
32925         of stream errors, and use unbuffered stream.
32926         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
32927         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
32928         * doc/posix-functions/fputc.texi (fputc): Likewise.
32929         * doc/posix-functions/fputs.texi (fputs): Likewise.
32930         * doc/posix-functions/fputws.texi (fputws): Likewise.
32931         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
32932         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
32933         * doc/posix-functions/getopt.texi (getopt): Likewise.
32934         * doc/posix-functions/perror.texi (perror): Likewise.
32935         * doc/posix-functions/printf.texi (printf): Likewise.
32936         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
32937         * doc/posix-functions/psignal.texi (psignal): Likewise.
32938         * doc/posix-functions/putc.texi (putc): Likewise.
32939         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
32940         Likewise.
32941         * doc/posix-functions/putchar.texi (putchar): Likewise.
32942         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
32943         Likewise.
32944         * doc/posix-functions/puts.texi (puts): Likewise.
32945         * doc/posix-functions/putwc.texi (putwc): Likewise.
32946         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32947         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32948         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32949         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
32950         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32951         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32952         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32953         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
32955 2011-05-22  Bruno Haible  <bruno@clisp.org>
32957         strerror: Move AC_LIBOBJ invocations to module description.
32958         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
32959         gl_PREREQ_STRERROR invocations from here...
32960         * modules/strerror (configure.ac): ... to here.
32962 2011-05-21  Bruno Haible  <bruno@clisp.org>
32964         perror: Use common idiom.
32965         * modules/perror (configure.ac): Reorder statements.
32967 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32969         tests: fix usage message in 'mktempd_'
32970         * tests/init.sh (mktempd_): In the usage message, use literal
32971         'mktempd_', not '$ME' (which is even undefined), as the name of
32972         the subroutine.
32974 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32976         tests init: new function 'fatal_', for hard errors
32977         Before this patch, the only way offered by tests/init.sh to
32978         properly signal a hard error was the `framework_failure_'
32979         function.  But the error message issued by that function,
32980         as its name would suggest, refers to a set-up failure in the
32981         testsuite, while hard errors can obviously also be due to
32982         other reasons.  The best way to fix this inconsistency is to
32983         introduce a new function with a more general error message.
32984         * tests/init.sh (fatal_): New function.
32986 2011-06-06  Eric Blake  <eblake@redhat.com>
32988         canonicalize-lgpl: use common idiom
32989         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
32990         over newer POSIX -Rf.
32991         Reported by Bruno Haible.
32993         canonicalize-lgpl: work around AIX realpath bug
32994         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
32995         * doc/posix-functions/realpath.texi (realpath): Document it.
32996         Reported by Bruno Haible.
32998         strerror: work around FreeBSD bug
32999         * lib/strerror.c (strerror): Special case 0.
33000         Reported by Bruno Haible.
33002         strerror-override: avoid bloating errno module
33003         * modules/errno (Files, configure.ac): Move replacement strings...
33004         * modules/strerror-override: ...to new module.
33005         * modules/strerror (Depends-on): Add strerror-override.
33006         * modules/strerror_r-posix (Depends-on): Likewise.
33007         * MODULES.html.sh: Document new module.
33008         Reported by Bruno Haible.
33010 2011-06-06  Bruno Haible  <bruno@clisp.org>
33012         spawn-pipe tests: Rename program.
33013         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
33014         * tests/test-spawn-pipe-child.c: Update comment.
33015         * tests/test-spawn-pipe.sh: Update.
33016         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
33018         spawn-pipe tests: Link the child program only against libc.
33019         * tests/test-spawn-pipe-child.c: New file, extracted from
33020         tests/test-spawn-pipe.c.
33021         (main): Expect only one argument.
33022         (is_open): New function, copied from tests/test-pipe.c.
33023         * tests/test-spawn-pipe.c: Don't include <errno.h>.
33024         (child_main): Remove function.
33025         (test_pipe): Pass only one argument to the child program.
33026         (main): Remove child process code. Expect the child program's name as
33027         first argument.
33028         * tests/test-spawn-pipe.sh: Pass the child program's name as first
33029         argument.
33030         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
33031         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
33032         test-spawn-pipe-child against no libraries.
33034 2011-06-06  Bruno Haible  <bruno@clisp.org>
33036         careadlinkat: Avoid mismatch between ssize_t and int.
33037         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
33038         * lib/careadlinkat.c (careadlinkatcwd): Define always.
33040 2011-06-06  Jim Meyering  <meyering@redhat.com>
33042         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
33043         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
33044         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
33046 2011-06-05  Bruno Haible  <bruno@clisp.org>
33048         ansi-c++-opt: Interoperability with libtool.
33049         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
33050         set the variable to "no", not to ":".
33051         * NEWS: Mention the change.
33053 2011-06-05  Bruno Haible  <bruno@clisp.org>
33055         acl: Fix test failure on AIX 7.
33056         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
33057         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
33059 2011-06-05  Bruno Haible  <bruno@clisp.org>
33061         pipe-filter-ii: Fix test failure on AIX and IRIX.
33062         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
33063         with EAGAIN, retry with a smaller buffer size.
33065 2011-06-05  Bruno Haible  <bruno@clisp.org>
33067         localename: Fix link dependencies.
33068         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
33069         * modules/localename-tests (Makefile.am): Link test-localename with
33070         $(LIBTHREAD).
33072 2011-06-05  Bruno Haible  <bruno@clisp.org>
33074         error: Avoid gcc warning.
33075         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
33077 2011-06-05  Bruno Haible  <bruno@clisp.org>
33079         unsetenv: Avoid gcc warning.
33080         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
33082 2011-06-05  Bruno Haible  <bruno@clisp.org>
33084         setenv: Avoid gcc warning.
33085         * lib/setenv.c (setenv): Provide declaration if system lacks it.
33087 2011-06-05  Bruno Haible  <bruno@clisp.org>
33089         sys_select: Ensure memset is declared also on AIX 7.
33090         * lib/sys_select.in.h: Include <string.h> also on AIX.
33091         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
33092         self-contained also on AIX 7.1.
33094 2011-06-04  Jim Meyering  <meyering@redhat.com>
33096         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
33097         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
33098         function name, "error".
33099         (_gl_translatable_diag_func_re): New configurable variable.
33101 2011-06-04  Bruno Haible  <bruno@clisp.org>
33103         getopt: Avoid gcc warning.
33104         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
33106 2011-06-04  Bruno Haible  <bruno@clisp.org>
33108         strerror_r: Fix comments.
33109         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
33110         commit.
33112 2011-06-04  Bruno Haible  <bruno@clisp.org>
33114         perror: Fix compilation error.
33115         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
33116         Undefine fprintf, not sprintf.
33117         * modules/perror (Depends-on): Remove intprops, verify.
33119 2011-06-04  Bruno Haible  <bruno@clisp.org>
33121         setlocale: Enable replacement on Cygwin 1.5.
33122         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
33123         Cygwin 1.5.x.
33124         * doc/posix-functions/setlocale.texi: Mention that the problem with the
33125         LC_CTYPE category also exists on Cygwin 1.5.x.
33127 2011-06-04  Bruno Haible  <bruno@clisp.org>
33129         strerror-override: Don't disable symbol renamings.
33130         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
33131         * lib/strerror-override.c: Include config.h.
33132         (strerror_override): Don't undefine.
33134 2011-06-03  Bruno Haible  <bruno@clisp.org>
33136         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
33137         * lib/localename.h: Update copyright header.
33138         * lib/localename.c: Likewise.
33139         * lib/relocatable.h: Likewise.
33140         * lib/relocatable.c: Likewise.
33142 2011-06-02  Bruno Haible  <bruno@clisp.org>
33144         doc: Fix a module name.
33145         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
33147 2011-06-02  Bruno Haible  <bruno@clisp.org>
33149         pipe2: Remove dependency on 'nonblocking' module.
33150         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
33151         O_NONBLOCK is defined by gnulib.
33152         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
33153         is zero.
33154         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
33155         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
33156         defined by gnulib.
33157         (get_nonblocking_flag): New function.
33158         (main): Test O_NONBLOCK flag only if it is nonzero.
33159         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
33161 2011-06-03  Jim Meyering  <meyering@redhat.com>
33163         maint: three new prohibit-header-without-use rules
33164         Prohibit use of cloexec.h, posixver.h, same.h without use.
33165         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
33166         (sc_prohibit_posixver_without_use): Likewise.
33167         (sc_prohibit_same_without_use): Likewise.
33169 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33171         allocator: 'die' routine is now given requested size
33172         * lib/allocator.h (struct allocator.die): New size arg.
33173         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
33174         If the actual problem is an ssize_t limitation, not a size_t or
33175         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
33177 2011-06-01  Eric Blake  <eblake@redhat.com>
33179         strerror: drop strerror_r dependency
33180         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
33181         * lib/strerror-override.c (strerror_override): ...to new file.
33182         * lib/strerror-override.h: Add prototype.
33183         * lib/strerror-impl.h: Delete.
33184         * lib/strerror.c (strerror): New implementation.
33185         * modules/errno (Files): Add new files.
33186         (configure.ac): Compile new file as appropriate.
33187         * modules/strerror (Files): Drop unused file.
33188         (Depends-on): Drop strerror_r-posix.
33189         * MODULES.html.sh: Document strerror_r-posix.
33190         Requested by Sam Steingold.
33192         perror: call strerror_r directly
33193         * modules/perror (Files): Drop strerror-impl.h.
33194         * lib/perror.c (perror): Use our own stack buffer, rather than
33195         calling a wrapper that uses static storage.
33196         * doc/posix-functions/perror.texi (perror): Document a limitation
33197         of our replacement.
33199         strerror_r: fix includes for FreeBSD
33200         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
33201         since we use abort on some platforms.
33202         Reported by Matthias Bolte.
33204 2011-05-31  Bruno Haible  <bruno@clisp.org>
33206         Fix link errors in tests: openat-die uses gettext-h.
33207         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
33208         against $(LIBINTL).
33209         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
33210         against $(LIBINTL).
33211         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
33212         $(LIBINTL).
33213         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
33214         against $(LIBINTL).
33215         * modules/linkat-tests (Makefile.am): Link test-linkat against
33216         $(LIBINTL).
33217         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
33218         $(LIBINTL).
33219         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
33220         against $(LIBINTL).
33221         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
33222         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
33223         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
33224         $(LIBINTL).
33225         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
33226         $(LIBINTL).
33227         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
33228         $(LIBINTL).
33229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33231 2011-05-31  Bruno Haible  <bruno@clisp.org>
33233         Fix link errors in tests: wait-process uses gettext-h.
33234         * modules/nonblocking-pipe-tests (Makefile.am): Set
33235         test_nonblocking_pipe_main_LDADD.
33236         * modules/nonblocking-socket-tests (Makefile.am): Link
33237         test-nonblocking-socket-main against $(LIBINTL).
33238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33240 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33242         assert-h: work around 'verify' incompatibility
33243         * lib/verify.h: Use @...@ directives, not ifdef.
33244         * modules/assert-h (assert.h): Implement the directives.
33245         (assert.h): Substitute the symbol-prefix more consistently.
33247 2011-05-29  Jim Meyering  <meyering@redhat.com>
33249         trim: remove three superfluous assignments
33250         * lib/trim.c (trim2): Remove three superfluous assignments
33251         and correct brace positioning.
33253 2011-05-29  Bruno Haible  <bruno@clisp.org>
33255         wctype-h: Avoid namespace pollution on Solaris 2.6.
33256         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
33257         identifiers.
33258         * doc/posix-headers/wctype.texi: Mention the problem.
33259         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33261 2011-05-28  Jim Meyering  <meyering@redhat.com>
33263         parse-datetime.y: accommodate -Wstrict-overflow
33264         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
33265         placate -Wstrict-overflow.
33267         trim: avoid a warning from -O2 -Wstrict-overflow
33268         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
33270 2011-05-29  Bruno Haible  <bruno@clisp.org>
33272         gnulib-tool: Fix bug in yesterday's commit.
33273         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
33274         twice.
33276 2011-05-29  Bruno Haible  <bruno@clisp.org>
33278         Allow multiple gnulib generated include files to be combined.
33279         * gnulib-tool (func_compute_include_guard_prefix): New function.
33280         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
33281         ${gl_include_guard_prefix} references.
33282         (func_import, func_create_testdir): Invoke
33283         func_compute_include_guard_prefix.
33284         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
33285         * lib/ctype.in.h: Likewise.
33286         * lib/dirent.in.h: Likewise.
33287         * lib/errno.in.h: Likewise.
33288         * lib/fcntl.in.h: Likewise.
33289         * lib/float.in.h: Likewise.
33290         * lib/getopt.in.h: Likewise.
33291         * lib/iconv.in.h: Likewise.
33292         * lib/langinfo.in.h: Likewise.
33293         * lib/locale.in.h: Likewise.
33294         * lib/math.in.h: Likewise.
33295         * lib/netdb.in.h: Likewise.
33296         * lib/netinet_in.in.h: Likewise.
33297         * lib/poll.in.h: Likewise.
33298         * lib/pthread.in.h: Likewise.
33299         * lib/pty.in.h: Likewise.
33300         * lib/sched.in.h: Likewise.
33301         * lib/se-selinux.in.h: Likewise.
33302         * lib/search.in.h: Likewise.
33303         * lib/signal.in.h: Likewise.
33304         * lib/spawn.in.h: Likewise.
33305         * lib/stdarg.in.h: Likewise.
33306         * lib/stddef.in.h: Likewise.
33307         * lib/stdint.in.h: Likewise.
33308         * lib/stdio.in.h: Likewise.
33309         * lib/stdlib.in.h: Likewise.
33310         * lib/string.in.h: Likewise.
33311         * lib/strings.in.h: Likewise.
33312         * lib/sys_file.in.h: Likewise.
33313         * lib/sys_ioctl.in.h: Likewise.
33314         * lib/sys_select.in.h: Likewise.
33315         * lib/sys_socket.in.h: Likewise.
33316         * lib/sys_stat.in.h: Likewise.
33317         * lib/sys_time.in.h: Likewise.
33318         * lib/sys_times.in.h: Likewise.
33319         * lib/sys_uio.in.h: Likewise.
33320         * lib/sys_utsname.in.h: Likewise.
33321         * lib/sys_wait.in.h: Likewise.
33322         * lib/sysexits.in.h: Likewise.
33323         * lib/termios.in.h: Likewise.
33324         * lib/time.in.h: Likewise.
33325         * lib/unistd.in.h: Likewise.
33326         * lib/wchar.in.h: Likewise.
33327         * lib/wctype.in.h: Likewise.
33328         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
33329         * modules/ctype (Makefile.am): Likewise.
33330         * modules/dirent (Makefile.am): Likewise.
33331         * modules/errno (Makefile.am): Likewise.
33332         * modules/fcntl-h (Makefile.am): Likewise.
33333         * modules/float (Makefile.am): Likewise.
33334         * modules/getopt-posix (Makefile.am): Likewise.
33335         * modules/iconv-h (Makefile.am): Likewise.
33336         * modules/langinfo (Makefile.am): Likewise.
33337         * modules/locale (Makefile.am): Likewise.
33338         * modules/math (Makefile.am): Likewise.
33339         * modules/netdb (Makefile.am): Likewise.
33340         * modules/netinet_in (Makefile.am): Likewise.
33341         * modules/poll-h (Makefile.am): Likewise.
33342         * modules/pthread (Makefile.am): Likewise.
33343         * modules/pty (Makefile.am): Likewise.
33344         * modules/sched (Makefile.am): Likewise.
33345         * modules/search (Makefile.am): Likewise.
33346         * modules/selinux-h (Makefile.am): Likewise.
33347         * modules/signal (Makefile.am): Likewise.
33348         * modules/spawn (Makefile.am): Likewise.
33349         * modules/stdarg (Makefile.am): Likewise.
33350         * modules/stddef (Makefile.am): Likewise.
33351         * modules/stdint (Makefile.am): Likewise.
33352         * modules/stdio (Makefile.am): Likewise.
33353         * modules/stdlib (Makefile.am): Likewise.
33354         * modules/string (Makefile.am): Likewise.
33355         * modules/strings (Makefile.am): Likewise.
33356         * modules/sys_file (Makefile.am): Likewise.
33357         * modules/sys_ioctl (Makefile.am): Likewise.
33358         * modules/sys_select (Makefile.am): Likewise.
33359         * modules/sys_socket (Makefile.am): Likewise.
33360         * modules/sys_stat (Makefile.am): Likewise.
33361         * modules/sys_time (Makefile.am): Likewise.
33362         * modules/sys_times (Makefile.am): Likewise.
33363         * modules/sys_uio (Makefile.am): Likewise.
33364         * modules/sys_utsname (Makefile.am): Likewise.
33365         * modules/sys_wait (Makefile.am): Likewise.
33366         * modules/sysexits (Makefile.am): Likewise.
33367         * modules/termios (Makefile.am): Likewise.
33368         * modules/time (Makefile.am): Likewise.
33369         * modules/unistd (Makefile.am): Likewise.
33370         * modules/wchar (Makefile.am): Likewise.
33371         * modules/wctype-h (Makefile.am): Likewise.
33372         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
33374 2011-05-29  Bruno Haible  <bruno@clisp.org>
33376         assert-h: Allow multiple gnulib generated replacements to coexist.
33377         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
33379 2011-05-29  Bruno Haible  <bruno@clisp.org>
33381         argp: Allow coexistence with strerror_r-posix module.
33382         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
33383         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
33384         by gnulib's <string.h> replacement), assume it has the POSIX signature,
33385         not the glibc signature.
33387 2011-05-28  Bruno Haible  <bruno@clisp.org>
33389         gnulib-tool: Alternative structure of testdirs, similar to --import.
33390         * gnulib-tool: New option --single-configure.
33391         (func_usage): Document it.
33392         (single_configure): New variable.
33393         (func_modules_transitive_closure_separately,
33394         func_modules_transitive_closure_separately,
33395         func_determine_use_libtests, func_modules_add_dummy_separately,
33396         func_modules_to_filelist_separately): New functions, extracted from
33397         func_import.
33398         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
33399         (func_import): Use the new functions.
33400         (func_create_testdir): Set final_modules. Handle $single_configure =
33401         true case.
33403 2011-05-28  Bruno Haible  <bruno@clisp.org>
33405         getloadavg: Remove an unreliable safety check.
33406         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
33407         getloadavg.c is in place.
33408         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
33409         Reported by Sam Steingold <sds@gnu.org>.
33411 2011-05-28  Bruno Haible  <bruno@clisp.org>
33413         doc: Cleanup yet another file produced by texinfo.tex.
33414         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
33416 2011-05-28  Bruno Haible  <bruno@clisp.org>
33418         Finish the conditional dependencies mechanism.
33419         * gnulib-tool: New option --no-conditional-dependencies.
33420         (func_usage): Document it. Don't mark --conditional-dependencies as
33421         experimental.
33422         (cond_dependencies): The possible values can now be true, false, empty.
33423         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
33424         (func_import): Store setting in gnulib-cache.m4 and read it from there.
33425         * doc/gnulib-tool.texi (Conditional dependencies): New section.
33427 2011-05-28  Bruno Haible  <bruno@clisp.org>
33429         doc: Use a recent texinfo.tex.
33430         * doc/Makefile (tex_opts): New variable.
33431         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
33433 2011-05-28  Jim Meyering  <meyering@redhat.com>
33435         intprops.h: adjust comment to match code change
33436         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
33437         only once, it *may* have side effects.  Also fix an unrelated typo.
33438         (_GL_INT_SIGNED): Likewise.
33440 2011-05-26  Simon Josefsson  <simon@josefsson.org>
33442         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
33444 2011-05-26  Bruno Haible  <bruno@clisp.org>
33446         mbsrchr: Avoid collision with system function on Interix.
33447         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
33448         Reported by Markus Duft <mduft@gentoo.org>.
33450 2011-05-15  James Youngman  <jay@gnu.org>
33452         getopt: for ambiguous options, enumerate the possibilities.
33453         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
33454         the ambiguous options when an ambiguous prefix is given. This was
33455         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
33456         glibc change was
33457         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
33459 2011-05-25  Eric Blake  <eblake@redhat.com>
33461         getcwd: work around mingw bug
33462         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
33463         * doc/posix-functions/getcwd.texi (getcwd): Document it.
33464         Reported by Matthias Bolte.
33466 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
33468         test-intprops: disable -Wtype-limits diagnostics
33469         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
33470         diagnostics.  Otherwise, the integer overflow macros generate many
33471         diagnostics.  Reported by Jim Meyering in
33472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
33474         intprops: shorten, to pacify gcc -Woverlength-strings
33475         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
33476         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
33477         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
33478         likely to run afoul of C compiler limits for string constant lengths.
33479         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
33481 2011-05-24  Eric Blake  <eblake@redhat.com>
33483         docs: document recently fixed glibc printf bug
33484         * doc/posix-functions/fprintf.texi (fprintf): Document it.
33485         * doc/posix-functions/printf.texi (printf): Likewise.
33486         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33487         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33489         closein-tests: convert to init.sh
33490         * modules/closein-tests (Files): Add init.sh
33491         * tests/test-closein.sh Use it.
33493         yesno-tests: convert to init.sh
33494         * modules/yesno-tests (Files): Add init.sh.
33495         * tests/test-yesno.sh: Use it.
33497         atexit-tests: ensure reliable exit status
33498         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
33499         Reported by Bruno Haible.
33501 2011-05-24  Bruno Haible  <bruno@clisp.org>
33503         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
33504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
33505         gl_PREREQ_STRERROR_R invocations from here...
33506         * modules/strerror_r-posix (configure.ac): ... to here.
33508 2011-05-24  Eric Blake  <eblake@redhat.com>
33510         strerror_r: fix missing header
33511         * lib/strerror_r.c: Avoid compiler warning about snprintf.
33513         strerror_r: fix AIX test failures
33514         * lib/strerror_r.c (strerror_r): Convert silent truncation to
33515         ERANGE failure.
33517         strerror_r: fix Solaris test failures
33518         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
33519         failures.
33520         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
33522         strerror_r: enforce POSIX recommendations
33523         * lib/strerror_r.c (safe_copy): New helper method.
33524         (strerror_r): Guarantee a non-empty string.
33525         * tests/test-strerror_r.c (main): Enhance tests to incorporate
33526         recent POSIX rulings and to match our strerror guarantees.
33527         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
33529 2011-05-24  Jim Meyering  <meyering@redhat.com>
33531         test-perror2.c: avoid warning about unused variable
33532         * tests/test-perror2.c (main): Remove declaration of unused "fp".
33534 2011-05-24  Eric Blake  <eblake@redhat.com>
33536         perror: avoid spurious test failure on HP-UX
33537         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
33539         tests: fix logic bug in init.sh
33540         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
33541         shell.
33543 2011-05-24  Jim Meyering  <meyering@redhat.com>
33545         utimensat: do not reference an out-of-scope buffer
33546         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
33547         declared in an inner scope, yet "times" would be dereferenced outside
33548         the scope in which "ts" was valid.
33549         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
33550         of ts[2] "out/up", so that the use of aliased "times" (via
33551         "times = ts;") does not end up referencing an out-of-scope "ts"
33553         opendir-safer.c: don't clobber errno; don't close negative FD
33554         * lib/opendir-safer.c (opendir_safer):
33555         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
33556         file descriptor, and more importantly, don't clobber the
33557         offending errno value with EINVAL.  Before, upon failure
33558         of dup_safer, we would pass the negative file descriptor to
33559         fdopendir, which would clobber errno.
33561 2011-05-23  Bruno Haible  <bruno@clisp.org>
33563         idcache: Fix module description.
33564         * modules/idcache (Include): Set to "idcache.h".
33566 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
33568         gnulib-tool: fix portability problem with MacOS sed
33569         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
33570         before the "}".  Problem reported by Leo in
33571         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
33572         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
33573         sed_extract_condition1, sed_extract_condition2.
33575 2011-05-23  Bruno Haible  <bruno@clisp.org>
33577         hash: Simplify autoconf macro.
33578         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
33580 2011-05-23  Bruno Haible  <bruno@clisp.org>
33582         getugroups: Fix module description.
33583         * modules/getugroups (Include): Set to "getugroups.h".
33585 2011-05-23  Bruno Haible  <bruno@clisp.org>
33587         linkat: Simplify autoconf macro.
33588         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
33590 2011-05-23  Bruno Haible  <bruno@clisp.org>
33591             Eric Blake  <eblake@redhat.com>
33593         linkat, renameat: Update dependencies.
33594         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
33595         * modules/linkat (Depends-on): Likewise. Remove also readlink,
33596         symlinkat.
33598 2011-05-23  Jim Meyering  <meyering@redhat.com>
33600         maint.mk: more tight_scope improvements
33601         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
33602         (_gl_TS_headers): Define only in if-0'd block.
33603         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
33604         sometimes we must *not* use it.  Adjust uses accordingly.
33605         (sc_tight_scope): Use much simpler grep-based test to determine
33606         whether we skip this rule.
33608         maint.mk: generalize/improve the tight-scope rule
33609         * top/maint.mk: Emit a warning when the test is skipped.
33610         (_gl_TS_dir): Add $(srcdir)/ prefix.
33611         (_gl_TS_function_match): Simplify, rather than trying
33612         to enumerate common types.  Otherwise, it would fail to match an
33613         "extern unsigned char const *" declaration in idutils.
33614         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
33615         a way to support use of that type of macro.
33616         (_gl_TS_var_match): Simplify regexp.
33617         (_gl_TS_obj_files): New configurable variable.
33618         (_gl_TS_headers): Likewise.
33620 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
33622         verify: fix bug when gnulib <assert.h> is also included
33623         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
33624         is defined, not if _GL_STATIC_ASSERT_H is not defined.
33625         Perhaps there's a better way, but this fixes the immediate problem.
33626         Problem reported by Bruno Haible in
33627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
33629 2011-05-22  Bruno Haible  <bruno@clisp.org>
33631         xgetcwd: Simplify autoconf macro.
33632         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
33634 2011-05-22  Bruno Haible  <bruno@clisp.org>
33636         New module 'mktime-internal'.
33637         * modules/mktime-internal: New file.
33638         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
33639         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
33640         mktime_internal as a C macro if libc has __mktime_internal.
33641         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
33642         conditions.
33643         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
33645 2011-05-22  Bruno Haible  <bruno@clisp.org>
33647         timegm: Correct mktime replacement statements.
33648         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
33649         defining mktime as a C macro. This completes a 2009-07-28 commit.
33651 2011-05-22  Bruno Haible  <bruno@clisp.org>
33653         timegm: Simplify autoconf macro.
33654         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
33656 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33658         clock-time: change to LGPLv2+.
33659         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
33660         BSD-like but we have no mark for that; this is good enough for now.
33662 2011-05-21  Bruno Haible  <bruno@clisp.org>
33664         strerror_r: Fix comments.
33665         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
33667 2011-05-21  Bruno Haible  <bruno@clisp.org>
33669         relocatable-prog-wrapper: Fix possible link error.
33670         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
33671         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
33672         (gl_FUNC_SETENV): ... to here.
33673         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
33674         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
33676 2011-05-21  Bruno Haible  <bruno@clisp.org>
33678         relocatable-prog-wrapper: Assume strerror() exists.
33679         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
33680         m4/strerror.m4.
33681         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
33682         * lib/relocwrapper.c: Remove mention of strerror module.
33683         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
33684         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
33685         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
33686         C macro.
33688 2011-05-21  Bruno Haible  <bruno@clisp.org>
33690         select: Simplify replacement idiom.
33691         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
33692         Win32 platforms.
33693         * lib/sys_select.in.h (select): Simplify accordingly.
33694         * modules/select (Depends-on): Likewise.
33696 2011-05-21  Bruno Haible  <bruno@clisp.org>
33698         mkdir-p: Simplify autoconf macro.
33699         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
33700         gl_FUNC_LCHOWN.
33702 2011-05-21  Eric Blake  <eblake@redhat.com>
33704         strerror_r: avoid clobbering strerror on cygwin
33705         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
33706         fall back instead to sys_errlist.
33707         * modules/strerror (configure.ac): Add witness.
33708         * tests/test-strerror_r.c (main): Enhance test.
33709         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33710         * tests/test-perror2.c (main): Free memory before exit.
33712 2011-05-21  Bruno Haible  <bruno@clisp.org>
33714         mkdtemp: Use gnulib naming conventions.
33715         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
33716         * modules/mkdtemp (configure.ac): Update.
33718 2011-05-20  Eric Blake  <eblake@redhat.com>
33720         strerror_r: avoid corrupting errno on Solaris
33721         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
33722         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33724         strerror_r: avoid compiler warning
33725         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
33727         strerror_r: simplify AIX code
33728         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
33730         test-perror: avoid spurious failure on FreeBSD
33731         * modules/perror-tests (Depends-on): Add strerror, now that
33732         strerror_r no longer pulls it in.
33734 2011-05-20  Bruno Haible  <bruno@clisp.org>
33736         strerror_r-posix: Remove unused dependencies.
33737         * modules/strerror_r-posix (Depends-on): Remove strerror.
33738         Reported by Eric Blake.
33740 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33742         intprops: remove assumption about A|B representation
33743         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
33744         is a valid integer if both A and B are.  Although this is true for
33745         all known practical hosts, the C standard doesn't guarantee it,
33746         and the code need not assume it.  Also, this change may work around
33747         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
33748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
33750 2011-05-20  Eric Blake  <eblake@redhat.com>
33752         perror: work around FreeBSD bug
33753         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
33754         is broken.  Move AC_LIBOBJ...
33755         * modules/perror (configure.ac): Here.
33756         * doc/posix-functions/perror.texi (perror): Document this.
33757         * tests/test-perror2.c (main): Enhance test.
33759         test-perror: check for strerror interactions
33760         * tests/macros.h (STREQ): Add macro.
33761         * modules/perror-tests (Files): Add second test.
33762         * tests/test-perror2.c (main): New file.
33763         * doc/posix-functions/perror.texi (perror): Document glibc bug.
33765         test-perror: rewrite to use init script
33766         * modules/perror-tests (Files): Add init.sh.
33767         * tests/test-perror.sh: Use temporary directory.
33769 2011-05-20  Jim Meyering  <meyering@redhat.com>
33771         maint: replace misused "a" with "an"
33772         * doc/intprops.texi: "a integer"
33773         * doc/regex.texi: "a explanation"
33774         * lib/alignof.h: "a object"
33775         * lib/argmatch.h: "a explanation"
33776         * lib/argp-help.c: "a option" and "a OPTION_DOC"
33777         * lib/stdint.in.h: "a integer"
33778         * lib/userspec.c: "a owner"
33779         * doc/gnulib.texi: Fix "a idea", and reword.
33781 2011-05-19  Jim Meyering  <meyering@redhat.com>
33783         maint: correct misuse of "a" and "an"
33784         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
33785         * lib/argp-help.c: "an docum...": s/an/a/
33786         * lib/argp-parse.c: "An vector": s/An/A/
33787         * lib/execute.c: "an native": s/an/a/
33788         * lib/spawn-pipe.c: Likewise.
33789         * lib/gc.h: "an Gc_rc": s/an/a/
33790         * lib/unigbrk.in.h: "an grapheme": s/an/a/
33791         * lib/fts.c: "an stat.st_dev": s/an/a/
33793 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33795         intprops-tests: work around HP-UX 11.23 cc bug with constants
33796         * tests/test-intprops.c (VERIFY): New macro.
33797         (main): Use it, instead of verify, to work around the compiler bug; see
33798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33800         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
33801         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
33802         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
33803         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
33804         (_GL_REMAINDER_OVERFLOW): Use it.
33806         intprops-tests: revert unsigned part of previous change
33807         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
33808         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
33809         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
33810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
33812 2011-05-19  Bruno Haible  <bruno@clisp.org>
33814         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
33815         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
33816         strerror_r() returned without filling the buffer.
33817         Reported by Eric Blake.
33819 2011-05-19  Eric Blake  <eblake@redhat.com>
33821         strerror_r: guarantee unchanged errno
33822         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
33823         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
33824         failure.
33825         * tests/test-strerror_r.c (main): Enhance test.
33827 2011-05-19  Bruno Haible  <bruno@clisp.org>
33829         strerror_r: Reorder #if blocks.
33830         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
33831         for consistency with the previous commit.
33833 2011-05-19  Bruno Haible  <bruno@clisp.org>
33835         perror: Avoid clobbering the strerror buffer when possible.
33836         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
33837         * lib/strerror.c: Include it.
33838         * modules/strerror (Files): Add lib/strerror-impl.h.
33839         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
33840         (my_strerror): New function, defined through lib/strerror-impl.h.
33841         (perror): Use it instead of strerror.
33842         * modules/perror (Files): Add lib/strerror-impl.h.
33843         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
33845 2011-05-19  Eric Blake  <eblake@redhat.com>
33847         strerror_r: fix on newer cygwin
33848         * lib/strerror_r.c (strerror_r): Cygwin now has
33849         __xpg_strerror_r, use it.
33851 2011-05-19  Bruno Haible  <bruno@clisp.org>
33853         strerror_r: Avoid clobbering the strerror buffer when possible.
33854         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
33855         (sys_nerr, sys_errlist): New declarations.
33856         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
33857         HP-UX, native Win32, IRIX, and 32-bit Solaris.
33858         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
33860 2011-05-19  Bruno Haible  <bruno@clisp.org>
33862         strerror_r: Fix test failure on mingw.
33863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
33864         EXTEND_STRERROR_R.
33865         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
33866         macros from errno.in.h instead.
33868 2011-05-19  Eric Blake  <eblake@redhat.com>
33870         strerror: relax test for Solaris
33871         * tests/test-strerror.c (main): Permit Solaris behavior.
33872         * tests/test-strerror_r.c (main): Likewise.
33874         strerror: enforce POSIX ruling on strerror(0)
33875         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
33876         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
33877         * lib/strerror_r.c (rpl_strerror_r): Work around it.
33878         * doc/posix-functions/strerror.texi (strerror): Document it.
33879         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
33880         * tests/test-strerror.c (main): Strengthen test.
33881         * tests/test-strerror_r.c (main): Likewise.
33883 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33885         intprop-tests: port to older and more-pedantic compilers
33886         * modules/intprops-tests (Files): Add tests/macros.h.
33887         * tests/test-intprops.c: Include macros.h.
33888         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
33889         it's no longer documented to expand to an integer constant expression.
33890         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
33891         argument is floating point, as it's no longer documented to expand
33892         to an integer constant expression in that case.
33893         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
33894         compiler bugs reported by Bruno Haible.  See
33895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33896         (U0, U1): New constants, to work around the same bugs.  Also,
33897         in tests, use e.g., "(unsigned int) 39" rather than "39u".
33899         intprops: work around C compiler bugs
33900         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
33901         bug in Sun C 5.11 2010/08/13 and other compilers; see
33902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33904         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
33905         * doc/intprops.texi (Integer Type Determination): Fix
33906         documentation for TYPE_IS_INTEGER: it returns an constant
33907         expression, not an integer constant expression.  Fix doc for
33908         TYPE_SIGNED: it returns an integer constant expression only if its
33909         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
33910         hardly worth documented that way....)
33912 2011-05-18  Bruno Haible  <bruno@clisp.org>
33914         strerror_r: Avoid clobbering the strerror buffer when possible.
33915         * lib/strerror_r.c (strerror_r): Merge the three implementations.
33916         Handle gnulib defined errno values here. When strerror() returns NULL
33917         or an empty string, return EINVAL.
33918         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
33919         gnulib defined errno values here.
33920         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
33922 2011-05-18  Eric Blake  <eblake@redhat.com>
33924         fnmatch: avoid compiler warning
33925         * lib/fnmatch_loop.c (FCT): Use correct type.
33926         Reported by Matthias Bolte.
33928 2011-05-13  Jim Meyering  <meyering@redhat.com>
33930         maint.mk: three new prohibit_<HDR>_without_use rules
33931         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
33932         (sc_prohibit_stdio-safer_without_use): Likewise.
33933         (sc_prohibit_xfreopen_without_use): Likewise.
33935 2011-05-17  Jim Meyering  <meyering@redhat.com>
33937         announce-gen: fail if the NEWS delta is empty
33938         If there's nothing noteworthy in NEWS, then either you forgot
33939         or you shouldn't be releasing.
33940         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
33942 2011-05-17  Pádraig Brady  <P@draigBrady.com>
33944         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
33945         reserved symbols starting with double underscore from the check.
33947 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33949         intprops: add doc
33950         * doc/intprops.texi: New file, documenting intprops.
33951         * doc/gnulib.texi (Particular Modules): Include it.
33953         verify: add doc to gnulib manual and fix example
33954         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
33955         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
33956         (Compile-time Assertions): Fix example so it can't overflow.
33958 2011-05-17  Jim Meyering  <meyering@redhat.com>
33960         warnings.m4: don't usurp save_CPPFLAGS variable name
33961         * m4/warnings.m4: Prefix local temporary variable name with gl_.
33963         doc: fix typo
33964         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
33966 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33967             Bruno Haible  <bruno@clisp.org>
33969         doc: Tweak recent change.
33970         * README (Portability guidelines): Tweak new text.
33971         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
33972         Interix 6.1.
33974 2011-05-16  Eric Blake  <eblake@redhat.com>
33976         inttypes: avoid autoconf warning
33977         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
33978         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33980 2011-05-16  Sam Steingold  <sds@gnu.org>
33981         and Eric Blake  <eblake@redhat.com>
33983         vc-list-files: accept multiple directory operands
33984         * build-aux/vc-list-files: Iterate over all remaining operands.
33986 2011-05-16  Bruno Haible  <bruno@clisp.org>
33988         Fix confusion regarding deprecated modules.
33989         * modules/calloc (Status, Notice): Mark module as deprecated, not
33990         obsolete.
33991         * modules/fnmatch-posix (Status, Notice): Likewise.
33992         * modules/getdate (Status, Notice): Likewise.
33993         * modules/getopt (Status, Notice): Likewise.
33994         * modules/malloc (Status, Notice): Likewise.
33995         * modules/pipe (Status, Notice): Likewise.
33996         * modules/realloc (Status, Notice): Likewise.
33997         * modules/rename-dest-slash (Status, Notice): Likewise.
33998         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
33999         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
34000         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
34001         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
34002         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
34004 2011-05-16  Bruno Haible  <bruno@clisp.org>
34006         doc: List the target platforms.
34007         * doc/gnulib-intro.texi (Target Platforms): New section.
34008         * doc/gnulib.texi (Introduction): Update menu.
34009         * README (Portability guidelines): Refer to the new section. Update
34010         statement about oldest supported environment. Remove rationale why
34011         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
34012         unportable C89 function.
34013         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
34014         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
34016 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34018         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
34020 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34022         intprops-tests: new module
34023         * modules/intprops-tests, tests/test-intprops.c: New files.
34025         intprops: add safe, portable integer overflow checking
34026         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
34027         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
34028         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
34029         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
34030         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
34031         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
34032         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
34033         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
34034         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
34035         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
34036         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
34038 2011-05-12  James Youngman  <jay@gnu.org>
34040         Add a test for glibc's Bugzilla bug #12378.
34041         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
34042         doesn't allow the literal matching of a lone "[" (which is
34043         required by POSIX).
34044         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
34046 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
34048         Sync glibc change fixing Bugzilla bug #12378.
34049         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
34050         beginning and fall back to matching as normal character if the
34051         string ends before the matching ']' is found.  This is what POSIX
34052         requires.
34054 2011-05-13  Eric Blake  <eblake@redhat.com>
34056         getcwd-lgpl: relax test for FreeBSD
34057         * doc/posix-functions/getcwd.texi (getcwd): Document portability
34058         issue.
34059         * tests/test-getcwd-lgpl.c (main): Relax test.
34060         Reported by Matthias Bolte.
34062 2011-05-11  Eric Blake  <eblake@redhat.com>
34064         test-fflush: silence compiler warning
34065         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
34067 2011-05-11  Bruno Haible  <bruno@clisp.org>
34069         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
34070         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
34071         * modules/canonicalize (Depends-on): Add 'nocrash'.
34072         * modules/canonicalize-lgpl (Depends-on): Likewise.
34073         * doc/posix-functions/realpath.texi: Update platforms list.
34074         Reported by Ryan Schmidt <ryandesign@macports.org>.
34076 2011-05-11  Bruno Haible  <bruno@clisp.org>
34078         group-member: Declare function in <unistd.h>.
34079         * lib/unistd.in.h (group_member): New declaration.
34080         * lib/group-member.h: Remove file.
34081         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
34082         * tests/test-unistd-c++.cc: Check signature of group_member.
34083         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
34084         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
34085         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
34086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
34087         HAVE_GROUP_MEMBER.
34088         * modules/group-member (Files): Remove lib/group-member.h.
34089         (Depends-on): Add unistd. Specify conditions.
34090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34091         (Include): Change to <unistd.h>.
34092         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
34093         HAVE_GROUP_MEMBER.
34094         * NEWS: Mention the change.
34095         * lib/euidaccess.c: Don't include group-member.h.
34097 2011-05-11  Bruno Haible  <bruno@clisp.org>
34099         group-member: Document module.
34100         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
34101         module.
34103 2011-05-11  Bruno Haible  <bruno@clisp.org>
34105         fclose: Fix mistake earlier today.
34106         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
34108 2011-05-11  Eric Blake  <eblake@redhat.com>
34110         fclose: preserve fflush errors
34111         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
34112         Reported by Jim Meyering.
34114         bootstrap: support a prereq of 'rpcgen -' on RHEL5
34115         * build-aux/bootstrap (check_versions): When no specific version
34116         is required, merely check that the app produces an exit status
34117         that indicates its existence.
34119         maint.mk: drop redundant check
34120         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
34121         the same but better.
34123 2011-05-11  Bruno Haible  <bruno@clisp.org>
34125         fclose: Fix possible link error.
34126         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
34127         unregister_shadow_fd. Improve comments.
34128         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
34129         Eric Blake.
34131 2011-05-11  Jim Meyering  <meyering@redhat.com>
34133         maint.mk: improve "can not" detection and generalize rule name
34134         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
34135         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
34136         Use the same technique as in sc_prohibit_doubled_word, so that
34137         we recognize "can not" also when the words are separated by a newline.
34138         Suggested by Eric Blake.
34139         (perl_filename_lineno_text_): Define.  Factored out of...
34140         (prohibit_doubled_word_): ...here.  Use the new definition.
34141         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
34142         (prohibit_undesirable_word_seq_RE_): New overridable variable.
34143         (ignore_undesirable_word_sequence_RE_): New overridable variable.
34145 2011-05-10  Eric Blake  <eblake@redhat.com>
34147         fclose: avoid double close race when possible
34148         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
34149         all but WINDOWS_SOCKETS.
34151 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
34153         openat: correct new comment
34154         * lib/openat-proc.c (openat_proc_name): Correct the comment.
34156 2011-05-10  Jim Meyering  <meyering@redhat.com>
34158         openat: add comments
34159         * lib/openat-proc.c (openat_proc_name): Add comments,
34160         mostly from Eric Blake.
34162 2011-05-09  Eric Blake  <eblake@redhat.com>
34164         openat: reduce syscalls in first probe of /proc
34165         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
34166         be a directory.  Simplify the probe for .. bugs.
34167         * modules/openat (Depends-on): Drop same-inode.
34168         Reported by Bastien ROUCARIES.
34170 2011-05-09  Jim Meyering  <meyering@redhat.com>
34172         maint.mk: change semantics/name of tight_scope variables
34173         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
34174         Rename variables to align with semantics that make them more useful.
34176         maint.mk: tweak new rule's name not to impinge
34177         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
34178         (sc_tight_scope): Use new rule name rather than $@-0.
34180         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
34181         * top/maint.mk (sc_tight_scope): New rule.
34182         (sc_tight_scope-0): New rule, ifdef'd out.
34183         (_gl_TS_dir): Default.
34184         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
34185         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
34187 2011-05-09  Simon Josefsson  <simon@josefsson.org>
34189         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
34190         Haible <bruno@clisp.org>.
34192 2011-05-08  Bruno Haible  <bruno@clisp.org>
34194         Comments.
34195         * m4/isnanf.m4: Add comment.
34196         * m4/isnanl.m4: Likewise.
34198 2011-05-08  Bruno Haible  <bruno@clisp.org>
34200         glob: Remove obsolete macro.
34201         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
34203 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
34205         intprops: Sun C 5.11 supports __typeof__
34206         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
34207         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
34208         which is new.
34209         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
34211         intprops: switch to usual gnulib indenting and naming
34212         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
34213         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
34215         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
34217 2011-05-08  Jim Meyering  <meyering@redhat.com>
34219         maint.mk: suppress "Entering/Leaving directory" diag in announcement
34220         * top/maint.mk (release-prep): Use make's --no-print-directory
34221         option when generating the announcement.  This eliminates the
34222         pesky "make[2]: Entering/Leaving directory" diagnostics in the
34223         generated announcement template.
34225 2011-05-08  Bruno Haible  <bruno@clisp.org>
34227         tzset: Fix gettimeofday wrapper on Solaris 2.6.
34228         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
34229         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
34231 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34233         ignore-value, verify: Omit include files from lib_SOURCES.
34234         * modules/ignore-value, modules/verify (Makefile.am):
34235         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
34236         that leads Automake to duplicate use of am__objects_... variables
34237         in Makefile.in.  See
34238         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
34240 2011-05-07  Bruno Haible  <bruno@clisp.org>
34242         fclose: Simplify autoconf macro.
34243         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
34244         defined.
34246 2011-05-07  Bruno Haible  <bruno@clisp.org>
34248         canonicalize-lgpl: Fix autoconf macro ordering bug.
34249         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
34250         gl_STDLIB_H_DEFAULTS.
34252 2011-05-06  Eric Blake  <eblake@redhat.com>
34254         maintainer-makefile: make sc_po_check easier to tune
34255         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
34256         to probe for strings, such as an alternate location for gnulib.
34258         fclose: guarantee behavior on seekable stdin
34259         * modules/fclose (Depends-on): Add fflush.
34260         * doc/posix-functions/fclose.texi (fclose): Document this.
34261         * tests/test-fclose.c (main): Make test for this unconditional.
34263 2011-05-06  Bruno Haible  <bruno@clisp.org>
34265         fflush, fpurge: Relicense under LGPLv2+.
34266         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
34267         * modules/fpurge (License): Likewise.
34268         With permission from Eric Blake and Jim Meyering.
34269         Suggested by Eric Blake.
34271 2011-05-06  Karl Berry  <karl@gnu.org>
34273         * MODULES.html.sh (func_all_modules): remove exit.
34275 2011-05-06  Jim Meyering  <meyering@redhat.com>
34277         maint.mk: use info-gnu@ as the default only for a stable release
34278         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
34279         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
34280         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
34281         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
34283 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34285         assert-h: new module, which supports C1X-style static_assert
34286         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
34287         * lib/verify.h: Revamp so that this can be copied into assert.h,
34288         while retaining the ability to use it standalone as before.
34289         Rename private identifiers so as not to encroach on the
34290         standard C namespace, since this is now used by assert.h.
34291         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
34292         the old verify_true.
34293         (_GL_VERIFY_TRUE): New macro, with much of the contents of
34294         the old verify_true.  Use _GL_VERIFY_TYPE.
34295         (_GL_VERIFY): New macro, with much of the contents of the old verify.
34296         (static_assert): New macro, if _GL_STATIC_ASSERT_H
34297         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
34298         defined when this file is copied into the replacement assert.h.
34299         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
34300         and _Static_assert is not built in.
34301         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
34302         defined, and use the new macros mentioned above.
34303         * doc/posix-headers/assert.texi: Document this.
34305 2011-05-05  Bruno Haible  <bruno@clisp.org>
34307         fclose, fflush: Respect rules for use of AC_LIBOBJ.
34308         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
34309         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
34310         gl_REPLACE_FCLOSE here.
34311         * modules/fflush (Depends-on): Remove fclose.
34312         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
34313         combination with module 'fclose'.
34315 2011-05-05  Bruno Haible  <bruno@clisp.org>
34317         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
34318         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
34319         gl_FUNC_FFLUSH.
34320         (gl_FUNC_FFLUSH): Use it.
34321         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
34322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
34323         gl_REPLACE_FSEEKO here.
34325 2011-05-05  Bruno Haible  <bruno@clisp.org>
34327         tzset: Relicense under LGPL.
34328         * modules/tzset (License): Change to LGPL.
34329         No agreement needed; it's a no-op.
34331         strtoimax, strtoumax: Relicense under LGPL.
34332         * modules/strtoimax (License): Change to LGPL.
34333         * modules/strtoumax (License): Likewise.
34334         With permission from Jim Meyering, Paul Eggert:
34335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
34336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
34338         getgroups: Relicense under LGPL.
34339         * modules/getgroups (License): Change to LGPL.
34340         With permission from Jim Meyering, Paul Eggert, Eric Blake:
34341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
34342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
34343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34345         nanosleep: Relicense under LGPL.
34346         * modules/nanosleep (License): Change to LGPL.
34347         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
34348         Haible:
34349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
34350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
34351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
34354         futimens: Relicense under LGPL.
34355         * modules/futimens (License): Change to LGPL.
34356         With permission from Eric Blake:
34357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34359         fflush: Relicense under LGPL.
34360         * modules/fflush (License): Change to LGPL.
34361         With permission from Eric Blake, Bruno Haible, Jim Meyering:
34362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
34364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
34366         tmpfile: Relicense under LGPL.
34367         * modules/tmpfile (License): Change to LGPL.
34368         With permission from Ben Pfaff:
34369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
34371         isfinite: Relicense under LGPL.
34372         * modules/isfinite (License): Change to LGPL.
34373         With permission from Ben Pfaff, Bruno Haible:
34374         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
34375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
34377         acosl..tanl: Relicense under LGPL.
34378         * modules/acosl (License): Change to LGPL.
34379         * modules/asinl (License): Likewise.
34380         * modules/atanl (License): Likewise.
34381         * modules/cosl (License): Likewise.
34382         * modules/expl (License): Likewise.
34383         * modules/logl (License): Likewise.
34384         * modules/sinl (License): Likewise.
34385         * modules/sqrtl (License): Likewise.
34386         * modules/tanl (License): Likewise.
34387         Source code originally from glibc and Paolo Bonzini. Agreements:
34388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
34389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
34391 2011-05-05  Bruno Haible  <bruno@clisp.org>
34393         signal: Define sighandler_t.
34394         * lib/signal.in.h (sighandler_t): New type.
34395         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
34396         whether sighandler_t is defined.
34397         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
34398         * modules/signal (Depends-on): Add extensions.
34399         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
34400         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
34401         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
34403 2011-05-05  Eric Blake  <eblake@redhat.com>
34405         maint: remove useless REPLACE_*_H macros
34406         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
34407         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34408         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34409         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
34410         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34411         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34412         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
34413         * m4/btowc.m4: Update callers.
34414         * m4/dirfd.m4: Likewise.
34415         * m4/duplocale.m4: Likewise.
34416         * m4/fchdir.m4: Likewise.
34417         * m4/fdopendir.m4: Likewise.
34418         * m4/inet_ntop.m4: Likewise.
34419         * m4/inet_pton.m4: Likewise.
34420         * m4/ioctl.m4: Likewise.
34421         * m4/mbrlen.m4: Likewise.
34422         * m4/mbrtowc.m4: Likewise.
34423         * m4/mbsinit.m4: Likewise.
34424         * m4/mbsnrtowcs.m4: Likewise.
34425         * m4/mbsrtowcs.m4: Likewise.
34426         * m4/poll.m4: Likewise.
34427         * m4/setlocale.m4: Likewise.
34428         * m4/wcrtomb.m4: Likewise.
34429         * m4/wcsnrtombs.m4: Likewise.
34430         * m4/wcsrtombs.m4: Likewise.
34431         * m4/wctob.m4: Likewise.
34432         * m4/wcwidth.m4: Likewise.
34433         * modules/posix_spawn: Likewise.
34434         * modules/posix_spawn_file_actions_addclose: Likewise.
34435         * modules/posix_spawn_file_actions_adddup2: Likewise.
34436         * modules/posix_spawn_file_actions_addopen: Likewise.
34437         * modules/posix_spawn_file_actions_destroy: Likewise.
34438         * modules/posix_spawn_file_actions_init: Likewise.
34439         * modules/posix_spawnattr_destroy: Likewise.
34440         * modules/posix_spawnattr_getflags: Likewise.
34441         * modules/posix_spawnattr_getpgroup: Likewise.
34442         * modules/posix_spawnattr_getschedparam: Likewise.
34443         * modules/posix_spawnattr_getschedpolicy: Likewise.
34444         * modules/posix_spawnattr_getsigdefault: Likewise.
34445         * modules/posix_spawnattr_getsigmask: Likewise.
34446         * modules/posix_spawnattr_init: Likewise.
34447         * modules/posix_spawnattr_setflags: Likewise.
34448         * modules/posix_spawnattr_setpgroup: Likewise.
34449         * modules/posix_spawnattr_setschedparam: Likewise.
34450         * modules/posix_spawnattr_setschedpolicy: Likewise.
34451         * modules/posix_spawnattr_setsigdefault: Likewise.
34452         * modules/posix_spawnattr_setsigmask: Likewise.
34453         * modules/posix_spawnp: Likewise.
34455 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
34457         Add option to do-release-commit-and-tag to specify branch.
34458         * build-aux/do-release-commit-and-tag: Add --branch.
34460 2011-05-03  Bruno Haible  <bruno@clisp.org>
34462         Avoid unnecessary compilation units, through conditional dependencies.
34463         * modules/accept (Depends-on): Add conditions to the dependencies.
34464         * modules/acosl (Depends-on): Likewise.
34465         * modules/argz (Depends-on): Likewise.
34466         * modules/asinl (Depends-on): Likewise.
34467         * modules/atanl (Depends-on): Likewise.
34468         * modules/atoll (Depends-on): Likewise.
34469         * modules/bind (Depends-on): Likewise.
34470         * modules/btowc (Depends-on): Likewise.
34471         * modules/canonicalize-lgpl (Depends-on): Likewise.
34472         * modules/ceil (Depends-on): Likewise.
34473         * modules/ceilf (Depends-on): Likewise.
34474         * modules/ceill (Depends-on): Likewise.
34475         * modules/chdir-long (Depends-on): Likewise.
34476         * modules/chown (Depends-on): Likewise.
34477         * modules/close (Depends-on): Likewise.
34478         * modules/connect (Depends-on): Likewise.
34479         * modules/cosl (Depends-on): Likewise.
34480         * modules/dirfd (Depends-on): Likewise.
34481         * modules/dprintf (Depends-on): Likewise.
34482         * modules/dprintf-posix (Depends-on): Likewise.
34483         * modules/error (Depends-on): Likewise.
34484         * modules/euidaccess (Depends-on): Likewise.
34485         * modules/expl (Depends-on): Likewise.
34486         * modules/faccessat (Depends-on): Likewise.
34487         * modules/fchdir (Depends-on): Likewise.
34488         * modules/fclose (Depends-on): Likewise.
34489         * modules/fcntl (Depends-on): Likewise.
34490         * modules/fdopendir (Depends-on): Likewise.
34491         * modules/fflush (Depends-on): Likewise.
34492         * modules/floor (Depends-on): Likewise.
34493         * modules/floorf (Depends-on): Likewise.
34494         * modules/floorl (Depends-on): Likewise.
34495         * modules/fnmatch (Depends-on): Likewise.
34496         * modules/fopen (Depends-on): Likewise.
34497         * modules/fprintf-posix (Depends-on): Likewise.
34498         * modules/frexp (Depends-on): Likewise.
34499         * modules/frexp-nolibm (Depends-on): Likewise.
34500         * modules/frexpl (Depends-on): Likewise.
34501         * modules/frexpl-nolibm (Depends-on): Likewise.
34502         * modules/fseek (Depends-on): Likewise.
34503         * modules/fsusage (Depends-on): Likewise.
34504         * modules/ftell (Depends-on): Likewise.
34505         * modules/ftello (Depends-on): Likewise.
34506         * modules/futimens (Depends-on): Likewise.
34507         * modules/getcwd (Depends-on): Likewise.
34508         * modules/getcwd-lgpl (Depends-on): Likewise.
34509         * modules/getdelim (Depends-on): Likewise.
34510         * modules/getdomainname (Depends-on): Likewise.
34511         * modules/getgroups (Depends-on): Likewise.
34512         * modules/gethostname (Depends-on): Likewise.
34513         * modules/getline (Depends-on): Likewise.
34514         * modules/getlogin_r (Depends-on): Likewise.
34515         * modules/getopt-posix (Depends-on): Likewise.
34516         * modules/getpeername (Depends-on): Likewise.
34517         * modules/getsockname (Depends-on): Likewise.
34518         * modules/getsockopt (Depends-on): Likewise.
34519         * modules/getsubopt (Depends-on): Likewise.
34520         * modules/getusershell (Depends-on): Likewise.
34521         * modules/glob (Depends-on): Likewise.
34522         * modules/grantpt (Depends-on): Likewise.
34523         * modules/iconv_open (Depends-on): Likewise.
34524         * modules/iconv_open-utf (Depends-on): Likewise.
34525         * modules/inet_ntop (Depends-on): Likewise.
34526         * modules/inet_pton (Depends-on): Likewise.
34527         * modules/ioctl (Depends-on): Likewise.
34528         * modules/isapipe (Depends-on): Likewise.
34529         * modules/isfinite (Depends-on): Likewise.
34530         * modules/isinf (Depends-on): Likewise.
34531         * modules/lchown (Depends-on): Likewise.
34532         * modules/ldexpl (Depends-on): Likewise.
34533         * modules/link (Depends-on): Likewise.
34534         * modules/linkat (Depends-on): Likewise.
34535         * modules/listen (Depends-on): Likewise.
34536         * modules/logl (Depends-on): Likewise.
34537         * modules/lstat (Depends-on): Likewise.
34538         * modules/mbrlen (Depends-on): Likewise.
34539         * modules/mbrtowc (Depends-on): Likewise.
34540         * modules/mbsinit (Depends-on): Likewise.
34541         * modules/mbsnrtowcs (Depends-on): Likewise.
34542         * modules/mbsrtowcs (Depends-on): Likewise.
34543         * modules/mbtowc (Depends-on): Likewise.
34544         * modules/memcmp (Depends-on): Likewise.
34545         * modules/mkdir (Depends-on): Likewise.
34546         * modules/mkdtemp (Depends-on): Likewise.
34547         * modules/mkfifo (Depends-on): Likewise.
34548         * modules/mkfifoat (Depends-on): Likewise.
34549         * modules/mknod (Depends-on): Likewise.
34550         * modules/mkostemp (Depends-on): Likewise.
34551         * modules/mkostemps (Depends-on): Likewise.
34552         * modules/mkstemp (Depends-on): Likewise.
34553         * modules/mkstemps (Depends-on): Likewise.
34554         * modules/mktime (Depends-on): Likewise.
34555         * modules/nanosleep (Depends-on): Likewise.
34556         * modules/open (Depends-on): Likewise.
34557         * modules/openat (Depends-on): Likewise.
34558         * modules/perror (Depends-on): Likewise.
34559         * modules/poll (Depends-on): Likewise.
34560         * modules/popen (Depends-on): Likewise.
34561         * modules/posix_spawn (Depends-on): Likewise.
34562         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
34563         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34564         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34565         * modules/posix_spawnp (Depends-on): Likewise.
34566         * modules/pread (Depends-on): Likewise.
34567         * modules/printf-posix (Depends-on): Likewise.
34568         * modules/ptsname (Depends-on): Likewise.
34569         * modules/putenv (Depends-on): Likewise.
34570         * modules/pwrite (Depends-on): Likewise.
34571         * modules/readline (Depends-on): Likewise.
34572         * modules/readlink (Depends-on): Likewise.
34573         * modules/readlinkat (Depends-on): Likewise.
34574         * modules/recv (Depends-on): Likewise.
34575         * modules/recvfrom (Depends-on): Likewise.
34576         * modules/regex (Depends-on): Likewise.
34577         * modules/remove (Depends-on): Likewise.
34578         * modules/rename (Depends-on): Likewise.
34579         * modules/renameat (Depends-on): Likewise.
34580         * modules/rmdir (Depends-on): Likewise.
34581         * modules/round (Depends-on): Likewise.
34582         * modules/roundf (Depends-on): Likewise.
34583         * modules/roundl (Depends-on): Likewise.
34584         * modules/rpmatch (Depends-on): Likewise.
34585         * modules/select (Depends-on): Likewise.
34586         * modules/send (Depends-on): Likewise.
34587         * modules/sendto (Depends-on): Likewise.
34588         * modules/setenv (Depends-on): Likewise.
34589         * modules/setlocale (Depends-on): Likewise.
34590         * modules/setsockopt (Depends-on): Likewise.
34591         * modules/shutdown (Depends-on): Likewise.
34592         * modules/sigaction (Depends-on): Likewise.
34593         * modules/signbit (Depends-on): Likewise.
34594         * modules/sigprocmask (Depends-on): Likewise.
34595         * modules/sinl (Depends-on): Likewise.
34596         * modules/sleep (Depends-on): Likewise.
34597         * modules/snprintf (Depends-on): Likewise.
34598         * modules/snprintf-posix (Depends-on): Likewise.
34599         * modules/socket (Depends-on): Likewise.
34600         * modules/sprintf-posix (Depends-on): Likewise.
34601         * modules/sqrtl (Depends-on): Likewise.
34602         * modules/stat (Depends-on): Likewise.
34603         * modules/strchrnul (Depends-on): Likewise.
34604         * modules/strdup-posix (Depends-on): Likewise.
34605         * modules/strerror (Depends-on): Likewise.
34606         * modules/strerror_r-posix (Depends-on): Likewise.
34607         * modules/strndup (Depends-on): Likewise.
34608         * modules/strnlen (Depends-on): Likewise.
34609         * modules/strptime (Depends-on): Likewise.
34610         * modules/strsep (Depends-on): Likewise.
34611         * modules/strsignal (Depends-on): Likewise.
34612         * modules/strstr-simple (Depends-on): Likewise.
34613         * modules/strtod (Depends-on): Likewise.
34614         * modules/strtoimax (Depends-on): Likewise.
34615         * modules/strtok_r (Depends-on): Likewise.
34616         * modules/strtoumax (Depends-on): Likewise.
34617         * modules/symlink (Depends-on): Likewise.
34618         * modules/symlinkat (Depends-on): Likewise.
34619         * modules/tanl (Depends-on): Likewise.
34620         * modules/tcgetsid (Depends-on): Likewise.
34621         * modules/tmpfile (Depends-on): Likewise.
34622         * modules/trunc (Depends-on): Likewise.
34623         * modules/truncf (Depends-on): Likewise.
34624         * modules/truncl (Depends-on): Likewise.
34625         * modules/uname (Depends-on): Likewise.
34626         * modules/unlink (Depends-on): Likewise.
34627         * modules/unlockpt (Depends-on): Likewise.
34628         * modules/unsetenv (Depends-on): Likewise.
34629         * modules/usleep (Depends-on): Likewise.
34630         * modules/utimensat (Depends-on): Likewise.
34631         * modules/vasprintf (Depends-on): Likewise.
34632         * modules/vdprintf (Depends-on): Likewise.
34633         * modules/vdprintf-posix (Depends-on): Likewise.
34634         * modules/vfprintf-posix (Depends-on): Likewise.
34635         * modules/vprintf-posix (Depends-on): Likewise.
34636         * modules/vsnprintf (Depends-on): Likewise.
34637         * modules/vsnprintf-posix (Depends-on): Likewise.
34638         * modules/vsprintf-posix (Depends-on): Likewise.
34639         * modules/wcrtomb (Depends-on): Likewise.
34640         * modules/wcscasecmp (Depends-on): Likewise.
34641         * modules/wcscspn (Depends-on): Likewise.
34642         * modules/wcsdup (Depends-on): Likewise.
34643         * modules/wcsncasecmp (Depends-on): Likewise.
34644         * modules/wcsnrtombs (Depends-on): Likewise.
34645         * modules/wcspbrk (Depends-on): Likewise.
34646         * modules/wcsrtombs (Depends-on): Likewise.
34647         * modules/wcsspn (Depends-on): Likewise.
34648         * modules/wcsstr (Depends-on): Likewise.
34649         * modules/wcstok (Depends-on): Likewise.
34650         * modules/wcswidth (Depends-on): Likewise.
34651         * modules/wctob (Depends-on): Likewise.
34652         * modules/wctomb (Depends-on): Likewise.
34653         * modules/wctype (Depends-on): Likewise.
34654         * modules/wcwidth (Depends-on): Likewise.
34655         * modules/write (Depends-on): Likewise.
34657 2011-05-03  Bruno Haible  <bruno@clisp.org>
34659         Support for conditional dependencies.
34660         * doc/gnulib.texi (Module description): Document the syntax of
34661         conditional dependencies.
34662         * gnulib-tool: New option --conditional-dependencies.
34663         (func_usage): Document it.
34664         (cond_dependencies): New variable.
34665         (func_get_automake_snippet_conditional,
34666         func_get_automake_snippet_unconditional): New functions, extracted from
34667         func_get_automake_snippet.
34668         (func_get_automake_snippet): Use them.
34669         (sed_first_32_chars): New variable.
34670         (func_module_shellfunc_name): New function.
34671         (func_module_shellvar_name): New function.
34672         (func_module_conditional_name): New function.
34673         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
34674         func_cond_module_condition): New functions.
34675         (func_modules_transitive_closure): Add support for conditional
34676         dependencies.
34677         (func_emit_lib_Makefile_am): For a conditional module, enclose the
34678         conditional automake snippet in an automake conditional.
34679         (func_emit_autoconf_snippets): Emit shell functions that contain the
34680         code for conditional modules.
34681         (func_import, func_create_testdir): Update specification.
34683 2011-05-03  Eric Blake  <eblake@redhat.com>
34685         test-getaddrinfo: report error information
34686         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
34688 2011-05-03  Jim Meyering  <meyering@redhat.com>
34690         bootstrap: avoid build failure when $GZIP is set
34691         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
34692         program name.  If defined at all, it is supposed to list gzip options.
34693         Reported by Alan Curry in http://debbugs.gnu.org/8609
34695 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
34697         readme-release: new module with release instructions
34698         * modules/readme-release: New module.
34699         * top/README-release: New file, from coreutils, grep, diffutils.
34700         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34702 2011-05-02  Eric Blake  <eblake@redhat.com>
34704         fflush: also replace fclose when fixing fflush
34705         * modules/fflush (Depends-on): Add fclose.
34706         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
34707         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
34708         memstreams with no backing fd.
34709         * doc/posix-functions/fclose.texi (fclose): Document the use of
34710         fflush module to fix the bug.
34711         * tests/test-fclose.c (main): Relax test when fclose is used in
34712         isolation.
34714         fclose: add some tests
34715         * modules/fclose-tests: New test module.
34716         * tests/test-fclose.c: New file.
34717         * doc/posix-functions/fclose.texi (fclose): Document the bug.
34719         fclose: reduced dependencies
34720         * modules/fclose (Depends-on): Switch from fflush/fseeko to
34721         simpler lseek.
34722         * lib/fclose.c (rpl_fclose): Likewise.
34723         Reported by Simon Josefsson.
34725         exit: drop remaining clients
34726         * modules/argmatch (Depends-on): Replace exit with stdlib.
34727         * modules/copy-file (Depends-on): Likewise.
34728         * modules/execute (Depends-on): Likewise.
34729         * modules/exitfail (Depends-on): Likewise.
34730         * modules/obstack (Depends-on): Likewise.
34731         * modules/pagealign_alloc (Depends-on): Likewise.
34732         * modules/pipe-filter-gi (Depends-on): Likewise.
34733         * modules/pipe-filter-ii (Depends-on): Likewise.
34734         * modules/savewd (Depends-on): Likewise.
34735         * modules/spawn-pipe (Depends-on): Likewise.
34736         * modules/wait-process (Depends-on): Likewise.
34737         * modules/xsetenv (Depends-on): Likewise.
34738         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
34739         * modules/git-merge-changelog (Depends-on): Likewise.
34740         * modules/long-options (Depends-on): Likewise.
34741         * modules/pt_chown (Depends-on): Likewise.
34742         * modules/sysexits (Depends-on): Likewise.
34744         freading: relax license from LGPLv3+ to LGPLv2+
34745         * modules/freading (License): Relax LGPL version.
34747 2011-05-02  Bruno Haible  <bruno@clisp.org>
34749         fchdir: Remove unused dependencies.
34750         * modules/fchdir (Depends-on): Remove include_next.
34752 2011-05-02  Bruno Haible  <bruno@clisp.org>
34754         gnulib-tool: Refactor.
34755         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
34756         from func_emit_autoconf_snippets.
34757         (func_emit_autoconf_snippets): Use it.
34759 2011-05-02  Simon Josefsson  <simon@josefsson.org>
34761         * NEWS: Document removal of 'exit'.
34762         * modules/exit: Remove file.
34764 2011-05-01  Bruno Haible  <bruno@clisp.org>
34766         Update DEPENDENCIES.
34767         * DEPENDENCIES (gettext): Recommend the newest release.
34768         Reported by Simon Josefsson.
34770 2011-05-01  Bruno Haible  <bruno@clisp.org>
34772         gnulib-tool: Reduce code duplication.
34773         * gnulib-tool (func_emit_autoconf_snippets): New function.
34774         (func_import, func_create_testdir): Use it.
34776 2011-04-30  Eric Blake  <eblake@redhat.com>
34778         fclose: don't fail on non-seekable input stream
34779         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
34780         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
34781         since fflush is allowed to fail in that case.
34783 2011-04-30  Bruno Haible  <bruno@clisp.org>
34785         dup3: cleanup
34786         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
34788 2011-04-30  Bruno Haible  <bruno@clisp.org>
34790         netdb: Make it work in C++ mode.
34791         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
34792         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
34793         module.
34794         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
34795         gl_MODULE_INDICATOR_FOR_TESTS.
34796         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
34797         * modules/netdb-c++-tests: New file.
34798         * tests/test-netdb-c++.cc: New file.
34800 2011-04-30  Bruno Haible  <bruno@clisp.org>
34802         New modules 'vfscanf', 'vscanf'.
34803         * modules/vfscanf: New file.
34804         * modules/vscanf: New file.
34805         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
34806         here.
34807         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
34808         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
34810 2011-04-30  Bruno Haible  <bruno@clisp.org>
34812         passfd: Add comments.
34813         * lib/passfd.c: Add comments about platforms.
34815 2011-04-30  Bruno Haible  <bruno@clisp.org>
34817         sys_uio: Make <sys/uio.h> self-contained.
34818         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
34819         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
34821 2011-04-30  Bruno Haible  <bruno@clisp.org>
34823         sys_socket: Ensure 'struct iovec' definition.
34824         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
34825         <sys/socket.h>.
34826         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
34828 2011-04-30  Bruno Haible  <bruno@clisp.org>
34830         sys_uio: Protect definition of 'struct iovec'.
34831         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
34832         it as a C struct.
34834 2011-04-30  Bruno Haible  <bruno@clisp.org>
34836         manywarnings: fix indentation
34837         * m4/manywarnings.m4: Indent by 2 spaces consistently.
34839 2011-04-30  Pádraig Brady  <P@draigBrady.com>
34841         manywarnings: add -Wno-missing-field-initializers if needed.
34842         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
34843         option if it's needed to allow initialization with { 0, }
34845 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
34847         announce-gen: cosmetic improvement
34848         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
34850 2011-04-29  Jim Meyering  <meyering@redhat.com>
34852         vc-list-files: indent with spaces, not TABs
34853         * build-aux/vc-list-files: Convert leading TABs to spaces,
34854         to match the style of most other files in gnulib.
34856         announce-gen: indent with spaces, not TABs
34857         * build-aux/announce-gen: Convert all TABs to spaces, to match
34858         the style of most other files in gnulib.
34860 2011-04-29  Eric Blake  <eblake@redhat.com>
34862         quotearg: avoid uninitialized variable use
34863         * lib/quotearg.c (quoting_options_from_style): Initialize
34864         remaining fields, and ensure that custom styles are only used via
34865         quoting_options rather than quoting_style.
34867 2011-04-29  Jim Meyering  <meyering@redhat.com>
34869         maint.mk: remove unused VC-tag variable
34870         * top/maint.mk (VC-tag): Remove unused variable.
34872 2011-04-29  Bruno Haible  <bruno@clisp.org>
34874         netdb: fix gai_strerror replacements
34875         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
34876         * modules/netdb: Substitute it.
34878 2011-04-29  Jim Meyering  <meyering@redhat.com>
34880         test-getcwd.c: avoid new set-but-not-used warning
34881         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
34882         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
34883         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
34884         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
34886         test-hash.c: avoid a new shadowing warning
34887         * tests/test-hash.c (main): Don't shadow "dup".
34889 2011-04-28  Eric Blake  <eblake@redhat.com>
34891         getaddrinfo: fix gai_strerror signature
34892         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
34893         and work around mingw with UNICODE defined.
34894         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
34895         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
34896         * modules/netdb (Makefile.am): Substitute it.
34897         * lib/netdb.in.h (gai_strerror): Declare replacement.
34898         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
34899         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
34900         the fix.
34902         getsockopt: avoid compiler warning
34903         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
34904         Reported by Matthias Bolte.
34906         tests: drop unused link dependency
34907         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
34908         * modules/dirent-safer-tests (Makefile.am): Likewise.
34909         * modules/fdopendir-tests (Makefile.am): Likewise.
34910         * modules/mkfifoat-tests (Makefile.am): Likewise.
34911         * modules/openat-safer-tests (Makefile.am): Likewise.
34912         * modules/openat-tests (Makefile.am): Likewise.
34913         * modules/readlinkat-tests (Makefile.am): Likewise.
34914         * modules/symlinkat-tests (Makefile.am): Likewise.
34915         * modules/linkat-tests (Makefile.am): Likewise.
34916         (Depends-on): Switch to filenamecat-lgpl.
34917         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
34918         LIBINTL.
34919         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
34920         * tests/test-linkat.c (main): Don't require xalloc.
34922         hash, mgetgroups: drop xalloc dependency
34923         * lib/hash.c (includes): Adjust includes.
34924         * lib/mgetgroups.c (includes): Likewise.
34925         (xgetgroups): Move...
34926         * lib/xgetgroups.c: ...to new file.
34927         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
34928         * modules/xgetgroups: New file, split from...
34929         * modules/mgetgroups: ...here.
34930         (Depends-on): Add xalloc-oversized.
34931         * modules/hash (Depends-on): Likewise.
34932         * modules/hash-tests (Depends-on): Drop xalloc.
34933         (test_hash_LDADD): Drop unused library.
34934         * tests/test-hash.c (main): Break xalloc dependency.
34935         (includes): Drop unused include.
34937         xalloc-oversized: new module
34938         * modules/xalloc-oversized: New module.
34939         * modules/xalloc (Depends-on): Add it.
34940         * lib/xalloc.h (xalloc_oversized): Move...
34941         * lib/xalloc-oversized.h: ...into new file.
34943         utimecmp: drop dependency on xmalloc
34944         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
34945         due to memory pressure.
34946         * modules/utimecmp (Depends-on): Drop xalloc.
34948 2011-04-27  Eric Blake  <eblake@redhat.com>
34950         getcwd: fix mingw bugs
34951         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
34952         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
34953         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
34955 2011-04-27  Bruno Haible  <bruno@clisp.org>
34957         mkstemps: Ensure declaration on MacOS X 10.5.
34958         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
34959         * doc/glibc-functions/mkstemps.texi: Document header file problem on
34960         MacOS X.
34962 2011-04-27  Bruno Haible  <bruno@clisp.org>
34964         mkstemp: More documentation.
34965         * doc/posix-functions/mkstemp.texi: Document header file problem on
34966         MacOS X.
34968 2011-04-27  Bruno Haible  <bruno@clisp.org>
34970         mkstemp: Tweak configure message when cross-compiling.
34971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
34972         result as a guess.
34974 2011-04-27  Bruno Haible  <bruno@clisp.org>
34976         clean-temp: Clarify what it does.
34977         * lib/clean-temp.h: Add more comments.
34978         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
34979         module.
34980         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
34981         * doc/glibc-functions/mkstemps.texi: Likewise.
34982         * doc/glibc-functions/mkostemps.texi: Likewise.
34984 2011-04-27  Eric Blake  <eblake@redhat.com>
34986         fchdir: avoid extra chdir and fix test
34987         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
34988         getcwd-lgpl.
34989         * lib/fchdir.c (get_name): Any absolute name will do; it does not
34990         have to be canonical.
34991         (canonicalize_file_name): Drop unused macro.
34992         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
34994         filenamecat-lgpl: fix licence
34995         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
34996         when it was first created.
34998         linkat, renameat: add missing dependency
34999         * modules/linkat (Depends-on): Require getcwd-lgpl.
35000         * modules/renameat (Depends-on): Likewise.
35002         tests: reduce dependencies
35003         * tests/test-linkat.c (main): Use lighter-weight getcwd.
35004         * tests/test-renameat.c (main): Likewise.
35005         * modules/linkat-tests (Depends-on): Relax dependency.
35006         * modules/renameat-tests (Depends-on): Likewise.
35007         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
35008         dependency explicit.
35010         save-cwd: reduce default dependency
35011         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
35012         * lib/save-cwd.c: Update comments.
35013         * NEWS: Document the semantic change.
35015         getcwd: enhance tests
35016         * tests/test-getcwd-lgpl.c: New file, taken from...
35017         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
35018         repeat long path stress tests from m4 probe.
35019         * modules/getcwd-lgpl-tests: New module.
35020         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
35021         * m4/getcwd-abort-bug.m4: Update comment.
35022         * m4/getcwd-path-max.m4: Likewise.
35024         getcwd-lgpl: new module
35025         * modules/getcwd-lgpl: New module.
35026         * lib/getcwd-lgpl.c: New file.
35027         * doc/posix-functions/getcwd.texi (getcwd): Document it.
35028         * MODULES.html.sh (lacking POSIX:2008): Likewise.
35029         * modules/getcwd (configure.ac): Set C witness.
35030         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
35032         getcwd: tweak comments
35033         * m4/getcwd-abort-bug.m4: Fix comments.
35034         * m4/getcwd-path-max.m4: Likewise.
35035         * m4/getcwd.m4: Likewise.
35037 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
35038         and Eric Blake  <eblake@redhat.com>
35040         mkstemp: replace if system version uses wrong permissions
35041         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
35042         read/write mode bits set in file created by mkstemp.
35043         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
35045 2011-04-27  Eric Blake  <eblake@redhat.com>
35047         passfd: avoid compiler warning
35048         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
35049         Reported by Laine Stump.
35051 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
35053         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
35054         required by the NetBSD (and perhaps other 4.4BSD derived) join.
35056 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
35057         and Eric Blake  <eblake@redhat.com>
35059         mkstemp: mention clean-temp module
35060         * lib/mkstemp.c: Add comment.
35061         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
35063 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
35065         inttypes: also provide default values for 32-bit tests
35066         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
35067         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
35069 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
35071         strtoumax: remove dependency on strtoimax
35072         This is like the strtoull change of yesterday.
35073         * modules/strtoumax (Files): Add lib/strtoimax.c.
35074         (Depends-on): Remove strtoimax and add verify.
35076         inttypes-incomplete: new module
35077         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
35078         all but the PRI* and SCN* parts of gl_INTTYPES_H.
35079         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
35080         of gl_INTTYPES_H.
35081         (gl_INTTYPES_H): Rewrite in terms of these new macros.
35082         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
35083         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
35084         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
35085         * modules/strtoumax, modules/xstrtol (Depends-on):
35086         Depend on inttypes-incomplete, not inttypes.
35087         * modules/inttypes-incomplete: New module, containing the contents
35088         of the old modules/inttypes module, except that the Files: section
35089         omits m4/inttypes-pri.m4, and the configure.ac section invokes
35090         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
35091         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
35092         (Depends-on): Depend only on inttypes-incomplete.
35093         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
35095         inttypes: omit now-redundant strtoimax and strtoumax work
35096         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
35097         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
35099         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
35100         This supports apps that need pointers to strtoimax and strtoumax,
35101         and ports to HP-UX 11.00 64.bit, which has macros that expand to
35102         nonexistent functions.  See
35103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
35104         et seq.
35105         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
35106         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
35107         a macro.
35108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
35110 2011-04-25  Simon Josefsson  <simon@josefsson.org>
35112         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
35114 2011-04-25  Bruno Haible  <bruno@clisp.org>
35116         strtol, strtoul: Mark modules as obsolete.
35117         * modules/strtol (Status, Notice): New sections.
35118         * modules/strtoul (Status, Notice): New sections.
35120 2011-04-25  Bruno Haible  <bruno@clisp.org>
35122         strtod: Remove check for strtod, unless supporting old platforms.
35123         * modules/strtod-obsolete: New file.
35124         * m4/strtod-obsolete.m4: New file.
35125         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
35126         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
35127         * modules/strtod (Depends-on): Add strtod-obsolete.
35128         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
35130 2011-04-25  Bruno Haible  <bruno@clisp.org>
35132         strcase: Make module obsolete.
35133         * modules/strcase (Status, Notice): New sections.
35135 2011-04-25  Bruno Haible  <bruno@clisp.org>
35137         dup2: Remove check for dup2, unless supporting old obsolete platforms.
35138         * modules/dup2-obsolete: New file.
35139         * m4/dup2-obsolete.m4: New file.
35140         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
35141         gl_FUNC_DUP2_OBSOLETE is not also defined.
35142         * modules/dup2 (Depends-on): Add dup2-obsolete.
35143         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
35145 2011-04-25  Bruno Haible  <bruno@clisp.org>
35147         strnlen: Avoid memchr related link error on old obsolete platforms.
35148         * modules/memchr-obsolete: New file.
35149         * m4/memchr-obsolete.m4: New file.
35150         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
35151         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
35152         * modules/memchr (Depends-on): Add memchr-obsolete.
35153         * modules/strnlen (Depends-on): Likewise.
35154         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
35156 2011-04-25  Jim Meyering  <meyering@redhat.com>
35158         maint.mk: makefile_at_at_check extend and clean up
35159         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
35160         in addition to */Makefile.am.
35161         Exempt legitimate uses of @VAR@ notation, e.g.,
35162         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
35163         Remove obsolete coreutils-specific comment.
35164         Prompted by discussion here:
35165         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
35167 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35169         strtoul: remove dependency on strtol
35170         This is so that 'configure' need not check for strtol merely because
35171         the application needs strtoul.
35172         * modules/strtoul (Files): Add lib/strtol.c.
35173         (Depends-on): Remove strtol.
35175         strtoull: remove dependency on strtoul
35176         This is like the strtoll change.
35177         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
35178         (Depends-on): Remove strtoul.
35180         strtoll: remove dependency on strtol
35181         This is so that 'configure' need not check for strtol merely because
35182         the application needs strtoll.
35183         * modules/strtoll (Files): Add lib/strtol.c.
35184         (Depends-on): Remove strtol.
35186 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35188         inttypes: Move some configure check to module 'imaxdiv'.
35189         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
35190         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
35191         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
35193 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35195         inttypes: Move some configure check to module 'imaxabs'.
35196         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
35197         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
35198         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
35200 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35202         inttypes: Remove configure tests that are not needed since 2009-12-31.
35203         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
35204         gl_cv_header_working_inttypes_h.
35206 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35208         * modules/strnlen (Depends-on): Remove memchr.
35209         The strnlen implementation doesn't need the memchr module's fixes; see
35210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
35212         strtol: remove dependency on wchar
35213         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
35214         * modules/strtol (Depends-on): Remove wchar.
35216 2011-04-21  Eric Blake  <eblake@redhat.com>
35218         passfd: fix test regression on Linux
35219         * modules/passfd-tests (configure.ac): Correct socketpair check.
35221         passfd: speed up configure and drop unused code
35222         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
35223         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
35224         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
35225         Instead of probing at configure for unix_scm_rights_bsd44_way,
35226         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
35227         check to a struct member probe.
35228         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
35229         (sendfd, recvfd): Update preprocessor checks.
35230         * modules/passfd (Files): Reflect rename, and drop unused file.
35231         (Depends-on): Drop unused dependency.
35233         passfd: allow compilation on mingw
35234         * modules/sys_socket (Depends-on): Add sys_uio.
35235         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
35236         iovec and a minimal struct msghdr.
35237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
35238         * tests/test-sys_socket.c (main): Enhance test.
35239         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
35240         guaranteed to provide what we need.
35241         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
35242         * modules/passfd-tests (Depends-on): Add sys_wait.
35243         * tests/test-passfd.c (main): Skip test on mingw, for now.
35244         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
35245         partial 'struct msghdr' implementation.
35247         sys_uio: new module
35248         * modules/sys_uio: New module.
35249         * modules/sys_uio-tests: Likewise.
35250         * lib/sys_uio.in.h: New file.
35251         * m4/sys_uio_h.m4: Likewise.
35252         * tests/test-sys_uio.c: Likewise.
35253         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
35254         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
35256 2011-04-20  Jim Meyering  <meyering@redhat.com>
35258         useless-if-before-free: avoid false-positive
35259         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
35260         disjunct so that it too requires a terminating ";".  Without that,
35261         this script would identify as useless one statement from gcc that
35262         was not:
35263           if (aligned_ptr)
35264             free (((void **) aligned_ptr) [-1]);
35266 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
35268         doc: update users.txt.
35269         * users.txt: Add barcode.
35271 2011-04-19  Bruno Haible  <bruno@clisp.org>
35273         ioctl: Remove link dependency on native Windows.
35274         * lib/fd-hook.h: Renamed from lib/close-hook.h.
35275         (gl_close_fn, gl_ioctl_fn): New types.
35276         (struct fd_hook): Renamed from struct close_hook. Change type of
35277         private_close_fn field. Add private_ioctl_fn field.
35278         (close_hook_fn): Add parameter for primary close method.
35279         (execute_close_hooks, execute_all_close_hooks): Likewise.
35280         (ioctl_hook_fn): New type.
35281         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
35282         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
35283         argument.
35284         (unregister_fd_hook): Renamed from unregister_close_hook.
35285         * lib/fd-hook.c: Renamed from lib/close-hook.c.
35286         Don't include <unistd.h>.
35287         (close): Remove undef.
35288         (anchor): Update.
35289         (execute_close_hooks): Add argument for primary close method.
35290         (execute_all_close_hooks): Likewise.
35291         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
35292         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
35293         argument. Allow each argument to be NULL.
35294         (unregister_fd_hook): Renamed from unregister_close_hook.
35295         * lib/close.c (rpl_close): Pass 'close' function pointer to
35296         execute_all_close_hooks.
35297         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
35298         (primary_ioctl): New function.
35299         (ioctl): Don't call ioctlsocket here. Instead, call
35300         execute_all_ioctl_hooks.
35301         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
35302         close method.
35303         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
35304         (fd_sockets_hook): Renamed from close_sockets_hook.
35305         (gl_sockets_startup, gl_sockets_cleanup): Update.
35306         * modules/fd-hook: Renamed from modules/close-hook. Update.
35307         * modules/close (Depends-on): Add fd-hook, remove close-hook.
35308         * modules/sockets (Depends-on): Likewise.
35309         * modules/ioctl (Depends-on): Add fd-hook.
35310         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
35311         GNULIB_SOCKET.
35313 2011-04-19  Bruno Haible  <bruno@clisp.org>
35315         Move the support of O_NONBLOCK in open() to the 'open' module.
35316         * modules/nonblocking (Depends-on): Remove 'open'.
35317         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
35318         gl_cv_have_open_O_NONBLOCK.
35319         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
35320         O_NONBLOCK support.
35321         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
35323 2011-04-17  Bruno Haible  <bruno@clisp.org>
35325         pipe2: Simplify code.
35326         * lib/pipe2.c (pipe2): Reduce code duplication.
35328 2011-04-17  Bruno Haible  <bruno@clisp.org>
35330         nonblocking: Add comment.
35331         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
35333 2011-04-17  Bruno Haible  <bruno@clisp.org>
35335         nonblocking: Add tests for sockets.
35336         * tests/test-nonblocking-socket.sh: New file.
35337         * tests/test-nonblocking-socket-main.c: New file.
35338         * tests/test-nonblocking-socket-child.c: New file.
35339         * tests/test-nonblocking-socket.h: New file.
35340         * tests/socket-server.h: New file.
35341         * tests/socket-client.h: New file.
35342         * modules/nonblocking-socket-tests: New file.
35343         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
35345 2011-04-17  Bruno Haible  <bruno@clisp.org>
35347         nonblocking: Add tests for pipes.
35348         * tests/test-nonblocking-pipe.sh: New file.
35349         * tests/test-nonblocking-pipe-main.c: New file.
35350         * tests/test-nonblocking-pipe-child.c: New file.
35351         * tests/test-nonblocking-pipe.h: New file.
35352         * tests/test-nonblocking-writer.h: New file.
35353         * tests/test-nonblocking-reader.h: New file.
35354         * tests/test-nonblocking-misc.h: New file.
35355         * modules/nonblocking-pipe-tests: New file.
35356         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
35358 2011-04-16  Bruno Haible  <bruno@clisp.org>
35360         gettext: Clarify the needed programmer actions.
35361         * modules/gettext (Notice): New field.
35362         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35364 2011-04-16  Bruno Haible  <bruno@clisp.org>
35366         strchrnul: Tweak last commit.
35367         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
35368         bug.
35369         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
35370         as in _GL_FUNCDECL_SYS.
35371         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
35372         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
35374 2011-04-15  Eric Blake  <eblake@redhat.com>
35376         strchrnul: work around cygwin bug
35377         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
35378         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
35379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
35380         * modules/string (Makefile.am): Substitute it.
35381         * lib/string.in.h (strchrnul): Use it.
35383 2011-04-15  Bruno Haible  <bruno@clisp.org>
35385         Don't require lib/stdio-write.c when only module 'stdio' is used.
35386         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
35387         invocation.
35388         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
35390 2011-04-14  Bruno Haible  <bruno@clisp.org>
35392         Support non-blocking pipe I/O in read() on native Windows.
35393         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
35394         (read): New declaration.
35395         * lib/read.c: New file.
35396         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
35397         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
35398         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
35399         vscanf): New declarations.
35400         * lib/stdio-read.c: New file.
35401         * m4/read.m4: New file.
35402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
35403         REPLACE_READ.
35404         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
35405         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35406         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
35407         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
35408         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
35409         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35410         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
35411         * modules/read: New file.
35412         * modules/nonblocking (Files): Add lib/stdio-read.c.
35413         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
35414         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
35415         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35416         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
35417         * modules/pread (Depends-on): Add read.
35418         * modules/safe-read (Depends-on): Likewise.
35419         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
35420         gets, scanf, vfscanf, vscanf): Verify signatures.
35421         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
35422         problem with non-blocking pipes.
35423         * doc/posix-functions/fgetc.texi: Likewise.
35424         * doc/posix-functions/fgets.texi: Likewise.
35425         * doc/posix-functions/fread.texi: Likewise.
35426         * doc/posix-functions/fscanf.texi: Likewise.
35427         * doc/posix-functions/getc.texi: Likewise.
35428         * doc/posix-functions/getchar.texi: Likewise.
35429         * doc/posix-functions/gets.texi: Likewise.
35430         * doc/posix-functions/scanf.texi: Likewise.
35431         * doc/posix-functions/vfscanf.texi: Likewise.
35432         * doc/posix-functions/vscanf.texi: Likewise.
35434 2011-04-14  Bruno Haible  <bruno@clisp.org>
35436         Support non-blocking pipe I/O in write() on native Windows.
35437         * lib/write.c (rpl_write): Split a write request that failed merely
35438         because the byte count was larger than the pipe buffer's size.
35439         * doc/posix-functions/write.texi: Mention the problem with large byte
35440         counts.
35442 2011-04-14  Bruno Haible  <bruno@clisp.org>
35444         wchar: Ensure that wchar_t gets defined on uClibc.
35445         * lib/wchar.in.h: On uClibc, include <stddef.h>.
35446         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
35448 2011-04-13  Bruno Haible  <bruno@clisp.org>
35450         safe-write, full-read: Avoid unnecessary compilation units.
35451         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
35452         (Depends-on): Remove safe-read. Add ssize_t.
35453         * modules/full-read (Files): Add lib/full-write.c.
35454         (Depends-on): Add full-write.
35456 2011-04-13  Bruno Haible  <bruno@clisp.org>
35458         Support non-blocking pipe I/O and SIGPIPE in pwrite().
35459         * modules/pwrite (Depends-on): Add 'write'.
35461 2011-04-13  Bruno Haible  <bruno@clisp.org>
35463         Support non-blocking pipe I/O in write() on native Windows.
35464         * lib/unistd.in.h (write): Enable replacement also if
35465         GNULIB_UNISTD_H_NONBLOCKING is 1.
35466         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
35467         (rpl_write): When failing to write on a non-blocking pipe, change
35468         errno from ENOSPC to EAGAIN.
35469         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
35470         putchar, puts, vfprintf, vprintf): Enable replacement also if
35471         GNULIB_STDIO_H_NONBLOCKING is 1.
35472         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
35473         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
35474         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
35475         CALL_WITH_SIGPIPE_EMULATION.
35476         (CALL_WITH_SIGPIPE_EMULATION): Use them.
35477         * m4/nonblocking.m4: New file.
35478         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
35479         for non-blocking I/O support.
35480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35481         GNULIB_UNISTD_H_NONBLOCKING.
35482         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
35483         required for non-blocking I/O support.
35484         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
35485         * modules/nonblocking (Files): Add m4/nonblocking.m4,
35486         lib/stdio-write.c, m4/asm-underscore.m4.
35487         (Depends-on): Add stdio, unistd.
35488         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
35489         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
35490         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
35491         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
35492         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
35493         problem with non-blocking pipes.
35494         * doc/posix-functions/fputc.texi: Likewise.
35495         * doc/posix-functions/fputs.texi: Likewise.
35496         * doc/posix-functions/fwrite.texi: Likewise.
35497         * doc/posix-functions/printf.texi: Likewise.
35498         * doc/posix-functions/putc.texi: Likewise.
35499         * doc/posix-functions/putchar.texi: Likewise.
35500         * doc/posix-functions/puts.texi: Likewise.
35501         * doc/posix-functions/vfprintf.texi: Likewise.
35502         * doc/posix-functions/vprintf.texi: Likewise.
35503         * doc/posix-functions/write.texi: Likewise.
35505 2011-04-10  Jim Meyering  <meyering@redhat.com>
35507         maint.mk: prohibit doubled words
35508         Detect them also when they're separated by a newline.
35509         There are 3 ways to customize it:
35510           - disable the test on a per file basis, as usual with rules using
35511             $(VC_LIST_EXCEPT)
35512           - replace the default doubled-word-selecting regexp (affects all files)
35513           - ignore a particular file-vs-doubled-word match
35514         I nearly used that last one to ignore the "is is" match in
35515         coreutils' NEWS file, since the text was "ls -is is ..."
35516         To do that, I would have added this line to cfg.mk:
35517           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
35518         but it would have ignored any "is is" match in NEWS.
35519         Low probability, but still...
35520         Instead, I changed the text, slightly:
35521           -  ls -is is now consistent with ls -lis in ignoring values returned
35522           +  "ls -is" is now consistent with ls -lis in ignoring values returned
35523         * top/maint.mk (prohibit_double_word_RE_): Provide default.
35524         (prohibit_doubled_word_): Define.
35525         (sc_prohibit_doubled_word): New rule.
35526         (sc_prohibit_the_the): Remove.  Subsumed by the above.
35528 2011-04-10  Jim Meyering  <meyering@redhat.com>
35530         maint: fix doubled-word typo in comment
35531         * m4/gethostname.m4: s/is is/it is/
35532         * m4/getdomainname.m4: Likewise.
35534 2011-04-10  Jim Meyering  <meyering@redhat.com>
35536         maint: remove doubled word: s/it it/it/
35537         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
35539 2011-04-10  Jim Meyering  <meyering@redhat.com>
35541         maint.mk: remove useless semicolon and backslash
35542         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
35543         semicolon and backslash.
35545 2011-04-10  Bruno Haible  <bruno@clisp.org>
35547         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
35548         * modules/stdint-tests (Depends-on): Add wchar.
35550 2011-04-10  Jim Meyering  <meyering@redhat.com>
35552         maint: remove doubled words in comments, e.g., s/a a/a/
35553         * lib/strptime.c (day_of_the_week): s/the the/the/
35554         * tests/test-chown.h (test_chown): s/a a/a/
35556         test-chown.h: correct a cast
35557         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
35558         when the destination is a stat.st_gid.
35560 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
35562         getaddrinfo: Fix test for sa_len member.
35563         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
35564         include <sys/types.h> before <sys/socket.h>.
35566 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35568         maint: change "can not" to "cannot"
35569         * doc/posix-functions/iconv.texi (iconv): This one crossed line
35570         boundaries.
35572 2011-04-09  Jim Meyering  <meyering@redhat.com>
35574         maint: change "a a" to "a"
35575         * tests/test-lchown.h (test_lchown): s/a a/a/
35577         maint.mk: prohibit \<the the\>
35578         * top/maint.mk (sc_prohibit_the_the): New rule.
35580         maint: fix "the the" in comment
35581         * lib/count-one-bits.h: s/the the/the/
35583         maint: change "can not" to "cannot"
35584         But do not change the occurrences in maintain.texi or in
35585         build-aux/po/Makefile.in.in, which I presume comes from gettext.
35586         * doc/gnulib-tool.texi: s/can not/cannot/
35587         * doc/posix-functions/accept.texi (accept): Likewise.
35588         * doc/posix-functions/socket.texi (socket): Likewise.
35589         * lib/mbrtowc.c: Likewise.
35591         maint.mk: prohibit use of "can not"
35592         * top/maint.mk (sc_prohibit_can_not): New rule.
35593         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
35595 2011-04-09  Bruno Haible  <bruno@clisp.org>
35597         careadlinkat: Guard against misuse of careadlinkatcwd.
35598         * lib/careadlinkat.c: Include <stdlib.h>.
35599         (careadlinkatcwd): Check that the fd argument is as expected.
35601 2011-04-09  Bruno Haible  <bruno@clisp.org>
35603         careadlinkat: Use common coding style.
35604         * lib/careadlinkat.c: Move gnulib includes after system includes.
35606 2011-04-09  Bruno Haible  <bruno@clisp.org>
35608         careadlinkat: Clarify specification.
35609         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
35610         (careadlinkatcwd): Add comment.
35611         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
35613 2011-04-09  Bruno Haible  <bruno@clisp.org>
35615         areadlinkat: Avoid link error on many platforms.
35616         * modules/areadlinkat (Depends-on): Add areadlink.
35618 2011-04-09  Bruno Haible  <bruno@clisp.org>
35620         allocator, careadlinkat: Fix double-inclusion guard.
35621         * lib/allocator.h: Fix double-inclusion guard.
35622         * lib/careadlinkat.h: Likewise.
35624 2011-04-09  Bruno Haible  <bruno@clisp.org>
35626         relocatable-prog-wrapper: Update after module 'areadlink' changed.
35627         * lib/relocwrapper.c: Update dependencies hierarchy.
35628         * build-aux/install-reloc: Update list of files to be compiled.
35629         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
35630         lib/allocator.[hc].
35632 2011-04-08  Eric Blake  <eblake@redhat.com>
35634         strftime: silence gnulib-tool warning
35635         * modules/strftime-tests (Depends-on): Drop automatic dependency.
35637 2011-04-08  Bruno Haible  <bruno@clisp.org>
35639         verify: Fix syntax error with GCC 4.6 in C++ mode.
35640         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
35641         (HAVE_STATIC_ASSERT): New macro.
35642         (verify_true, verify): Use 'static_assert' if it is supported and
35643         '_Static_assert' is not supported.
35645 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
35647         allocator: New module.
35648         * modules/allocator, lib/allocator.c: New files.
35649         * lib/allocator.h (stdlib_allocator): New decl.
35650         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
35651         Remove.  Do not include <stdlib.h>.
35652         (careadlinkat): Use stdlib_allocator instead of rolling our own.
35653         * modules/careadlinkat (Files): Remove lib/allocator.h.
35654         (Depends-on): Add allocator.
35656         stdlib: let modules use system malloc, realloc
35657         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
35658         if !_GL_USE_STDLIB_ALLOC.
35659         (malloc, realloc): Limit this change to a smaller scope.
35661         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
35662         (malloc, realloc): Don't #undef; no longer needed.
35663         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35664         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35665         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
35666         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35667         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35668         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35669         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35670         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
35672         careadlinkat: rename members to avoid problem
35673         * lib/allocator.h (struct allocator): Rename members from
35674         malloc/realloc to allocate/reallocate, to avoid problems if malloc
35675         and realloc are #define'd.  Reported by Eric Blake in
35676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
35677         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
35679 2011-04-08  Eric Blake  <eblake@redhat.com>
35681         nonblocking: reduce dependency
35682         * tests/test-nonblocking.c: Only test sockets when in use.
35683         * modules/nonblocking-tests (Depends-on): Drop socket.
35684         (Makefile.am): Link even if sockets are not present.
35685         * modules/pipe2-tests (Makefile.am): Likewise.
35686         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
35688         pipe2: fix O_NONBLOCK support on mingw
35689         * modules/pipe2 (Depends-on): Add nonblocking.
35690         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
35691         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
35692         * tests/test-nonblocking.c (main): Likewise.
35693         * modules/pipe2-tests (Makefile.am): Avoid link failure.
35695         fcntl-h: fix O_ACCMODE on cygwin
35696         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
35697         * lib/fcntl.in.h (O_ACCMODE): Fix it.
35699         pipe-filter: drop O_NONBLOCK workarounds
35700         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
35701         * modules/pipe-filter-ii (Depends-on): Likewise.
35702         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
35704         nonblocking: provide O_NONBLOCK for mingw
35705         * modules/nonblocking (Depends-on): Add open.
35706         (configure.ac): Set new witness macro.
35707         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
35708         * modules/fcntl-h (Makefile.am): Substitute it.
35709         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
35710         nonblocking module is in use.
35711         * lib/nonblocking.c: Adjust portability test.
35712         * lib/open.c (open): Don't let native open see gnulib flag.
35713         * tests/test-fcntl-h.c (main): Enhance test.
35714         * tests/test-open.h (test_open): Likewise.
35715         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
35717         careadlinkat: fix compilation error on mingw
35718         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
35719         within struct allocator.
35721 2011-04-06  Eric Blake  <eblake@redhat.com>
35723         binary-io: relicense under LGPLv2+
35724         * modules/binary-io (License): Relax to LGPLv2+.
35725         Requested for libvirt, and required by pipe2.
35727 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
35729         verify: use _Static_assert if available
35730         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
35731         (verify_true, verify): Use it if available.  This generates better
35732         diagnostics with GCC 4.6.0 and later.
35734 2011-04-05  Bruno Haible  <bruno@clisp.org>
35736         Remove leftover generated .h files after config.status changed.
35738         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
35739         GL_GENERATE_ALLOCA_H.
35740         * modules/alloca-opt (Makefile.am): Remove alloca.h if
35741         GL_GENERATE_ALLOCA_H evaluates to false.
35743         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
35744         GL_GENERATE_ARGZ_H.
35745         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
35746         evaluates to false.
35748         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
35749         GL_GENERATE_BYTESWAP_H.
35750         * modules/byteswap (Makefile.am): Remove byteswap.h if
35751         GL_GENERATE_BYTESWAP_H evaluates to false.
35753         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
35754         GL_GENERATE_ERRNO_H.
35755         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
35756         evaluates to false.
35758         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
35759         GL_GENERATE_FLOAT_H.
35760         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
35761         evaluates to false.
35763         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
35764         GL_GENERATE_FNMATCH_H.
35765         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
35766         GL_GENERATE_FNMATCH_H evaluates to false.
35768         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
35769         GL_GENERATE_GLOB_H.
35770         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
35771         evaluates to false.
35773         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
35774         automake conditional GL_GENERATE_ICONV_H.
35775         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
35776         evaluates to false.
35778         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
35779         GL_GENERATE_NETINET_IN_H.
35780         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
35781         GL_GENERATE_NETINET_IN_H evaluates to false.
35783         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
35784         conditional GL_GENERATE_PTHREAD_H.
35785         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
35786         * modules/pthread (Makefile.am): Remove pthread.h if
35787         GL_GENERATE_PTHREAD_H evaluates to false.
35789         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
35790         GL_GENERATE_SCHED_H.
35791         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
35792         evaluates to false.
35794         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
35795         conditional GL_GENERATE_SELINUX_CONTEXT_H.
35796         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
35797         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
35799         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
35800         GL_GENERATE_STDARG_H.
35801         * modules/stdarg (Makefile.am): Remove stdarg.h if
35802         GL_GENERATE_STDARG_H evaluates to false.
35804         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
35805         GL_GENERATE_STDBOOL_H.
35806         * modules/stdbool (Makefile.am): Remove stdbool.h if
35807         GL_GENERATE_STDBOOL_H evaluates to false.
35809         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
35810         conditional GL_GENERATE_STDDEF_H.
35811         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
35812         * modules/stddef (Makefile.am): Remove stddef.h if
35813         GL_GENERATE_STDDEF_H evaluates to false.
35815         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
35816         GL_GENERATE_STDINT_H.
35817         * modules/stdint (Makefile.am): Remove stdint.h if
35818         GL_GENERATE_STDINT_H evaluates to false.
35820         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
35821         GL_GENERATE_SYSEXITS_H.
35822         * modules/sysexits (Makefile.am): Remove sysexits.h if
35823         GL_GENERATE_SYSEXITS_H evaluates to false.
35825         Reported by Karl Berry and Ralf Wildenhues.
35827 2011-04-05  Bruno Haible  <bruno@clisp.org>
35829         Ensure to rebuild generated .h files when config.status has changed.
35830         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
35831         config.status.
35832         * modules/ctype (Makefile.am): Likewise.
35833         * modules/dirent (Makefile.am): Likewise.
35834         * modules/errno (Makefile.am): Likewise.
35835         * modules/fcntl-h (Makefile.am): Likewise.
35836         * modules/float (Makefile.am): Likewise.
35837         * modules/getopt-posix (Makefile.am): Likewise.
35838         * modules/glob (Makefile.am): Likewise.
35839         * modules/iconv-h (Makefile.am): Likewise.
35840         * modules/inttypes (Makefile.am): Likewise.
35841         * modules/langinfo (Makefile.am): Likewise.
35842         * modules/locale (Makefile.am): Likewise.
35843         * modules/math (Makefile.am): Likewise.
35844         * modules/netdb (Makefile.am): Likewise.
35845         * modules/netinet_in (Makefile.am): Likewise.
35846         * modules/poll-h (Makefile.am): Likewise.
35847         * modules/pthread (Makefile.am): Likewise.
35848         * modules/pty (Makefile.am): Likewise.
35849         * modules/sched (Makefile.am): Likewise.
35850         * modules/search (Makefile.am): Likewise.
35851         * modules/selinux-h (Makefile.am): Likewise.
35852         * modules/signal (Makefile.am): Likewise.
35853         * modules/spawn (Makefile.am): Likewise.
35854         * modules/stdarg (Makefile.am): Likewise.
35855         * modules/stdbool (Makefile.am): Likewise.
35856         * modules/stddef (Makefile.am): Likewise.
35857         * modules/stdint (Makefile.am): Likewise.
35858         * modules/stdio (Makefile.am): Likewise.
35859         * modules/stdlib (Makefile.am): Likewise.
35860         * modules/string (Makefile.am): Likewise.
35861         * modules/strings (Makefile.am): Likewise.
35862         * modules/sys_file (Makefile.am): Likewise.
35863         * modules/sys_ioctl (Makefile.am): Likewise.
35864         * modules/sys_select (Makefile.am): Likewise.
35865         * modules/sys_socket (Makefile.am): Likewise.
35866         * modules/sys_stat (Makefile.am): Likewise.
35867         * modules/sys_time (Makefile.am): Likewise.
35868         * modules/sys_times (Makefile.am): Likewise.
35869         * modules/sys_utsname (Makefile.am): Likewise.
35870         * modules/sys_wait (Makefile.am): Likewise.
35871         * modules/sysexits (Makefile.am): Likewise.
35872         * modules/termios (Makefile.am): Likewise.
35873         * modules/time (Makefile.am): Likewise.
35874         * modules/unistd (Makefile.am): Likewise.
35875         * modules/wchar (Makefile.am): Likewise.
35876         * modules/wctype-h (Makefile.am): Likewise.
35877         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
35879 2011-04-05  Bruno Haible  <bruno@clisp.org>
35881         pipe2: Relicense under LGPLv2+.
35882         * modules/pipe2 (License): Change to LGPLv2+.
35883         Requested by Eric Blake, for libvirt.
35885 2011-04-05  Bruce Korb  <bkorb@gnu.org>
35887         bootstrap: compute gnulib_extra_files after updating build_aux
35888         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
35889         change build_aux or also supply gnulib_extra_files.  Handle correctly.
35891 2011-04-05  Eric Blake  <eblake@redhat.com>
35893         bootstrap: preserve git whitelist item sorting
35894         * build-aux/bootstrap (sort_patterns): New function.
35895         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
35897 2011-04-05  Simon Josefsson  <simon@josefsson.org>
35899         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
35900         sc_space_tab check.
35902 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
35904         areadlink, areadlinkat: rewrite in terms of careadlinkat
35905         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
35906         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
35907         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
35908         (malloc, realloc): Remove #undefs.
35909         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
35910         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
35911         readlink, ssize_t, stdint, unistd.
35912         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
35913         areadlink, stdint.
35915         careadlinkat: new module
35916         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
35917         * modules/careadlinkat: New files, written by me with
35918         a review and feedback from Ben Pfaff in
35919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
35921 2011-04-01  Bruno Haible  <bruno@clisp.org>
35923         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
35924         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
35925         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
35926         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
35927         Reported by Bruce Korb <bruce.korb@gmail.com>.
35929 2011-04-01  Bruno Haible  <bruno@clisp.org>
35931         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
35932         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
35933         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
35934         * modules/wcpcpy (Depends-on): Add extensions.
35935         * modules/wcpncpy (Depends-on): Likewise.
35936         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
35937         systems.
35938         * doc/posix-functions/wcpncpy.texi: Likewise.
35939         * doc/posix-functions/wcwidth.texi: Likewise.
35941 2011-03-31  Eric Blake  <eblake@redhat.com>
35943         nonblocking: fix mingw test failures
35944         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
35945         non-blocking flag on regular file.
35946         (get_nonblocking_flag): Set errno on invalid fd.
35947         * tests/test-nonblocking.c (main): Avoid test failure on
35948         directories if fchdir is not active.
35949         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
35951 2011-03-31  Bruno Haible  <bruno@clisp.org>
35953         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
35954         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
35955         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
35956         Reported by Simon Josefsson <simon@josefsson.org>.
35958 2011-03-31  Bruno Haible  <bruno@clisp.org>
35959         and Eric Blake  <eblake@redhat.com>
35961         nonblocking: new module
35962         * modules/nonblocking: New module.
35963         * modules/nonblocking-tests: Likewise.
35964         * lib/nonblocking.h: New file.
35965         * lib/nonblocking.c: Likewise.
35966         * tests/test-nonblocking.c: New test.
35967         * lib/ioctl.c (ioctl) [mingw]: Update comment.
35969 2011-03-30  Bruno Haible  <bruno@clisp.org>
35971         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
35972         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
35973         instead of 'printf' format for GCC >= 4.4.
35974         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
35975         (fprintf, printf, vfprintf, vprintf): Declare with
35976         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
35977         the system's vfprintf() function.
35978         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
35980 2011-03-30  Eric Blake  <eblake@redhat.com>
35982         passfd: fix scoping bug
35983         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
35984         before sendmsg/recvmsg.
35986         passfd: standardize coding conventions
35987         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
35988         can be learned at compile time.
35989         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
35990         ifdefs.
35991         (sendfd, recvfd): Follow gnulib code conventions.
35993         passfd: fix incorrect sendmsg arguments
35994         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
35995         incorrect msg_controllen value.
35996         * modules/passfd-tests (Depends-on): Check for alarm.
35997         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
35998         Reported by Bastien ROUCARIES.
36000 2011-03-30  Bruno Haible  <bruno@clisp.org>
36002         c-strcasestr: Relicense under LGPLv2+.
36003         * modules/c-strcasestr (License): Change to LGPLv2+.
36004         Requested by Eric Blake, for libvirt.
36006 2011-03-30  Simon Josefsson  <simon@josefsson.org>
36008         * users.txt: Add libidn2.  Fix libtasn1 link.
36010 2011-03-30  Jim Meyering  <meyering@redhat.com>
36012         tests: readlink* ("",... fails with EINVAL on newer kernels
36013         readlink and readlinkat have typically failed with ENOENT for
36014         the invalid, empty file name,  "".  However, with the advent
36015         of linux-2.6.39, they fail with EINVAL.
36016         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
36017         when operating on the empty file name.
36018         * tests/test-readlink.h (test_readlink): Likewise.
36020 2011-03-29  Bruno Haible  <bruno@clisp.org>
36022         Relicense some modules under LGPLv2+, for libidn2.
36023         * modules/array-mergesort (License): Change to LGPLv2+.
36024         * modules/c-strcaseeq (License): Likewise.
36025         * modules/striconveh (License): Likewise.
36026         * modules/striconveha (License): Likewise.
36027         * modules/uniconv/base (License): Likewise.
36028         * modules/uniconv/u8-conv-from-enc (License): Likewise.
36029         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
36030         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
36031         * modules/unictype/base (License): Likewise.
36032         * modules/unictype/bidiclass-of (License): Likewise.
36033         * modules/unictype/category-M (License): Likewise.
36034         * modules/unictype/category-none (License): Likewise.
36035         * modules/unictype/category-of (License): Likewise.
36036         * modules/unictype/category-test (License): Likewise.
36037         * modules/unictype/category-test-withtable (License): Likewise.
36038         * modules/unictype/combining-class (License): Likewise.
36039         * modules/unictype/joiningtype-of (License): Likewise.
36040         * modules/unictype/scripts (License): Likewise.
36041         * modules/uninorm/base (License): Likewise.
36042         * modules/uninorm/canonical-decomposition (License): Likewise.
36043         * modules/uninorm/composition (License): Likewise.
36044         * modules/uninorm/decompose-internal (License): Likewise.
36045         * modules/uninorm/decomposition-table (License): Likewise.
36046         * modules/uninorm/nfc (License): Likewise.
36047         * modules/uninorm/nfd (License): Likewise.
36048         * modules/uninorm/u32-normalize (License): Likewise.
36049         * modules/unistr/base (License): Likewise.
36050         * modules/unistr/u32-cpy (License): Likewise.
36051         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
36052         * modules/unistr/u32-to-u8 (License): Likewise.
36053         * modules/unistr/u32-uctomb (License): Likewise.
36054         * modules/unistr/u8-check (License): Likewise.
36055         * modules/unistr/u8-mblen (License): Likewise.
36056         * modules/unistr/u8-mbtouc (License): Likewise.
36057         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
36058         * modules/unistr/u8-mbtoucr (License): Likewise.
36059         * modules/unistr/u8-prev (License): Likewise.
36060         * modules/unistr/u8-strlen (License): Likewise.
36061         * modules/unistr/u8-to-u32 (License): Likewise.
36062         * modules/unistr/u8-uctomb (License): Likewise.
36063         * modules/unitypes (License): Likewise.
36064         Requested by Simon Josefsson.
36066 2011-03-29  Simon Josefsson  <simon@josefsson.org>
36068         lib-symbol-visibility: Add a notice.
36069         * modules/lib-symbol-visibility (Notice): New field.
36071 2011-03-29  Bruno Haible  <bruno@clisp.org>
36073         getaddrinfo: Doc fix.
36074         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
36075         section "fixed in Gnulib".
36077 2011-03-28  Simon Josefsson  <simon@josefsson.org>
36079         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
36080         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
36082 2011-03-26  Bruno Haible  <bruno@clisp.org>
36084         unictype/property-byname: Reduce the number of load-time relocations.
36085         * lib/unictype/pr_byname.c: Include <stdlib.h>.
36086         (UC_PROPERTY_INDEX_*): New enumeration values.
36087         (uc_property_byname): Convert an index from the lookup table to an
36088         uc_property_t.
36089         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
36090         values.
36092 2011-03-26  Bruno Haible  <bruno@clisp.org>
36094         unictype/property-byname: Allow omitted word separators and aliases.
36095         * lib/unictype/pr_byname.gperf: Add property names without word
36096         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
36097         for 'space'.
36099 2011-03-26  Bruno Haible  <bruno@clisp.org>
36101         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
36102         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
36103         also hyphens to space.
36104         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
36105         without spaces.
36106         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
36108 2011-03-26  Bruno Haible  <bruno@clisp.org>
36110         unictype/joiningtype-byname: Recognize long names as well.
36111         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
36112         a long name.
36113         * lib/unictype/joiningtype_byname.c: Include <string.h>,
36114         unictype/joiningtype_byname.h.
36115         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
36116         * lib/unictype/joiningtype_byname.gperf: New file.
36117         * modules/unictype/joiningtype-byname (Files): Add
36118         lib/unictype/joiningtype_byname.gperf.
36119         (Depends-on): Add gperf.
36120         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
36121         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
36122         long names.
36124         Tests for module 'unictype/joiningtype-longname'.
36125         * modules/unictype/joiningtype-longname-tests: New file.
36126         * tests/unictype/test-joiningtype_longname.c: New file.
36128         New module 'unictype/joiningtype-longname'.
36129         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
36130         * lib/unictype/joiningtype_longname.c: New file.
36131         * modules/unictype/joiningtype-longname: New file.
36132         * modules/unictype/joiningtype-all (Depends-on): Add
36133         unictype/joiningtype-longname.
36135 2011-03-26  Bruno Haible  <bruno@clisp.org>
36137         unictype/bidiclass-byname: Recognize long names as well.
36138         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
36139         name.
36140         * lib/unictype/bidi_byname.c: Include <string.h>,
36141         unictype/bidi_byname.h.
36142         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
36143         * lib/unictype/bidi_byname.gperf: New file.
36144         * modules/unictype/bidiclass-byname (Files): Add
36145         lib/unictype/bidi_byname.gperf.
36146         (Depends-on): Add gperf.
36147         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
36148         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
36149         long names.
36151         Tests for module 'unictype/bidiclass-longname'.
36152         * modules/unictype/bidiclass-longname-tests: New file.
36153         * tests/unictype/test-bidi_longname.c: New file.
36155         New module 'unictype/bidiclass-longname'.
36156         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
36157         * lib/unictype/bidi_longname.c: New file.
36158         * modules/unictype/bidiclass-longname: New file.
36159         * modules/unictype/bidiclass-all (Depends-on): Add
36160         unictype/bidiclass-longname.
36162 2011-03-26  Bruno Haible  <bruno@clisp.org>
36164         unictype/bidi*: Rename modules.
36165         * modules/unictype/bidiclass-all: Renamed from
36166         modules/unictype/bidicategory-all.
36167         * modules/unictype/bidiclass-name: Renamed from
36168         modules/unictype/bidiclass-name.
36169         (Description): Update.
36170         * modules/unictype/bidiclass-name-tests: Renamed from
36171         modules/unictype/bidicategory-name-tests.
36172         * modules/unictype/bidiclass-byname: Renamed from
36173         modules/unictype/bidicategory-byname.
36174         (Description): Update.
36175         * modules/unictype/bidiclass-byname-tests: Renamed from
36176         modules/unictype/bidicategory-byname-tests.
36177         * modules/unictype/bidiclass-of: Renamed from
36178         modules/unictype/bidicategory-of.
36179         (Description): Update.
36180         * modules/unictype/bidiclass-of-tests: Renamed from
36181         modules/unictype/bidicategory-of-tests.
36182         * modules/unictype/bidiclass-test: Renamed from
36183         modules/unictype/bidicategory-test.
36184         (Description): Update.
36185         * modules/unictype/bidiclass-test-tests: Renamed from
36186         modules/unictype/bidicategory-test-tests.
36187         * modules/unictype/bidicategory-all: New file, a simple redirection.
36188         * modules/unictype/bidicategory-name: Likewise.
36189         * modules/unictype/bidicategory-byname: Likewise.
36190         * modules/unictype/bidicategory-of: Likewise.
36191         * modules/unictype/bidicategory-test: Likewise.
36192         * modules/unictype/property-bidi-* (Dependencies): Update.
36193         * lib/unictype/bidi_*.c: Update comment.
36195 2011-03-26  Bruno Haible  <bruno@clisp.org>
36197         unictype/bidi*: Rename functions, part 2.
36198         * modules/unictype/bidicategory-name (configure.ac): Update required
36199         libunistring version.
36200         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
36202 2011-03-25  Bruno Haible  <bruno@clisp.org>
36204         New module 'unictype/combining-class-all'.
36205         * modules/unictype/combining-class-all: New file.
36207         Tests for module 'unictype/combining-class-byname'.
36208         * modules/unictype/combining-class-byname-tests: New file.
36209         * tests/unictype/test-combiningclass_byname.c: New file.
36211         New module 'unictype/combining-class-byname'.
36212         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
36213         * lib/unictype/combiningclass_byname.c: New file.
36214         * lib/unictype/combiningclass_byname.gperf: New file.
36215         * modules/unictype/combining-class-byname: New file.
36217         Tests for module 'unictype/combining-class-longname'.
36218         * modules/unictype/combining-class-longname-tests: New file.
36219         * tests/unictype/test-combiningclass_longname.c: New file.
36221         New module 'unictype/combining-class-longname'.
36222         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
36223         * lib/unictype/combiningclass_longname.c: New file.
36224         * modules/unictype/combining-class-longname: New file.
36226         Tests for module 'unictype/combining-class-name'.
36227         * modules/unictype/combining-class-name-tests: New file.
36228         * tests/unictype/test-combiningclass_name.c: New file.
36230         New module 'unictype/combining-class-name'.
36231         * lib/unictype.in.h (uc_combining_class_name): New declaration.
36232         * lib/unictype/combiningclass_name.c: New file.
36233         * modules/unictype/combining-class-name: New file.
36235 2011-03-25  Bruno Haible  <bruno@clisp.org>
36237         unictype/combining-class: Rename source files.
36238         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
36239         of unictype/combining.h.
36240         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
36241         Update.
36242         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
36243         * modules/unictype/combining-class (Description): Fix.
36244         (Files, Makefile.am): Update.
36245         * tests/unictype/test-combiningclass.c: Renamed from
36246         tests/unictype/test-combining.c.
36247         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
36249 2011-03-25  Bruno Haible  <bruno@clisp.org>
36251         unictype: Update list of canonical combining classes.
36252         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
36254 2011-03-25  Bruno Haible  <bruno@clisp.org>
36256         unictype/category-byname: Recognize long names as well.
36257         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
36258         a long name.
36259         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
36260         unictype/categ_byname.h.
36261         (UC_CATEGORY_INDEX_*): New enumeration values.
36262         (uc_general_category_byname): Use uc_general_category_lookup and
36263         convert from index to value.
36264         * lib/unictype/categ_byname.gperf: New file.
36265         * modules/unictype/category-byname (Files): Add
36266         lib/unictype/categ_byname.gperf.
36267         (Depends-on): Add gperf.
36268         (Makefile.am): Add rule for generating unictype/categ_byname.h.
36269         * tests/unictype/test-categ_byname.c (main): Test the recognition of
36270         long names.
36272         Tests for module 'unictype/category-longname'.
36273         * modules/unictype/category-longname-tests: New file.
36274         * tests/unictype/test-categ_longname.c: New file.
36276         New module 'unictype/category-longname'.
36277         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
36278         * lib/unictype/categ_longname.c: New file.
36279         * modules/unictype/category-longname: New file.
36280         * modules/unictype/category-all (Depends-on): Add it.
36282 2011-03-25  Bruno Haible  <bruno@clisp.org>
36284         Tests for module 'unictype/category-LC'.
36285         * modules/unictype/category-LC-tests: New file.
36286         * tests/unictype/test-categ_LC.c: New file, automatically generated.
36288         New module 'unictype/category-LC'.
36289         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
36290         (UC_CATEGORY_LC): New declaration.
36291         (UC_CASED_LETTER): New macro.
36292         * lib/gen-uni-tables.c (is_category_LC): New function.
36293         (output_categories): Also handle category LC.
36294         (UC_CATEGORY_MASK_LC): New enumeration value.
36295         (general_category_byname): Also handle category LC.
36296         * lib/unictype/categ_LC.c: New file.
36297         * lib/unictype/categ_LC.h: New file, automatically generated.
36298         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
36299         category LC.
36300         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
36301         * modules/unictype/category-LC: New file.
36302         * modules/unictype/category-byname (Depends-on): Add
36303         unictype/category-LC.
36304         * modules/unictype/category-all (Depends-on): Likewise.
36306 2011-03-25  Eric Blake  <eblake@redhat.com>
36308         xmalloc: revert yesterday's regression
36309         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
36310         realloc's underlying behavior (allowing allocation of zero-size
36311         objects, especially if malloc-gnu is also in use).
36313 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
36315         maint.mk: add missing version to VC-tag
36316         * top/maint.mk: git tag was missing actual tag name; add it.
36318         valgrind: do leak checking, and exit with code 1 on error (not 0)
36319         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
36320         to VALGRIND.
36322 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
36324         posix-modules: say what it does.
36325         * posix-modules: Add a line to the --help output saying what it does.
36327 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
36329         xmalloc: Do not leak if underlying realloc is C99 compatible.
36330         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
36331         This avoids a leak on C99-based systems.  See
36332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
36334 2011-03-24  Eric Blake  <eblake@redhat.com>
36336         realloc: document portability problem
36337         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
36338         passing 0 size to realloc.
36340 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
36342         doc: update users.txt
36343         * users.txt: Add cvsps, tmpwatch
36345 2011-03-23  Matt Rice  <ratmice@gmail.com>
36347         doc: update users.txt
36348         * users.txt: Add gdb.
36350 2011-03-23  Jim Meyering  <meyering@redhat.com>
36352         doc: update users.txt
36353         Looking through matches up to the following URL (there are still
36354         several more pages), I found several projects that use gnulib:
36355         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
36356         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
36357         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
36359 2011-03-22  Bruno Haible  <bruno@clisp.org>
36361         unictype/bidi*: Rename functions.
36362         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
36363         uc_bidi_class, uc_is_bidi_class): New declarations.
36364         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
36365         uc_bidi_category_byname.
36366         (uc_bidi_category_byname): New function.
36367         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
36368         u_bidi_category_name.
36369         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
36370         (uc_bidi_category_name): New function.
36371         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
36372         uc_bidi_category.
36373         (uc_bidi_category): New function.
36374         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
36375         uc_is_bidi_category. Invoke uc_bidi_class.
36376         (uc_is_bidi_category): New function.
36377         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
36378         instead of uc_bidi_category_byname.
36379         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
36380         instead of uc_bidi_category_name.
36381         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
36382         uc_bidi_category.
36383         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
36384         instead of uc_is_bidi_category.
36386 2011-03-21  Bruno Haible  <bruno@clisp.org>
36388         New module 'unictype/joininggroup-all'.
36389         * modules/unictype/joininggroup-all: New file.
36391         Tests for module 'unictype/joininggroup-of'.
36392         * modules/unictype/joininggroup-of-tests: New file.
36393         * tests/unictype/test-joininggroup_of.c: New file.
36394         * tests/unictype/test-joininggroup_of.h: New file, automatically
36395         generated by gen-uni-tables.
36397         New module 'unictype/joininggroup-of'.
36398         * modules/unictype/joininggroup-of: New file.
36399         * lib/unictype/joininggroup_of.c: New file.
36400         * lib/unictype/joininggroup_of.h: New file, automatically generated by
36401         gen-uni-tables.
36403         Tests for module 'unictype/joininggroup-byname'.
36404         * modules/unictype/joininggroup-byname-tests: New file.
36405         * tests/unictype/test-joininggroup_byname.c: New file.
36407         New module 'unictype/joininggroup-byname'.
36408         * modules/unictype/joininggroup-byname: New file.
36409         * lib/unictype/joininggroup_byname.c: New file.
36410         * lib/unictype/joininggroup_byname.gperf: New file.
36412         Tests for module 'unictype/joininggroup-name'.
36413         * modules/unictype/joininggroup-name-tests: New file.
36414         * tests/unictype/test-joininggroup_name.c: New file.
36416         New module 'unictype/joininggroup-name'.
36417         * modules/unictype/joininggroup-name: New file.
36418         * lib/unictype/joininggroup_name.c: New file.
36419         * lib/unictype/joininggroup_name.h: New file.
36421         New module 'unictype/joiningtype-all'.
36422         * modules/unictype/joiningtype-all: New file.
36424         Tests for module 'unictype/joiningtype-of'.
36425         * modules/unictype/joiningtype-of-tests: New file.
36426         * tests/unictype/test-joiningtype_of.c: New file.
36427         * tests/unictype/test-joiningtype_of.h: New file, automatically
36428         generated by gen-uni-tables.
36430         New module 'unictype/joiningtype-of'.
36431         * modules/unictype/joiningtype-of: New file.
36432         * lib/unictype/joiningtype_of.c: New file.
36433         * lib/unictype/joiningtype_of.h: New file, automatically generated by
36434         gen-uni-tables.
36436         Tests for module 'unictype/joiningtype-byname'.
36437         * modules/unictype/joiningtype-byname-tests: New file.
36438         * tests/unictype/test-joiningtype_byname.c: New file.
36440         New module 'unictype/joiningtype-byname'.
36441         * modules/unictype/joiningtype-byname: New file.
36442         * lib/unictype/joiningtype_byname.c: New file.
36444         Tests for module 'unictype/joiningtype-name'.
36445         * modules/unictype/joiningtype-name-tests: New file.
36446         * tests/unictype/test-joiningtype_name.c: New file.
36448         New module 'unictype/joiningtype-name'.
36449         * modules/unictype/joiningtype-name: New file.
36450         * lib/unictype/joiningtype_name.c: New file.
36452         unictype: Add support for Arabic shaping properties.
36453         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
36454         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
36455         declarations.
36456         (UC_JOINING_GROUP_*): New enumeration values.
36457         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
36458         declarations.
36459         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
36460         (unicode_joining_type): New variable.
36461         (UC_JOINING_GROUP_*): New enumeration values.
36462         (unicode_joining_group): New variable.
36463         (fill_arabicshaping, joining_type_as_c_identifier,
36464         output_joining_type_test, output_joining_type,
36465         joining_group_as_c_identifier, output_joining_group_test,
36466         output_joining_group): New functions.
36467         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
36468         fill_arabicshaping and output_joining_type_test, output_joining_type,
36469         output_joining_group_test, output_joining_group.
36470         Reported by Simon Josefsson.
36472 2011-03-21  Jim Meyering  <meyering@redhat.com>
36474         strftime: fix a bug in yesterday's change
36475         * lib/strftime.c (add): Accommodate width's initial value of -1.
36476         Otherwise, nstrftime would copy uninitialized data into
36477         the result buffer.
36479 2011-03-21  Jim Meyering  <meyering@redhat.com>
36481         tests: add strftime-tests module
36482         * tests/test-strftime.c: New file.
36483         * modules/strftime-tests: New module.
36485 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36487         strftime: don't assume a byte count fits in 'int'
36488         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
36489         found this problem by static analysis, using gcc -Wstrict-overflow
36490         (GCC 4.5.2, x86-64).  This reported an optimization that depended
36491         on an integer overflow having undefined behavior, but it turns out
36492         that the argument is a size, which might not fit in 'int' anyway,
36494 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36496         stdio: don't require ignore_value around fwrite
36498         This patch works around libc bug 11959
36499         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
36500         Without this patch, applications must often write
36501         ignore_value (fwrite (...)) even though the ignore_value is
36502         not helpful here.  It's common to write many objects, using
36503         fwrite/printf/etc., and then use ferror to detect output error.
36505         I considered making this patch optional, but decided against it,
36506         because libc is obviously being inconsistent here: there is no
36507         reason libc should insist that user code must inspect fwrite
36508         return's value without also insisting that it inspect printf's,
36509         putchar's, etc.  If user code wants to have a strict style where
36510         all these functions' values are checked (so that ferror need not
36511         be checked), we could add support for that style in a new gnulib
36512         module, but in the meantime it's better to be consistent and to
36513         support common usage.
36515         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
36516         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
36517         that we are compiling in checking mode, and if not C++, and
36518         if not already wrapping fwrite for some other reason.
36519         (fwrite): #define to rpl_fwrite if the latter is defined.
36521 2011-03-20  Bruno Haible  <bruno@clisp.org>
36523         verror: Fix compilation error introduced on 2011-02-13.
36524         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
36525         instead of __attribute__.
36526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36528 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36529             Bruno Haible  <bruno@clisp.org>
36531         socklen: do not depend on sys_socket
36532         While trying to modify Emacs to use gnulib's socklen module,
36533         I discovered a circular dependency: socklen depends on sys_socket
36534         and vice versa.  Emacs can use socklen, but it does not need
36535         sys_socket because it has its own substitute for sys/socket.h.
36536         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
36537         gl_TYPE_SOCKLEN_T.
36538         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
36539         gl_PREREQ_SYS_H_SOCKET.
36540         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
36541         gl_PREREQ_SYS_H_SOCKET.
36542         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
36543         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
36544         * modules/socklen (Depends-on): Do not depend on sys_socket.
36545         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
36547 2011-03-20  Jim Meyering  <meyering@redhat.com>
36549         maint.mk: sort file names *after* new transformation
36550         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
36551         prefix would have led to an unwarranted failure in GNU parted.
36552         Sort after that transformation.
36554 2011-03-19  Jim Meyering  <meyering@redhat.com>
36556         maint.mk: fix po-file syntax-check rule
36557         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
36558         Patch by Bruno Haible.
36560 2011-03-19  Bruno Haible  <bruno@clisp.org>
36562         socklen: Update comment.
36563         * m4/socklen.m4: Update comment about platforms.
36565 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36566             Bruno Haible  <bruno@clisp.org>
36568         inet_ntop, inet_pton: Simplify.
36569         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
36570         documented to provide socklen_t and we already depend on sys_socket.
36571         * modules/inet_pton (Depends-on): Likewise.
36572         * lib/arpa_inet.in.h: Adjust comment.
36574 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36575             Bruno Haible  <bruno@clisp.org>
36577         netdb: Simplify.
36578         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
36579         documented to provide socklen_t and we already depend on sys_socket.
36580         * lib/netdb.in.h: Adjust comment.
36582 2011-03-19  Bruno Haible  <bruno@clisp.org>
36584         sys_socket, netdb: Document problem with socklen_t.
36585         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
36586         platforms.
36587         * doc/posix-headers/netdb.texi: Likewise.
36589 2011-03-18  Eric Blake  <eblake@redhat.com>
36591         maint.mk: let po check work in VPATH build
36592         * top/maint.mk (po_file): Allow cfg.mk override.
36593         (sc_po_check): Allow VPATH use.
36594         Reported by Jiri Denemark.
36596 2011-03-16  Jim Meyering  <meyering@redhat.com>
36598         maint.mk: allow fine-grained syntax-check exclusion via Make variables
36599         Before, you would have had to create one .x-sc_ file per rule in order
36600         to exempt offending files.  Now, you may instead use a Make variable --
36601         usually defined in cfg.mk -- whose name identifies the affected rule.
36602         * top/maint.mk (_sc_excl): Define.
36603         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
36604         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
36606 2011-03-13  Bruno Haible  <bruno@clisp.org>
36608         ignore-value tests: Avoid warnings.
36609         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
36610         empty for gcc < 3.4.
36612 2011-03-13  Bruno Haible  <bruno@clisp.org>
36614         passfd: Fix link error on Solaris.
36615         * modules/passfd (Description): Correct.
36616         (Depends-on): Add socketlib.
36617         (Link): New section.
36618         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
36620 2011-03-13  Bruno Haible  <bruno@clisp.org>
36622         passfd: Fix link error on AIX 5.2.
36623         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
36625 2011-03-13  Bruno Haible  <bruno@clisp.org>
36627         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
36628         * lib/sys_socket.in.h: Include <stddef.h>.
36629         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
36630         CMSG_FIRSTHDR. Remove unused variable.
36632 2011-03-13  Bruno Haible  <bruno@clisp.org>
36634         passfd: Fix compilation error on OpenBSD.
36635         * lib/passfd.c: Include <sys/uio.h>.
36637 2011-03-13  Bruno Haible  <bruno@clisp.org>
36639         passfd test: Fix warnings.
36640         * tests/test-passfd.c: Include <sys/wait.h>.
36641         (main): Fix typo.
36643 2011-03-13  Bruno Haible  <bruno@clisp.org>
36645         passfd module, part 4, tweaks.
36646         * tests/test-passfd.c: Reorder includes.
36647         (main): Fix perror and printf calls.
36649 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36651         passfd module, part 4.
36652         * modules/passfd-tests: New file.
36653         * tests/test-passfd.c: New file.
36655 2011-03-13  Jim Meyering  <meyering@redhat.com>
36657         Makefile: rely on GNU make; derive syntax-check rule names
36658         Rather than requiring that each sc_ rule be listed as a dependent
36659         of "check", use features of GNU make to derive the list.
36660         * Makefile (syntax-check-rules): Define.
36661         (check): Depend on the new variable, not the hard-coded list.
36663 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
36664             Bruno Haible  <bruno@clisp.org>
36666         passfd module, part 3.
36667         * lib/passfd.h (recvfd): Add a flags argument.
36668         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
36669         (recvfd): Add a flags argument.
36670         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
36671         exists.
36672         * modules/passfd (Depends-on): Add cloexec.
36673         Suggested by Eric Blake.
36675 2011-03-13  Bruno Haible  <bruno@clisp.org>
36677         passfd module, part 2, tweaks.
36678         * modules/passfd (Files): Reorder.
36679         (Depends-on): Remove errno.
36680         (Include): Remove <sys/socket.h>, <sys/un.h>.
36681         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
36682         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
36683         specification header. Include <sys/socket.h> always. Don't include
36684         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
36685         (sendfd): Clarify that it sets errno when it fails.
36686         (recvfd): Fix specification.
36688 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36690         passfd module, part 2.
36691         * modules/passfd: New file.
36692         * lib/passfd.h: New file.
36693         * lib/passfd.c: New file.
36695 2011-03-12  Bruno Haible  <bruno@clisp.org>
36697         wcswidth, mbswidth: Avoid integer overflow.
36698         * lib/wcswidth.c: Include <limits.h>.
36699         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
36700         * lib/mbswidth.c: Include <limits.h>.
36701         (mbsnwidth): Avoid 'int' overflow.
36702         Reported by Jim Meyering.
36704 2011-03-12  Bruno Haible  <bruno@clisp.org>
36706         futimens, utimensat: Avoid endless recursion on Solaris 10.
36707         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
36708         Solaris.
36709         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
36710         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
36712 2011-03-11  Jim Meyering  <meyering@redhat.com>
36714         maint.mk: relax a regexp to accommodate other formatting styles
36715         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
36716         between "ngettext" and the following "(".
36718 2011-03-11  Pádraig Brady  <P@draigBrady.com>
36720         maint.mk: suppress a false positive warning
36721         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
36722         diagnostics are marked with ngettext.
36724 2011-03-10  Eric Blake  <eblake@redhat.com>
36726         wchar: add explicit dependencies, for Tru64
36727         * modules/mbmemcasecoll (Depends-on): Add wchar.
36728         * modules/mbtowc (Depends-on): Likewise.
36729         * modules/vasnprintf (Depends-on): Likewise.
36730         * modules/unistdio/u-printf-args (Depends-on): Likewise.
36731         * modules/wctomb (Depends-on): Likewise.
36732         Reported by Peter O'Gorman.
36734 2011-03-08  Bruno Haible  <bruno@clisp.org>
36736         passfd module, part 1, tweaks.
36737         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
36738         Improve indentation. Improve AC_MSG_CHECKING messages.
36739         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
36740         gl_SOCKET_FAMILIES.
36742 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36744         passfd module, part 1.
36745         * m4/afunix.m4: New file.
36746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
36747         sockets.
36749 2011-03-08  Bruno Haible  <bruno@clisp.org>
36751         regex-quote: New API.
36752         * lib/regex-quote.h: Include <stdbool.h>.
36753         (struct regex_quote_spec): New type.
36754         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
36755         New declarations.
36756         (regex_quote_length, regex_quote_copy, regex_quote): Take a
36757         'const struct regex_quote_spec *' argument.
36758         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
36759         (pcre_special): New constant.
36760         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
36761         New functions.
36762         (regex_quote_length, regex_quote_copy, regex_quote): Take a
36763         'const struct regex_quote_spec *' argument.
36764         * modules/regex-quote (Depends-on): Add stdbool.
36765         * tests/test-regex-quote.c (check): Update for new API. Add test for
36766         anchored results.
36767         * NEWS: Mention the API change.
36768         Reported by Reuben Thomas and Eric Blake.
36770 2011-03-06  Bruno Haible  <bruno@clisp.org>
36772         regex-quote: Fix creation of POSIX extended regular expressions.
36773         * lib/regex-quote.c (ere_special): Add grouping and alternation
36774         operators.
36776 2011-03-05  Bruno Haible  <bruno@clisp.org>
36778         doc: Improve doc regarding autopoint vs. gnulib.
36779         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
36780         disable autopoint while running autoreconf.
36781         Suggested by Ralf Wildenhues.
36783 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36785         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
36786         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
36788 2011-03-03  Bruce Korb  <bkorb@gnu.org>
36790         parse-duration: remove xalloc.h dependency
36791         * lib/parse-duration.c (parse_period): handle NULL return from
36792         strdup instead of calling xstrdup().
36793         * modules/parse-duration: remove "xalloc" dependency
36795 2011-03-03  Matthew Booth  <mbooth@redhat.com>
36797         bootstrap: honor m4_base when running aclocal
36798         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
36800 2011-03-02  Jim Meyering  <meyering@redhat.com>
36802         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
36803         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
36804         on request from Matt Booth.
36806 2011-03-01  Eric Blake  <eblake@redhat.com>
36808         test-link: work on Hurd
36809         * tests/test-link.h (test_link): Hurd rejects linking directories
36810         with EISDIR instead of the POSIX-mandated EPERM.
36812 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
36814         stdio: simplify by moving files to printf-posix, sigpipe
36815         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
36816         since this symbol is needed only if printf is replaced.
36817         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
36818         Require gl_ASM_SYMBOL_PREFIX.
36819         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
36820         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
36821         (Depends-on): Add 'raise'.
36822         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
36823         * modules/stdio (Files): Remove lib/stdio-write.c,
36824         m4/asm-underscore.m4.
36825         (Depends-on): Remove 'raise'.
36827         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
36828         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
36829         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
36830         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
36832 2011-02-28  Bruno Haible  <bruno@clisp.org>
36834         localcharset: Assume ANSI C behaviour of free().
36835         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
36836         calling free().
36837         Suggested by Simon Josefsson <simon@josefsson.org>.
36839 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
36840             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
36841             Bruno Haible  <bruno@clisp.org>  (tiny change)
36843         On Cygwin, use /proc file system instead of win32 API.
36844         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
36845         Win32 file names.
36846         (DllMain): Simplify by removing Cygwin specific code.
36847         (find_shared_library_fullname): Use Linux specific implementation also
36848         for Cygwin.
36849         (get_shared_library_fullname): Update accordingly.
36850         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
36851         Win32 file names.
36852         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
36853         Cygwin specific code.
36855 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
36856             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
36858         Fix OpenMP flag detection for various Fortran compilers.
36859         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
36860         OpenMP-conditional compilation construct, to force compile
36861         failure with missing OpenMP flag.
36862         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
36864 2011-02-25  Eric Blake  <eblake@redhat.com>
36866         strstr: expand test coverage
36867         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
36868         compilation.
36869         * tests/test-memmem.c (main): Duplicate tests.
36870         * tests/test-strcasestr.c (main): Likewise.
36871         * tests/test-c-strcasestr.c (main): Likewise.
36873 2011-02-25  Jim Meyering  <meyering@redhat.com>
36875         maint.mk: detect missing-NL-at-EOF, too
36876         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
36877         it also detects when a file lacks a newline at EOF.
36878         (require_exactly_one_NL_at_EOF_): Renamed from
36879         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
36880         since people may well have .x-sc_... file names tied to the
36881         existing name.  Suggested by Eric Blake.
36883 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36885         dirname: move m4/dos.m4 functionality into lib/dosname.h
36887         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
36888         extracts symbols from it, puts them into config.h; but it's much
36889         easier to use the symbols directly.  filename.h already does this,
36890         but it disagrees with dos.m4 in some respects.  This patch
36891         introduces a different include file dosname.h that packages up
36892         dos.m4, and then later we can work on merging filename.h and
36893         dosname.h.  Applications that need only the easy-to-configure
36894         symbols should consider including dosname.h rather than dirname.h.
36895         * NEWS: Mention incompatible changes.
36896         * m4/dos.m4: Remove.
36897         * lib/dosname.h, modules/dosname: New files.
36898         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
36899         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
36900         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
36901         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
36902         Include dosname.h, not dirname.h.
36903         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
36904         Include dosname.h, for definitions of symbols like ISSLASH
36905         that used to be in config.h.
36906         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
36907         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
36908         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36909         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36910         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
36911         * modules/rmdir (Files): Likewise.
36912         * modules/stat (Files): Likewise.
36913         * modules/unlink (Files): Likewise.
36914         * modules/dirname-lgpl (Depends-on): Add dosname.
36915         * modules/lstat (Depends-on): Likewise.
36916         * modules/openat (Depends-on): Likewise.
36917         * modules/rmdir (Depends-on): Likewise.
36918         * modules/savewd (Depends-on): Likewise.
36919         * modules/stat (Depends-on): Likewise.
36920         * modules/unlink (Depends-on): Likewise.
36921         * modules/openat (Depends-on): Remove dirname-lgpl.
36922         * modules/savewd (Depends-on): Likewise.
36923         * tests/test-dirname.c: Do not use removed symbols like
36924         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
36925         the remaining symbols, e.g., ISSLASH ('\\').
36927 2011-02-25  Eric Blake  <eblake@redhat.com>
36929         strstr: revert patches that introduced bug and pessimization
36930         * lib/str-two-way.h: Add another reference.
36931         (two_way_short_needle, two_way_long_needle): Revert changes from
36932         2011-02-24; they pessimize search speed.
36933         (critical_factorization): Partially revert changes from
36934         2010-06-22; they violate the requirement that the left half of the
36935         needle be smaller than the period of the needle.
36937 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36939         filenamecat: remove unnecessary dependency on dirname-lgpl
36940         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
36941         is no direct dependency, just an indirect one via filenamecat-lgpl.
36943         remove: remove unnecessary use of m4/dos.m4
36944         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
36945         * modules/remove (FILES): Remove m4/dos.m4.
36947         * lib/openat-proc.c: Don't include dirname.h; not needed.
36949         backupfile: remove unnecessary use of m4/dos.m4
36950         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
36951         of its symbols are used by the backupfile code.  backupfile.c does
36952         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
36953         for the rare case of programs that want all their backup file
36954         names to live within 8+3 limits, and dos.m4 doesn't address that.
36955         * modules/backupfile (Files): Remove m4/dos.m4.
36957 2011-02-24  Jim Meyering  <meyering@redhat.com>
36959         strstr: fix a bug whereby strstr would mistakenly return NULL
36960         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
36961         in period calculation.
36962         (two_way_long_needle): Likewise.
36963         The original problem was reported by Mike Stump in
36964         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
36965         Ralf Wildenhues provided the short needle and haystack.
36966         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
36967         Add a more involved test to trigger the bug in two_way_long_needle.
36969 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36971         gnulib-tool: remove use of bold display in help screen
36972         * gnulib-tool (func_usage): Do not use bold display anymore in the
36973         help screen.  That was just meant to be a temporary emphasis for a
36974         backward-incompatible change.
36976 2011-02-23  Bruno Haible  <bruno@clisp.org>
36978         Fix misindentation of preprocessor directives.
36979         * lib/argp-namefrob.h: Reindent preprocessor directives.
36980         * lib/getopt_int.h (struct _getopt_data): Likewise.
36981         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
36982         * lib/vasnprintf.c (decode_long_double): Likewise.
36983         * tests/test-argmatch.c: Insert blank lines, for clarity.
36984         * tests/test-exclude.c: Likewise.
36986 2011-02-22  Bruno Haible  <bruno@clisp.org>
36988         ioctl: Fix for MacOS X in 64-bit mode.
36989         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
36990         value.
36991         Suggested by Eric Blake.
36992         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
36994 2011-02-22  Jim Meyering  <meyering@redhat.com>
36996         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
36997         * Makefile (sc_cpp_indent_check): Don't limit the check to files
36998         in lib/.
37000 2011-02-22  Eric Blake  <eblake@redhat.com>
37002         maint: avoid any CDPATH issue
37003         * Makefile (sc_cpp_indent_check): Anchor cd argument.
37005         maint: adjust cpp indentation for my modules, as well
37006         * Makefile (sc_cpp_indent_check): Add my name.
37007         * lib/fbufmode.c: Filter through cppi.
37008         * lib/fpurge.c: Likewise.
37009         * lib/freadable.c: Likewise.
37010         * lib/freading.c: Likewise.
37011         * lib/fwritable.c: Likewise.
37012         * lib/fwriting.c: Likewise.
37013         * lib/sigaction.c: Likewise.
37015 2011-02-22  Jim Meyering  <meyering@redhat.com>
37017         maint: adjust cpp indentation to reflect nesting depth
37018         I.e., in a block of code that begins with an unnested "#if",
37019         put one space between the "#" in column 1 and following token.
37020         For example,
37021         -#include <sys/vfs.h>
37022         +# include <sys/vfs.h>
37023         Do this only in .c files that are part of a module I maintain.
37024         * lib/linkat.c: Filter through cppi.
37025         * lib/nanosleep.c: Likewise.
37026         * lib/openat.c: Likewise.
37027         * lib/openat-die.c: Likewise.
37028         * lib/dup3.c: Likewise.
37029         * lib/fchownat.c: Likewise.
37030         * lib/flock.c: Likewise.
37031         * lib/fsync.c: Likewise.
37032         * lib/fts.c: Likewise.
37033         * lib/getpass.c: Likewise.
37034         * lib/gettimeofday.c: Likewise.
37035         * lib/userspec.c: Likewise.
37036         * Makefile (sc_cpp_indent_check): New rule, to check this.
37038 2011-02-22  Bruno Haible  <bruno@clisp.org>
37040         New module 'wctomb'.
37041         * lib/stdlib.in.h (wctomb): New declaration.
37042         * lib/wctomb.c: New file.
37043         * lib/wctomb-impl.h: New file.
37044         * m4/wctomb.m4: New file.
37045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
37046         REPLACE_WCTOMB.
37047         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
37048         REPLACE_WCTOMB.
37049         * modules/wctomb: New file.
37050         * tests/test-stdlib-c++.cc: Test signature of wctomb.
37051         * doc/posix-functions/wctomb.texi: Mention the new module.
37052         * modules/wctob (Depends-on): Add wctomb.
37054 2011-02-22  Bruno Haible  <bruno@clisp.org>
37056         New module 'mbtowc'.
37057         * lib/stdlib.in.h (mbtowc): New declaration.
37058         * lib/mbtowc.c: New file.
37059         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
37060         * m4/mbtowc.m4: New file.
37061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
37062         REPLACE_MBTOWC.
37063         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
37064         REPLACE_MBTOWC.
37065         * modules/mbtowc: New file.
37066         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
37067         * doc/posix-functions/mbtowc.texi: Mention the new module.
37068         * modules/btowc (Depends-on): Add mbtowc.
37070 2011-02-22  Bruno Haible  <bruno@clisp.org>
37072         wcrtomb: Add more tests for native Windows platforms.
37073         * tests/test-wcrtomb-w32-1.sh: New file.
37074         * tests/test-wcrtomb-w32-2.sh: New file.
37075         * tests/test-wcrtomb-w32-3.sh: New file.
37076         * tests/test-wcrtomb-w32-4.sh: New file.
37077         * tests/test-wcrtomb-w32-5.sh: New file.
37078         * tests/test-wcrtomb-w32.c: New file.
37079         * modules/wcrtomb-tests (Files): Add them.
37080         (Makefile.am): Arrange to run these tests.
37081         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
37082         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
37084 2011-02-20  Bruno Haible  <bruno@clisp.org>
37086         wcrtomb: Enhance test.
37087         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
37089 2011-02-20  Bruno Haible  <bruno@clisp.org>
37091         mbrtowc: Tiny optimization.
37092         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
37094 2011-02-20  Jim Meyering  <meyering@redhat.com>
37096         test-exclude.c: remove unmatched #endif
37097         * tests/test-exclude.c: Remove stray #endif, left over from
37098         the change of a week ago.
37100 2011-02-19  Jim Meyering  <meyering@redhat.com>
37102         git-version-gen: skip "-dirty" check when appropriate
37103         * build-aux/git-version-gen: Don't run any git commands when the
37104         version string comes from .tarball-version.  Prior to this, we
37105         would run git update-index --refresh even from a just-unpacked
37106         tarball directory, and that could affect a .git/ directory in a
37107         parent of the build directory.  Reported by Mike Frysinger.
37109 2011-02-19  Bruno Haible  <bruno@clisp.org>
37111         unictype/property-byname: Reduce the size of the 'data' segment.
37112         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
37114 2011-02-19  Bruno Haible  <bruno@clisp.org>
37116         unictype/scripts: Reduce the size of the 'data' segment.
37117         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
37118         '%pic'.
37119         * lib/unictype/scripts_byname.gperf: Regenerated.
37121 2011-02-19  Bruno Haible  <bruno@clisp.org>
37123         stdint: Update documentation.
37124         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
37126 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
37128         stdint: omit redundant check for wchar.h
37129         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
37130         always tests whether wchar.h exists, so remove the now-redundant test.
37132 2011-02-18  Bruno Haible  <bruno@clisp.org>
37134         stdint: Cut dependency to module 'wchar'.
37135         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
37136         include the necessary prerequisites.
37137         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
37138         * modules/stdint (Depends-on): Remove wchar.
37139         (Makefile.am): Substitute HAVE_WCHAR_H.
37140         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
37142 2011-02-18  Eric Blake  <eblake@redhat.com>
37144         longlong: skip, rather than fail, on cross-compilation
37145         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
37146         when cross-compiling; regression from 2011-02-16.
37148 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
37150         * NEWS: Mention 2011-02-08 change to stdlib.
37152 2011-02-17  Bruno Haible  <bruno@clisp.org>
37154         getloadavg: Add comments about platforms.
37155         * m4/getloadavg.m4: Add comment.
37156         * lib/getloadavg.c: Likewise.
37158 2011-02-17  Bruno Haible  <bruno@clisp.org>
37160         getloadavg: Fix link error on Solaris 2.6.
37161         * modules/getloadavg (Link): New section.
37162         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
37163         linking test-getloadavg.
37164         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
37165         getloadavg.
37167 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
37169         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
37170         It was 'int', but this doesn't match the IRIX 6.5 manual.
37171         Suggested by Bruno Haible in
37172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
37174 2011-02-17  Bruno Haible  <bruno@clisp.org>
37176         havelib: Fix comments.
37177         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
37178         change.
37180 2011-02-17  Bruno Haible  <bruno@clisp.org>
37182         havelib: Update config.rpath.
37183         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
37185 2011-02-17  Bruno Haible  <bruno@clisp.org>
37187         getloadavg test: Add some plausibility checks.
37188         * tests/test-getloadavg.c (check_avg): Print a warning when the value
37189         is improbable.
37191 2011-02-16  Eric Blake  <eblake@redhat.com>
37193         maintainer-makefile: make syntax-check a no-op from tarballs
37194         * top/maint.mk (no-vc-detected): New rule.
37195         (local-checks-available): Use it to avoid hanging if someone tries
37196         'make syntax-check' from a tarball.  Also append to any non-syntax
37197         checks already defined in cfg.mk.
37199 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
37201         longlong: tune, particularly for common case of c99
37203         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
37204         or running anything if c99, or if unsigned long long int does not
37205         work.  In either case, we know the answer without further tests.
37206         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
37207         it at most once, and use its results for both long long int and
37208         unsigned long long int.  This is more likely to be efficient in
37209         the common case where the program wants to check for both long
37210         long int and unsigned long long int.
37211         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
37212         since the answer is already known.
37214 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
37216         getloadavg: set errno
37217         * lib/getloadavg.c: Set errno when returning -1.  If no other
37218         error number looks appropriate, set it to ENOSYS if the getloadavg
37219         looks like it can't possibly ever work, ENOTSUP otherwise.
37220         Suggested by Bruno Haible in
37221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
37223         getloadavg: trim unused parts and speed up 'configure'
37224         * NEWS: Document this.
37225         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
37226         always compiled if getloadavg is absent.
37227         Move test code to ...
37228         * tests/test-getloadavg.c: New file, containing previous
37229         contents of test from lib/getloadavg.c.  It also contains
37230         suggestions by Bruno Haible in
37231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
37232         * modules/getloadavg-tests: New file.
37233         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
37234         Do tests in the same order as they're needed for getloadavg.c.
37235         Omit setgid-related tests that generate symbols KMEM_GROUP,
37236         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
37237         Do only the tests that are needed to see whether the system has
37238         getloadavg, moving the other tests into ...
37239         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
37240         NLIST_NAME_UNION; nobody should be using it.  Do not define
37241         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
37242         relevant, as the user of this module shouldn't care how getloadavg
37243         is implemented.
37245         getloadavg: omit unused var
37246         * lib/getloadavg.c (getloadavg): Omit unused local variable.
37248 2011-02-15  Jim Meyering  <meyering@redhat.com>
37250         doc: update users.txt
37251         * users.txt: Update iwhd's URL.
37253 2011-02-13  Bruno Haible  <bruno@clisp.org>
37255         Consistent macro naming for macros that use GCC __attribute__.
37256         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
37257         _ATTRIBUTE_NONNULL_.
37258         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
37259         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
37260         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
37261         ATTRIBUTE_DEPRECATED.
37262         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
37263         ATTRIBUTE_NORETURN.
37264         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37265         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37266         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37267         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37268         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
37269         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
37270         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
37271         ATTRIBUTE_SENTINEL.
37272         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
37273         ATTRIBUTE_RETURN_CHECK.
37274         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
37275         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
37276         ATTRIBUTE_NORETURN.
37277         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
37278         Reported by Paul Eggert.
37280 2011-02-13  Bruno Haible  <bruno@clisp.org>
37282         Don't interfere with a program's definition of __attribute__.
37283         * lib/argp.h (__attribute__): Remove definition.
37284         (_GL_ATTRIBUTE_FORMAT): New macro.
37285         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
37286         * lib/argp-fmtstream.h (__attribute__): Remove definition.
37287         (_GL_ATTRIBUTE_FORMAT): New macro.
37288         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
37289         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
37290         GCC 3 or newer.
37291         * lib/error.h (__attribute__): Remove definition.
37292         (_GL_ATTRIBUTE_FORMAT): New macro.
37293         (error, error_at_line): Use it.
37294         * lib/hash.h (__attribute__): Remove definition.
37295         (ATTRIBUTE_WUR): Update definition. Define always.
37296         * lib/openat.h (__attribute__): Remove definition.
37297         (ATTRIBUTE_NORETURN): Update definition. Define always.
37298         * lib/sigpipe-die.h (__attribute__): Remove definition.
37299         (ATTRIBUTE_NORETURN): Update definition. Define always.
37300         * lib/vasnprintf.h (__attribute__): Remove definition.
37301         (_GL_ATTRIBUTE_FORMAT): New macro.
37302         (asnprintf, vasnprintf): Use it.
37303         * lib/xalloc.h (__attribute__): Remove definition.
37304         (ATTRIBUTE_NORETURN): Update definition. Define always.
37305         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
37306         * lib/xmemdup0.h (__attribute__): Remove definition.
37307         (ATTRIBUTE_NORETURN): Update definition. Define always.
37308         * lib/xprintf.h (__attribute__): Remove definition.
37309         (_GL_ATTRIBUTE_FORMAT): New macro.
37310         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
37311         * lib/xstrtol.h (__attribute__): Remove definition.
37312         (ATTRIBUTE_NORETURN): Update definition. Define always.
37313         * lib/xvasprintf.h (__attribute__): Remove definition.
37314         (_GL_ATTRIBUTE_FORMAT): New macro.
37315         (xasprintf, xvasprintf): Use it.
37316         * tests/test-argmatch.c (__attribute__): Remove definition.
37317         (ATTRIBUTE_NORETURN): Update definition. Define always.
37318         * tests/test-exclude.c (__attribute__): Remove definition.
37319         (ATTRIBUTE_NORETURN): Update definition. Define always.
37320         Reported by Paul Eggert.
37322 2011-02-13  Bruno Haible  <bruno@clisp.org>
37324         mbrtowc: Add more tests for native Windows platforms.
37325         * tests/test-mbrtowc-w32-1.sh: New file.
37326         * tests/test-mbrtowc-w32-2.sh: New file.
37327         * tests/test-mbrtowc-w32-3.sh: New file.
37328         * tests/test-mbrtowc-w32-4.sh: New file.
37329         * tests/test-mbrtowc-w32-5.sh: New file.
37330         * tests/test-mbrtowc-w32.c: New file.
37331         * modules/mbrtowc-tests (Files): Add them.
37332         (Makefile.am): Arrange to run these tests.
37333         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
37334         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
37336 2011-02-13  Bruno Haible  <bruno@clisp.org>
37338         mbrtowc: Work around native Windows bug.
37339         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
37340         guess when no suitable locale for testing was found.
37341         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
37343 2011-02-13  Bruno Haible  <bruno@clisp.org>
37345         mbsinit: Work around mingw bug.
37346         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
37347         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
37348         Windows.
37349         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
37351 2011-02-13  Bruno Haible  <bruno@clisp.org>
37353         mbsinit: Don't crash for a NULL argument.
37354         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
37355         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
37357 2011-02-13  Bruno Haible  <bruno@clisp.org>
37359         Don't interfere with a program's definition of __attribute__.
37360         * lib/stdio.in.h (__attribute__): Remove definition.
37361         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
37362         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
37363         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
37364         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
37365         * lib/string.in.h (__attribute__): Remove definition.
37366         Reported by Paul Eggert.
37368 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37370         stdlib: don't get in the way of non-GCC __attribute__
37371         See thread starting at
37372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
37373         Revert previous stdlib change, installing the following instead:
37374         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
37375         to get in the way of a non-GCC compiler that supports __attribute__.
37376         (_GL_ATTRIBUTE_RETURN): New macro.
37377         (_Exit): Use it instead of __attribute__.
37379 2011-02-12  Bruno Haible  <bruno@clisp.org>
37381         quotearg test: Avoid test failure on mingw.
37382         * tests/test-quotearg.sh: Convert the locale identifier from native
37383         Windows syntax to Unix syntax.
37385 2011-02-12  Bruno Haible  <bruno@clisp.org>
37387         setlocale: Prefer gnulib's override over libintl's override.
37388         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
37389         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
37390         GNULIB_defined_setlocale is set.
37392 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37394         stdlib: support non-GCC __attribute__
37396         Fix a serious and tricky problem encountered when attempting to
37397         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
37398         5.5, but it crashed due to memory corruption on Solaris 10 with
37399         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
37400         bits that are otherwise zero.  This tagging is optional inside
37401         Emacs but is preferred and is used when __attribute__ ((__aligned
37402         (8))) works, as it does with both recent-enough GCC and with Sun C
37403         5.11.  However, Sun C 5.11 is not GCC and does not #define
37404         __GNUC__ and __GNUC_MINOR__.
37406         When I added the getloadavg module to Emacs, it brought in
37407         stdlib.in.h, which contained this fragment:
37409            #ifndef __attribute__
37410            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
37411            #  define __attribute__(Spec)   /* empty */
37412            # endif
37413            #endif
37415         When files that include <stdlib.h> were compiled with Sun C 5.11,
37416         the above code disabled __attribute__ ((__aligned (8))), which
37417         caused variables to not be properly aligned, which eventually led
37418         to the pointer corruption mentioned above.  (This was a bit hard
37419         to diagnose, unfortunately.)
37421         Several "#define __attribute__(X) /* empty */" code snippets need
37422         to be eradicated from Gnulib to work with non-GCC compilers that
37423         support __attribute__.  The Autoconf way to do this is to test for
37424         each kind of attribute that we want support for, and selectively
37425         enable that in source code.
37427         Fix this problem just for stdlib.h, by adding a test for the
37428         __noreturn__ attribute, and change stdlib.in.h to use that test
37429         when needed.  This technique can be easily generalized to the
37430         other *.in.h files and attributes, and a similar technique can be
37431         used for *.h and *.c files.  This patch is enough to solve the
37432         problem for Emacs + getloadavg, and I thought I'd publish it for
37433         feedback before undertaking further, similar fixes in other
37434         modules.
37436         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
37437         because it's not needed for stdlib.h.  It merely substitutes the
37438         value directly into stdlib.h.  We may well need to #define it, or
37439         similar symbols, for other modules, but it's nice to also have an
37440         option to not #define it for applications like Emacs that do not
37441         need it.
37443         * lib/stdlib.in.h (__attribute__): Do not #define.
37444         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
37445         be defined only if the _Exit module is also used.
37446         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
37447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
37448         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
37449         platforms.
37450         * modules/_Exit (Files): Add m4/attribute.m4.
37451         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
37452         * m4/attribute.m4: New file.
37454 2011-02-12  Bruno Haible  <bruno@clisp.org>
37456         wcsrtombs: Work around bug on native Windows.
37457         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
37458         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
37459         instead of len.
37460         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
37462 2011-02-12  Bruno Haible  <bruno@clisp.org>
37464         mbsrtowcs: Work around bug on native Windows.
37465         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
37466         against mingw bug.
37467         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
37469 2011-02-12  Bruno Haible  <bruno@clisp.org>
37471         Avoid setlocale bugs in tests.
37472         * modules/btowc (Dependencies): Add setlocale.
37473         * modules/c-strcase (Dependencies): Likewise.
37474         * modules/mbmemcasecmp (Dependencies): Likewise.
37475         * modules/mbmemcasecoll (Dependencies): Likewise.
37476         * modules/mbrtowc (Dependencies): Likewise.
37477         * modules/mbscasecmp (Dependencies): Likewise.
37478         * modules/mbscasestr (Dependencies): Likewise.
37479         * modules/mbschr (Dependencies): Likewise.
37480         * modules/mbscspn (Dependencies): Likewise.
37481         * modules/mbsinit (Dependencies): Likewise.
37482         * modules/mbsncasecmp (Dependencies): Likewise.
37483         * modules/mbsnrtowcs (Dependencies): Likewise.
37484         * modules/mbspbrk (Dependencies): Likewise.
37485         * modules/mbspcasecmp (Dependencies): Likewise.
37486         * modules/mbsrchr (Dependencies): Likewise.
37487         * modules/mbsrtowcs (Dependencies): Likewise.
37488         * modules/mbsspn (Dependencies): Likewise.
37489         * modules/mbsstr (Dependencies): Likewise.
37490         * modules/nl_langinfo (Dependencies): Likewise.
37491         * modules/quotearg (Dependencies): Likewise.
37492         * modules/unicase/locale-language (Dependencies): Likewise.
37493         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
37494         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
37495         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
37496         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
37497         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
37498         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
37499         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
37500         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
37501         * modules/vasnprintf-posix (Dependencies): Likewise.
37502         * modules/wcrtomb (Dependencies): Likewise.
37503         * modules/wcsnrtombs (Dependencies): Likewise.
37504         * modules/wcsrtombs (Dependencies): Likewise.
37506 2011-02-12  Bruno Haible  <bruno@clisp.org>
37508         setlocale: Workaround native Windows bug.
37509         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
37510         succeeds but sets LC_CTYPE to "C", report a failure.
37511         * tests/test-setlocale2.sh: New file.
37512         * tests/test-setlocale2.c: New file.
37513         * modules/setlocale-tests (Files): Add the new files.
37514         (Makefile.am): Enable test-setlocale2.sh test.
37515         * doc/posix-functions/setlocale.texi: Mention workaround.
37517 2011-02-11  Bruno Haible  <bruno@clisp.org>
37519         Tests for module 'setlocale'.
37520         * modules/setlocale-tests: New file.
37521         * tests/test-setlocale1.sh: New file.
37522         * tests/test-setlocale1.c: New file.
37524         New module 'setlocale'.
37525         * lib/locale.in.h (setlocale): New declaration.
37526         * lib/setlocale.c: New file, based on
37527         gettext/gettext-runtime/intl/setlocale.c.
37528         * m4/setlocale.m4: New file.
37529         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
37530         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
37531         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
37532         REPLACE_SETLOCALE.
37533         * modules/setlocale: New file.
37534         * tests/test-locale-c++.cc: Test the declaration of setlocale.
37535         * doc/posix-functions/setlocale.texi: Mention the new module.
37537 2011-02-11  Bruno Haible  <bruno@clisp.org>
37539         Prepare for locale dependent tests on mingw.
37540         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
37541         because it has the wrong locale encoding.
37542         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
37543         French_France.1252 instead of "fr".
37544         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
37545         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
37546         because it has the wrong locale encoding.
37547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
37548         native Windows, try Turkish_Turkey.65001.
37549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
37550         Chinese_China.54936.
37552         Prepare for locale dependent tests on mingw.
37553         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
37554         differently.
37555         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
37556         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
37557         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37558         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37560 2011-02-11  Eric Blake  <eblake@redhat.com>
37562         strptime: avoid compiler warnings
37563         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
37564         compiler warnings about dead code.
37565         Reported by Daniel P. Berrange.
37567 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
37569         doc: update users.txt
37570         * users.txt: Add rcs.
37572 2011-02-10  John W. Eaton  <jwe@gnu.org>
37574         doc: update users.txt
37575         * users.txt: Add octave.
37577 2011-02-10  Jim Meyering  <meyering@redhat.com>
37579         doc: update users.txt
37580         * users.txt: Add iwhd.
37582 2011-02-09  Bruno Haible  <bruno@clisp.org>
37584         gnulib-tool: Make copyright notice adjustment more robust.
37585         * gnulib-tool (func_import): In sed_transform_main_lib_file,
37586         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
37587         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
37588         License".
37589         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
37591 2011-02-06  Bruno Haible  <bruno@clisp.org>
37593         New module 'towctrans'.
37594         * modules/towctrans: New file.
37595         * lib/wctype.in.h (towctrans): New declaration.
37596         * lib/towctrans.c: New file.
37597         * lib/towctrans-impl.h: New file.
37598         * m4/towctrans.m4: New file.
37599         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
37600         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
37601         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
37602         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
37603         * doc/posix-functions/towctrans.texi: Mention the new module.
37605 2011-02-06  Bruno Haible  <bruno@clisp.org>
37607         New module 'wctrans'.
37608         * modules/wctrans: New file.
37609         * lib/wctype.in.h (wctrans): New declaration.
37610         * lib/wctrans.c: New file.
37611         * lib/wctrans-impl.h: New file.
37612         * m4/wctrans.m4: New file.
37613         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
37614         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
37615         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
37616         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
37617         * doc/posix-functions/wctrans.texi: Mention the new module.
37619 2011-02-06  Bruno Haible  <bruno@clisp.org>
37621         New module 'iswctype'.
37622         * modules/iswctype: New file.
37623         * lib/wctype.in.h (iswctype): New declaration.
37624         * lib/iswctype.c: New file.
37625         * lib/iswctype-impl.h: New file.
37626         * m4/iswctype.m4: New file.
37627         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
37628         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
37629         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
37630         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
37631         * doc/posix-functions/iswctype.texi: Mention the new module and the
37632         HP-UX 11.00 problem.
37634 2011-02-06  Bruno Haible  <bruno@clisp.org>
37636         New module 'wctype'.
37637         * modules/wctype: Change to represent the wctype() substitute.
37638         * lib/wctype.in.h (wctype): New declaration.
37639         * lib/wctype.c: New file.
37640         * lib/wctype-impl.h: New file.
37641         * m4/wctype.m4: New file.
37642         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
37643         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
37644         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
37645         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
37646         * doc/posix-functions/wctype.texi: Mention the new module and the
37647         HP-UX 11.00 problem.
37649 2011-02-06  Bruno Haible  <bruno@clisp.org>
37651         wctype-h: Ensure wctype_t and wctrans_t are defined.
37652         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
37653         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
37654         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
37655         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
37656         HAVE_WCTRANS_T.
37657         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
37659 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
37661         flock: fix license typo
37663         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
37664         omitted.
37666 2011-02-08  Bruno Haible  <bruno@clisp.org>
37668         Split large sed scripts, for HP-UX sed.
37669         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
37670         to avoid HP-UX limit of 99 commands, in the near future.
37671         * modules/stdlib (Makefile.am): Likewise.
37672         * modules/unistd (Makefile.am): Likewise.
37673         * modules/wchar (Makefile.am): Likewise.
37674         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37675         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
37676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
37678 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
37679             Bruno Haible  <bruno@clisp.org>
37681         stdlib: improve random_r modularization
37682         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
37683         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
37684         you also need the random_r module to get this material right.
37685         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
37686         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
37687         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
37689 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
37691         stdlib: don't depend on stdint
37692         * lib/stdlib.in.h: Don't include <stdint.h> merely because
37693         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
37694         be independent of whether stdint.h is needed.
37695         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
37696         here, instead of ...
37697         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
37698         struct random_data should be using the random_r module, not just
37699         the stdlib module (which wouldn't make sense: what package needs
37700         just struct random_data without also needing random_r?).
37701         * modules/stdlib (Depends-on): Remove stdint.
37703         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
37704         See the thread rooted at
37705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
37706         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
37707         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
37708         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
37709         __VMS)); previously it was always included (via fcntl--.h).
37710         (getloadavg): Do not use c_strtod.  Instead, approximate it by
37711         hand; this is good enough for load averages.  Also, do not use
37712         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
37713         flags directly if available and don't bother otherwise.  (Packages
37714         that need the extra reliability should use the modules that define
37715         these flags on older platforms that lack them.)
37716         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
37717         fcntl-safer.
37719 2011-02-08  Jim Meyering  <meyering@redhat.com>
37721         di-set.h, ino-map.h: add multiple-inclusion guard
37722         Technically, the guard is required only for ino-map.h, due to its
37723         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
37724         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
37725         * lib/ino-map.h: Likewise.
37727 2011-02-06  Bruno Haible  <bruno@clisp.org>
37729         iswblank: Ensure declaration on glibc systems.
37730         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
37731         * modules/iswblank (Dependencies): Add 'extensions'.
37732         * doc/posix-functions/iswblank.texi: Document the glibc problem.
37734 2011-02-06  Bruno Haible  <bruno@clisp.org>
37736         New module 'iswblank'.
37737         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
37738         * modules/iswblank: New file.
37739         * modules/wctype-h (Files): Remove lib/iswblank.c.
37740         (Makefile.am): Substitute GNULIB_ISWBLANK.
37741         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
37742         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
37743         (gl_WCTYPE_H_DEFAULTS): New macro.
37744         (gl_WCTYPE_H): Require it. Remove iswblank related code.
37745         * modules/iswblank-tests: New file.
37746         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
37747         * tests/test-wctype-h.c (main): Remove iswblank tests.
37748         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
37749         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
37750         of 'wctype-h'.
37751         * NEWS: Mention the change.
37752         * modules/mbchar (Depends-on): Add iswblank.
37754 2011-02-08  Bruno Haible  <bruno@clisp.org>
37756         di-set tests: Refactor.
37757         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
37758         unnecessary includes.
37759         (ASSERT): Remove macro.
37760         (main): Make C90 compliant by avoiding variable declaration after
37761         statement.
37762         * modules/di-set-tests (Files): Add tests/macros.h.
37764 2011-02-08  Bruno Haible  <bruno@clisp.org>
37766         ino-map tests: Refactor.
37767         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
37768         unnecessary includes.
37769         (ASSERT): Remove macro.
37770         (main): Make C90 compliant by avoiding variable declaration after
37771         statement.
37772         * modules/ino-map-tests (Files): Add tests/macros.h.
37774 2011-02-08  Jim Meyering  <meyering@redhat.com>
37776         di-set: add "const" to a cast
37777         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
37778         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
37780 2011-02-06  Bruno Haible  <bruno@clisp.org>
37782         Rename module 'wctype' to 'wctype-h'.
37783         * modules/wctype-h: Renamed from modules/wctype.
37784         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
37785         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
37786         (Files, Depends-on, Makefile.am): Update.
37787         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
37788         (Files, Makefile.am): Update.
37789         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
37790         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
37791         * doc/posix-headers/wctype.texi: Update.
37792         * doc/posix-functions/iswalnum.texi: Update.
37793         * doc/posix-functions/iswalpha.texi: Update.
37794         * doc/posix-functions/iswblank.texi: Update.
37795         * doc/posix-functions/iswcntrl.texi: Update.
37796         * doc/posix-functions/iswdigit.texi: Update.
37797         * doc/posix-functions/iswgraph.texi: Update.
37798         * doc/posix-functions/iswlower.texi: Update.
37799         * doc/posix-functions/iswprint.texi: Update.
37800         * doc/posix-functions/iswpunct.texi: Update.
37801         * doc/posix-functions/iswspace.texi: Update.
37802         * doc/posix-functions/iswupper.texi: Update.
37803         * doc/posix-functions/iswxdigit.texi: Update.
37804         * doc/posix-functions/towlower.texi: Update.
37805         * doc/posix-functions/towupper.texi: Update.
37806         * NEWS: Mention the change.
37807         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
37808         * modules/mbchar (Dependencies): Likewise.
37809         * modules/mbswidth (Dependencies): Likewise.
37810         * modules/quotearg (Dependencies): Likewise.
37811         * modules/regex (Dependencies): Likewise.
37812         * modules/wcscasecmp (Dependencies): Likewise.
37813         * modules/wcsncasecmp (Dependencies): Likewise.
37814         * modules/wcwidth (Dependencies): Likewise.
37816 2011-02-06  Bruno Haible  <bruno@clisp.org>
37818         New module 'wcswidth'.
37819         * modules/wcswidth: New file.
37820         * lib/wchar.in.h (wcswidth): New declaration.
37821         * lib/wcswidth.c: New file.
37822         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
37823         * m4/wcswidth.m4: New file.
37824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
37825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
37826         REPLACE_WCSWIDTH.
37827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
37828         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
37829         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
37830         * doc/posix-functions/wcswidth.texi: Mention the new module.
37832 2011-02-06  Bruno Haible  <bruno@clisp.org>
37834         New module 'wcstok'.
37835         * modules/wcstok: New file.
37836         * lib/wchar.in.h (wcstok): New declaration.
37837         * lib/wcstok.c: New file.
37838         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
37839         * m4/wcstok.m4: New file.
37840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
37841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
37842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
37843         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
37844         * doc/posix-functions/wcstok.texi: Mention the new module.
37846 2011-02-06  Bruno Haible  <bruno@clisp.org>
37848         New module 'wcsstr'.
37849         * modules/wcsstr: New file.
37850         * lib/wchar.in.h (wcsstr): New declaration.
37851         * lib/wcsstr.c: New file.
37852         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
37853         * m4/wcsstr.m4: New file.
37854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
37855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
37856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
37857         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
37858         * doc/posix-functions/wcsstr.texi: Mention the new module.
37860 2011-02-06  Bruno Haible  <bruno@clisp.org>
37862         New module 'wcspbrk'.
37863         * modules/wcspbrk: New file.
37864         * lib/wchar.in.h (wcspbrk): New declaration.
37865         * lib/wcspbrk.c: New file.
37866         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
37867         * m4/wcspbrk.m4: New file.
37868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
37869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
37870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
37871         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
37872         * doc/posix-functions/wcspbrk.texi: Mention the new module.
37874 2011-02-06  Bruno Haible  <bruno@clisp.org>
37876         New module 'wcsspn'.
37877         * modules/wcsspn: New file.
37878         * lib/wchar.in.h (wcsspn): New declaration.
37879         * lib/wcsspn.c: New file.
37880         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
37881         * m4/wcsspn.m4: New file.
37882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
37883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
37884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
37885         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
37886         * doc/posix-functions/wcsspn.texi: Mention the new module.
37888 2011-02-06  Bruno Haible  <bruno@clisp.org>
37890         New module 'wcscspn'.
37891         * modules/wcscspn: New file.
37892         * lib/wchar.in.h (wcscspn): New declaration.
37893         * lib/wcscspn.c: New file.
37894         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
37895         * m4/wcscspn.m4: New file.
37896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
37897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
37898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
37899         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
37900         * doc/posix-functions/wcscspn.texi: Mention the new module.
37902 2011-02-06  Bruno Haible  <bruno@clisp.org>
37904         New module 'wcsrchr'.
37905         * modules/wcsrchr: New file.
37906         * lib/wchar.in.h (wcsrchr): New declaration.
37907         * lib/wcsrchr.c: New file.
37908         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
37909         * m4/wcsrchr.m4: New file.
37910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
37911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
37912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
37913         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
37914         * doc/posix-functions/wcsrchr.texi: Mention the new module.
37916 2011-02-06  Bruno Haible  <bruno@clisp.org>
37918         New module 'wcschr'.
37919         * modules/wcschr: New file.
37920         * lib/wchar.in.h (wcschr): New declaration.
37921         * lib/wcschr.c: New file.
37922         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
37923         * m4/wcschr.m4: New file.
37924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
37925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
37926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
37927         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
37928         * doc/posix-functions/wcschr.texi: Mention the new module.
37930 2011-02-06  Bruno Haible  <bruno@clisp.org>
37932         New module 'wcsdup'.
37933         * modules/wcsdup: New file.
37934         * lib/wchar.in.h (wcsdup): New declaration.
37935         * lib/wcsdup.c: New file.
37936         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
37937         * m4/wcsdup.m4: New file.
37938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
37939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
37940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
37941         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
37942         * doc/posix-functions/wcsdup.texi: Mention the new module.
37944 2011-02-06  Bruno Haible  <bruno@clisp.org>
37946         New module 'wcsxfrm'.
37947         * modules/wcsxfrm: New file.
37948         * lib/wchar.in.h (wcsxfrm): New declaration.
37949         * lib/wcsxfrm.c: New file.
37950         * lib/wcsxfrm-impl.h: New file.
37951         * m4/wcsxfrm.m4: New file.
37952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
37953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
37954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
37955         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
37956         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
37958 2011-02-06  Bruno Haible  <bruno@clisp.org>
37960         New module 'wcscoll'.
37961         * modules/wcscoll: New file.
37962         * lib/wchar.in.h (wcscoll): New declaration.
37963         * lib/wcscoll.c: New file.
37964         * lib/wcscoll-impl.h: New file.
37965         * m4/wcscoll.m4: New file.
37966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
37967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
37968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
37969         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
37970         * doc/posix-functions/wcscoll.texi: Mention the new module.
37972 2011-02-06  Bruno Haible  <bruno@clisp.org>
37974         New module 'wcsncasecmp'.
37975         * modules/wcsncasecmp: New file.
37976         * lib/wchar.in.h (wcsncasecmp): New declaration.
37977         * lib/wcsncasecmp.c: New file.
37978         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
37979         * m4/wcsncasecmp.m4: New file.
37980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
37981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
37982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
37983         HAVE_WCSNCASECMP.
37984         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
37985         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
37987 2011-02-06  Bruno Haible  <bruno@clisp.org>
37989         New module 'wcscasecmp'.
37990         * modules/wcscasecmp: New file.
37991         * lib/wchar.in.h (wcscasecmp): New declaration.
37992         * lib/wcscasecmp.c: New file.
37993         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
37994         * m4/wcscasecmp.m4: New file.
37995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
37996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
37997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
37998         HAVE_WCSCASECMP.
37999         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
38000         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
38002 2011-02-05  Bruno Haible  <bruno@clisp.org>
38004         New module 'wcsncmp'.
38005         * modules/wcsncmp: New file.
38006         * lib/wchar.in.h (wcsncmp): New declaration.
38007         * lib/wcsncmp.c: New file.
38008         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
38009         * m4/wcsncmp.m4: New file.
38010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
38011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
38012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
38013         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
38014         * doc/posix-functions/wcsncmp.texi: Mention the new module.
38016 2011-02-05  Bruno Haible  <bruno@clisp.org>
38018         New module 'wcscmp'.
38019         * modules/wcscmp: New file.
38020         * lib/wchar.in.h (wcscmp): New declaration.
38021         * lib/wcscmp.c: New file.
38022         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
38023         * m4/wcscmp.m4: New file.
38024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
38025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
38026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
38027         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
38028         * doc/posix-functions/wcscmp.texi: Mention the new module.
38030 2011-02-05  Bruno Haible  <bruno@clisp.org>
38032         New module 'wcsncat'.
38033         * modules/wcsncat: New file.
38034         * lib/wchar.in.h (wcsncat): New declaration.
38035         * lib/wcsncat.c: New file.
38036         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
38037         * m4/wcsncat.m4: New file.
38038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
38039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
38040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
38041         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
38042         * doc/posix-functions/wcsncat.texi: Mention the new module.
38044 2011-02-05  Bruno Haible  <bruno@clisp.org>
38046         New module 'wcscat'.
38047         * modules/wcscat: New file.
38048         * lib/wchar.in.h (wcscat): New declaration.
38049         * lib/wcscat.c: New file.
38050         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
38051         * m4/wcscat.m4: New file.
38052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
38053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
38054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
38055         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
38056         * doc/posix-functions/wcscat.texi: Mention the new module.
38058 2011-02-05  Bruno Haible  <bruno@clisp.org>
38060         New module 'wcpncpy'.
38061         * modules/wcpncpy: New file.
38062         * lib/wchar.in.h (wcpncpy): New declaration.
38063         * lib/wcpncpy.c: New file.
38064         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
38065         * m4/wcpncpy.m4: New file.
38066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
38067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
38068         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
38069         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
38070         * doc/posix-functions/wcpncpy.texi: Mention the new module.
38072 2011-02-05  Bruno Haible  <bruno@clisp.org>
38074         New module 'wcsncpy'.
38075         * modules/wcsncpy: New file.
38076         * lib/wchar.in.h (wcsncpy): New declaration.
38077         * lib/wcsncpy.c: New file.
38078         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
38079         * m4/wcsncpy.m4: New file.
38080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
38081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
38082         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
38083         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
38084         * doc/posix-functions/wcsncpy.texi: Mention the new module.
38086 2011-02-05  Bruno Haible  <bruno@clisp.org>
38088         New module 'wcpcpy'.
38089         * modules/wcpcpy: New file.
38090         * lib/wchar.in.h (wcpcpy): New declaration.
38091         * lib/wcpcpy.c: New file.
38092         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
38093         * m4/wcpcpy.m4: New file.
38094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
38095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
38096         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
38097         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
38098         * doc/posix-functions/wcpcpy.texi: Mention the new module.
38100 2011-02-05  Bruno Haible  <bruno@clisp.org>
38102         New module 'wcscpy'.
38103         * modules/wcscpy: New file.
38104         * lib/wchar.in.h (wcscpy): New declaration.
38105         * lib/wcscpy.c: New file.
38106         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
38107         * m4/wcscpy.m4: New file.
38108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
38109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
38110         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
38111         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
38112         * doc/posix-functions/wcscpy.texi: Mention the new module.
38114 2011-02-05  Bruno Haible  <bruno@clisp.org>
38116         New module 'wcsnlen'.
38117         * modules/wcsnlen: New file.
38118         * lib/wchar.in.h (wcsnlen): New declaration.
38119         * lib/wcsnlen.c: New file.
38120         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
38121         * m4/wcsnlen.m4: New file.
38122         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
38123         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
38124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
38125         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
38126         * doc/posix-functions/wcsnlen.texi: Mention the new module.
38128 2011-02-05  Bruno Haible  <bruno@clisp.org>
38130         New module 'wcslen'.
38131         * modules/wcslen: New file.
38132         * lib/wchar.in.h (wcslen): New declaration.
38133         * lib/wcslen.c: New file.
38134         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
38135         * m4/wcslen.m4: New file.
38136         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
38137         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
38138         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
38139         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
38140         * doc/posix-functions/wcslen.texi: Mention the new module.
38142 2011-02-05  Bruno Haible  <bruno@clisp.org>
38144         New module 'wmemset'.
38145         * modules/wmemset: New file.
38146         * lib/wchar.in.h (wmemset): New declaration.
38147         * lib/wmemset.c: New file.
38148         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
38149         * m4/wmemset.m4: New file.
38150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
38151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
38152         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
38153         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
38154         * doc/posix-functions/wmemset.texi: Mention the new module.
38156 2011-02-05  Bruno Haible  <bruno@clisp.org>
38158         New module 'wmemmove'.
38159         * modules/wmemmove: New file.
38160         * lib/wchar.in.h (wmemmove): New declaration.
38161         * lib/wmemmove.c: New file.
38162         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
38163         * m4/wmemmove.m4: New file.
38164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
38165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
38166         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
38167         HAVE_WMEMMOVE.
38168         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
38169         * doc/posix-functions/wmemmove.texi: Mention the new module.
38171 2011-02-05  Bruno Haible  <bruno@clisp.org>
38173         New module 'wmemcpy'.
38174         * modules/wmemcpy: New file.
38175         * lib/wchar.in.h (wmemcpy): New declaration.
38176         * lib/wmemcpy.c: New file.
38177         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
38178         * m4/wmemcpy.m4: New file.
38179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
38180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
38181         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
38182         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
38183         * doc/posix-functions/wmemcpy.texi: Mention the new module.
38185 2011-02-05  Bruno Haible  <bruno@clisp.org>
38187         New module 'wmemcmp'.
38188         * modules/wmemcmp: New file.
38189         * lib/wchar.in.h (wmemcmp): New declaration.
38190         * lib/wmemcmp.c: New file.
38191         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
38192         * m4/wmemcmp.m4: New file.
38193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
38194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
38195         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
38196         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
38197         * doc/posix-functions/wmemcmp.texi: Mention the new module.
38199 2011-02-07  Jim Meyering  <meyering@redhat.com>
38201         di-set, ino-map: new modules, from coreutils
38202         * lib/di-set.c: New file.
38203         * lib/di-set.h: Likewise.
38204         * lib/ino-map.c: Likewise.
38205         * lib/ino-map.h: Likewise.
38206         * modules/di-set: Likewise.
38207         * modules/di-set-tests: Likewise.
38208         * modules/ino-map: Likewise.
38209         * modules/ino-map-tests: Likewise.
38210         * tests/test-di-set.c: Likewise.
38211         * tests/test-ino-map.c: Likewise.
38213 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
38215         getloadavg: merge minor changes from Emacs
38217         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
38218         (getloadavg): Use memset, not bzero.
38220         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
38221         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
38222         clash (bug#86).
38224 2010-11-14  Bruno Haible  <bruno@clisp.org>
38226         Allow multiple gnulib generated replacements to coexist.
38227         * lib/getopt.in.h (struct option): Avoid identical redefinition.
38228         * lib/inttypes.in.h (imaxdiv_t): Likewise.
38229         * lib/langinfo.in.h (nl_item): Likewise.
38230         * lib/math.in.h (_NaN, NAN): Likewise.
38231         * lib/netdb.in.h (struct addrinfo): Likewise.
38232         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
38233         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
38234         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
38235         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
38236         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
38237         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
38238         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
38239         pthread_mutexattr_init, pthread_mutexattr_settype,
38240         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
38241         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
38242         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
38243         pthread_spin_trylock, pthread_spin_unlock): Likewise.
38244         * lib/sched.in.h (struct sched_param): Likewise.
38245         * lib/se-selinux.in.h (security_class_t, security_context_t,
38246         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
38247         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
38248         lsetfilecon, fsetfilecon, security_check_context,
38249         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
38250         Likewise.
38251         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
38252         Likewise.
38253         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
38254         _gl_function_taking_int_returning_void_t, union sigval,
38255         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
38256         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
38257         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
38258         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
38259         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
38260         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
38261         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
38262         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
38263         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
38264         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
38265         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
38266         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
38267         socklen_t, rpl_fd_isset): Likewise.
38268         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
38269         * lib/sys_time.in.h (struct timeval): Likewise.
38270         * lib/sys_times.in.h (struct tms): Likewise.
38271         * lib/sys_utsname.in.h (struct utsname):
38272         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
38273         * lib/unistd.in.h (getpagesize): Likewise.
38274         * lib/wchar.in.h (mbstate_t): Likewise.
38275         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38276         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
38277         towlower, towupper): Likewise.
38278         Reported by Sam Steingold <sds@gnu.org>.
38280 2011-02-05  Eric Blake  <eblake@redhat.com>
38282         unsetenv: work around Haiku issues
38283         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
38284         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
38286 2010-12-30  Bruce Korb  <bkorb@gnu.org>
38288         libposix: avoid calling error() within libposix
38289         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
38290         is defined.
38292 2011-02-05  Eric Blake  <eblake@redhat.com>
38294         strerror_r-posix: port to cygwin
38295         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
38296         implementation.
38297         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
38298         * tests/test-strerror_r.c (main): Fix test.
38299         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38300         issue.
38302 2011-02-05  Bruno Haible  <bruno@clisp.org>
38304         New module 'wmemchr'.
38305         * modules/wmemchr: New file.
38306         * lib/wchar.in.h (wmemchr): New declaration.
38307         * lib/wmemchr.c: New file.
38308         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
38309         * m4/wmemchr.m4: New file.
38310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
38311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
38312         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
38313         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
38314         * doc/posix-functions/wmemchr.texi: Mention the new module.
38316 2011-02-04  Eric Blake  <eblake@redhat.com>
38318         fdopendir: detect FreeBSD bug
38319         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
38320         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
38322 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38324         stdbool: do not define HAVE_STDBOOL_H
38325         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
38326         AC_HEADER_STDBOOL.  All uses changed.  Do not define
38327         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
38328         imported from the latest Autoconf git.  It was motivated by Emacs,
38329         which uses gnulib but does not need HAVE_STDBOOL_H.
38331 2011-02-04  Bruno Haible  <bruno@clisp.org>
38333         wcsnrtombs: Prepare for new module wwcsnrtombs.
38334         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
38335         * lib/wcsnrtombs.c: Include it.
38336         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
38338         wcsrtombs: Prepare for new module wwcsrtombs.
38339         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
38340         * lib/wcsrtombs.c: Include it.
38341         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
38343         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
38344         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
38345         * lib/mbsnrtowcs.c: Include it.
38346         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
38348         mbsrtowcs: Prepare for new module mbsrtowwcs.
38349         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
38350         * lib/mbsrtowcs.c: Include it.
38351         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
38353 2011-02-04  Bruno Haible  <bruno@clisp.org>
38355         vasnprintf: Reduce use of malloc for small format strings.
38356         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
38357         (arguments): Add room for the first 7 arguments.
38358         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
38359         (char_directives, u8_directives, u16_directives, u32_directives): Add
38360         room for the first 7 directives.
38361         * lib/printf-parse.c: Include <string.h>.
38362         (PRINTF_PARSE): Change memory handling code so that it uses the first
38363         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
38364         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
38365         Reported by Pádraig Brady <P@draigbrady.com>.
38367 2011-01-31  Eric Blake  <eblake@redhat.com>
38369         dup2: work around Haiku bug
38370         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
38371         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
38372         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38373         * tests/test-dup2.c (main): Enhance test.
38375 2011-01-31  Simon Josefsson  <simon@josefsson.org>
38377         doc: off_t is not available in eglibc 2.11.2 stdio.h.
38378         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
38379         declared by eglibc 2.11.2.
38380         * lib/stdio.in.h: Likewise.
38382 2011-01-31  Eric Blake  <eblake@redhat.com>
38384         ignore-value: add missing test dependency
38385         * tests/test-ignore-value.c: Revert previous change; stdio.h
38386         provides off_t.
38387         * modules/ignore-value-tests (Depends-on): Add missing dependency.
38389 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
38391         mktime: clarify long_int width checking
38392         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
38393         the top level, to make it clearer that the assumption about
38394         long_int width is being checked.  See
38395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
38397 2011-01-30  Simon Josefsson  <simon@josefsson.org>
38399         ignore-value: Fix self-test.
38400         * tests/test-ignore-value.c: Include sys/types.h for off_t.
38402 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38404         TYPE_MAXIMUM: avoid theoretically undefined behavior
38405         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
38406         negative number, which the C Standard says has undefined behavior.
38407         In practice this is not a problem, but might as well do it by the book.
38408         Reported by Rich Felker and Eric Blake; see
38409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
38410         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
38411         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38413         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
38414         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38415         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
38417         mktime: #undef mktime before #defining it
38418         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
38420         mktime: systematically normalize tm_isdst comparisons
38421         * lib/mktime.c (isdst_differ): New function.
38422         (__mktime_internal): Use it systematically for all isdst comparisons.
38423         This completes the fix for libc BZ #6723, and removes the need for
38424         normalizing tm_isdst.  See
38425         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
38426         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
38428         mktime: fix some integer overflow issues and sidestep the rest
38430         This was prompted by a bug report by Benjamin Lindner for MinGW
38431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
38432         His bug is due to signed integer overflow (0 - INT_MIN), and I
38433         I scanned through mktime.c looking for other integer overflow
38434         problems, fixing all the bugs I found.
38436         Although the C Standard says the resulting code is still not safe
38437         in the presence of integer overflow, in practice it should be good
38438         enough for all real-world two's-complement implementations, except
38439         for debugging environments that deliberately trap on integer
38440         overflow (e.g., gcc -ftrapv).
38442         * lib/mktime.c (WRAPV): New macro.
38443         (SHR): Also check that long_int and time_t shift right in the
38444         usual way, before using the fast-but-unportable method.
38445         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
38446         used.  The code already assumed two's complement, so there's
38447         no need to test for alternatives.  All uses removed.
38448         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
38449         the C standard.  Problem reported by Rich Felker in
38450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
38451         (twos_complement_arithmetic): Also check long_int and time_t.
38452         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
38453         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
38454         (__mktime_internal): Avoid integer overflow with unary subtraction
38455         in two instances where -1 - X is an adequate replacement for -X,
38456         since the calculations are approximate.
38458 2011-01-29  Eric Blake  <eblake@redhat.com>
38460         mktime: avoid infinite loop
38461         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
38462         type; behavior is still undefined but portable to all known targets.
38463         Reported by Rich Felker.
38465 2011-01-29  Simon Josefsson  <simon@josefsson.org>
38467         rename, unlink, same-inode: Relicense.
38468         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
38469         * modules/unlink (License): Likewise.
38470         * modules/same-inode (License): Likewise.
38472 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38474         mktime: avoid problems on NetBSD 5 / i386
38475         * lib/mktime.c (long_int): New type.  This works around a problem
38476         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
38477         but time_t is 64 bits, and where I expect the existing code is
38478         wrong in some cases.
38479         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
38480         (ydhms_diff): Bring back the compile-time check for wide-enough
38481         year and yday.
38483         mktime: fix misspelling in comment
38484         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
38485         This merges all recent glibc changes of importance.
38487 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38489         move-if-change: cope with concurrent mv of identical file.
38490         * build-aux/move-if-change (CMPPROG): Accept environment
38491         variable as an override for `cmp'.
38492         (usage): Document CMPPROG.
38493         Adjust comparison to drop stdout.  Cope with failure of mv if
38494         the target file exists and is identical to the source, for
38495         parallel builds.
38496         Report from H.J. Lu against binutils in PR binutils/12283.
38498 2011-01-28  Bruce Korb  <bkorb@gnu.org>
38500         * users.txt: Mention sharutils.
38502 2011-01-28  Simon Josefsson  <simon@josefsson.org>
38504         * users.txt: Mention OATH Toolkit.
38506 2011-01-27  Bruno Haible  <bruno@clisp.org>
38508         Prepare for supporting FreeBSD 10.
38509         * build-aux/config.libpath: Remove handling of freebsd1*.
38511 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
38513         Prepare for supporting FreeBSD 10.
38514         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
38515         match FreeBSD 10.0.
38517 2011-01-27  Bruno Haible  <bruno@clisp.org>
38519         vma-iter, get-rusage-as: Add OpenBSD support.
38520         * modules/vma-iter (configure.ac): Test for mquery.
38521         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
38522         * lib/vma-iter.c: Include <sys/mman.h>.
38523         (vma_iterate): Add an implementation based on mquery().
38524         * lib/resource-ext.h (get_rusage_as): Update comments.
38525         * lib/get-rusage-as.c: Likewise.
38526         * lib/get-rusage-data.c: Likewise.
38528 2011-01-26  Karl Berry  <karl@gnu.org>
38530         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
38531         variables to make it easier to override the makeinfo program used.
38533 2011-01-26  Eric Blake  <eblake@redhat.com>
38535         fcntl: work around Haiku F_DUPFD bugs
38536         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
38537         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
38538         cloexec bit on duplication.
38539         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
38541 2011-01-26  Bruno Haible  <bruno@clisp.org>
38543         Enable memory leak tests on AIX.
38544         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
38545         * tests/test-fprintf-posix3.c (main): Likewise.
38547 2011-01-26  Bruno Haible  <bruno@clisp.org>
38549         Tests for module 'get-rusage-data'.
38550         * modules/get-rusage-data-tests: New file.
38551         * tests/test-get-rusage-data.c: New file.
38553         New module 'get-rusage-data'.
38554         * lib/resource-ext.h (get_rusage_data): New declaration.
38555         * lib/get-rusage-data.c: New file.
38556         * modules/get-rusage-data: New file.
38558 2011-01-25  Bruno Haible  <bruno@clisp.org>
38560         get-rusage-as: Allow for easier testing.
38561         * lib/resource-ext.h (get_rusage_as): Add comment.
38562         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
38563         (main): New function for interactive testing.
38565 2011-01-25  Bruno Haible  <bruno@clisp.org>
38567         vma-iter: Treat Haiku like BeOS.
38568         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
38569         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
38571 2011-01-25  Eric Blake  <eblake@redhat.com>
38573         c-stack: fix regression on cygwin when libsigsegv is present
38574         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
38576 2011-01-24  Bruno Haible  <bruno@clisp.org>
38578         vma-iter: Avoid empty intervals.
38579         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
38580         on an empty interval.
38582 2011-01-24  Jim Meyering  <meyering@redhat.com>
38584         u64: remove unnecessary #include
38585         * lib/u64.h: Don't include <stddef.h>.  It was not used.
38587 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38589         Allow the user to avoid the HAVE_RAW_DECL_* macros.
38590         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
38592 2011-01-23  Bruno Haible  <bruno@clisp.org>
38594         New module 'vma-iter'.
38595         * lib/vma-iter.h: New file.
38596         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
38597         * modules/vma-iter: New file.
38598         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
38599         for get_rusage_as_via_iterator.
38600         (vma_iterate_callback): New function.
38601         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
38602         * modules/get-rusage-as (Depends-on): Add vma-iter.
38604 2011-01-23  Bruno Haible  <bruno@clisp.org>
38606         uninorm: Tweak includes.
38607         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
38608         Reported by Jim Meyering.
38610 2011-01-23  Bruno Haible  <bruno@clisp.org>
38612         get-rusage-as: Improve on NetBSD.
38613         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
38614         /proc, like on FreeBSD.
38616 2011-01-23  Jim Meyering  <meyering@redhat.com>
38618         xreadlink.h: remove unnecessary #include
38619         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
38621         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
38622         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
38624 2011-01-23  Bruno Haible  <bruno@clisp.org>
38626         get-rusage-as: Fix bug.
38627         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
38628         original limit when aborting the first loop.
38630 2011-01-23  Bruno Haible  <bruno@clisp.org>
38632         wctype: Ensure valid C syntax.
38633         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
38634         unconditionally, instead of gl_NEXT_HEADERS conditionally.
38636 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38638         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
38639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
38640         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
38641         as they are needed only for configure's test case.
38642         This removes two unnecessary symbols from config.h.
38644         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
38645         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
38646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
38647         AC_CHECK_HEADERS_ONCE on a header that we also invoke
38648         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
38649         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
38650         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
38651         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
38652         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38653         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38654         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38656         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38657         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38658         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
38659         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38660         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
38661         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
38663 2011-01-21  Eric Blake  <eblake@redhat.com>
38665         maintainer-makefile: work with older git for submodule check
38666         * top/maint.mk (public-submodule-commit): Rewrite to avoid
38667         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
38668         Reported by Matthias Bolte.
38670         bootstrap: minor portability fixes
38671         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
38672         (usage): Omit leading capital and trailing . on help phrases, per
38673         GNU Coding Standards.
38674         (check_versions, top level): Prefix messages with script name.
38676 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
38678         bootstrap: support --no-git option
38679         * build-aux/bootstrap: Add --no-git option, to be used when
38680         --gnulib-srcdir points to the exact desired checkout.
38682 2011-01-21  Eric Blake  <eblake@redhat.com>
38684         strerror_r-posix: work with glibc 2.13
38685         * lib/strerror_r.c (strerror_r): Fix return type.
38687 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38688             Bruno Haible  <bruno@clisp.org>
38690         uN_strstr: New unit tests.
38691         * modules/unistr/u8-strstr-tests: New file.
38692         * modules/unistr/u16-strstr-tests: New file.
38693         * modules/unistr/u32-strstr-tests: New file.
38694         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
38695         * tests/unistr/test-u8-strstr.c: New file.
38696         * tests/unistr/test-u16-strstr.c: New file.
38697         * tests/unistr/test-u32-strstr.c: New file.
38699 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38700             Bruno Haible  <bruno@clisp.org>
38702         Make uN_strstr functions O(n) worst-case.
38703         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
38704         16-bit and 32-bit unit cases, use the unibyte algorithm from
38705         lib/mbsstr.c.
38706         * lib/unistr/u8-strstr.c: Include <string.h>.
38707         (UNIT_IS_UINT8_T): New macro.
38708         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
38709         (U_STRLEN, U_STRNLEN): New macros.
38710         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
38711         (U_STRLEN, U_STRNLEN): New macros.
38712         * modules/unistr/u8-strstr (Depends-on): Add strstr.
38713         (configure.ac): Update required libunistring version.
38714         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
38715         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
38716         malloca.
38717         (configure.ac): Update required libunistring version.
38718         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
38719         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
38720         malloca.
38721         (configure.ac): Update required libunistring version.
38723 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38724             Bruno Haible  <bruno@clisp.org>
38726         Prepare for faster uN_strstr functions.
38727         * lib/str-kmp.h: Support definable UNITs.
38728         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
38729         needle_len argument.
38730         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
38731         * lib/mbscasestr.c (mbscasestr): Likewise.
38733 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38735         malloca-tests: make faster by unsetting MALLOC_PERTURB_
38736         * tests/test-malloca.c (main): Unset the environment variable
38737         to greatly speed up the test.
38738         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
38739         * modules/malloca-tests: Depend on unsetenv.
38741 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38743         ignore-value: remove stdint dependency
38744         * lib/ignore-value.h: Remove <stdint.h>
38745         * modules/ignore-value: Remove stdint dependency.
38747 2011-01-21  Jim Meyering  <meyering@redhat.com>
38749         maint.mk: adjust variable name to be consistent with other gl_ vars
38750         * top/maint.mk (gl_public_submodule_commit): Rename the variable
38751         to be lower case.
38753 2011-01-20  Jim Meyering  <meyering@redhat.com>
38755         maint.mk: make "check" depend on public-submodule-commit by default
38756         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
38758 2011-01-20  Bruno Haible  <bruno@clisp.org>
38760         mbfile, mbiter: Complete change from 2008-12-21.
38761         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
38762         * m4/mbiter.m4 (gl_MBITER): Likewise.
38764 2011-01-20  Jim Meyering  <meyering@redhat.com>
38766         init.sh: insert space between each function name and "()"
38767         * tests/init.sh: Make it a little easier to see that a function's
38768         name is "warn_", and not "warn" when looking at the first part of
38769         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
38771 2011-01-20  Jim Meyering  <meyering@redhat.com>
38773         mountlist: clean up code formatting
38774         * lib/mountlist.c (read_file_system_list): Split a long line,
38775         correct bracing style, use NULL in place of "(struct statfs *)0",
38776         don't parenthesize return value, add spaces around "=" and after
38777         ";-in-for-stmt".
38779 2011-01-14  Markus Duft  <mduft@gentoo.org>
38781         mountlist: add support for Interix
38782         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
38783         Apply statvfs to all entries of /dev/fs.
38784         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
38785         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
38787 2011-01-20  Jim Meyering  <meyering@redhat.com>
38789         maint.mk: improve the public-submodule-commit rule
38790         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
38791         to suppress printing of its commands... unless V=1.
38792         Add git submodule's --quiet option to suppress printing of e.g.,
38793         "Entering gnulib" output.
38794         "cd" into $(srcdir) before running git submodule.
38796 2011-01-20  Bruno Haible  <bruno@clisp.org>
38798         include_next: Fix bug introduced on 2011-01-18.
38799         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
38800         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
38801         ac_cv_header_... variable if the second argument is not 'check'.
38802         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
38803         gl_NEXT_HEADERS_INTERNAL.
38805 2011-01-20  Bruno Haible  <bruno@clisp.org>
38807         Allow the user to avoid the GNULIB_TEST_* macros.
38808         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
38809         Suggested by Paul Eggert.
38811 2011-01-14  Jim Meyering  <meyering@redhat.com>
38813         bootstrap: avoid failure when there is no .gitmodules file
38814         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
38815         has been assigned to, even when its value is the empty string.
38816         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
38817         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
38818         Reported by John W. Eaton <jwe@gnu.org>.
38820 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38822         assume <ctype.h>, ..., <time.h> exist
38823         For years gnulib has been assuming the existence of the headers
38824         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
38825         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
38826         them, since they don't appear to be needed.
38827         * README (Portability guidelines): Document this.
38828         * lib/flock.c: Assume <fcntl.h> exists.
38829         * lib/regex_internal.h: Assume <locale.h> exists.
38830         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
38831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
38832         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
38833         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
38834         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
38835         * m4/regex.m4 (gl_REGEX): Likewise.
38836         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
38837         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
38838         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
38839         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
38840         * tests/test-argp.c: Likewise.
38841         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
38843         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
38844         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
38845         AA_APPLE_UNIVERSAL_BUILD.  See
38846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
38847         * NEWS: Document this.
38849 2011-01-19  Eric Blake  <eblake@redhat.com>
38851         c-stack: assume stack overflow if SA_SIGINFO unsupported
38852         * lib/c-stack.c (SIGACTION_WORKS): Rename...
38853         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
38854         sigaction will work.
38855         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
38856         behavior match Linux.
38857         * tests/test-c-stack.c (main): Prefer NULL for pointers.
38859         stdbool-tests: accommodate Haiku
38860         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
38862         binary-io: fix O_TEXT on Haiku
38863         * modules/binary-io (Depends-on): Add fcntl-h.
38864         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
38865         than blindly undefining O_TEXT.
38866         Reported by Scott McCreary.
38868 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38870         include_next: do not check for standard headers like stddef.h
38872         I found this problem when modifying Emacs to use gnulib.
38873         I noticed that it added HAVE_STDDEF_H to config.h, even though
38874         gnulib always assumes <stddef.h> exists as per README and this
38875         symbol is unnecessary.
38876         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
38877         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
38878         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
38879         faster for headers like stddef.h that are known to exist.
38880         (gl_CHECK_NEXT_HEADERS): Use it.
38881         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
38882         rather than gl_CHECK_NEXT_HEADERS.
38883         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
38884         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
38886 2011-01-18  Eric Blake  <eblake@redhat.com>
38888         ansi-c++-opt: skip C++ dependency style if C++ is unused
38889         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
38890         tests when we know C++ compilation is not desired.
38891         Reported by Scott McCreary.
38893 2011-01-18  Bruno Haible  <bruno@clisp.org>
38895         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
38896         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
38897         (main): Perform test also when getrlimit and setrlimit don't exist or
38898         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
38899         limiting the address space size using setrlimit, compare the address
38900         space size before and after the test.
38901         * tests/test-dprintf-posix2.c: Likewise.
38902         * tests/test-fprintf-posix3.sh: Update skip messages.
38903         * tests/test-dprintf-posix2.sh: Likewise.
38904         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
38905         * modules/dprintf-posix-tests (Depends-on): Likewise.
38906         Reported by Bruce Korb <bkorb@gnu.org> and
38907         Gary V. Vaughan <gary@gnu.org>.
38909 2011-01-18  Bruno Haible  <bruno@clisp.org>
38911         get-rusage-as: Improvement for Cygwin.
38912         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
38913         areas that are merely reserved.
38915 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38917         strftime: remove dependencies on multibyte modules
38919         strftime depended on mbrlen, mbsinit, and wchar, but these modules
38920         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
38921         only if __osf__ is defined, and I suspect OSF doesn't need these
38922         other modules.  If my guess is wrong, we'll need to come up with a
38923         variant of strftime that doesn't need the multibyte modules.
38925         I discovered this problem when attempting modify Emacs to use the
38926         strftime module.  With the previous gnulib, this caused Emacs to
38927         need 31 new files, ranging from lib/config.charset to
38928         m4/wint_t.m4.  This was overkill and I expect would be offputting
38929         to the Emacs maintainers.  After this change, only 6 new files are
38930         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
38931         stdbool.m4, and tm_gmtoff.m4.
38933         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
38934         Suggested by Bruno Haible in
38935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
38936         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
38937         and do not check for wchar.h.
38938         * modules/strftime (Files): Remove m4/mbstate_t.m4.
38939         (Depends-on): Remove mbrlen, mbsinit, wchar.
38941 2011-01-18  Bruno Haible  <bruno@clisp.org>
38943         Tests for module 'get-rusage-as'.
38944         * modules/get-rusage-as-tests: New file.
38945         * tests/test-get-rusage-as.c: New file.
38947         New module 'get-rusage-as'.
38948         * modules/get-rusage-as: New file.
38949         * lib/resource-ext.h: New file.
38950         * lib/get-rusage-as.c: New file.
38952 2011-01-17  Eric Blake  <eblake@redhat.com>
38954         sigaction: relax license from LGPLv3+ to LGPLv2+
38955         * modules/sigaction (License): Relax to LGPLv2+.
38957 2011-01-14  Bruno Haible  <bruno@clisp.org>
38959         filemode: Make function declarations usable in C++ mode.
38960         * lib/filemode.h: Enclose function declarations in extern "C" block.
38961         Reported by John W. Eaton <jwe@gnu.org>.
38963 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
38965         save-cwd: no longer include "xgetcwd.h"
38966         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
38967         This avoids a compilation failure in projects that use save-cwd
38968         without also using the xgetcwd module.
38970 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38972         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
38973         This is so that a program like Emacs, which needs only dtoastr,
38974         does not have to bother with distributing and compiling ftoastr
38975         and ldtoastr.
38976         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
38977         * modules/dtoastr, modules/ldtoastr: New files.
38978         * modules/ftoastr: Now works just for 'float'.
38979         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
38980         (Makefile.am): Remove ftoastr.h (not needed and no effect),
38981         dtoastr.c, ldtoastr.c.
38983 2011-01-11  Jim Meyering  <meyering@redhat.com>
38985         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
38986         There is no need to work around the lack of the fchdir function,
38987         since gnulib can now provide a replacement when required.
38988         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
38989         * modules/save-cwd (Depends-on): Add fchdir.
38991 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38993         openat, save-cwd: avoid xmalloc
38995         This removes a direct (but undocumented) dependency of openat on
38996         xalloc, along with an indirect dependency via save-cwd.  It also
38997         removes a dependency of save-cwd on xgetcwd, and thereby
38998         indirectly on xalloc.  This change causes the openat substitute
38999         to fall back on save_cwd when memory is tight, and for save_cwd to
39000         fail instead of dying when memory is tight, but that's good enough.
39001         Problem and initial idea for fix reported by Bastien Roucaries in
39002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
39004         * lib/openat-proc.c: Include stdlib.h (for malloc), not
39005         xalloc.h (for xmalloc).
39006         (openat_proc_name): Use malloc, not xmalloc.
39007         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
39008         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
39010         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
39011         This avoids heap allocation for file names whose lengths are in
39012         the range 512..1023, with the upper bound increasing to at most
39013         4031 depending on the platform's PATH_MAX.  (We do not want
39014         pathmax.h here as it might supply a non-constant PATH_MAX.)
39015         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
39016         Perhaps they should be moved to malloca.h?
39017         (OPENAT_BUFFER_SIZE): Use them.
39019 2011-01-10  Bruno Haible  <bruno@clisp.org>
39021         doc: Update users.txt.
39022         * users.txt: Add recutils.
39024 2011-01-09  Karl Berry  <karl@gnu.org>
39026         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
39028         * doc/configmake.texi: New file.
39029         * doc/gnulib.texi: Include it.
39030         * modules/configmake: Move documentation from here.
39032 2011-01-09  Bruno Haible  <bruno@clisp.org>
39034         Update to Unicode 6.0.0.
39035         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
39036         (get_lbp): Update for Unicode 6.0.0.
39037         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
39038         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
39039         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
39040         U+11001, U+11038..U+11046. Remove U+06DE.
39041         (uc_width): Fix bounds of planes.
39042         * tests/uniwidth/test-uc_width2.sh: Same updates as in
39043         lib/uniwidth/width.c.
39044         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
39045         trailing whitespace removed.
39046         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
39047         without comments, but with the original copyright notice.
39048         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
39049         * lib/unicase/ignorable.h: Likewise.
39050         * lib/unicase/tocasefold.h: Likewise.
39051         * lib/unicase/tolower.h: Likewise.
39052         * lib/unicase/totitle.h: Likewise.
39053         * lib/unicase/toupper.h: Likewise.
39054         * lib/unictype/bidi_of.h: Likewise.
39055         * lib/unictype/blocks.h: Likewise.
39056         * lib/unictype/categ_C.h: Likewise.
39057         * lib/unictype/categ_Cn.h: Likewise.
39058         * lib/unictype/categ_L.h: Likewise.
39059         * lib/unictype/categ_Ll.h: Likewise.
39060         * lib/unictype/categ_Lm.h: Likewise.
39061         * lib/unictype/categ_Lo.h: Likewise.
39062         * lib/unictype/categ_Lu.h: Likewise.
39063         * lib/unictype/categ_M.h: Likewise.
39064         * lib/unictype/categ_Mc.h: Likewise.
39065         * lib/unictype/categ_Me.h: Likewise.
39066         * lib/unictype/categ_Mn.h: Likewise.
39067         * lib/unictype/categ_N.h: Likewise.
39068         * lib/unictype/categ_Nd.h: Likewise.
39069         * lib/unictype/categ_No.h: Likewise.
39070         * lib/unictype/categ_P.h: Likewise.
39071         * lib/unictype/categ_Po.h: Likewise.
39072         * lib/unictype/categ_S.h: Likewise.
39073         * lib/unictype/categ_Sc.h: Likewise.
39074         * lib/unictype/categ_Sk.h: Likewise.
39075         * lib/unictype/categ_Sm.h: Likewise.
39076         * lib/unictype/categ_So.h: Likewise.
39077         * lib/unictype/categ_of.h: Likewise.
39078         * lib/unictype/combining.h: Likewise.
39079         * lib/unictype/ctype_alnum.h: Likewise.
39080         * lib/unictype/ctype_alpha.h: Likewise.
39081         * lib/unictype/ctype_graph.h: Likewise.
39082         * lib/unictype/ctype_lower.h: Likewise.
39083         * lib/unictype/ctype_print.h: Likewise.
39084         * lib/unictype/ctype_punct.h: Likewise.
39085         * lib/unictype/ctype_upper.h: Likewise.
39086         * lib/unictype/decdigit.h: Likewise.
39087         * lib/unictype/digit.h: Likewise.
39088         * lib/unictype/numeric.h: Likewise.
39089         * lib/unictype/pr_alphabetic.h: Likewise.
39090         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39091         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39092         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39093         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39094         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39095         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39096         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39097         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39098         * lib/unictype/pr_case_ignorable.h: Likewise.
39099         * lib/unictype/pr_cased.h: Likewise.
39100         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
39101         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
39102         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
39103         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
39104         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
39105         * lib/unictype/pr_combining.h: Likewise.
39106         * lib/unictype/pr_composite.h: Likewise.
39107         * lib/unictype/pr_currency_symbol.h: Likewise.
39108         * lib/unictype/pr_decimal_digit.h: Likewise.
39109         * lib/unictype/pr_deprecated.h: Likewise.
39110         * lib/unictype/pr_format_control.h: Likewise.
39111         * lib/unictype/pr_grapheme_base.h: Likewise.
39112         * lib/unictype/pr_grapheme_extend.h: Likewise.
39113         * lib/unictype/pr_grapheme_link.h: Likewise.
39114         * lib/unictype/pr_id_continue.h: Likewise.
39115         * lib/unictype/pr_id_start.h: Likewise.
39116         * lib/unictype/pr_ideographic.h: Likewise.
39117         * lib/unictype/pr_lowercase.h: Likewise.
39118         * lib/unictype/pr_math.h: Likewise.
39119         * lib/unictype/pr_numeric.h: Likewise.
39120         * lib/unictype/pr_other_alphabetic.h: Likewise.
39121         * lib/unictype/pr_other_id_continue.h: Likewise.
39122         * lib/unictype/pr_other_math.h: Likewise.
39123         * lib/unictype/pr_punctuation.h: Likewise.
39124         * lib/unictype/pr_sentence_terminal.h: Likewise.
39125         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39126         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39127         * lib/unictype/pr_unified_ideograph.h: Likewise.
39128         * lib/unictype/pr_uppercase.h: Likewise.
39129         * lib/unictype/pr_xid_continue.h: Likewise.
39130         * lib/unictype/pr_xid_start.h: Likewise.
39131         * lib/unictype/scripts.h: Likewise.
39132         * lib/unictype/scripts_byname.gperf: Likewise.
39133         * lib/unictype/sy_java_ident.h: Likewise.
39134         * lib/unigbrk/gbrkprop.h: Likewise.
39135         * lib/unilbrk/lbrkprop1.h: Likewise.
39136         * lib/unilbrk/lbrkprop2.h: Likewise.
39137         * lib/uninorm/decomposition-table2.h: Likewise.
39138         * lib/uniwbrk/wbrkprop.h: Likewise.
39139         * tests/unicase/test-cased.c: Likewise.
39140         * tests/unicase/test-ignorable.c: Likewise.
39141         * tests/unicase/test-uc_tolower.c: Likewise.
39142         * tests/unicase/test-uc_totitle.c: Likewise.
39143         * tests/unicase/test-uc_toupper.c: Likewise.
39144         * tests/unictype/test-categ_C.c: Likewise.
39145         * tests/unictype/test-categ_Cn.c: Likewise.
39146         * tests/unictype/test-categ_L.c: Likewise.
39147         * tests/unictype/test-categ_Ll.c: Likewise.
39148         * tests/unictype/test-categ_Lm.c: Likewise.
39149         * tests/unictype/test-categ_Lo.c: Likewise.
39150         * tests/unictype/test-categ_Lu.c: Likewise.
39151         * tests/unictype/test-categ_M.c: Likewise.
39152         * tests/unictype/test-categ_Mc.c: Likewise.
39153         * tests/unictype/test-categ_Me.c: Likewise.
39154         * tests/unictype/test-categ_Mn.c: Likewise.
39155         * tests/unictype/test-categ_N.c: Likewise.
39156         * tests/unictype/test-categ_Nd.c: Likewise.
39157         * tests/unictype/test-categ_No.c: Likewise.
39158         * tests/unictype/test-categ_P.c: Likewise.
39159         * tests/unictype/test-categ_Po.c: Likewise.
39160         * tests/unictype/test-categ_S.c: Likewise.
39161         * tests/unictype/test-categ_Sc.c: Likewise.
39162         * tests/unictype/test-categ_Sk.c: Likewise.
39163         * tests/unictype/test-categ_Sm.c: Likewise.
39164         * tests/unictype/test-categ_So.c: Likewise.
39165         * tests/unictype/test-ctype_alnum.c: Likewise.
39166         * tests/unictype/test-ctype_alpha.c: Likewise.
39167         * tests/unictype/test-ctype_graph.c: Likewise.
39168         * tests/unictype/test-ctype_lower.c: Likewise.
39169         * tests/unictype/test-ctype_print.c: Likewise.
39170         * tests/unictype/test-ctype_punct.c: Likewise.
39171         * tests/unictype/test-ctype_upper.c: Likewise.
39172         * tests/unictype/test-decdigit.h: Likewise.
39173         * tests/unictype/test-digit.h: Likewise.
39174         * tests/unictype/test-numeric.h: Likewise.
39175         * tests/unictype/test-pr_alphabetic.c: Likewise.
39176         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39177         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39178         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39179         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39180         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39181         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39182         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39183         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39184         * tests/unictype/test-pr_case_ignorable.c: Likewise.
39185         * tests/unictype/test-pr_cased.c: Likewise.
39186         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
39187         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
39188         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
39189         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
39190         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
39191         * tests/unictype/test-pr_combining.c: Likewise.
39192         * tests/unictype/test-pr_composite.c: Likewise.
39193         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39194         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39195         * tests/unictype/test-pr_deprecated.c: Likewise.
39196         * tests/unictype/test-pr_format_control.c: Likewise.
39197         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39198         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39199         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39200         * tests/unictype/test-pr_id_continue.c: Likewise.
39201         * tests/unictype/test-pr_id_start.c: Likewise.
39202         * tests/unictype/test-pr_ideographic.c: Likewise.
39203         * tests/unictype/test-pr_lowercase.c: Likewise.
39204         * tests/unictype/test-pr_math.c: Likewise.
39205         * tests/unictype/test-pr_numeric.c: Likewise.
39206         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39207         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39208         * tests/unictype/test-pr_other_math.c: Likewise.
39209         * tests/unictype/test-pr_punctuation.c: Likewise.
39210         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39211         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39212         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39213         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39214         * tests/unictype/test-pr_uppercase.c: Likewise.
39215         * tests/unictype/test-pr_xid_continue.c: Likewise.
39216         * tests/unictype/test-pr_xid_start.c: Likewise.
39217         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
39218         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
39219         changes.
39220         * lib/unictype/categ_Cc.h: Likewise.
39221         * lib/unictype/categ_Cf.h: Likewise.
39222         * lib/unictype/categ_Co.h: Likewise.
39223         * lib/unictype/categ_Cs.h: Likewise.
39224         * lib/unictype/categ_Lt.h: Likewise.
39225         * lib/unictype/categ_Nl.h: Likewise.
39226         * lib/unictype/categ_Pc.h: Likewise.
39227         * lib/unictype/categ_Pd.h: Likewise.
39228         * lib/unictype/categ_Pe.h: Likewise.
39229         * lib/unictype/categ_Pf.h: Likewise.
39230         * lib/unictype/categ_Pi.h: Likewise.
39231         * lib/unictype/categ_Ps.h: Likewise.
39232         * lib/unictype/categ_Z.h: Likewise.
39233         * lib/unictype/categ_Zl.h: Likewise.
39234         * lib/unictype/categ_Zp.h: Likewise.
39235         * lib/unictype/categ_Zs.h: Likewise.
39236         * lib/unictype/ctype_blank.h: Likewise.
39237         * lib/unictype/ctype_cntrl.h: Likewise.
39238         * lib/unictype/ctype_digit.h: Likewise.
39239         * lib/unictype/ctype_space.h: Likewise.
39240         * lib/unictype/ctype_xdigit.h: Likewise.
39241         * lib/unictype/mirror.h: Likewise.
39242         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39243         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39244         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39245         * lib/unictype/pr_bidi_control.h: Likewise.
39246         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39247         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39248         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39249         * lib/unictype/pr_bidi_pdf.h: Likewise.
39250         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39251         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39252         * lib/unictype/pr_dash.h: Likewise.
39253         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39254         * lib/unictype/pr_diacritic.h: Likewise.
39255         * lib/unictype/pr_extender.h: Likewise.
39256         * lib/unictype/pr_hex_digit.h: Likewise.
39257         * lib/unictype/pr_hyphen.h: Likewise.
39258         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39259         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39260         * lib/unictype/pr_ignorable_control.h: Likewise.
39261         * lib/unictype/pr_iso_control.h: Likewise.
39262         * lib/unictype/pr_join_control.h: Likewise.
39263         * lib/unictype/pr_left_of_pair.h: Likewise.
39264         * lib/unictype/pr_line_separator.h: Likewise.
39265         * lib/unictype/pr_logical_order_exception.h: Likewise.
39266         * lib/unictype/pr_non_break.h: Likewise.
39267         * lib/unictype/pr_not_a_character.h: Likewise.
39268         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39269         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39270         * lib/unictype/pr_other_id_start.h: Likewise.
39271         * lib/unictype/pr_other_lowercase.h: Likewise.
39272         * lib/unictype/pr_other_uppercase.h: Likewise.
39273         * lib/unictype/pr_paired_punctuation.h: Likewise.
39274         * lib/unictype/pr_paragraph_separator.h: Likewise.
39275         * lib/unictype/pr_pattern_syntax.h: Likewise.
39276         * lib/unictype/pr_pattern_white_space.h: Likewise.
39277         * lib/unictype/pr_private_use.h: Likewise.
39278         * lib/unictype/pr_quotation_mark.h: Likewise.
39279         * lib/unictype/pr_radical.h: Likewise.
39280         * lib/unictype/pr_soft_dotted.h: Likewise.
39281         * lib/unictype/pr_space.h: Likewise.
39282         * lib/unictype/pr_titlecase.h: Likewise.
39283         * lib/unictype/pr_variation_selector.h: Likewise.
39284         * lib/unictype/pr_white_space.h: Likewise.
39285         * lib/unictype/pr_zero_width.h: Likewise.
39286         * lib/unictype/sy_c_ident.h: Likewise.
39287         * lib/unictype/sy_c_whitespace.h: Likewise.
39288         * lib/unictype/sy_java_whitespace.h: Likewise.
39289         * lib/uninorm/composition-table.gperf: Likewise.
39290         * lib/uninorm/decomposition-table1.h: Likewise.
39291         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
39292         LB8.
39293         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39294         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39295         * modules/unictype/*: Bump version number of expected libunistring
39296         version.
39298 2011-01-09  Bruno Haible  <bruno@clisp.org>
39300         Update to Unicode 5.2.0.
39301         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
39302         trailing whitespace removed.
39304 2011-01-09  Bruno Haible  <bruno@clisp.org>
39306         New Unicode character properties, from Unicode 5.2.0.
39307         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
39308         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
39309         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
39310         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
39311         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
39312         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
39313         uc_is_property_cased, uc_is_property_case_ignorable,
39314         uc_is_property_changes_when_lowercased,
39315         uc_is_property_changes_when_uppercased,
39316         uc_is_property_changes_when_titlecased,
39317         uc_is_property_changes_when_casefolded,
39318         uc_is_property_changes_when_casemapped): New declarations.
39319         * lib/unictype/pr_byname.gperf: Add the new properties.
39320         * modules/unictype/property-byname (Depends-on): Depend on the new
39321         properties modules.
39322         * modules/unictype/property-all (Depends-on): Likewise.
39323         * MODULES.html.sh (Unicode string functions): Add
39324         unictype/property-case-ignorable, unictype/property-cased,
39325         unictype/property-changes-when-casefolded,
39326         unictype/property-changes-when-casemapped,
39327         unictype/property-changes-when-lowercased,
39328         unictype/property-changes-when-titlecased,
39329         unictype/property-changes-when-uppercased.
39331         New module 'unictype/property-changes-when-casemapped'.
39332         * modules/unictype/property-changes-when-casemapped: New file.
39333         * lib/unictype/pr_changes_when_casemapped.c: New file.
39334         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
39335         generated by gen-uni-tables.
39336         * modules/unictype/property-changes-when-casemapped-tests: New file.
39337         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
39338         automatically generated by gen-uni-tables.
39340         New module 'unictype/property-changes-when-casefolded'.
39341         * modules/unictype/property-changes-when-casefolded: New file.
39342         * lib/unictype/pr_changes_when_casefolded.c: New file.
39343         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
39344         generated by gen-uni-tables.
39345         * modules/unictype/property-changes-when-casefolded-tests: New file.
39346         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
39347         automatically generated by gen-uni-tables.
39349         New module 'unictype/property-changes-when-titlecased'.
39350         * modules/unictype/property-changes-when-titlecased: New file.
39351         * lib/unictype/pr_changes_when_titlecased.c: New file.
39352         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
39353         generated by gen-uni-tables.
39354         * modules/unictype/property-changes-when-titlecased-tests: New file.
39355         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
39356         automatically generated by gen-uni-tables.
39358         New module 'unictype/property-changes-when-uppercased'.
39359         * modules/unictype/property-changes-when-uppercased: New file.
39360         * lib/unictype/pr_changes_when_uppercased.c: New file.
39361         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
39362         generated by gen-uni-tables.
39363         * modules/unictype/property-changes-when-uppercased-tests: New file.
39364         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
39365         automatically generated by gen-uni-tables.
39367         New module 'unictype/property-changes-when-lowercased'.
39368         * modules/unictype/property-changes-when-lowercased: New file.
39369         * lib/unictype/pr_changes_when_lowercased.c: New file.
39370         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
39371         generated by gen-uni-tables.
39372         * modules/unictype/property-changes-when-lowercased-tests: New file.
39373         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
39374         automatically generated by gen-uni-tables.
39376         New module 'unictype/property-case-ignorable'.
39377         * modules/unictype/property-case-ignorable: New file.
39378         * lib/unictype/pr_case_ignorable.c: New file.
39379         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
39380         by gen-uni-tables.
39381         * modules/unictype/property-case-ignorable-tests: New file.
39382         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
39383         generated by gen-uni-tables.
39385         New module 'unictype/property-cased'.
39386         * modules/unictype/property-cased: New file.
39387         * lib/unictype/pr_cased.c: New file.
39388         * lib/unictype/pr_cased.h: New file, automatically generated by
39389         gen-uni-tables.
39390         * modules/unictype/property-cased-tests: New file.
39391         * tests/unictype/test-pr_cased.c: New file, automatically generated by
39392         gen-uni-tables.
39394 2011-01-09  Bruno Haible  <bruno@clisp.org>
39396         Update to Unicode 5.2.0.
39397         * lib/gen-uni-tables.c (output_predicate, output_category,
39398         output_combclass, output_bidi_category, output_decimal_digit_test,
39399         output_decimal_digit, output_digit_test, output_digit,
39400         output_numeric_test, output_numeric, output_mirror, output_scripts,
39401         output_scripts_byname, output_blocks, output_ident_category): Fix
39402         comment header.
39403         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
39404         get_wbp.
39405         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
39406         items.
39407         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
39408         Changes_When_Lowercased, Changes_When_Uppercased,
39409         Changes_When_Titlecased, Changes_When_Casefolded,
39410         Changes_When_Casemapped.
39411         (is_property_alphabetic, is_property_default_ignorable_code_point):
39412         Update for Unicode 5.2.0.
39413         (is_property_cased, is_property_case_ignorable,
39414         is_property_changes_when_lowercased,
39415         is_property_changes_when_uppercased,
39416         is_property_changes_when_titlecased,
39417         is_property_changes_when_casefolded,
39418         is_property_changes_when_casemapped): New functions.
39419         (output_properties): Output also the properties cased, case_ignorable,
39420         changes_when_lowercased, changes_when_uppercased,
39421         changes_when_titlecased, changes_when_casefolded,
39422         changes_when_casemapped.
39423         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
39424         Unicode TR#11 revision 17 -> 19.
39425         (LBP_CP): New enumeration value.
39426         (LBP_*): Adjust values accordingly.
39427         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39428         TR#14 revision 22 -> 24.
39429         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
39430         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
39431         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39432         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
39433         is_WBP_MIDLETTER.
39434         (output_composition_tables): Allow for 24 bits instead of 16 bits in
39435         the code1 and code2 of each composition rule.
39436         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
39437         * lib/unicase/ignorable.h: Likewise.
39438         * lib/unicase/tocasefold.h: Likewise.
39439         * lib/unicase/tolower.h: Likewise.
39440         * lib/unicase/totitle.h: Likewise.
39441         * lib/unicase/toupper.h: Likewise.
39442         * lib/unictype/bidi_of.h: Likewise.
39443         * lib/unictype/blocks.h: Likewise.
39444         * lib/unictype/categ_C.h: Likewise.
39445         * lib/unictype/categ_Cf.h: Likewise.
39446         * lib/unictype/categ_Cn.h: Likewise.
39447         * lib/unictype/categ_L.h: Likewise.
39448         * lib/unictype/categ_Ll.h: Likewise.
39449         * lib/unictype/categ_Lm.h: Likewise.
39450         * lib/unictype/categ_Lo.h: Likewise.
39451         * lib/unictype/categ_Lu.h: Likewise.
39452         * lib/unictype/categ_M.h: Likewise.
39453         * lib/unictype/categ_Mc.h: Likewise.
39454         * lib/unictype/categ_Mn.h: Likewise.
39455         * lib/unictype/categ_N.h: Likewise.
39456         * lib/unictype/categ_Nd.h: Likewise.
39457         * lib/unictype/categ_Nl.h: Likewise.
39458         * lib/unictype/categ_No.h: Likewise.
39459         * lib/unictype/categ_P.h: Likewise.
39460         * lib/unictype/categ_Pd.h: Likewise.
39461         * lib/unictype/categ_Po.h: Likewise.
39462         * lib/unictype/categ_S.h: Likewise.
39463         * lib/unictype/categ_Sc.h: Likewise.
39464         * lib/unictype/categ_So.h: Likewise.
39465         * lib/unictype/categ_of.h: Likewise.
39466         * lib/unictype/combining.h: Likewise.
39467         * lib/unictype/ctype_alnum.h: Likewise.
39468         * lib/unictype/ctype_alpha.h: Likewise.
39469         * lib/unictype/ctype_graph.h: Likewise.
39470         * lib/unictype/ctype_lower.h: Likewise.
39471         * lib/unictype/ctype_print.h: Likewise.
39472         * lib/unictype/ctype_punct.h: Likewise.
39473         * lib/unictype/ctype_upper.h: Likewise.
39474         * lib/unictype/decdigit.h: Likewise.
39475         * lib/unictype/digit.h: Likewise.
39476         * lib/unictype/numeric.h: Likewise.
39477         * lib/unictype/pr_alphabetic.h: Likewise.
39478         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39479         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39480         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39481         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39482         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39483         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39484         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39485         * lib/unictype/pr_combining.h: Likewise.
39486         * lib/unictype/pr_composite.h: Likewise.
39487         * lib/unictype/pr_currency_symbol.h: Likewise.
39488         * lib/unictype/pr_dash.h: Likewise.
39489         * lib/unictype/pr_decimal_digit.h: Likewise.
39490         * lib/unictype/pr_deprecated.h: Likewise.
39491         * lib/unictype/pr_diacritic.h: Likewise.
39492         * lib/unictype/pr_extender.h: Likewise.
39493         * lib/unictype/pr_grapheme_base.h: Likewise.
39494         * lib/unictype/pr_grapheme_extend.h: Likewise.
39495         * lib/unictype/pr_grapheme_link.h: Likewise.
39496         * lib/unictype/pr_id_continue.h: Likewise.
39497         * lib/unictype/pr_id_start.h: Likewise.
39498         * lib/unictype/pr_ideographic.h: Likewise.
39499         * lib/unictype/pr_ignorable_control.h: Likewise.
39500         * lib/unictype/pr_logical_order_exception.h: Likewise.
39501         * lib/unictype/pr_lowercase.h: Likewise.
39502         * lib/unictype/pr_numeric.h: Likewise.
39503         * lib/unictype/pr_other_alphabetic.h: Likewise.
39504         * lib/unictype/pr_punctuation.h: Likewise.
39505         * lib/unictype/pr_sentence_terminal.h: Likewise.
39506         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39507         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39508         * lib/unictype/pr_unified_ideograph.h: Likewise.
39509         * lib/unictype/pr_uppercase.h: Likewise.
39510         * lib/unictype/pr_xid_continue.h: Likewise.
39511         * lib/unictype/pr_xid_start.h: Likewise.
39512         * lib/unictype/pr_zero_width.h: Likewise.
39513         * lib/unictype/scripts.h: Likewise.
39514         * lib/unictype/scripts_byname.gperf: Likewise.
39515         * lib/unictype/sy_java_ident.h: Likewise.
39516         * lib/unigbrk/gbrkprop.h: Likewise.
39517         * lib/unilbrk/lbrkprop1.h: Likewise.
39518         * lib/unilbrk/lbrkprop2.h: Likewise.
39519         * lib/unilbrk/lbrktables.h: Likewise.
39520         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
39521         LBP_CP. Implement rule LB30.
39522         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
39523         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
39524         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
39525         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
39526         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
39527         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
39528         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
39529         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
39530         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
39531         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
39532         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
39533         bits instead of 16 bits in the code1 and code2 of each composition
39534         rule.
39535         (uc_composition): Update for Unicode 5.2.0.
39536         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
39537         * lib/uninorm/decomposition-table2.h: Likewise.
39538         * lib/uniwbrk/wbrkprop.h: Likewise.
39539         * tests/unicase/test-cased.c: Likewise.
39540         * tests/unicase/test-ignorable.c: Likewise.
39541         * tests/unicase/test-uc_tolower.c: Likewise.
39542         * tests/unicase/test-uc_totitle.c: Likewise.
39543         * tests/unicase/test-uc_toupper.c: Likewise.
39544         * tests/unictype/test-categ_C.c: Likewise.
39545         * tests/unictype/test-categ_Cf.c: Likewise.
39546         * tests/unictype/test-categ_Cn.c: Likewise.
39547         * tests/unictype/test-categ_L.c: Likewise.
39548         * tests/unictype/test-categ_Ll.c: Likewise.
39549         * tests/unictype/test-categ_Lm.c: Likewise.
39550         * tests/unictype/test-categ_Lo.c: Likewise.
39551         * tests/unictype/test-categ_Lu.c: Likewise.
39552         * tests/unictype/test-categ_M.c: Likewise.
39553         * tests/unictype/test-categ_Mc.c: Likewise.
39554         * tests/unictype/test-categ_Mn.c: Likewise.
39555         * tests/unictype/test-categ_N.c: Likewise.
39556         * tests/unictype/test-categ_Nd.c: Likewise.
39557         * tests/unictype/test-categ_Nl.c: Likewise.
39558         * tests/unictype/test-categ_No.c: Likewise.
39559         * tests/unictype/test-categ_P.c: Likewise.
39560         * tests/unictype/test-categ_Pd.c: Likewise.
39561         * tests/unictype/test-categ_Po.c: Likewise.
39562         * tests/unictype/test-categ_S.c: Likewise.
39563         * tests/unictype/test-categ_Sc.c: Likewise.
39564         * tests/unictype/test-categ_So.c: Likewise.
39565         * tests/unictype/test-ctype_alnum.c: Likewise.
39566         * tests/unictype/test-ctype_alpha.c: Likewise.
39567         * tests/unictype/test-ctype_graph.c: Likewise.
39568         * tests/unictype/test-ctype_lower.c: Likewise.
39569         * tests/unictype/test-ctype_print.c: Likewise.
39570         * tests/unictype/test-ctype_punct.c: Likewise.
39571         * tests/unictype/test-ctype_upper.c: Likewise.
39572         * tests/unictype/test-decdigit.h: Likewise.
39573         * tests/unictype/test-digit.h: Likewise.
39574         * tests/unictype/test-numeric.h: Likewise.
39575         * tests/unictype/test-pr_alphabetic.c: Likewise.
39576         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39577         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39578         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39579         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39580         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39581         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39582         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39583         * tests/unictype/test-pr_combining.c: Likewise.
39584         * tests/unictype/test-pr_composite.c: Likewise.
39585         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39586         * tests/unictype/test-pr_dash.c: Likewise.
39587         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39588         * tests/unictype/test-pr_deprecated.c: Likewise.
39589         * tests/unictype/test-pr_diacritic.c: Likewise.
39590         * tests/unictype/test-pr_extender.c: Likewise.
39591         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39592         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39593         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39594         * tests/unictype/test-pr_id_continue.c: Likewise.
39595         * tests/unictype/test-pr_id_start.c: Likewise.
39596         * tests/unictype/test-pr_ideographic.c: Likewise.
39597         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39598         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39599         * tests/unictype/test-pr_lowercase.c: Likewise.
39600         * tests/unictype/test-pr_numeric.c: Likewise.
39601         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39602         * tests/unictype/test-pr_punctuation.c: Likewise.
39603         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39604         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39605         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39606         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39607         * tests/unictype/test-pr_uppercase.c: Likewise.
39608         * tests/unictype/test-pr_xid_continue.c: Likewise.
39609         * tests/unictype/test-pr_xid_start.c: Likewise.
39610         * tests/unictype/test-pr_zero_width.c: Likewise.
39611         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
39612         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
39613         changed behaviour: line breaking is now disallowed between a letter
39614         or '=' and '('.
39615         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39616         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39617         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39618         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
39619         * tests/uniwidth/test-uc_width2.sh: Same updates as in
39620         lib/uniwidth/width.c.
39621         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
39622         without comments, but with the original copyright notice.
39623         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
39624         changes.
39625         * lib/unictype/categ_Cc.h: Likewise.
39626         * lib/unictype/categ_Co.h: Likewise.
39627         * lib/unictype/categ_Cs.h: Likewise.
39628         * lib/unictype/categ_Lt.h: Likewise.
39629         * lib/unictype/categ_Me.h: Likewise.
39630         * lib/unictype/categ_Pc.h: Likewise.
39631         * lib/unictype/categ_Pe.h: Likewise.
39632         * lib/unictype/categ_Pf.h: Likewise.
39633         * lib/unictype/categ_Pi.h: Likewise.
39634         * lib/unictype/categ_Ps.h: Likewise.
39635         * lib/unictype/categ_Sk.h: Likewise.
39636         * lib/unictype/categ_Sm.h: Likewise.
39637         * lib/unictype/categ_Z.h: Likewise.
39638         * lib/unictype/categ_Zl.h: Likewise.
39639         * lib/unictype/categ_Zp.h: Likewise.
39640         * lib/unictype/categ_Zs.h: Likewise.
39641         * lib/unictype/ctype_blank.h: Likewise.
39642         * lib/unictype/ctype_cntrl.h: Likewise.
39643         * lib/unictype/ctype_digit.h: Likewise.
39644         * lib/unictype/ctype_space.h: Likewise.
39645         * lib/unictype/ctype_xdigit.h: Likewise.
39646         * lib/unictype/mirror.h: Likewise.
39647         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39648         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39649         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39650         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39651         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39652         * lib/unictype/pr_bidi_control.h: Likewise.
39653         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39654         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39655         * lib/unictype/pr_bidi_pdf.h: Likewise.
39656         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39657         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39658         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39659         * lib/unictype/pr_format_control.h: Likewise.
39660         * lib/unictype/pr_hex_digit.h: Likewise.
39661         * lib/unictype/pr_hyphen.h: Likewise.
39662         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39663         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39664         * lib/unictype/pr_iso_control.h: Likewise.
39665         * lib/unictype/pr_join_control.h: Likewise.
39666         * lib/unictype/pr_left_of_pair.h: Likewise.
39667         * lib/unictype/pr_line_separator.h: Likewise.
39668         * lib/unictype/pr_math.h: Likewise.
39669         * lib/unictype/pr_non_break.h: Likewise.
39670         * lib/unictype/pr_not_a_character.h: Likewise.
39671         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39672         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39673         * lib/unictype/pr_other_id_continue.h: Likewise.
39674         * lib/unictype/pr_other_id_start.h: Likewise.
39675         * lib/unictype/pr_other_lowercase.h: Likewise.
39676         * lib/unictype/pr_other_math.h: Likewise.
39677         * lib/unictype/pr_other_uppercase.h: Likewise.
39678         * lib/unictype/pr_paired_punctuation.h: Likewise.
39679         * lib/unictype/pr_paragraph_separator.h: Likewise.
39680         * lib/unictype/pr_pattern_syntax.h: Likewise.
39681         * lib/unictype/pr_pattern_white_space.h: Likewise.
39682         * lib/unictype/pr_private_use.h: Likewise.
39683         * lib/unictype/pr_quotation_mark.h: Likewise.
39684         * lib/unictype/pr_radical.h: Likewise.
39685         * lib/unictype/pr_soft_dotted.h: Likewise.
39686         * lib/unictype/pr_space.h: Likewise.
39687         * lib/unictype/pr_titlecase.h: Likewise.
39688         * lib/unictype/pr_variation_selector.h: Likewise.
39689         * lib/unictype/pr_white_space.h: Likewise.
39690         * lib/unictype/sy_c_ident.h: Likewise.
39691         * lib/unictype/sy_c_whitespace.h: Likewise.
39692         * lib/unictype/sy_java_whitespace.h: Likewise.
39693         * modules/uni*/*: Bump version number of expected libunistring version.
39694         Reported by Simon Josefsson.
39696 2011-01-09  Karl Heuer  <kwzh@gnu.org>
39698         useless-if-before-free: fix typo in --help and make the internal,
39699         automatic version date update process work once again.
39700         --help output contained a NUL character instead of the
39701         backslash-zero that was intended.  Also, the "must lie within
39702         the first 8 lines" line is on line 9, and hence not getting
39703         automatically updated.
39704         * build-aux/useless-if-before-free: Fix the former by adding a
39705         backslash, and the latter by condensing the three lines of what-it-does
39706         to a single line, leaving one line of slack for the future.
39708 2011-01-09  Bruno Haible  <bruno@clisp.org>
39710         uniwidth/width: Fix width of U+1D173..U+1D17A.
39711         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
39712         symbolic_width, output_width_property_test): New functions.
39713         (main): Invoke output_nonspacing_property, output_width_property_test.
39714         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
39715         U+1D173..U+1D17A.
39716         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
39717         1.
39718         * modules/uniwidth/*: Bump version number of expected libunistring
39719         version.
39720         * modules/unilbrk/*: Likewise.
39722 2011-01-08  Bruno Haible  <bruno@clisp.org>
39724         uninorm tests: Preserve copyright of Unicode data file.
39725         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
39726         Mention modifications.
39728 2011-01-08  Bruno Haible  <bruno@clisp.org>
39730         gen-uni-tables: Prepare for Unicode 5.2.0.
39731         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
39732         (debug_output_lbp, output_lbp): Update.
39734 2011-01-08  Bruno Haible  <bruno@clisp.org>
39736         unilbrk: Clarify gen-uni-tables.c code.
39737         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
39738         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
39739         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
39741 2011-01-07  Bruno Haible  <bruno@clisp.org>
39743         strtod: Restore errno when successfully parsing Infinity or NaN.
39744         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
39745         restore the original errno.
39747 2011-01-07  Bruno Haible  <bruno@clisp.org>
39749         remove test: Avoid failure on HP-UX 11.
39750         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
39752 2011-01-07  Bruno Haible  <bruno@clisp.org>
39754         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
39755         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
39756         error code.
39758 2011-01-07  Pádraig Brady  <P@draigBrady.com>
39760         ignore-value: fixup comments, and add Eric Blake
39761         as an author since he rewrote the macros.
39762         * lib/ignore-value.h (ignore_value):  State that
39763         we now support aggregates.  Also specify exactly
39764         when the GCC warn_unused_result feature was added.
39766 2011-01-06  Eric Blake  <eblake@redhat.com>
39768         ignore-value: support aggregate types
39769         * lib/ignore-value.h (ignore_value): Provide separate gcc
39770         definition.
39771         * modules/ignore-value-tests: New test module.
39772         * tests/test-ignore-value.c: New test.
39774         maint.mk: improve sc_prohibit_strcmp regex
39775         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
39776         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
39777         definition of STRNEQ.
39779         signal: work around Haiku issue with SIGBUS
39780         * lib/siglist.h: Add comment.
39781         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
39782         strsignal's favoring of SIGSEGV.
39783         * tests/test-signal.c (main): Avoid test failure.
39784         * doc/posix-headers/signal.texi (signal.h): Document the issue.
39785         Reported by Scott McCreary.
39787         maint.mk: add pre-release check to ensure submodule commits are public
39788         * top/maint.mk (public-submodule-commit): New rule.
39789         (submodule-checks): New variable.
39790         (alpha beta stable): Depend on the variable.
39792 2011-01-05  Pádraig Brady  <P@draigBrady.com>
39793         and Jim Meyering  <meyering@redhat.com>
39795         ignore-value: make ignore_value more generic; deprecate ignore_ptr
39796         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
39797         (ATTRIBUTE_DEPRECATED): Define.
39798         (_ignore_case): New function.
39799         (ignore_value): New macro, to replace the old function.
39800         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
39801         * modules/ignore-value (Depends-on): Add stdint.
39803 2011-01-04  Eric Blake  <eblake@redhat.com>
39805         doc: regenerate INSTALL
39806         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
39807         @firstparagraphindent support, now that autoconf dropped it.
39808         (INSTALL_PRELUDE): Reinstate old macro.
39809         * doc/install.texi: Resync from autoconf.
39810         * doc/INSTALL: Reflect recent autoconf update.
39811         * doc/INSTALL.ISO: Likewise.
39812         * doc/INSTALL.UTF-8: Likewise.
39813         Reported by Karl Berry.
39815 2011-01-04  Bruce Korb  <address@hidden>
39817         git-version-gen: avoid a sub-shell
39818         * build-aux/git-version-gen: Redirect stderr in `...` via
39819         "exec 2>...", rather than via an added sub-shell.
39821 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
39823         git-version-gen: use (...) rather than sh -c '...'
39824         * build-aux/git-version-gen: Rather than hard-coding a shell's name
39825         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
39827 2011-01-03  Jim Meyering  <meyering@redhat.com>
39829         git-version-gen: convert leading TABs to spaces
39830         * build-aux/git-version-gen: Expand leading TABs.
39832         git-version-gen: handle failed "git rev-list"
39833         * build-aux/git-version-gen: Rather than leaking a "fatal" error
39834         from git and proceeding as if it had succeeded but printed no SHA1
39835         checksums, suppress the diagnostic and handle the failure.
39836         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
39838         git-version-gen: include command name in one more diagnostic
39839         * build-aux/git-version-gen: When the required .tarball-version file
39840         was missing or unreadable, you might see the diagnostic from "cat",
39841         but no trace of the name of the invoking script.  Now, you still see
39842         the diagnostic from cat, but also get one from "git-version-gen: ".
39843         Inspired by a patch from Bruce Korb.
39845         update-copyright: adjust test to match changed code
39846         * tests/test-update-copyright.sh: Change test's expected output
39847         to match new actual output.
39849 2011-01-02  Bruno Haible  <bruno@clisp.org>
39851         getlogin_r: Avoid test failure on HP-UX 11.
39852         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
39853         ERANGE when the second argument is zero.
39854         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
39855         portability problem.
39857 2011-01-02  Bruce Korb  <bkorb@gnu.org>
39859         * build-aux/update-copyright: doc Simon's changes
39861 2011-01-02  Simon Josefsson  <simon@josefsson.org>
39863         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
39864         environment variable.
39866 2011-01-02  Bruno Haible  <bruno@clisp.org>
39868         unigbrk: Avoid gcc warnings.
39869         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
39870         unused variable.
39871         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
39872         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
39873         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
39874         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
39875         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
39876         Change type of first argument to 'const char *'.
39877         (main): Remove unused variable.
39878         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
39879         type of first argument to 'const char *'.
39880         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
39881         Likewise.
39882         (main): Change type of variable 's'.
39883         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
39884         to 'int'.
39886 2011-01-02  Bruno Haible  <bruno@clisp.org>
39888         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
39889         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
39890         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
39891         bug.
39892         * lib/pwrite.c: Undo 2010-12-31 patch.
39893         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
39895 2011-01-02  Bruno Haible  <bruno@clisp.org>
39897         pread: Fix test whether it works.
39898         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
39900 2011-01-02  Bruno Haible  <bruno@clisp.org>
39902         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
39903         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
39904         ends in "6". Don't require a specific month name. Try also the locale
39905         names found on HP-UX 11 and Solaris 7.
39907 2011-01-02  Bruno Haible  <bruno@clisp.org>
39909         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
39910         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
39911         C linkage.
39912         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
39914 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39916         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
39917         for consistency, since the "cluster" term is not used elsewhere.
39918         * lib/unigbrk.in.h: Update name.
39919         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
39920         * lib/unigbrk/u16-grapheme-next.c: Update name.
39921         * lib/unigbrk/u16-grapheme-prev.c: Update name.
39922         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
39923         * lib/unigbrk/u32-grapheme-next.c: Update name.
39924         * lib/unigbrk/u32-grapheme-prev.c: Update name.
39925         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
39926         * lib/unigbrk/u8-grapheme-next.c: Update name.
39927         * lib/unigbrk/u8-grapheme-prev.c: Update name.
39928         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
39929         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
39930         Suggested by Bruno Haible.
39932 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39934         Remove module 'u8-grapheme-len' as too redundant with
39935         'u8-grapheme-next'.
39936         * modules/unigbrk/u8-grapheme-len: Delete file.
39937         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
39938         * lib/unigbrk.in.h: Remove prototype for deleted function.
39939         * lib/unigbrk/u8-grapheme-len.c: Delete file.
39940         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
39942         Remove module 'u16-grapheme-len' as too redundant with
39943         'u16-grapheme-next'.
39944         * modules/unigbrk/u16-grapheme-len: Delete file.
39945         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
39946         * lib/unigbrk.in.h: Remove prototype for deleted function.
39947         * lib/unigbrk/u16-grapheme-len.c: Delete file.
39948         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
39950         Remove module 'u32-grapheme-len' as too redundant with
39951         'u32-grapheme-next'.
39952         * modules/unigbrk/u32-grapheme-len: Delete file.
39953         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
39954         * lib/unigbrk.in.h: Remove prototype for deleted function.
39955         * lib/unigbrk/u32-grapheme-len.c: Delete file.
39956         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
39958         Suggested by Bruno Haible.
39960 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39962         * unigbrk.in.h: Fix typo: "ben" => "been".
39963         Reported by Bruno Haible.
39965 2011-01-01  Jim Meyering  <meyering@redhat.com>
39967         maint: update almost all copyright ranges to include 2011
39968         Run the new "make update-copyright" rule.
39970 2011-01-01  Jim Meyering  <meyering@redhat.com>
39972         maint: update-copyright: exempt doc/INSTALL*
39973         * Makefile (update-copyright): Also exclude doc/INSTALL*,
39974         since they are generated.  Suggested by Bruno Haible.
39976 2011-01-01  Jim Meyering  <meyering@redhat.com>
39978         maint: refine the update-copyright rule
39979         * Makefile (update-copyright): Also exclude any file that includes
39980         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
39981         code that merely generates the comment.
39983 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39985         New module 'u8-grapheme-len'.
39986         * modules/unigbrk/u8-grapheme-len: New file.
39987         * modules/unigbrk/u8-grapheme-len-tests: New file.
39988         * lib/unigbrk.in.h: Add prototype for new function.
39989         * lib/unigbrk/u8-grapheme-len.c: New file.
39990         * tests/unigbrk/test-u8-grapheme-len.c: New file.
39992         New module 'u16-grapheme-len'.
39993         * modules/unigbrk/u16-grapheme-len: New file.
39994         * modules/unigbrk/u16-grapheme-len-tests: New file.
39995         * lib/unigbrk.in.h: Add prototype for new function.
39996         * lib/unigbrk/u16-grapheme-len.c: New file.
39997         * tests/unigbrk/test-u16-grapheme-len.c: New file.
39999         New module 'u32-grapheme-len'.
40000         * modules/unigbrk/u32-grapheme-len: New file.
40001         * modules/unigbrk/u32-grapheme-len-tests: New file.
40002         * lib/unigbrk.in.h: Add prototype for new function.
40003         * lib/unigbrk/u32-grapheme-len.c: New file.
40004         * tests/unigbrk/test-u32-grapheme-len.c: New file.
40006         New module 'u8-grapheme-next'.
40007         * modules/unigbrk/u8-grapheme-next: New file.
40008         * modules/unigbrk/u8-grapheme-next-tests: New file.
40009         * lib/unigbrk.in.h: Add prototype for new function.
40010         * lib/unigbrk/u8-grapheme-next.c: New file.
40011         * tests/unigbrk/test-u8-grapheme-next.c: New file.
40013         New module 'u16-grapheme-next'.
40014         * modules/unigbrk/u16-grapheme-next: New file.
40015         * modules/unigbrk/u16-grapheme-next-tests: New file.
40016         * lib/unigbrk.in.h: Add prototype for new function.
40017         * lib/unigbrk/u16-grapheme-next.c: New file.
40018         * tests/unigbrk/test-u16-grapheme-next.c: New file.
40020         New module 'u32-grapheme-next'.
40021         * modules/unigbrk/u32-grapheme-next: New file.
40022         * modules/unigbrk/u32-grapheme-next-tests: New file.
40023         * lib/unigbrk.in.h: Add prototype for new function.
40024         * lib/unigbrk/u32-grapheme-next.c: New file.
40025         * tests/unigbrk/test-u32-grapheme-next.c: New file.
40027         New module 'u8-grapheme-prev'.
40028         * modules/unigbrk/u8-grapheme-prev: New file.
40029         * modules/unigbrk/u8-grapheme-prev-tests: New file.
40030         * lib/unigbrk.in.h: Add prototype for new function.
40031         * lib/unigbrk/u8-grapheme-prev.c: New file.
40032         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
40034         New module 'u16-grapheme-prev'.
40035         * modules/unigbrk/u16-grapheme-prev: New file.
40036         * modules/unigbrk/u16-grapheme-prev-tests: New file.
40037         * lib/unigbrk.in.h: Add prototype for new function.
40038         * lib/unigbrk/u16-grapheme-prev.c: New file.
40039         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
40041         New module 'u32-grapheme-prev'.
40042         * modules/unigbrk/u32-grapheme-prev: New file.
40043         * modules/unigbrk/u32-grapheme-prev-tests: New file.
40044         * lib/unigbrk.in.h: Add prototype for new function.
40045         * lib/unigbrk/u32-grapheme-prev.c: New file.
40046         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
40048         New module 'u8-grapheme-breaks'.
40049         * modules/unigbrk/u8-grapheme-breaks: New file.
40050         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
40051         * lib/unigbrk.in.h: Add prototype for new function.
40052         * lib/unigbrk/u8-grapheme-breaks.c: New file.
40053         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
40055         New module 'u16-grapheme-breaks'.
40056         * modules/unigbrk/u16-grapheme-breaks: New file.
40057         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
40058         * lib/unigbrk.in.h: Add prototype for new function.
40059         * lib/unigbrk/u16-grapheme-breaks.c: New file.
40060         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
40062         New module 'u32-grapheme-breaks'.
40063         * modules/unigbrk/u32-grapheme-breaks: New file.
40064         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
40065         * lib/unigbrk.in.h: Add prototype for new function.
40066         * lib/unigbrk/u32-grapheme-breaks.c: New file.
40067         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
40069         New module 'ulc-grapheme-breaks'.
40070         * modules/unigbrk/ulc-grapheme-breaks: New file.
40071         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
40072         * m4/locale-ar.m4: New file.
40073         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
40074         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
40075         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
40077 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
40079         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
40080         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
40081         modified how this file was generated before I initially submitted
40082         the module, but failed to regenerate it.  This meant that several
40083         of the level2 entries were wrong.
40084         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
40085         Remove the division-by-2 that is folded into the table now that
40086         gbrkprop.h has been regenerated properly.  Now -1 entries are
40087         handled correctly.
40089         New module 'unigbrk/uc-gbrk-prop-tests'.
40090         * modules/unigbrk/uc-gbrk-prop-tests: New file.
40091         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
40092         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
40093         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
40095 2011-01-01  Bruno Haible  <bruno@clisp.org>
40097         Avoid use of hexadecimal escapes.
40098         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
40099         instead of hexadecimal escapes.
40101 2011-01-01  Jim Meyering  <meyering@redhat.com>
40103         maint: new rule to update copyright year ranges
40104         * Makefile (update-copyright): New rule.
40106         maint: indent with TABs in Makefile
40107         * Makefile: Expand leading sequences of spaces to TABs
40109         version-etc: update the copyright year it reports
40110         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
40112 2010-12-31  Bruno Haible  <bruno@clisp.org>
40114         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
40115         * lib/isfinite.c (zerof, zerod, zerol): New variables.
40116         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
40117         zero.
40119 2010-12-31  Bruno Haible  <bruno@clisp.org>
40121         pwrite: Work around HP-UX 11.11 bug.
40122         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
40123         works and set REPLACE_PWRITE if not.
40124         * lib/pwrite.c (pwrite): Add an implementation that uses the system
40125         function.
40126         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
40128 2010-12-31  Bruno Haible  <bruno@clisp.org>
40130         pread: Work around HP-UX 11 bugs.
40131         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
40132         and set REPLACE_PREAD if not.
40133         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
40135 2010-12-31  Eric Blake  <eblake@redhat.com>
40137         nl_langinfo: fix YESEXPR on Irix 6.5
40138         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
40139         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
40140         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
40141         it.
40143 2010-12-31  Bruno Haible  <bruno@clisp.org>
40145         iconv: Document HP-UX 11 bug.
40146         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
40148 2010-12-31  Bruno Haible  <bruno@clisp.org>
40150         ldexpl: Fix link error on HP-UX 11.
40151         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
40152         LDEXPL_LIBM, using $ISNANL_LIBM.
40154 2010-12-31  Eric Blake  <eblake@redhat.com>
40156         ftello: avoid compilation failure with SunStudio c89
40157         * lib/ftello.c (ftello): Use lseek, not llseek.
40159         tests: avoid failing coreutils tests on cygwin
40160         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
40161         (create_exe_shims_): Return 0 when skipping.
40163 2010-12-31  Bruno Haible  <bruno@clisp.org>
40165         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
40166         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
40168 2010-12-31  Bruno Haible  <bruno@clisp.org>
40170         waitpid: Fix link error in C++ mode.
40171         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
40173 2010-12-31  Bruno Haible  <bruno@clisp.org>
40175         isnan: Use GCC built-ins when possible.
40176         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
40177         __builtin_isnan.
40178         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
40179         (isnan): Define using GCC built-ins for GCC >= 4.0.
40181 2010-12-31  Bruno Haible  <bruno@clisp.org>
40183         isnand: Fix mistake.
40184         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
40185         __builtin_isnand.
40187 2010-12-31  Bruno Haible  <bruno@clisp.org>
40189         open: Avoid C++ error on HP-UX 11.
40190         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
40192 2010-12-31  Bruno Haible  <bruno@clisp.org>
40194         time_r: Add missing declarations on HP-UX 11.
40195         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
40196         instead of HAVE_LOCALTIME_R.
40197         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
40198         HAVE_LOCALTIME_R always.
40199         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
40200         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
40201         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
40202         HAVE_LOCALTIME_R.
40203         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
40204         * doc/posix-functions/localtime_r.texi: Likewise.
40206 2010-12-29  Eric Blake  <eblake@redhat.com>
40208         mountlist: tweak previous commit
40209         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
40210         Reported by Paul Eggert.
40212         mountlist: fix local drive detection on cygwin
40213         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
40214         that works for cygwin.
40216 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40218         ftoastr, snprintf: ftoastr + snprintf module
40219         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
40220         since the snprintf module now should be good enough here.
40221         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
40222         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
40223         and gl_MODULE_INDICATOR([snprintf]), but the former enables
40224         GNULIB_SNPRINTF only for the test directory, and the latter
40225         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
40226         seems to suffice by itself.
40228 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40230         alloca: one step towards thread-safety
40231         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
40232         need for a static variable.  All callers changed.  This does not
40233         make the alloca replacement thread-safe, but it's one step.
40235         tests: minor indenting change
40236         * tests/init.sh: Sync from coreutils housekeeping patch
40237         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
40238         to keep lines within 80 columns.
40240 2010-12-28  Jim Meyering  <meyering@redhat.com>
40242         regex: don't infloop on persistent failing calloc
40243         * lib/regexec.c (build_trtable): Return failure indication upon
40244         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
40245         In glibc, this was fixed for version 2.13:
40246         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
40248 2010-12-28  Bruno Haible  <bruno@clisp.org>
40249             Paul Eggert <eggert@cs.ucla.edu>
40251         linkat: Make implementation robust against system behaviour variations.
40252         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
40253         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
40254         way, and to -2 if it needs a generic runtime test.
40255         * lib/linkat.c (solaris_optimized_link_immediate,
40256         solaris_optimized_link_follow): New functions.
40257         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
40258         (check_same_link): Use it.
40260 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
40262         New module 'unigbrk/base'.
40263         * modules/unigbrk/base: New file.
40264         * lib/unigbrk.in.h: New file.
40266         New module 'unigbrk/uc-gbrk-prop'.
40267         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
40268         * modules/unigbrk/uc-gbrk-prop: New file.
40269         * lib/unigbrk/gbrkprop.h: New file.
40270         * lib/unigbrk/uc-gbrk-prop.c: New file.
40272         New module 'unigbrk/uc-is-grapheme-break'.
40273         * modules/unigbrk/uc-is-grapheme-break: New file.
40274         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
40275         * lib/unigbrk/uc-is-grapheme-break.c: New file.
40276         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
40277         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
40278         * tests/unigbrk/GraphemeBreakTest.txt: New file.
40280         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
40282 2010-12-27  Bruno Haible  <bruno@clisp.org>
40284         linkat test: Avoid failure on Solaris 11 2010-11.
40285         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
40287 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40289         utimens: work around glibc rounding bug on more platforms
40290         * lib/utimens.c (fdutimens): Work around rounding bug even if
40291         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
40292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
40294 2010-12-27  Bruno Haible  <bruno@clisp.org>
40296         select tests: Improve comments.
40297         * tests/test-select.c (do_select): Add comments.
40299 2010-12-27  Bruno Haible  <bruno@clisp.org>
40301         select tests: Safer way of handling timeout.
40302         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
40303         at every invocation.
40305 2010-12-27  Bruno Haible  <bruno@clisp.org>
40307         select tests: Use 'bool' where appropriate.
40308         * tests/test-select.c (connect_to_socket): Change argument type to
40309         'bool'.
40311 2010-12-27  Bruno Haible  <bruno@clisp.org>
40313         select tests: Use existing modules.
40314         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
40315         (configure.ac): Don't test for unistd.h.
40316         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
40317         declared in <unistd.h>.
40319 2010-12-27  Bruno Haible  <bruno@clisp.org>
40321         mbrtowc: Work around a Solaris 7 bug.
40322         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
40323         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
40324         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
40325         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
40326         MBRTOWC_NULL_ARG1_BUG.
40327         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
40328         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
40329         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
40330         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
40332 2010-12-27  Jim Meyering  <meyering@redhat.com>
40334         read-file.c: tweak syntax
40335         * lib/read-file.c (fread_file): Remove space after "*" in function
40336         definitions.
40338 2010-12-27  Bruno Haible  <bruno@clisp.org>
40340         times test: Avoid gcc warnings on OSF/1.
40341         * tests/test-times.c (main): Cast printf arguments from clock_t to
40342         'long int'.
40344 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40346         utimens: work around glibc rounding bug on older Linux kernels
40347         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
40348         on Linux with a glibc whose utimes might not work, then work
40349         around a longstanding glibc bug involving rounding rather than
40350         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
40351         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
40353 2010-12-26  Bruno Haible  <bruno@clisp.org>
40355         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
40356         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
40357         _GL_CXXALIAS_SYS.
40358         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40360 2010-12-26  Bruno Haible  <bruno@clisp.org>
40362         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
40363         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
40364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
40365         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
40366         looking for the declaration.
40367         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
40368         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
40369         problem.
40370         * doc/posix-functions/inet_pton.texi: Likewise.
40372 2010-12-26  Bruno Haible  <bruno@clisp.org>
40374         arpa_inet: Use the common idioms with C++ support.
40375         * lib/arpa_inet.in.h: Include c++defs.h.
40376         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
40377         support.
40378         * modules/arpa_inet (Depends-on): Add c++defs.
40379         (Makefile.am): Substitute the contents of c++defs.h.
40380         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
40381         * modules/arpa_inet-c++-tests: New file.
40382         * tests/test-arpa_inet-c++.cc: New file.
40384 2010-12-25  Bruno Haible  <bruno@clisp.org>
40386         Fix more C++ link errors on Solaris 8.
40387         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
40388         $(LIB_EACCESS).
40389         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
40390         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
40391         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
40392         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
40393         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
40395 2010-12-25  Bruno Haible  <bruno@clisp.org>
40397         printf-posix: Fix link error when a non-GCC compiler is used.
40398         * lib/stdio.in.h (printf): When not using GCC, override printf
40399         correctly.
40400         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40402 2010-12-25  Bruno Haible  <bruno@clisp.org>
40404         strerror_r-posix: Update doc.
40405         * doc/posix-functions/strerror_r.texi: Update doc about the return
40406         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
40408 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40410         utimens: simplify the logic of the previous change
40411         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
40412         This should not affect whether the test succeeds or fails.
40414         utimens: configure better on hosts with NFS clock skew
40415         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
40416         uses the clock of the local host.  It might use the clock of the
40417         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
40418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
40420 2010-12-25  Bruno Haible  <bruno@clisp.org>
40422         ptsname test: Avoid failure on Solaris.
40423         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
40424         open a pseudo-terminal; don't use BSD-style ptys.
40425         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
40427 2010-12-25  Bruno Haible  <bruno@clisp.org>
40429         ptsname: Avoid ERANGE failure on some systems.
40430         * lib/ptsname.c (buffer): Increase size.
40432 2010-12-25  Bruno Haible  <bruno@clisp.org>
40434         rename, renameat: Avoid test failures at NFS mounted locations.
40435         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
40436         so that subsequent mkdir calls succeed.
40438 2010-12-25  Bruno Haible  <bruno@clisp.org>
40440         iswblank: Fix C++ link error on Solaris 8.
40441         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
40442         _GL_FUNCDECL_SYS.
40444 2010-12-25  Bruno Haible  <bruno@clisp.org>
40446         unistd: Fix C++ link error on Solaris 8.
40447         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
40449 2010-12-25  Bruno Haible  <bruno@clisp.org>
40451         readlink doc: Mention an old glibc bug.
40452         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
40454 2010-12-25  Bruno Haible  <bruno@clisp.org>
40456         fcntl-h: Fix for use of C++ on glibc systems.
40457         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
40458         also on glibc systems in C++ mode.
40459         Reported by Gary V. Vaughan <gary@gnu.org>.
40461 2010-12-25  Bruno Haible  <bruno@clisp.org>
40463         roundl-ieee: Make it work on OSF/1 5.1 with cc.
40464         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
40466 2010-12-25  Bruno Haible  <bruno@clisp.org>
40468         truncl-ieee: Make it work on OSF/1 5.1 with cc.
40469         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
40470         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
40471         test whether truncl works according to ISO C 99 with IEC 60559.
40472         * m4/truncl-ieee.m4: New file.
40473         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
40474         m4/signbit.m4.
40475         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
40477 2010-12-25  Bruno Haible  <bruno@clisp.org>
40479         ceill-ieee: Make it work on OSF/1 5.1 with cc.
40480         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
40481         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
40482         test whether ceill works according to ISO C 99 with IEC 60559.
40483         * m4/ceill-ieee.m4: New file.
40484         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
40485         m4/signbit.m4.
40486         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
40488 2010-12-25  Bruno Haible  <bruno@clisp.org>
40490         Ensure all prerequisites of <wchar.h> are included.
40491         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
40492         before <wchar.h>.
40493         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
40494         gl_MBRLEN_NUL_RETVAL): Likewise.
40495         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40496         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
40497         AC_FUNC_MBRTOWC): Likewise.
40498         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40499         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40500         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40501         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40502         Likewise.
40503         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40504         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
40505         (gl_WCHAR_H): Improve comments.
40506         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40508 2010-12-25  Bruno Haible  <bruno@clisp.org>
40510         strtok_r: Fix C syntax error in autoconf macro.
40511         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
40512         characters in test program.
40514 2010-12-24  Bruno Haible  <bruno@clisp.org>
40516         ceil, trunc, round: Fix gcc warnings.
40517         * lib/ceil.c (MIN): Undefine before redefining.
40518         * lib/trunc.c (MIN): Likewise.
40519         * lib/round.c (MIN): Likewise.
40520         Include <math.h> first.
40522 2010-12-24  Bruno Haible  <bruno@clisp.org>
40524         select tests: Avoid failures on OSF/1 5.1.
40525         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
40526         failure of closing the last socket; it may fail with ECONNRESET.
40528 2010-12-24  Eric Blake  <eblake@redhat.com>
40530         stdint: avoid HP-UX 10.20 preprocessor bug
40531         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
40532         than #if.
40533         * tests/test-floor2.c (main): Likewise.
40534         Reported by Peter O'Gorman.
40536         pipe: make obsoletion transition easier
40537         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
40538         * modules/pipe (Files): Include revived file.
40539         (Include): Drop reference, to mirror getdate's behavior.
40541 2010-12-24  Bruno Haible  <bruno@clisp.org>
40543         sys_socket: Hide mismatch of declarations on NonStop Kernel.
40544         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
40545         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
40546         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40548 2010-12-24  Bruno Haible  <bruno@clisp.org>
40550         gethostname: Ensure declaration on NonStop Kernel.
40551         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
40552         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40554 2010-12-24  Bruno Haible  <bruno@clisp.org>
40556         sys_select: Ensure all necessary types on NonStop Kernel.
40557         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
40558         include <sys/time.h>.
40559         * doc/posix-headers/sys_select.texi: Mention that it's missing on
40560         NonStop Kernel.
40561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40563 2010-12-24  Bruno Haible  <bruno@clisp.org>
40565         sys_select: Remove unneeded include.
40566         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
40567         have <sys/select.h>.
40569 2010-12-24  Bruno Haible  <bruno@clisp.org>
40571         gethostname: Provide a fallback for HOST_NAME_MAX.
40572         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
40573         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
40574         instead.
40575         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40577 2010-12-24  Bruno Haible  <bruno@clisp.org>
40579         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
40580         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
40581         (SA_RESTART): Likewise.
40582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40584 2010-12-24  Bruno Haible  <bruno@clisp.org>
40586         signal: Define NSIG.
40587         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
40588         * tests/test-signal.c (nsig): New variable.
40589         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40591 2010-12-24  Bruno Haible  <bruno@clisp.org>
40593         rename, renameat: Avoid test failures on OSF/1 5.1.
40594         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
40595         alternative error codes.
40596         * tests/test-renameat.c (main): Likewise.
40598 2010-12-24  Bruno Haible  <bruno@clisp.org>
40600         *printf: Detect large precisions bug on Solaris 10/SPARC.
40601         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
40602         by Paul Eggert.
40603         * tests/test-snprintf-posix.h (test_function): Add this test code here
40604         too.
40605         * tests/test-sprintf-posix.h (test_function): Likewise.
40606         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40607         * tests/test-vasprintf-posix.c (test_function): Likewise.
40608         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
40609         around by gnulib.
40610         * doc/posix-functions/printf.texi: Likewise.
40611         * doc/posix-functions/snprintf.texi: Likewise.
40612         * doc/posix-functions/sprintf.texi: Likewise.
40613         * doc/posix-functions/vfprintf.texi: Likewise.
40614         * doc/posix-functions/vprintf.texi: Likewise.
40615         * doc/posix-functions/vsnprintf.texi: Likewise.
40616         * doc/posix-functions/vsprintf.texi: Likewise.
40617         * doc/posix-functions/dprintf.texi: Undo last commit.
40618         * doc/posix-functions/vdprintf.texi: Likewise.
40620 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40622         tests: port test-fdutimensat.c to Solaris 8
40623         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
40624         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
40625         On Solaris 8, it fails with errno == ENOSYS, because there is no
40626         futimens (so it can't use the fd), and there is no lutimens (so it
40627         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
40629         vsnprintf: make more consistent with snprintf; doc fixes
40631         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
40632         the byte count return problem was promoted from the snprintf-posix
40633         to the snprintf module.
40634         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40635         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
40636         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
40637         * tests/test-snprintf.c (main): Check the byte count returned.
40638         * tests/test-vsnprintf.c (main): Likewise.
40640 2010-12-23  Eric Blake  <eblake@redhat.com>
40642         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
40643         * modules/sigpipe (License): Relax license.
40645 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40647         doc: document Solaris printf bug with large float precisions
40648         * doc/posix-functions/dprintf.texi (dprintf):
40649         * doc/posix-functions/fprintf.texi (fprintf):
40650         * doc/posix-functions/printf.texi (printf):
40651         * doc/posix-functions/snprintf.texi (snprintf):
40652         * doc/posix-functions/sprintf.texi (sprintf):
40653         * doc/posix-functions/vdprintf.texi (vdprintf):
40654         * doc/posix-functions/vfprintf.texi (vfprintf):
40655         * doc/posix-functions/vprintf.texi (vprintf):
40656         * doc/posix-functions/vsnprintf.texi (vsnprintf):
40657         * doc/posix-functions/vsprintf.texi (vsprintf):
40658         Mention that these functions mishandle large floating point
40659         precisions on Solaris 10.  The same bug is also present in Solaris
40660         8, and I assume earlier.  This causes "cd gnulib-tests; make
40661         check" to fail on Solaris 8 (and I assume, later) when building
40662         the latest coreutils, in test-vasprintf-posix's call to
40663         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
40664         the wide flavors (e.g., wprintf) so this patch just updates the
40665         documentation for the narrow ones.
40667         test-posixtm.c: add two tests
40668         * tests/test-posixtm.c: Add two tests, to highlight the
40669         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
40670         around this bug; this is merely to document it.
40672 2010-12-22  Bruno Haible  <bruno@clisp.org>
40674         getlogin_r: Work around portability problem on OSF/1.
40675         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
40676         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
40677         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
40678         test for a truncated result.
40679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
40680         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
40681         * modules/getlogin_r (Depends-on): Add memchr.
40682         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
40684 2010-12-22  Bruno Haible  <bruno@clisp.org>
40686         ptsname: Avoid test failure on OSF/1 5.1.
40687         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
40688         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
40689         (same_slave): New function.
40690         (main): Use it to compare ptsname's result with the expected file name.
40692 2010-12-22  Bruno Haible  <bruno@clisp.org>
40694         Port extended stdio modules to HP NonStop Kernel.
40695         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
40696         macros.
40697         * lib/fbufmode.c: Update comments.
40698         * lib/fflush.c: Likewise.
40699         * lib/fpurge.c: Likewise.
40700         * lib/freadable.c: Likewise.
40701         * lib/freadahead.c: Likewise.
40702         * lib/freading.c: Likewise.
40703         * lib/freadptr.c: Likewise.
40704         * lib/freadseek.c: Likewise.
40705         * lib/fseeko.c: Likewise.
40706         * lib/fseterr.c: Likewise.
40707         * lib/fwritable.c: Likewise.
40708         * lib/fwriting.c: Likewise.
40709         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40711 2010-12-22  Bruno Haible  <bruno@clisp.org>
40713         ttyname_r: Work around bug on OSF/1 5.1.
40714         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
40715         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
40716         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
40717         present.
40718         * lib/ttyname_r.c (ttyname_r): Update comments.
40720 2010-12-22  Bruno Haible  <bruno@clisp.org>
40722         round: Implement result sign according to IEEE 754.
40723         * lib/round.c (MIN, MINUS_ZERO): New macros.
40724         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
40725         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
40726         * tests/test-round-ieee.c (main): Likewise.
40727         * tests/test-roundl-ieee.c (main): Likewise.
40729         trunc: Implement result sign according to IEEE 754.
40730         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
40731         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
40732         * tests/test-trunc2.c: Include minus-zero.h.
40733         (MINUS_ZERO): New macro.
40734         (trunc_reference): Keep in sync with lib/trunc.c.
40735         * tests/test-truncf2.c: Include minus-zero.h.
40736         (MINUS_ZERO): New macro.
40737         (truncf_reference): Keep in sync with lib/trunc.c.
40738         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
40739         * tests/test-trunc-ieee.c (main): Likewise.
40740         * tests/test-truncl-ieee.c (main): Likewise.
40742         ceil: Implement result sign according to IEEE 754.
40743         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
40744         (FUNC): Return -0.0 for -1 < x < 0.
40745         * tests/test-ceil2.c: Include minus-zero.h.
40746         (MINUS_ZERO): New macro.
40747         (ceil_reference): Keep in sync with lib/ceil.c.
40748         * tests/test-ceilf2.c: Include minus-zero.h.
40749         (MINUS_ZERO): New macro.
40750         (ceilf_reference): Keep in sync with lib/ceil.c.
40751         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
40752         * tests/test-ceil-ieee.c (main): Likewise.
40753         * tests/test-ceill-ieee.c (main): Likewise.
40755         floor: Implement result sign according to IEEE 754.
40756         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
40757         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
40758         * tests/test-floorf2.c (floorf_reference): Likewise.
40759         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
40760         * tests/test-floor-ieee.c (main): Likewise.
40761         * tests/test-floorl-ieee.c (main): Likewise.
40763 2010-12-22  Bruno Haible  <bruno@clisp.org>
40765         getaddrinfo: Update doc.
40766         * doc/posix-functions/gai_strerror.texi: Return type is also different
40767         on AIX and HP-UX.
40769 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40771         getaddrinfo, inet_ntop: Update doc for Solaris.
40772         * doc/posix-functions/gai_strerror.texi: Return type is also an
40773         issue on Solaris 9 and earlier.
40774         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
40775         on Solaris 10 and earlier.
40777 2010-12-21  Bruno Haible  <bruno@clisp.org>
40779         New module 'roundl-ieee'.
40780         * modules/roundl-ieee: New file.
40781         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
40782         test whether roundl works according to ISO C 99 with IEC 60559.
40783         * m4/roundl-ieee.m4: New file.
40784         * modules/roundl-ieee-tests: New file.
40785         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
40786         * tests/test-roundl.c (main): Remove signbit tests.
40787         * modules/roundl-tests (Depends-on): Remove signbit.
40788         * doc/posix-functions/roundl.texi: Mention the new module.
40790 2010-12-21  Bruno Haible  <bruno@clisp.org>
40792         New module 'truncl-ieee'.
40793         * modules/truncl-ieee: New file.
40794         * modules/truncl-ieee-tests: New file.
40795         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
40796         * tests/test-truncl.c (main): Remove signbit tests.
40797         * modules/truncl-tests (Depends-on): Remove signbit.
40798         * doc/posix-functions/truncl.texi: Mention the new module.
40800 2010-12-21  Bruno Haible  <bruno@clisp.org>
40802         New module 'ceill-ieee'.
40803         * modules/ceill-ieee: New file.
40804         * modules/ceill-ieee-tests: New file.
40805         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
40806         * tests/test-ceill.c (main): Remove signbit tests.
40807         * modules/ceill-tests (Depends-on): Remove signbit.
40808         * doc/posix-functions/ceill.texi: Mention the new module.
40810 2010-12-21  Bruno Haible  <bruno@clisp.org>
40812         New module 'floorl-ieee'.
40813         * modules/floorl-ieee: New file.
40814         * modules/floorl-ieee-tests: New file.
40815         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
40816         * tests/test-floorl.c (main): Remove signbit tests.
40817         * modules/floorl-tests (Depends-on): Remove signbit.
40818         * doc/posix-functions/floorl.texi: Mention the new module.
40820 2010-12-21  Bruno Haible  <bruno@clisp.org>
40822         New module 'round-ieee'.
40823         * modules/round-ieee: New file.
40824         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
40825         whether round works according to ISO C 99 with IEC 60559.
40826         * m4/round-ieee.m4: New file.
40827         * modules/round-ieee-tests: New file.
40828         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
40829         * tests/test-round1.c (main): Remove signbit tests.
40830         * modules/round-tests (Depends-on): Remove 'signbit'.
40831         * doc/posix-functions/round.texi: Mention the new module.
40833 2010-12-21  Bruno Haible  <bruno@clisp.org>
40835         New module 'trunc-ieee'.
40836         * modules/trunc-ieee: New file.
40837         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
40838         whether trunc works according to ISO C 99 with IEC 60559.
40839         * m4/trunc-ieee.m4: New file.
40840         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
40841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
40842         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
40843         * modules/trunc-ieee-tests: New file.
40844         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
40845         * tests/test-trunc1.c (main): Remove signbit tests.
40846         * modules/trunc-tests (Depends-on): Remove 'signbit'.
40847         * doc/posix-functions/trunc.texi: Mention the new module.
40849 2010-12-21  Bruno Haible  <bruno@clisp.org>
40851         New module 'ceil-ieee'.
40852         * modules/ceil-ieee: New file.
40853         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
40854         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
40855         ISO C 99 with IEC 60559.
40856         * m4/ceil-ieee.m4: New file.
40857         * modules/ceil (Files): Add lib/ceil.c.
40858         (Depends-on): Add 'float'.
40859         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40860         * lib/math.in.h (ceil): New declaration.
40861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
40862         REPLACE_CEIL.
40863         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
40864         * modules/ceil-ieee-tests: New file.
40865         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
40866         * tests/test-math-c++.cc: Check the signature of 'ceil'.
40867         * doc/posix-functions/ceil.texi: Mention the new module.
40869 2010-12-21  Bruno Haible  <bruno@clisp.org>
40871         New module 'floor-ieee'.
40872         * modules/floor-ieee: New file.
40873         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
40874         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
40875         ISO C 99 with IEC 60559.
40876         * m4/floor-ieee.m4: New file.
40877         * modules/floor (Files): Add lib/floor.c.
40878         (Depends-on): Add 'float'.
40879         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40880         * lib/math.in.h (floor): New declaration.
40881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
40882         REPLACE_FLOOR.
40883         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
40884         * modules/floor-ieee-tests: New file.
40885         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
40886         * tests/test-math-c++.cc: Check the signature of 'floor'.
40887         * doc/posix-functions/floor.texi: Mention the new module.
40889 2010-12-21  Bruno Haible  <bruno@clisp.org>
40891         New module 'roundf-ieee'.
40892         * modules/roundf-ieee: New file.
40893         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
40894         test whether roundf works according to ISO C 99 with IEC 60559.
40895         * m4/roundf-ieee.m4: New file.
40896         * modules/roundf-ieee-tests: New file.
40897         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
40898         * tests/test-roundf1.c (main): Remove signbit tests.
40899         * modules/roundf-tests (Depends-on): Remove 'signbit'.
40900         * doc/posix-functions/roundf.texi: Mention the new module.
40902 2010-12-21  Bruno Haible  <bruno@clisp.org>
40904         New module 'truncf-ieee'.
40905         * modules/truncf-ieee: New file.
40906         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
40907         test whether truncf works according to ISO C 99 with IEC 60559.
40908         * m4/truncf-ieee.m4: New file.
40909         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
40910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
40911         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
40912         * modules/truncf-ieee-tests: New file.
40913         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
40914         * tests/test-truncf1.c (main): Remove signbit tests.
40915         * modules/truncf-tests (Depends-on): Remove 'signbit'.
40916         * doc/posix-functions/truncf.texi: Mention the new module.
40918 2010-12-21  Bruno Haible  <bruno@clisp.org>
40920         New module 'ceilf-ieee'.
40921         * modules/ceilf-ieee: New file.
40922         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
40923         test whether ceilf works according to ISO C 99 with IEC 60559.
40924         * m4/ceilf-ieee.m4: New file.
40925         * modules/ceilf-ieee-tests: New file.
40926         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
40927         * tests/test-ceilf1.c (main): Remove signbit tests.
40928         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
40929         * doc/posix-functions/ceilf.texi: Mention the new module.
40931 2010-12-21  Bruno Haible  <bruno@clisp.org>
40933         New module 'floorf-ieee'.
40934         * modules/floorf-ieee: New file.
40935         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
40936         test whether floorf works according to ISO C 99 with IEC 60559.
40937         * m4/floorf-ieee.m4: New file.
40938         * modules/floorf-ieee-tests: New file.
40939         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
40940         * tests/test-floorf1.c (main): Remove signbit tests.
40941         * modules/floorf-tests (Depends-on): Remove 'signbit'.
40942         * doc/posix-functions/floorf.texi: Mention the new module.
40944 2010-12-21  Bruno Haible  <bruno@clisp.org>
40946         Support for minus zero in autoconf macros.
40947         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
40948         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
40949         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
40950         * tests/minus-zero.h: Update comments.
40952 2010-12-21  Bruno Haible  <bruno@clisp.org>
40954         Tests for module 'ceil'.
40955         * modules/ceil-tests: New file.
40956         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
40957         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
40959 2010-12-21  Bruno Haible  <bruno@clisp.org>
40961         Tests for module 'floor'.
40962         * modules/floor-tests: New file.
40963         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
40964         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
40966 2010-12-21  Bruno Haible  <bruno@clisp.org>
40968         math: Fix indentation.
40969         * lib/math.in.h (floorf): Fix indentation.
40971 2010-12-21  Bruno Haible  <bruno@clisp.org>
40973         Fix cross-compilation guesses on Solaris.
40974         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
40975         not match "solaris2.10".
40976         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40977         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
40978         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
40980 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40982         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
40983         This fixes a problem observed with the latest coreutils snapshot
40984         that caused a test to fail on Solaris 8.  src/csplit.c's call
40985         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
40986         earlier, instead of returning the number of bytes that would have
40987         been generated; this causes csplit to incorrectly report memory
40988         exhaustion.
40989         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
40990         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
40991         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
40992         comments to match.
40993         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
40994         Fix typo in matching older versions of Solaris: "solaris2.10"
40995         is matched by the shell pattern "solaris2.[0-9]*".  This matters
40996         only for guessing while cross-compiling.
40997         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
40999 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
41001         ftoastr: fix comment again
41002         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
41003         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
41004         Also, simplify example a bit by using flags = 0.
41006 2010-12-20  Bruno Haible  <bruno@clisp.org>
41008         round*, trunc*: Update documentation regarding glibc.
41009         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
41010         * doc/posix-functions/round.texi: Likewise.
41011         * doc/posix-functions/roundl.texi: Likewise.
41012         * doc/posix-functions/truncf.texi: Likewise.
41013         * doc/posix-functions/trunc.texi: Likewise.
41014         * doc/posix-functions/truncl.texi: Likewise.
41016 2010-12-20  Bruno Haible  <bruno@clisp.org>
41018         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
41019         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
41020         * doc/posix-functions/round.texi: Likewise.
41021         * doc/posix-functions/roundl.texi: Likewise.
41023 2010-12-20  Bruno Haible  <bruno@clisp.org>
41025         ttyname_r: Add missing declaration on HP-UX 11.
41026         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
41027         HAVE_TTYNAME_R.
41028         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
41029         declared. Set HAVE_TTYNAME_R always.
41030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41031         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
41032         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
41033         HAVE_TTYNAME_R.
41034         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
41036 2010-12-20  Bruno Haible  <bruno@clisp.org>
41038         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
41039         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
41040         * doc/posix-functions/getlogin_r.texi: Likewise.
41041         * tests/test-getlogin.c: Include <errno.h>.
41042         (main): Avoid test failure on HP-UX 11.11.
41043         * tests/test-getlogin_r.c (main): Likewise.
41045 2010-12-20  Bruno Haible  <bruno@clisp.org>
41047         getlogin_r: Add missing declaration on HP-UX 11.
41048         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
41049         declared also when it exists as a function.
41050         * doc/posix-functions/getlogin_r.texi: Document this workaround.
41052 2010-12-20  Bruno Haible  <bruno@clisp.org>
41054         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
41055         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
41056         through wcrtomb.
41058 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41060         ftoastr: fix comment
41061         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
41062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
41064 2010-12-19  Bruno Haible  <bruno@clisp.org>
41066         isnan: Ensure it is a macro.
41067         * lib/math.in.h (isnan): Define as a macro if not already a macro.
41068         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
41069         Solaris.
41071 2010-12-19  Bruno Haible  <bruno@clisp.org>
41073         ldexpl test: Fix link error on OSF/1 5.1.
41074         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
41076 2010-12-19  Bruno Haible  <bruno@clisp.org>
41078         wctype: Make it work in C++ mode on OSF/1 5.1.
41079         * lib/wctype.in.h (iswblank): Declare but not define here.
41080         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
41081         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
41082         * modules/wctype (Files): Add lib/iswblank.c.
41084 2010-12-19  Bruno Haible  <bruno@clisp.org>
41086         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
41087         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
41088         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
41090 2010-12-19  Bruno Haible  <bruno@clisp.org>
41092         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
41093         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
41094         _POSIX_PII_SOCKET.
41095         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
41096         * doc/posix-functions/recvfrom.texi: Likewise.
41097         * doc/posix-functions/send.texi: Likewise.
41098         * doc/posix-functions/sendto.texi: Likewise.
41100 2010-12-19  Bruno Haible  <bruno@clisp.org>
41102         tcgetsid: Add missing declaration on OSF/1 5.1.
41103         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
41104         HAVE_TCGETSID.
41105         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
41106         Don't set HAVE_TCGETSID.
41107         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
41108         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
41109         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
41110         HAVE_TCGETSID.
41111         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
41113 2010-12-19  Bruno Haible  <bruno@clisp.org>
41115         stdio: Fix problem with popen() declaration on OSF/1 5.1.
41116         * lib/stdio.in.h: During the include_next statement, let recursive
41117         includes of this file include only the system header file.
41119 2010-12-19  Bruno Haible  <bruno@clisp.org>
41121         iconv_open: Fix regression from 2010-12-04.
41122         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
41123         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
41125 2010-12-19  Bruno Haible  <bruno@clisp.org>
41127         stdbool test: Avoid a gcc warning.
41128         * tests/test-stdbool.c (main): Fail if e1 is false.
41129         Reported by Jim Meyering.
41131 2010-12-19  Jim Meyering  <meyering@redhat.com>
41133         setenv: restore to working order
41134         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
41135         mistakenly removed.
41136         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
41137         HAVE_SETENV.
41138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
41139         HAVE_SETENV.
41141 2010-12-19  Bruno Haible  <bruno@clisp.org>
41143         Document some different function declarations on OSF/1 5.1.
41144         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
41145         * doc/posix-functions/inet_ntop.texi: Likewise.
41146         * doc/posix-functions/gethostname.texi: Likewise.
41147         * lib/unistd.in.h (gethostname): Update comment.
41149 2010-12-19  Bruno Haible  <bruno@clisp.org>
41151         doc: Mention vasprintf-posix module.
41152         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
41153         the 'vasprintf-posix' module.
41154         * doc/glibc-functions/vasprintf.texi: Likewise.
41156 2010-12-19  Bruno Haible  <bruno@clisp.org>
41158         unsetenv: Add missing declaration on OSF/1 5.1.
41159         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
41160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
41161         Don't set HAVE_UNSETENV. In the test program, set _BSD.
41162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
41163         not HAVE_UNSETENV.
41164         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
41165         HAVE_UNSETENV.
41166         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
41168 2010-12-19  Bruno Haible  <bruno@clisp.org>
41170         setenv: Add missing declaration on OSF/1 5.1.
41171         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
41172         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
41173         declared. Don't set HAVE_SETENV.
41174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
41175         not HAVE_SETENV.
41176         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
41177         HAVE_SETENV.
41178         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
41180 2010-12-19  Bruno Haible  <bruno@clisp.org>
41182         nl_langinfo tests: Avoid gcc warning.
41183         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
41185 2010-12-19  Bruno Haible  <bruno@clisp.org>
41187         mknod: Avoid error in C++ mode on OSF/1 with GCC.
41188         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
41189         _GL_CXXALIAS_SYS.
41191 2010-12-19  Bruno Haible  <bruno@clisp.org>
41193         stdbool: Relax test.
41194         * tests/test-stdbool.c (e): Don't require that casts from a variable's
41195         address to 'bool' work in static initializer, for compilers other than
41196         GCC.
41198 2010-12-19  Bruno Haible  <bruno@clisp.org>
41200         ftello: Add missing declaration on OSF/1 5.1.
41201         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
41202         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
41203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
41204         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
41205         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
41207 2010-12-19  Bruno Haible  <bruno@clisp.org>
41209         fseeko: Add missing declaration on OSF/1 5.1.
41210         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
41211         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
41212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
41213         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
41214         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
41216 2010-12-19  Bruno Haible  <bruno@clisp.org>
41218         fchdir: Add missing declaration on OSF/1 5.1.
41219         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
41220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
41221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
41222         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
41223         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
41225 2010-12-19  Bruno Haible  <bruno@clisp.org>
41227         relocatable-prog-wrapper: Separate from relocatable-prog.
41228         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
41229         uninstall-relocwrapper rule here.
41230         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
41231         Reported by Ian Beckwith <ianb@erislabs.net>.
41233 2010-12-19  Bruno Haible  <bruno@clisp.org>
41235         unistr/u8-mbsnlen: Add missing dependency.
41236         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
41237         Reported by Ian Beckwith <ianb@erislabs.net>.
41239 2010-12-19  Bruno Haible  <bruno@clisp.org>
41241         iconv: Make it possible again to use this module without 'iconv-h'.
41242         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
41243         if it is not defined.
41244         Reported by Ian Beckwith <ianb@erislabs.net>.
41246 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41248         acl: port to Solaris 8 when copying from tmpfs to ufs
41249         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
41250         error number.  Problem observed on Solaris 8 with latest
41251         coreutils, with "mv A B", where A is on a tmpfs file system and B
41252         is on a ufs file system.  This caused coreutils' mv/part-symlink
41253         test to fail.
41255         tests: set fail=0 at start
41256         * tests/init.sh (setup_): Move fail=0 initialization here ...
41257         (mktempd_): ... from here, so that tests can rely on fail being
41258         set to 0 initially.  This fixes a problem in coreutils; see:
41259         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
41261 2010-12-18  Bruno Haible  <bruno@clisp.org>
41263         memmem-simple: Stylistic changes.
41264         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
41265         Fix preprocessor directive indentation.
41267 2010-12-15  Pádraig Brady  <P@draigBrady.com>
41269         memmem, memmem-simple: reorganize and expand empty needle check
41270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
41271         functional checks to memmem-simple so that one has a fully functional
41272         memmem by using just this module.
41273         Restrict the performance only check to the memmem module.
41274         Also expand the empty needle check to ensure the correct
41275         pointer is returned, not just a non NULL pointer.
41276         * doc/glibc-functions/memmem.texi: Rearrange the portability
41277         documentation to correlate with the rearranged checks.
41278         Clarify exactly how the memmem and memmem-simple modules
41279         relate to each other.
41281 2010-12-15  Pádraig Brady  <P@draigBrady.com>
41282             Bruno Haible  <bruno@clisp.org>
41284         Improve cross-compilation guesses for uClibc.
41285         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
41286         that uClibc does not have the glibc bug.
41287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
41288         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
41290 2010-12-14  Eric Blake  <eblake@redhat.com>
41292         configmake: provide fallbacks for oldest supported autotools
41293         * m4/configmake.m4: New file.
41294         * modules/configmake (Files): Ship it.
41295         (configure.ac): Use it to guarantee fallbacks.
41297 2010-12-13  Pádraig Brady  <P@draigBrady.com>
41299         read-file: Improve handling of large files
41300         * lib/read-file.c (fread_file): Minimize realloc()s
41301         for regular files, and better manage sizes around SIZE_MAX.
41303 2010-12-13  Eric Blake  <eblake@redhat.com>
41305         cloexec, fcntl: relax license
41306         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
41307         consent from all contributors.
41308         * modules/fcntl (License): Likewise.
41310 2010-12-10  Bruno Haible  <bruno@clisp.org>
41312         Tests for module 'pipe-posix'.
41313         * modules/pipe-posix-tests: New file.
41314         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
41316 2010-12-10  Bruno Haible  <bruno@clisp.org>
41318         pipe-posix: Make it work in C++ mode.
41319         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
41320         (pipe): Use common idiom, not a macro definition.
41321         * lib/pipe.c: New file.
41322         * m4/pipe.m4: New file.
41323         * modules/pipe-posix (Description): Enhance.
41324         (Files): Add lib/pipe.c, m4/pipe.m4.
41325         (configure.ac): Invoke gl_FUNC_PIPE.
41326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
41327         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
41328         * tests/test-unistd-c++.cc: Check the signature of pipe.
41330 2010-12-10  Bruno Haible  <bruno@clisp.org>
41332         Rename module 'pipe' to 'spawn-pipe'.
41333         * modules/spawn-pipe: New file, renamed from modules/pipe.
41334         (Files, configure.ac, Makefile.am): Update.
41335         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
41336         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
41337         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
41338         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
41339         "spawn-pipe.h" instead of "pipe.h".
41340         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
41341         to gl_SPAWN_PIPE.
41342         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
41343         (Files, Makefile.am): Update.
41344         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
41345         Update.
41346         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
41347         Include "spawn-pipe.h" instead of "pipe.h".
41348         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
41349         * lib/javacomp.c: Likewise.
41350         * lib/javaversion.c: Likewise.
41351         * lib/pipe-filter-gi.c: Likewise.
41352         * lib/pipe-filter-ii.c: Likewise.
41353         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
41354         * modules/javacomp (Depends-on): Likewise.
41355         * modules/javaversion (Depends-on): Likewise.
41356         * modules/pipe-filter-gi (Depends-on): Likewise.
41357         * modules/pipe-filter-ii (Depends-on): Likewise.
41358         * MODULES.html.sh (Executing programs): Update.
41359         * NEWS: Mention the change.
41361 2010-12-10  Eric Blake  <eblake@redhat.com>
41363         pipe-posix: new module
41364         * modules/pipe-posix: New file.
41365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
41366         (gl_UNISTD_H): Check for declaration.
41367         * modules/unistd (Makefile.am): Substitute it.
41368         * lib/unistd.in.h (pipe): Provide it for mingw.
41369         * doc/posix-functions/pipe.texi (pipe): Update documentation.
41370         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
41372 2010-12-07  Bruno Haible  <bruno@clisp.org>
41374         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
41375         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
41376         u8_strcmp_gnu.
41377         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
41379 2010-12-06  Bruno Haible  <bruno@clisp.org>
41381         Update internal documentation.
41382         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
41384 2010-12-04  Bruno Haible  <bruno@clisp.org>
41386         Put more information about failed tests into the test return codes.
41387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
41388         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
41389         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
41390         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
41391         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
41392         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41393         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41394         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41395         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
41396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41397         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
41398         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41399         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
41400         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41401         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
41402         returns a bit mask.
41403         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
41404         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
41405         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
41406         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
41407         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41408         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
41409         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41411         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
41412         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
41413         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41414         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
41415         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
41417         * m4/link.m4 (gl_FUNC_LINK): Likewise.
41418         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41419         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
41420         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
41421         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41422         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
41423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41424         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
41426         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41427         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
41428         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41429         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
41430         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
41431         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
41432         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
41433         gl_PRINTF_PRECISION): Likewise.
41434         * m4/regex.m4 (gl_REGEX): Likewise.
41435         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
41437         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
41438         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41439         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41441         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
41442         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
41443         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41444         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41445         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41446         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41447         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
41448         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41449         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41450         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41451         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
41452         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41454         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
41455         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
41456         enumerated value.
41457         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
41459 2010-12-04  Bruno Haible  <bruno@clisp.org>
41461         Update for Solaris 11 2010-11.
41462         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
41463         Express, released in November 2010.
41465 2010-12-04  Bruno Haible  <bruno@clisp.org>
41467         nproc: Relax license.
41468         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
41469         and Paul Eggert.
41470         Requested by Ludovic Courtès <ludo@gnu.org>.
41472 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
41474         utimecmp: fine-grained src to nearby coarse-grained dest
41476         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
41477         and the source is on a file system with higher-resolution time
41478         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
41479         not work, and the time stamps are close together, the algorithm to
41480         determine the exact resolution from the read-back mtime was buggy:
41481         it had a "!=" where it should have had an "==".  This bug has been
41482         in the code ever since it was introduced to gnulib.
41483         Problem reported by Dan Jacobson in
41484         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
41486 2010-11-30  Bruno Haible  <bruno@clisp.org>
41488         strerror_r-posix: Fix autoconf test.
41489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
41491 2010-11-28  Bruno Haible  <bruno@clisp.org>
41492             Paul Eggert  <eggert@cs.ucla.edu>
41494         Tests for module 'getdomainname'.
41495         * modules/getdomainname-tests: New file.
41496         * tests/test-getdomainname.c: New file, based on
41497         tests/test-gethostname.c.
41499 2010-11-28  Bruno Haible  <bruno@clisp.org>
41500             Paul Eggert  <eggert@cs.ucla.edu>
41502         getdomainname: Use the system function when possible.
41503         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
41504         (getdomainname): Replace if needed. Provide the declaration if it is
41505         missing. Don't use _GL_CXXALIAS_SYS_CAST.
41506         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
41507         (getdomainname): When the system has getdomainname, call the system
41508         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
41509         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41510         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
41511         found in libnsl. Look for the declaration also in <netdb.h>. Replace
41512         the function if its second argument is of type 'int' or if it is found
41513         in libnsl.
41514         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
41515         <sys/systeminfo.h> and sysinfo().
41516         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
41517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41518         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
41519         HAVE_GETDOMAINNAME.
41520         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
41521         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
41522         * doc/glibc-functions/getdomainname.texi: Document the problems with
41523         the getdomainname declaration.
41525 2010-11-28  Bruno Haible  <bruno@clisp.org>
41527         sys_socket: Ensure ss_family field on AIX.
41528         * lib/sys_socket.in.h (ss_family): New macro definition.
41529         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
41530         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
41531         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41532         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
41533         * modules/sys_socket (Makefile.am): Substitute
41534         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
41535         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
41537 2010-11-27  Bruno Haible  <bruno@clisp.org>
41539         readline: Improve configure output.
41540         * m4/readline.m4 (gl_FUNC_READLINE): Make the
41541         "checking for readline..." result understandable.
41543 2010-11-27  Bruno Haible  <bruno@clisp.org>
41545         *printf-posix: Detect a bug on Solaris 10/x86.
41546         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
41547         for floating-point output.
41548         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
41549         directive.
41550         * tests/test-snprintf-posix.h (test_function): Likewise.
41551         * tests/test-sprintf-posix.h (test_function): Likewise.
41552         * tests/test-vasprintf-posix.c (test_function): Likewise.
41553         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
41554         * doc/posix-functions/printf.texi: Likewise.
41555         * doc/posix-functions/snprintf.texi: Likewise.
41556         * doc/posix-functions/sprintf.texi: Likewise.
41557         * doc/posix-functions/vfprintf.texi: Likewise.
41558         * doc/posix-functions/vprintf.texi: Likewise.
41559         * doc/posix-functions/vsnprintf.texi: Likewise.
41560         * doc/posix-functions/vsprintf.texi: Likewise.
41561         * doc/glibc-functions/obstack_printf.texi: Likewise.
41562         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41564 2010-11-27  Bruno Haible  <bruno@clisp.org>
41566         Fix link error when module libunistring-optional is in use.
41567         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
41568         * modules/striconveha-tests (Makefile.am): Likewise.
41570 2010-11-27  Bruno Haible  <bruno@clisp.org>
41572         regex: Mention link dependencies.
41573         * modules/regex (Link): New section.
41574         * modules/rpmatch (Link): Likewise.
41575         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
41577 2010-11-27  Bruno Haible  <bruno@clisp.org>
41579         ftoastr: Fix compilation error on Solaris.
41580         * lib/ftoastr.c: Include <config.h>.
41582 2010-11-27  Bruno Haible  <bruno@clisp.org>
41584         getloadavg: Update documentation.
41585         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
41587 2010-11-27  Bruno Haible  <bruno@clisp.org>
41589         sys_socket: Fix test whether the functions are declared.
41590         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
41591         not <sys/select.h>.
41593 2010-11-27  Bruno Haible  <bruno@clisp.org>
41595         getpass: Make sure to get system declaration on some platforms.
41596         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
41597         gl_USE_SYSTEM_EXTENSIONS.
41598         * modules/getpass (Depends-on): Add extensions.
41600 2010-11-26  Bruno Haible  <bruno@clisp.org>
41602         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
41603         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
41604         'iconv' module is present.
41605         (ICONV_CONST): New macro.
41606         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
41607         ICONV_CONST.
41608         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
41609         set ICONV_CONST.
41610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
41611         here.
41612         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
41613         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
41614         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
41615         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
41616         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
41617         present.
41619 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41621         ftoastr: comment fix
41622         * lib/ftoastr.c: "little" -> "little or no" in comment
41624 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
41626         stdint: port to GCC 4.3 + OSX + Octave
41627         On this platform, stdint.h is buggy and defines int64_t to long
41628         long int.  The replacement defined it to long int, causing
41629         problems with C++ style name mangling.  Instead, trust the system
41630         definition if INT64_MAX is defined, and likewise for the unsigned
41631         variant.   Problem reported by Jarno Rajahalme in
41632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
41633         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
41634         and don't mess with int64_t and INT64_MAX in this case.
41635         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
41637 2010-11-24  Bruno Haible  <bruno@clisp.org>
41639         doc: Corrections regarding MacOS X 10.4 and 10.5.
41640         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
41641         MacOS X.
41642         Reported by Simon Josefsson.
41644 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
41646         Uninstall ".bin" files installed by relocwrapper.
41647         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
41648         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
41649         unless it is already there.
41651 2010-11-21  Bruno Haible  <bruno@clisp.org>
41653         Update for NetBSD 5.0.
41654         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
41655         NetBSD; the test fails on NetBSD 5.0.
41656         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
41657         about NetBSD.
41659 2010-11-21  Bruno Haible  <bruno@clisp.org>
41661         Update for HP-UX 11.23 and HP-UX 11.31.
41662         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
41663         HP-UX.
41665 2010-11-21  Bruno Haible  <bruno@clisp.org>
41667         Update for MacOS X 10.5.
41668         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
41669         MacOS X; the test fails on MacOS X 10.5.8.
41670         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
41671         about MacOS X.
41673 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
41675         bootstrap: add bootstrap_sync option.
41676         See discussion at
41677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
41678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
41679         * build-aux/bootstrap: Accept --bootstrap-sync to update
41680         bootstrap if it is not identical to the local gnulib's
41681         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
41682         enable this by default.  Accept --no-bootstrap-sync to disable
41683         it.
41685 2010-11-20  Bruno Haible  <bruno@clisp.org>
41687         Ensure that <features.h> is included before __GLIBC__ is tested.
41688         * lib/printf-parse.h: Include <features.h>.
41689         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
41690         Reported by Mike Frysinger <vapier@gentoo.org>.
41692         Ensure that <features.h> is included before __GLIBC__ is tested.
41693         * lib/wchar.in.h: Include <features.h>.
41694         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
41695         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
41696         Reported by Mike Frysinger <vapier@gentoo.org>.
41698         Ensure that <features.h> is included before __GLIBC__ is tested.
41699         * lib/arpa_inet.in.h: Include <features.h>.
41700         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
41701         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
41702         Reported by Mike Frysinger <vapier@gentoo.org>.
41704         Ensure that <features.h> is included before __GLIBC__ is tested.
41705         * build-aux/link-warning.h: Include <features.h>.
41706         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
41707         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
41708         Reported by Mike Frysinger <vapier@gentoo.org>.
41710         Ensure that <features.h> is included before __GLIBC__ is tested.
41711         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
41712         Reported by Mike Frysinger <vapier@gentoo.org>.
41714 2010-11-20  Bruno Haible  <bruno@clisp.org>
41716         memmem: Fix autoconf test.
41717         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
41719 2010-11-20  Bruno Haible  <bruno@clisp.org>
41721         Port to uClibc.
41722         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
41723         * lib/fcntl.in.h: Likewise.
41724         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
41725         * lib/mbrtowc.c (mbrtowc): Likewise.
41726         * lib/relocatable.c (find_shared_library_fullname): Likewise.
41727         * lib/strerror_r.c: Likewise.
41728         * lib/unistr/u8-strnlen.c: Likewise.
41729         * lib/vasnprintf.c (decimal_point_char): Likewise.
41730         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
41731         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
41732         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41733         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41734         * tests/test-sigaction.c (handler, main): Likewise.
41735         * lib/freading.h: Treat uClibc like a non-glibc platform.
41736         * lib/freading.c: Likewise.
41737         * lib/gettext.h: Likewise.
41738         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
41739         Likewise.
41740         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
41741         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41742         * lib/propername.c (proper_name_utf8): Likewise.
41743         * lib/spawn.in.h: Likewise.
41744         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
41745         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
41746         mem_cd_iconveh_internal): Likewise.
41747         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
41748         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
41749         strstr, strcasestr): Likewise.
41750         * lib/unicodeio.c (unicode_to_mb): Likewise.
41751         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
41752         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
41753         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
41754         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
41755         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
41756         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
41757         * lib/unistr/u8-stpncpy.c: Likewise.
41758         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41759         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
41760         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41761         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41762         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41763         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
41764         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
41765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
41766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
41767         Likewise.
41768         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41769         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
41771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41772         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41773         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41774         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41775         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41776         * tests/test-getopt.h (OPTIND_MIN): Likewise.
41777         * tests/test-striconveha.c (main): Likewise.
41778         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41779         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
41780         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
41781         * doc/posix-functions/getline.texi: Likewise.
41782         Reported by Mike Frysinger <vapier@gentoo.org>.
41784 2010-11-20  Bruno Haible  <bruno@clisp.org>
41786         nproc: Fix condition.
41787         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
41788         HAVE_PTHREAD_AFFINITY_NP.
41790 2010-11-20  Bruno Haible  <bruno@clisp.org>
41792         Fix a comment.
41793         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
41795 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
41797         ftoastr: don't assume snprintf
41798         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
41799         Implement a subset of snprintf here, by using sprintf safely.
41800         * modules/ftoastr (Depends-on): Remove snprintf.
41802 2010-11-19  Jim Meyering  <meyering@redhat.com>
41804         test-rename.h: fix compilation failure
41805         * tests/test-rename.h (test_rename): Add omitted "}".
41807 2010-11-17  Jim Meyering  <meyering@redhat.com>
41809         maint.mk: add a URL discussing the no-@acronym policy
41810         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
41812 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41814         ftoastr: depend on snprintf, improve comments
41815         * lib/ftoastr.c: Also mention Loitsch's draft.
41816         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
41817         needed in the current implementation, but it might simplify
41818         speeding up the code later.
41819         * modules/ftoastr: Depend on snprintf; this improves portability.
41820         Suggested by Bruno Haible in the same email.
41822         ftoastr: port to hosts lacking strtof and strtold
41823         Problem reported by Bruno Haible in
41824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
41825         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
41826         environment and strtold (and presumably strtof) are not available.
41827         * modules/ftoastr (Files): Add m4/c-strtod.m4.
41828         (configure.ac): Require gl_C99_STRTOLD.
41830 2010-11-18  Bruno Haible  <bruno@clisp.org>
41832         c-strtold: Avoid link error on AIX 7.
41833         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
41834         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
41835         (gl_C_STRTOLD): Test whether strtold_l exists.
41836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41838 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41840         intprops: new macro INT_BITS_STRLEN_BOUND
41841         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
41842         ftoastr.h.  This exposes an internal of intprops.h that was formerly
41843         not exposed.  Also, it uses a slightly tighter bound than before;
41844         though this makes no practical difference, we might as well be as
41845         tight as we easily can.
41847         ftoastr: new module, for lossless conversion of floats to short strings
41848         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
41849         * modules/ftoastr: New files.
41851 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41853         bootstrap: port to Solaris sed
41854         * build-aux/bootstrap (get_version): Port to Solaris sed.
41855         See Ralf Wildenhues's note in
41856         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
41858 2010-11-14  Jim Meyering  <meyering@redhat.com>
41860         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
41861         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
41862         and move definition closer to sole use.
41864 2010-11-13  Jim Meyering  <meyering@redhat.com>
41866         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
41867         Now we require at least autoconf-2.59, which means the work-around
41868         is no longer needed.
41869         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
41870         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41871         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41872         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
41873         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
41875 2010-11-13  Bruno Haible  <bruno@clisp.org>
41877         rename, renameat: Avoid test failures at NFS mounted locations.
41878         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
41879         functions.
41880         (test_rename): Use assert_nonexistent.
41881         * tests/test-rename.c: Include <dirent.h>.
41882         * tests/test-renameat.c: Likewise.
41883         Reported by Gary V. Vaughan <gary@gnu.org>.
41885         rename, renameat: Document Linux bug with NFS
41886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
41887         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
41888         * doc/posix-functions/renameat.texi: Likewise.
41889         Suggested by Eric Blake.
41891 2010-11-13  Bruno Haible  <bruno@clisp.org>
41893         rename test: Add comments.
41894         * tests/test-rename.h (test_rename): Add structure and comments.
41896 2010-11-13  Eric Blake  <eblake@redhat.com>
41898         maintainer-makefile: cover a few more files
41899         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
41900         scripts generated within C files, for libvirt.
41902 2010-11-13  Bruno Haible  <bruno@clisp.org>
41904         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
41905         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
41906         character, return the number of bytes that belong together, not always
41907         1.
41908         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
41909         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
41910         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
41911         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
41912         number of bytes of an invalid character.
41913         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
41914         (main): Invoke it.
41915         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
41916         results.
41917         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
41918         malformed byte sequences.
41919         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
41920         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
41921         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
41922         Reported by Ben Pfaff and Paolo Bonzini.
41924 2010-11-13  Bruno Haible  <bruno@clisp.org>
41926         openat: Work around glibc bug with fchownat() and empty file names.
41927         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
41928         (gl_FUNC_FCHOWNAT): Invoke it.
41929         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
41930         * doc/posix-functions/fchownat.texi: Document the glibc bug.
41931         Reported by Gary V. Vaughan <gary@gnu.org>.
41933 2010-11-13  Bruno Haible  <bruno@clisp.org>
41935         openat: Ensure autoconf macro ordering.
41936         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
41937         gl_USE_SYSTEM_EXTENSIONS.
41938         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
41940 2010-11-13  Bruno Haible  <bruno@clisp.org>
41942         Update comments.
41943         * lib/unistr/u8-check.c: Update file name in comments.
41944         * lib/unistr/u8-mblen.c: Likewise.
41945         * lib/unistr/u8-prev.c: Likewise.
41946         * lib/unistr/u8-strmblen.c: Likewise.
41947         * lib/unistr/u8-strmbtouc.c: Likewise.
41949 2010-11-13  Jim Meyering  <meyering@redhat.com>
41951         tests: avoid test failure on Solaris 10 due to lack of PATH export
41952         * tests/test-update-copyright.sh: Don't forget to export PATH.
41954         init.sh: ensure that IFS is defined, just in case...
41955         * tests/init.sh (setup_): Ensure that IFS is defined,
41956         so that saving and restoring it works as expected.  This
41957         appears to be useful at least for an old version of dash
41958         from a long time ago (RH 6).  See here for details:
41959         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
41961         maint.mk: tighten "test a == b" check
41962         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
41963         test to files that contain something like #!/bin/sh.
41964         Without this, coreutils would get two false positives in
41965         the comments of C source files.
41967 2010-11-12  Eric Blake  <eblake@redhat.com>
41969         bootstrap: fix typo in previous attempt
41970         * build-aux/bootstrap (buildreq): Correct the grouping.
41971         Reported by Paul Eggert.
41973         maintainer-makefile: prohibit test x == x
41974         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
41975         Based on a report by Matthias Bolte.
41977         bootstrap: allow FreeBSD gzip
41978         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
41979         which has no '.' and goes to stderr.
41980         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
41981         Reported by Matthias Bolte.
41983         maintainer-makefile: check for i18n setup
41984         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
41985         will likely work.
41987 2010-11-12  Bruno Haible  <bruno@clisp.org>
41989         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
41990         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
41991         * lib/nanosleep.c (nanosleep): Likewise.
41993 2010-11-11  Bruno Haible  <bruno@clisp.org>
41995         fcntl-h: Fix for use of C++ on glibc systems.
41996         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41997         also on glibc systems in C++ mode.
41998         Reported by Gary V. Vaughan <gary@gnu.org>.
42000 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
42002         mknod: avoid false failure with dash
42003         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
42005 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42007         unlink: Fix "is it should" typo in diagnostic.
42008         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
42009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
42011 2010-11-11  Bruno Haible  <bruno@clisp.org>
42013         Tests for module 'strerror_r-posix'.
42014         * modules/strerror_r-posix-tests: New file.
42015         * tests/test-strerror_r.c: New file.
42016         * tests/test-string-c++.cc: Check the signature of strerror_r.
42018         New module 'strerror_r-posix'.
42019         * lib/string.in.h (strerror_r): New declaration.
42020         * lib/strerror_r.c: New file.
42021         * m4/strerror_r.m4: New file.
42022         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
42023         of strerror_r.
42024         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
42025         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
42026         * modules/strerror_r-posix: New file.
42027         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
42028         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
42029         * doc/posix-functions/strerror_r.texi: Mention the new module and the
42030         portability problems.
42032 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
42034         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
42035         line is also considered for output. Quoted function name in shell
42036         command, so temporary files for functions like MyClass::operator()
42037         are removed correctly without errors.
42039 2010-11-09  Bruno Haible  <bruno@clisp.org>
42041         * doc/posix-functions/strerror.texi: List more failing platforms.
42043         * doc/posix-functions/strerror.texi: Add a comment.
42045 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42047         fdopendir: fix bug on MacOS X when low on file descriptors
42049         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
42050         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
42051         All callers changed.
42052         (fdopendir): Invoke save_cwd at the top level, not after using
42053         multiple dup() calls to use up file descriptors.  Then retry
42054         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
42055         less than the maximum number of open file descriptors, because
42056         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
42057         on Mac OS X 10.6.4 for tar 1.24
42058         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
42059         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
42060         and for tar 1.25
42061         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
42063 2010-11-07  Bruno Haible  <bruno@clisp.org>
42065         vasnprintf: Support I flag on glibc systems.
42066         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
42067         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
42068         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
42069         snprintf function.
42070         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
42071         glibc systems.
42072         * tests/test-vasnprintf-posix3.c: New file.
42073         * modules/vasnprintf-posix-tests (Files): Add it.
42074         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
42076 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42078         [html] Fix copy/paste bug: Use unique name for compiler warnings.
42079         * MODULES.html.sh: For compiler warnings, use name
42080         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
42082 2010-11-05  Eric Blake  <eblake@redhat.com>
42084         ceil, floor: avoid spurious failure with icc
42085         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
42086         [denormals-as-zero] when optimizing without -mieee-fp option.
42087         * tests/test-floorf2.c (floorf_reference): Likewise.
42088         * tests/test-ceilf1.c (dummy): New function.
42089         (main): Use it to outsmart icc's optimization.
42090         * tests/test-floorf1.c (dummy, main): Likewise.
42092         tests: require working signbit
42093         * modules/ceilf-tests (Depends-on): Add signbit.
42094         * modules/ceill-tests (Depends-on): Likewise.
42095         * modules/floorf-tests (Depends-on): Likewise.
42096         * modules/floorl-tests (Depends-on): Likewise.
42097         * modules/round-tests (Depends-on): Likewise.
42098         * modules/roundf-tests (Depends-on): Likewise.
42099         * modules/roundl-tests (Depends-on): Likewise.
42100         * modules/trunc-tests (Depends-on): Likewise.
42101         * modules/truncf-tests (Depends-on): Likewise.
42102         * modules/truncl-tests (Depends-on): Likewise.
42104         strtod: work around icc bug
42105         * lib/strtod.c (minus_zero): Define to working value.
42106         (strtod): Use it to avoid icc bug.
42108         copysign: enhance tests
42109         * modules/copysign-tests (Files): Add minus-zero.h.
42110         * tests/test-copysign.c (main): Also test zeros.
42112 2010-11-04  Eric Blake  <eblake@redhat.com>
42114         ceil, floor, round, trunc: enhance tests of -0
42115         * tests/test-ceilf1.c (main): Ensure correct sign of result.
42116         * tests/test-ceill.c (main): Likewise.
42117         * tests/test-floorf1.c (main): Likewise.
42118         * tests/test-floorl.c (main): Likewise.
42119         * tests/test-round1.c (main): Likewise.
42120         * tests/test-roundf1.c (main): Likewise.
42121         * tests/test-roundl.c (main): Likewise.
42122         * tests/test-trunc1.c (main): Likewise.
42123         * tests/test-truncf1.c (main): Likewise.
42124         * tests/test-truncl.c (main): Likewise.
42126 2010-11-04  Eric Blake  <eblake@redhat.com>
42128         frexp, tests: work around ICC bug with -zero
42129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
42130         works with more compilers.
42131         * tests/minus-zero.h: New file.
42132         * modules/ceilf-tests (Files): Include it.
42133         * modules/ceill-tests (Files): Likewise.
42134         * modules/floorf-tests (Files): Likewise.
42135         * modules/floorl-tests (Files): Likewise.
42136         * modules/frexp-nolibm-tests (Files): Likewise.
42137         * modules/frexp-tests (Files): Likewise.
42138         * modules/frexpl-nolibm-tests (Files): Likewise.
42139         * modules/frexpl-tests (Files): Likewise.
42140         * modules/isnan-tests (Files): Likewise.
42141         * modules/isnand-nolibm-tests (Files): Likewise.
42142         * modules/isnand-tests (Files): Likewise.
42143         * modules/isnanf-nolibm-tests (Files): Likewise.
42144         * modules/isnanf-tests (Files): Likewise.
42145         * modules/isnanl-nolibm-tests (Files): Likewise.
42146         * modules/isnanl-tests (Files): Likewise.
42147         * modules/round-tests (Files): Likewise.
42148         * modules/roundf-tests (Files): Likewise.
42149         * modules/roundl-tests (Files): Likewise.
42150         * modules/ldexpl-tests (Files): Likewise.
42151         * modules/signbit-tests (Files): Likewise.
42152         * modules/snprintf-posix-tests (Files): Likewise.
42153         * modules/sprintf-posix-tests (Files): Likewise.
42154         * modules/strtod-tests (Files): Likewise.
42155         * modules/trunc-tests (Files): Likewise.
42156         * modules/truncf-tests (Files): Likewise.
42157         * modules/truncl-tests (Files): Likewise.
42158         * modules/vsnprintf-posix-tests (Files): Likewise.
42159         * modules/vsprintf-posix-tests (Files): Likewise.
42160         * modules/vasnprintf-posix-tests (Files): Likewise.
42161         * modules/vasprintf-posix-tests (Files): Likewise.
42162         * tests/test-ceilf1.c (main): Use it.
42163         * tests/test-ceill.c (main): Likewise.
42164         * tests/test-floorf1.c (main): Likewise.
42165         * tests/test-floorl.c (main): Likewise.
42166         * tests/test-frexp.c (main): Likewise.
42167         * tests/test-frexpl.c (main): Likewise.
42168         * tests/test-isnan.c (main): Likewise.
42169         * tests/test-isnand.h (main): Likewise.
42170         * tests/test-isnanf.h (main): Likewise.
42171         * tests/test-isnanl.h (main): Likewise.
42172         * tests/test-ldexpl.c (main): Likewise.
42173         * tests/test-round.c (main): Likewise.
42174         * tests/test-roundf.c (main): Likewise.
42175         * tests/test-roundl.c (main): Likewise.
42176         * tests/test-signbit.c (test_signbitf, test_signbitd)
42177         (test_signbitl): Likewise.
42178         * tests/test-snprintf-posix.h (test_function): Likewise.
42179         * tests/test-sprintf-posix.h (test_function): Likewise.
42180         * tests/test-strtod.c (main): Likewise.
42181         * tests/test-trunc1.c (main): Likewise.
42182         * tests/test-truncf1.c (main): Likewise.
42183         * tests/test-truncl.c (main): Likewise.
42185         isnanl: work around icc bug
42186         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
42188 2010-11-03  Eric Blake  <eblake@redhat.com>
42190         tests: fix compiler warnings
42191         * tests/test-getopt.h (test_getopt): Fix condition.
42192         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42193         * tests/test-pipe2.c (main): Likewise.
42194         * tests/test-quotearg-simple.c (main): Avoid icc warning.
42196         utimens: fix broken m4 test
42197         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
42199 2010-10-28  Bruno Haible  <bruno@clisp.org>
42201         posix_spawn*, getdtablesize: Relax license.
42202         * modules/posix_spawn (License): Change to LGPLv2+.
42203         * modules/posix_spawnp (License): Likewise.
42204         * modules/posix_spawn-internal (License): Likewise.
42205         * modules/posix_spawnattr_init (License): Likewise.
42206         * modules/posix_spawnattr_getflags (License): Likewise.
42207         * modules/posix_spawnattr_setflags (License): Likewise.
42208         * modules/posix_spawnattr_getpgroup (License): Likewise.
42209         * modules/posix_spawnattr_setpgroup (License): Likewise.
42210         * modules/posix_spawnattr_getschedparam (License): Likewise.
42211         * modules/posix_spawnattr_setschedparam (License): Likewise.
42212         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
42213         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
42214         * modules/posix_spawnattr_getsigdefault (License): Likewise.
42215         * modules/posix_spawnattr_setsigdefault (License): Likewise.
42216         * modules/posix_spawnattr_getsigmask (License): Likewise.
42217         * modules/posix_spawnattr_setsigmask (License): Likewise.
42218         * modules/posix_spawnattr_destroy (License): Likewise.
42219         * modules/posix_spawn_file_actions_init (License): Likewise.
42220         * modules/posix_spawn_file_actions_addclose (License): Likewise.
42221         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
42222         * modules/posix_spawn_file_actions_addopen (License): Likewise.
42223         * modules/posix_spawn_file_actions_destroy (License): Likewise.
42224         * modules/getdtablesize (License): Likewise.
42225         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
42227 2010-10-26  Bruno Haible  <bruno@clisp.org>
42229         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
42230         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
42231         Cygwin and mingw.
42232         Suggested by Eric Blake.
42234 2010-10-26  Bruno Haible  <bruno@clisp.org>
42236         stdio: Work around compilation error due to renameat() on Solaris 10.
42237         * lib/stdio.in.h: Include <unistd.h> on Solaris.
42238         * lib/renameat.c: Don't include <unistd.h> here.
42239         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
42240         Reported by Paul Eggert and Eric Blake.
42242 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42244         renameat: port to Solaris 10, which declares renameat in unistd.h
42246         * lib/renameat.c: Include unistd.h before stdio.h, because
42247         Solaris 10 declares renameat in unistd.h.  Problem encountered
42248         when building GNU tar 1.24 on Solaris 10.
42250 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
42252         fdopendir: fix C89 compilation
42253         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
42254         compilers.
42256 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
42258         inttostr: simplify by removing unnecessary redundancy
42259         * lib/anytostr.c: Don't include verify.h.
42260         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
42261         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
42262         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
42263         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
42264         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
42265         Likewise.
42266         * modules/inttostr (Depends-on): Remove 'verify'.
42268 2010-10-23  Bruno Haible  <bruno@clisp.org>
42270         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
42271         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
42272         Reported by Eric Blake.
42274 2010-10-23  Bruno Haible  <bruno@clisp.org>
42276         Tests: Fix LOCALE_JA on MirBSD 10.
42277         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
42278         to an UTF-8 locale.
42279         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
42280         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42281         Reported by Eric Blake.
42283 2010-10-21  Bruno Haible  <bruno@clisp.org>
42285         nl_langinfo test: Avoid test failure on NetBSD 5.
42286         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
42287         Reported by Eric Blake.
42289 2010-10-21  Eric Blake  <eblake@redhat.com>
42291         c-stack: work around libsigsegv 2.8 bug
42292         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
42293         overflow on at least PowerPC64.
42295 2010-10-17  Bruno Haible  <bruno@clisp.org>
42297         userspec: Drop redundant file.
42298         * modules/userspec (Files): Remove lib/inttostr.h.
42300 2010-10-17  Bruno Haible  <bruno@clisp.org>
42302         nl_langinfo tests: Silence some warnings.
42303         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
42304         Reported by Jim Meyering.
42306 2010-10-17  Bruno Haible  <bruno@clisp.org>
42308         Make use of GCC's attribute __alloc_size__.
42309         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
42310         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
42311         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
42312         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
42313         __alloc_size__.
42314         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42315         Suggested by Jim Meyering.
42317 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
42319         bootstrap: anchor .gitignore entries.
42320         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
42321         with...
42322         (insert_vc_ignore): ... this new function, which prepends `/' to
42323         all .gitignore entries before passing them to
42324         insert_sorted_if_absent.
42326 2010-10-16  Bruno Haible  <bruno@clisp.org>
42328         nextafter: Fix configure check.
42329         * modules/nextafter (configure.ac): Correct expected prototype.
42331 2010-10-16  Bruno Haible  <bruno@clisp.org>
42333         termios: Update documentation.
42334         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
42336 2010-10-16  Bruno Haible  <bruno@clisp.org>
42338         tests: Make them compile with TinyCC.
42339         * tests/test-strstr.c (main): Remove parentheses around array
42340         initializer.
42342 2010-10-15  Eric Blake  <eblake@redhat.com>
42344         ignore-value: make header idempotent
42345         * lib/ignore-value.h: Add double-inclusion guards.
42346         Reported by Stefan Berger.
42348 2010-10-15  Jim Meyering  <meyering@redhat.com>
42350         GNUmakefile: handle "stable" target, not "major"
42351         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
42352         lists in maint.mk and announce-gen.  Without this, "make stable"
42353         would fail to ensure that $(VERSION) is up to date.
42355 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
42357         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
42358         & co.
42360 2010-10-14  Bruno Haible  <bruno@clisp.org>
42362         vasnprintf: Don't set errno to 0.
42363         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
42364         block that sets it to 0.
42365         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
42367 2010-10-14  Bruno Haible  <bruno@clisp.org>
42369         socketlib: Fix.
42370         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
42371         gl_PREREQ_SYS_H_WINSOCK2.
42372         Reported by Ian Beckwith <ianb@erislabs.net>.
42374 2010-10-13  Jim Meyering  <meyering@redhat.com>
42376         test-select-stdin.c: avoid warn_unused_result warnings
42377         * tests/test-select-stdin.c: Include "macros.h".
42378         ASSERT that read and fflush succeed.
42380 2010-10-13  Jim Meyering  <meyering@redhat.com>
42382         git-version-gen: do require git-VC'd files in cwd
42383         * build-aux/git-version-gen: Reject a git version string
42384         if there are no commits associated with the current directory.
42385         This avoids an unlikely false-positive (unrelated dir whose parent
42386         repository also contains a tag matching v*), as pointed out
42387         by Giuseppe Scrivano in
42388         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
42390 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
42392         argv-iter: omit nonconforming declaration
42393         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
42394         enum arg_iter_err declaration, which doesn't conform to C99.
42395         Solaris 10 cc warns about this.
42397 2010-10-13  Eric Blake  <eblake@redhat.com>
42399         termios: fix compilation on mingw
42400         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
42401         (gl_TERMIOS_H): Adjust it on mingw.
42402         * modules/termios (Makefile.am): Substitute new key.
42403         * lib/termios.in.h (includes): Make include_next conditional.
42404         * doc/posix-headers/termios.texi (termios.h): Update
42405         documentation.
42406         Reported by Daniel P. Berrange.
42408 2010-10-13  Jim Meyering  <meyering@redhat.com>
42410         git-version-gen: don't require that .git/ be in the current dir
42411         * build-aux/git-version-gen: Adjust this script so that it works
42412         when run from any working directory beneath the top-level .git/-
42413         containing directory.  Inspired by a patch from Giuseppe Scrivano,
42414         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
42416         test-select: avoid warn_unused_result warnings
42417         * tests/test-select.c: Include "macros.h".
42418         ASSERT that each call to read, write, and pipe succeeds.
42419         While not technically required, also check each "close".
42420         * modules/select-tests (Files): Add tests/macros.h.
42422         test-symlinkat: remove declaration of unused local
42423         * tests/test-symlinkat.c (main): Remove unused local, "buf".
42425         test-inttostr: avoid shadowing warnings
42426         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
42427         and use malloc rather than the stack for the same reason as
42428         mentioned in the comment justifying the other allocation.
42430 2010-10-11  Bruno Haible  <bruno@clisp.org>
42432         stdlib: Allow multiple gnulib generated replacements to coexist.
42433         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
42434         Reported by Sam Steingold <sds@gnu.org>.
42436 2010-10-11  Jim Meyering  <meyering@redhat.com>
42438         fix a documentation typo
42439         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
42441 2010-10-11  Eric Blake  <eblake@redhat.com>
42443         futimens: work around Solaris 11 bug
42444         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
42445         * tests/test-futimens.h (test_futimens): Enhance, rather than
42446         weaken test.
42447         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42449 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42451         Indentation.
42452         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
42453         higher-level operators more to the left.
42455 2010-10-11  Jim Meyering  <meyering@redhat.com>
42457         test-futimens: avoid unwarranted test failure on Solaris 5.11
42458         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
42459         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
42460         because it tries to dereference the NULL name argument.
42462 2010-10-11  Bruno Haible  <bruno@clisp.org>
42464         Indentation.
42465         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
42466         indentation.
42468 2010-10-11  Jim Meyering  <meyering@redhat.com>
42470         spawn.in.h: make indentation consistent with parentheses
42471         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
42472         Make indentation consistent with parentheses.
42474 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
42476         Fix mismatched parens in previous commit
42477         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
42478         parens.
42480 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42482         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
42484         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
42485         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
42486         * lib/malloca.c: Include "verify.h".
42487         (verify1): Remove, replacing with a verify call.
42488         * lib/relocwrapper.c (verify1): Likewise.
42489         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
42490         Likewise.
42491         * modules/malloca (Depends-on): Add 'verify'.
42492         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
42493         * modules/vasnprintf (Depends-on): Add 'verify'.
42494         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42495         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42496         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42497         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42498         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42499         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42500         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42502         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
42504         Formerly the style was sometimes 2*X - 1, because the C standard
42505         was wrongly thought to disallow ?: in integral constant expressions.
42506         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
42507         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
42508         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
42509         * lib/stdint.in.h (_verify_intmax_size): Likewise.
42510         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
42511         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
42512         verify that time_t cannot be floating.
42514 2010-10-08  Eric Blake  <eblake@redhat.com>
42516         time: enforce recent POSIX ruling that time_t is integral
42517         * lib/time.in.h (__time_t_must_be_integral): Detect any
42518         problematic systems, allowing the rest of gnulib to assume POSIX.
42520 2010-10-08  Jim Meyering  <meyering@redhat.com>
42522         fdopendir: fix a bug on systems lacking openat and /proc support
42523         OpenBSD 4.7 is one such system.  The most noticeable effect was
42524         failure of any application making nontrivial use of fts: rm, du,
42525         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
42526           ./rm: traversal failed: `a': Bad file descriptor
42527         Debugging that, you see that even though FD 6 was closed just
42528         prior to the opendir call in fd_clone_opendir, its resulting
42529         dir->dd_fd was 8, rather than the expected value of 6:
42531         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
42532         93                close (fd);
42533         (gdb) n
42534         94                dir = fd_clone_opendir (dupfd);
42535         (gdb) n
42536         95                saved_errno = errno;
42537         (gdb) p dir->dd_fd
42538         $11 = 8
42540         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
42541         The problem is that on OpenBSD, fd_clone_opendir has to resort
42542         to using the old-style save/restore CWD mechanism, due to its
42543         lack of openat/proc support, and *that* would steal the FD (6)
42544         that opendir was supposed to use.
42546         The fix is to squirrel away the desired FD so that save_cwd uses a
42547         different one, and then free the dest FD right before calling opendir.
42548         That guarantees opendir will use the required file descriptor.
42550         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
42552 2010-10-08  Bruno Haible  <bruno@clisp.org>
42554         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
42555         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
42557 2010-10-08  Bruno Haible  <bruno@clisp.org>
42559         nanosleep: Make replacement POSIX compliant.
42560         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
42561         is out of range.
42562         Reported by Jim Meyering.
42564 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42566         bootstrap: add hook for altering gnulib.mk, for Bison
42567         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
42568         the Bison bootstrapping process can rewrite file names and variables
42569         in this file before later parts of 'bootstrap' use the file.
42570         Bison wants to include lib/gnulib.mk from the top-level makefile,
42571         so it needs the file names in this file to be relative to the top
42572         level, not relative to lib; plus it needs variable names to be
42573         rewritten.
42574         (slurp): Use the new function.
42576         bootstrap: reformat for readability
42577         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
42579 2010-10-08  Eric Blake  <eblake@redhat.com>
42581         docs: update cygwin progress
42582         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
42583         1.7.7.
42584         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
42585         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
42586         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
42587         * doc/posix-functions/carg.texi (carg): Likewise.
42588         * doc/posix-functions/cargf.texi (cargf): Likewise.
42589         * doc/posix-functions/casin.texi (casin): Likewise.
42590         * doc/posix-functions/casinf.texi (casinf): Likewise.
42591         * doc/posix-functions/casinh.texi (casinh): Likewise.
42592         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
42593         * doc/posix-functions/catan.texi (catan): Likewise.
42594         * doc/posix-functions/catanf.texi (catanf): Likewise.
42595         * doc/posix-functions/catanh.texi (catanh): Likewise.
42596         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
42597         * doc/posix-functions/ccos.texi (ccos): Likewise.
42598         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
42599         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
42600         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
42601         * doc/posix-functions/cexp.texi (cexp): Likewise.
42602         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
42603         * doc/posix-functions/cimag.texi (cimag): Likewise.
42604         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
42605         * doc/posix-functions/clog.texi (clog): Likewise.
42606         * doc/posix-functions/clogf.texi (clogf): Likewise.
42607         * doc/posix-functions/conj.texi (conj): Likewise.
42608         * doc/posix-functions/conjf.texi (conjf): Likewise.
42609         * doc/posix-functions/cpow.texi (cpow): Likewise.
42610         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
42611         * doc/posix-functions/cproj.texi (cproj): Likewise.
42612         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
42613         * doc/posix-functions/creal.texi (creal): Likewise.
42614         * doc/posix-functions/crealf.texi (crealf): Likewise.
42615         * doc/posix-functions/csin.texi (csin): Likewise.
42616         * doc/posix-functions/csinf.texi (csinf): Likewise.
42617         * doc/posix-functions/csinh.texi (csinh): Likewise.
42618         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
42619         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
42620         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
42621         * doc/posix-functions/ctan.texi (ctan): Likewise.
42622         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
42623         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
42624         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
42625         * doc/posix-headers/complex.texi (complex.h): Likewise.
42627 2010-10-07  Jim Meyering  <meyering@redhat.com>
42629         parse-datetime: avoid compilation failure on OpenBSD 4.7
42630         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
42631         This works around a compilation failure on OpenBSD 4.7:
42632         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
42634 2010-10-07  Eric Blake  <eblake@redhat.com>
42636         docs: update cygwin progress
42637         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
42638         1.7.6.
42639         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42640         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
42641         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
42642         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
42643         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
42644         Likewise.
42645         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
42646         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
42647         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
42648         Likewise.
42649         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
42650         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
42651         Likewise.
42652         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
42653         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
42654         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
42655         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
42656         Likewise.
42657         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
42658         Likewise.
42659         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
42661         docs: update parse-datetime history
42662         * doc/parse-datetime.texi (Authors of parse_datetime): Better
42663         documentation of this function's history and alternatives.
42665         cygwin: use more robust version check
42666         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
42667         exclude an eventual cygwin 1.9.1.
42668         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
42670         (gl_FUNC_STRCASESTR): Likewise.
42671         Reported by Bruno Haible.
42673 2010-10-06  Bruno Haible  <bruno@clisp.org>
42675         string, sys_select: Avoid #including large headers unless necessary.
42676         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
42677         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
42678         OSF/1, BeOS, Haiku.
42679         Reported by Jim Meyering.
42681 2010-10-05  Eric Blake  <eblake@redhat.com>
42683         memmem, strstr, strcasestr: fix bug with long periodic needle
42684         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
42685         periodic needle having false positive.
42686         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
42687         and cygwin 1.7.7.
42688         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
42689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
42690         (gl_FUNC_STRCASESTR): Likewise.
42691         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42692         * tests/test-memmem.c (main): Expose the bug.
42693         * tests/test-strcasestr.c (main): Likewise.
42694         * tests/test-strstr.c (main): Likewise.
42695         * tests/test-c-strcasestr.c (main): Likewise.
42696         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
42697         * doc/posix-functions/strstr.texi (strstr): Likewise.
42698         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42699         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
42701 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42703         parse-datetime: do some more renaming
42704         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
42705         parse_datetime, not get_date.  Mention the renaming.
42706         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
42707         in comments.
42708         * m4/bison.m4: Likewise.
42710 2010-10-05  Eric Blake  <eblake@redhat.com>
42712         parse-datetime: better name than get_date
42713         * NEWS: Reword the deprecation notice.
42714         * modules/get_date: Rename to modules/parse-datetime.
42715         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
42716         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
42717         * lib/get_date.y: Rename to lib/parse-datetime.y.
42718         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
42719         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
42720         * doc/getdate.texi: Provide fallback wrapper.
42721         * lib/getdate.h: Move guts, and wrap...
42722         * lib/parse-datetime.h: ...new file.
42723         * lib/parse-datetime.y (get_date): Rename...
42724         (parse_datetime): ...to this.
42725         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
42726         (gl_PARSE_DATETIME): ...to this.
42727         * doc/posix-functions/getdate.texi (get_date): Provide fallback
42728         documentation.
42729         * modules/getdate (Files): Provide fallback docs and header.
42730         (Notice, Depends-on): Update references.
42731         * tests/test-parse-datetime.c: Likewise.
42732         * DEPENDENCIES: Likewise.
42733         * MODULES.html.sh (Date and time <time.h>): Likewise.
42734         * doc/parse-datetime.texi (Date input formats)
42735         (Authors of parse_datetime): Likewise.
42736         * modules/parse-datetime (Files, configure.ac, Makefile.am)
42737         (Include): Likewise.
42738         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
42739         * gnulib-tool: Likewise.
42740         * m4/bison.m4 (gl_BISON): Likewise.
42741         Suggested by Bruno Haible.
42743 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42745         more ports to Solaris tr, which needs [] around ranges
42746         * gnulib-tool: Solaris tr needs [] around ranges.
42747         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42748         * tests/test-pipe-filter-gi1.c (main): Likewise.
42749         * tests/test-pipe-filter-ii1.c (main): Likewise.
42751 2010-10-05  Eric Blake  <eblake@redhat.com>
42753         bootstrap: fix Solaris regression
42754         * build-aux/bootstrap (check_versions): Solaris tr still needs []
42755         around ranges.
42756         Reported by Pádraig Brady.
42758         bootstrap: work with pkg-config
42759         * build-aux/bootstrap (check_versions): Also transliterate - in
42760         prerequisite name.
42761         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
42762         prerequisites that were already found, to avoid confusion.
42763         Reported by Justin Clift.
42765         faccessat: remove unused wrappers
42766         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
42767         presence of these wrappers dragged in -lgen on Solaris.
42768         Reported by Clemens Brogi; fix suggested by Paul Eggert.
42770 2010-10-05  Jim Meyering  <meyering@redhat.com>
42772         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
42773         * Makefile (sc_pragma_columns): New syntax-check rule.
42775 2010-10-04  Bruno Haible  <bruno@clisp.org>
42777         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
42778         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
42779         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
42780         Reported by Bruce Korb and Eric Blake.
42782 2010-10-04  Bruno Haible  <bruno@clisp.org>
42784         threadlib: Make option --with-libpth-prefix work.
42785         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
42786         use $LIBPTH, not just -lpth.
42788 2010-10-04  Bruno Haible  <bruno@clisp.org>
42790         Avoid line length limitation from HP NonStop system header files.
42791         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
42792         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
42793         * lib/ctype.in.h: Likewise.
42794         * lib/dirent.in.h: Likewise.
42795         * lib/errno.in.h: Likewise.
42796         * lib/fcntl.in.h: Likewise.
42797         * lib/float.in.h: Likewise.
42798         * lib/getopt.in.h: Likewise.
42799         * lib/iconv.in.h: Likewise.
42800         * lib/inttypes.in.h: Likewise.
42801         * lib/langinfo.in.h: Likewise.
42802         * lib/locale.in.h: Likewise.
42803         * lib/math.in.h: Likewise.
42804         * lib/netdb.in.h: Likewise.
42805         * lib/netinet_in.in.h: Likewise.
42806         * lib/poll.in.h: Likewise.
42807         * lib/pthread.in.h: Likewise.
42808         * lib/pty.in.h: Likewise.
42809         * lib/sched.in.h: Likewise.
42810         * lib/se-selinux.in.h: Likewise.
42811         * lib/search.in.h: Likewise.
42812         * lib/signal.in.h: Likewise.
42813         * lib/spawn.in.h: Likewise.
42814         * lib/stdarg.in.h: Likewise.
42815         * lib/stddef.in.h: Likewise.
42816         * lib/stdint.in.h: Likewise.
42817         * lib/stdio.in.h: Likewise.
42818         * lib/stdlib.in.h: Likewise.
42819         * lib/string.in.h: Likewise.
42820         * lib/strings.in.h: Likewise.
42821         * lib/sys_file.in.h: Likewise.
42822         * lib/sys_ioctl.in.h: Likewise.
42823         * lib/sys_select.in.h: Likewise.
42824         * lib/sys_socket.in.h: Likewise.
42825         * lib/sys_stat.in.h: Likewise.
42826         * lib/sys_time.in.h: Likewise.
42827         * lib/sys_times.in.h: Likewise.
42828         * lib/sys_utsname.in.h: Likewise.
42829         * lib/sys_wait.in.h: Likewise.
42830         * lib/sysexits.in.h: Likewise.
42831         * lib/termios.in.h: Likewise.
42832         * lib/time.in.h: Likewise.
42833         * lib/unistd.in.h: Likewise.
42834         * lib/wchar.in.h: Likewise.
42835         * lib/wctype.in.h: Likewise.
42836         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
42837         * modules/ctype (Makefile.am): Likewise.
42838         * modules/dirent (Makefile.am): Likewise.
42839         * modules/errno (Makefile.am): Likewise.
42840         * modules/fcntl-h (Makefile.am): Likewise.
42841         * modules/float (Makefile.am): Likewise.
42842         * modules/getopt-posix (Makefile.am): Likewise.
42843         * modules/iconv-h (Makefile.am): Likewise.
42844         * modules/inttypes (Makefile.am): Likewise.
42845         * modules/langinfo (Makefile.am): Likewise.
42846         * modules/locale (Makefile.am): Likewise.
42847         * modules/math (Makefile.am): Likewise.
42848         * modules/netdb (Makefile.am): Likewise.
42849         * modules/netinet_in (Makefile.am): Likewise.
42850         * modules/poll-h (Makefile.am): Likewise.
42851         * modules/pthread (Makefile.am): Likewise.
42852         * modules/pty (Makefile.am): Likewise.
42853         * modules/sched (Makefile.am): Likewise.
42854         * modules/search (Makefile.am): Likewise.
42855         * modules/selinux-h (Makefile.am): Likewise.
42856         * modules/signal (Makefile.am): Likewise.
42857         * modules/spawn (Makefile.am): Likewise.
42858         * modules/stdarg (Makefile.am): Likewise.
42859         * modules/stddef (Makefile.am): Likewise.
42860         * modules/stdint (Makefile.am): Likewise.
42861         * modules/stdio (Makefile.am): Likewise.
42862         * modules/stdlib (Makefile.am): Likewise.
42863         * modules/string (Makefile.am): Likewise.
42864         * modules/strings (Makefile.am): Likewise.
42865         * modules/sys_file (Makefile.am): Likewise.
42866         * modules/sys_ioctl (Makefile.am): Likewise.
42867         * modules/sys_select (Makefile.am): Likewise.
42868         * modules/sys_socket (Makefile.am): Likewise.
42869         * modules/sys_stat (Makefile.am): Likewise.
42870         * modules/sys_time (Makefile.am): Likewise.
42871         * modules/sys_times (Makefile.am): Likewise.
42872         * modules/sys_utsname (Makefile.am): Likewise.
42873         * modules/sys_wait (Makefile.am): Likewise.
42874         * modules/sysexits (Makefile.am): Likewise.
42875         * modules/termios (Makefile.am): Likewise.
42876         * modules/time (Makefile.am): Likewise.
42877         * modules/unistd (Makefile.am): Likewise.
42878         * modules/wchar (Makefile.am): Likewise.
42879         * modules/wctype (Makefile.am): Likewise.
42881 2010-10-04  Bruno Haible  <bruno@clisp.org>
42883         read-file tests: Avoid a test failure on NonStop Kernel.
42884         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
42885         a regular file.
42886         Reported by Joachim Schmitz <schmitz@hp.com>.
42888 2010-10-03  Bruno Haible  <bruno@clisp.org>
42890         gnulib-tool: Fixes for --create-testdir with --libtool.
42891         * gnulib-tool (func_get_automake_snippet): Don't augment
42892         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
42893         an executable.
42894         (func_create_testdir): Handle module 'alloca' like func_import.
42895         Reported by Bruce Korb <bruce.korb@gmail.com>.
42897 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
42899         Avoid some lines longer than 80 characters.
42900         * lib/stdint.in.h: Break long comment lines.
42901         * lib/math.in.h: Likewise.
42902         (_GL_NUM_UINT_WORDS): New macro, for readability.
42903         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
42904         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
42905         * lib/stdlib.in.h: Likewise.
42906         * lib/spawn.in.h: Likewise.
42907         * lib/sys_socket.in.h: Update an URL.
42908         * lib/sys_stat.in.h: Break long line.
42910 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
42912         Improve pmccabe2html.
42913         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
42914         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
42915         when the sources change. Remove the line in the HTML about "Used
42916         ranges" (which implied that there might be other unused ranges),
42917         rename "Resume" to "Summary" (easier to understand for more users).
42918         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
42919         styles, and some unnecessary blank lines.
42921 2010-10-03  Bruno Haible  <bruno@clisp.org>
42922             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
42924         acl: Add support for ACLs on NonStop Kernel.
42925         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
42926         Check whether the function aclsort() exists.
42927         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
42928         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
42929         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42930         (acl_nontrivial [HAVE_ACLSORT]: New function.
42931         (file_has_acl): Implement for NonStop Kernel.
42932         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42933         (qset_acl): Implement for NonStop Kernel.
42934         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
42935         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42936         (main): Implement for NonStop Kernel.
42937         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
42938         Kernel. Handle this flavor.
42939         * tests/test-set-mode-acl.sh: Likewise.
42940         * tests/test-copy-acl.sh: Likewise.
42941         * tests/test-copy-file.sh: Likewise.
42943 2010-10-03  Bruno Haible  <bruno@clisp.org>
42945         Info about ACLs on NonStop Kernel.
42946         * doc/acl-resources.txt: Add info about NonStop Kernel.
42947         References by Joachim Schmitz <schmitz@hp.com>.
42949 2010-10-02  Bruno Haible  <bruno@clisp.org>
42951         Define missing EDQUOT on NonStop Kernel.
42952         * lib/errno.in.h (EDQUOT): Assign a value if missing.
42953         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
42954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
42955         missing.
42956         * doc/posix-headers/errno.texi: Mention the NSK bug.
42957         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
42958         Reported by Joachim Schmitz <schmitz@hp.com>.
42960 2010-10-02  Bruno Haible  <bruno@clisp.org>
42962         Update doc for POSIX:2008.
42963         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
42964         Update URL of POSIX specification.
42966 2010-10-02  Bruno Haible  <bruno@clisp.org>
42968         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
42969         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
42970         from gnulib, not from Automake.
42972 2010-10-02  Bruno Haible  <bruno@clisp.org>
42974         New module 'system-posix'.
42975         * modules/system-posix: New file.
42976         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
42977         module is present.
42978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42979         GNULIB_SYSTEM_POSIX.
42980         * modules/stdlib (Depends-on): Remove sys_wait.
42981         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
42982         * doc/posix-functions/system.texi: Mention the new module.
42983         * doc/posix-headers/stdlib.texi: Likewise.
42984         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
42985         define test_sys_wait_macros to a no-op.
42986         Reported by Sam Steingold <sds@gnu.org>.
42988 2010-09-30  Bruno Haible  <bruno@clisp.org>
42990         More renaming from 'getdate' to 'get_date'.
42991         * doc/get_date.texi: Renamed from doc/getdate.texi.
42992         * modules/get_date (Files): Update.
42993         * MODULES.html.sh (Date and time <time.h>): Update.
42994         * DEPENDENCIES: Update.
42995         * gnulib-tool: Update comment.
42996         * m4/bison.m4 (gl_BISON): Likewise.
42997         * m4/get_date.m4 (gl_GET_DATE): Likewise.
42999 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
43001         bootstrap: support ACLOCAL_FLAGS during aclocal
43002         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
43003         can add additional -I dir for third-party .m4 files.
43005 2010-09-30  Eric Blake  <eblake@redhat.com>
43007         bootstrap: use glibtoolize on MacOS
43008         * build-aux/bootstrap (check_versions): Convert libtool into
43009         libtoolize.
43010         (tool search): Move libtool check earlier, and look for
43011         glibtoolize for MacOS.
43012         (gnulib_tool_options): Auto-add --libtool when appropriate.
43013         Reported by Justin Clift.
43015         poll: fix typo that broke test on MacOS
43016         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
43017         Reported by Justin Clift.
43019         getdate: rename to get_date
43020         Note: getdate.h is not renamed, to minimize client impact.
43021         * modules/getdate: Mark obsolete.  Move old contents...
43022         * modules/get_date: ...to new module name.
43023         * modules/getdate-tests: Move...
43024         * modules/get_date-tests: ...here.
43025         * m4/getdate.m4: Move...
43026         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
43027         * lib/getdate.y: Move...
43028         * lib/get_date.y: ...here.
43029         * tests/test-getdate.c: Move...
43030         * tests/test-get_date.c: ...here.
43031         * doc/posix-functions/getdate.texi (getdate): Update name.
43032         * NEWS: Mention the change.
43034 2010-09-29  Bruno Haible  <bruno@clisp.org>
43036         Separate the module 'waitpid' from the module 'sys_wait'.
43037         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
43038         present.
43039         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
43040         gl_MODULE_INDICATOR_FOR_TESTS.
43041         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
43042         * modules/sys_wait (Depends-on): Remove waitpid.
43043         (Makefile.am): Substitute GNULIB_WAITPID.
43044         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
43045         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
43046         signature only if the 'waitpid' module is present.
43047         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
43048         * NEWS: Mention the change.
43049         * modules/grantpt (Depends-on): Add waitpid.
43050         * modules/wait-process (Depends-on): Likewise.
43052 2010-09-29  Bruno Haible  <bruno@clisp.org>
43054         More tests for module 'sys_wait'.
43055         * modules/sys_wait-c++-tests: New file.
43056         * tests/test-sys_wait-c++.cc: New file.
43057         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
43058         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43060 2010-09-29  Bruno Haible  <bruno@clisp.org>
43062         New module 'waitpid'.
43063         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
43064         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
43065         Don't include <process.h>.
43066         (waitpid): Declare only, using modern idiom.
43067         * m4/waitpid.m4: New file.
43068         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
43069         * modules/waitpid: New file.
43070         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
43071         (Makefile.am): Update.
43072         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43074 2010-09-28  Bruno Haible  <bruno@clisp.org>
43076         poll: Assume ANSI C.
43077         * lib/poll.c (poll): Use an ANSI C declaration.
43079 2010-09-28  Bruno Haible  <bruno@clisp.org>
43081         poll-h: Create poll.h on all platforms.
43082         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
43083         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
43084         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
43085         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
43086         (gl_REPLACE_POLL_H): Don't set POLL_H.
43087         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
43088         * modules/poll-h (Depends-on): Add include_next.
43089         (Makefile.am): Create poll.h unconditionally. Substitute also
43090         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
43092 2010-09-28  Bruno Haible  <bruno@clisp.org>
43094         Tests for module 'poll-h'.
43095         * modules/poll-h-c++-tests: New file.
43096         * tests/test-poll-h-c++.cc: New file.
43098         Tests for module 'poll-h'.
43099         * modules/poll-h-tests: New file.
43100         * tests/test-poll-h.c: New file.
43102 2010-09-28  Bruno Haible  <bruno@clisp.org>
43104         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
43105         * modules/poll-h (Depends-on): Add 'extensions'.
43107 2010-09-28  Bruno Haible  <bruno@clisp.org>
43109         New module 'poll-h'.
43110         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
43111         (poll): Use modern idiom.
43112         * modules/poll-h: New file.
43113         * modules/poll (Files): Remove lib/poll.in.h.
43114         (Depends-on): Add poll-h.
43115         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
43116         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
43117         * m4/poll_h.m4: New file.
43118         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
43119         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
43120         and invoke gl_REPLACE_POLL_H.
43121         * lib/poll.c: Use common idiom.
43122         * tests/test-poll.c: Likewise.
43123         * doc/posix-headers/poll.texi: Mention the poll-h module.
43124         Suggested by Eric Blake.
43126 2010-09-26  Bruno Haible  <bruno@clisp.org>
43128         sys_wait: Implement WSTOPSIG.
43129         * lib/sys_wait.in.h (WSTOPSIG): New macro.
43130         Reported by Simon Josefsson.
43132 2010-09-26  Simon Josefsson  <simon@josefsson.org>
43134         stdlib, sys_wait: Avoid compilation error on mingw.
43135         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
43137 2010-09-26  Bruno Haible  <bruno@clisp.org>
43139         stdlib tests: Avoid code duplication.
43140         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
43141         * modules/sys_wait-tests (Files): Likewise.
43142         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
43143         * tests/test-stdlib.c: Include test-sys_wait.h.
43144         (main): Invoke test_sys_wait_macros.
43145         * tests/test-sys_wait.c: Include test-sys_wait.h.
43146         (main): Invoke test_sys_wait_macros.
43148 2010-09-25  Simon Josefsson  <simon@josefsson.org>
43150         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
43151         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
43152         sure Windows sockets are working before calling getaddrinfo.
43153         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
43154         * doc/gnulib.texi (Windows sockets): Fix typo.
43156 2010-09-25  Bruno Haible  <bruno@clisp.org>
43158         Tests for module 'regex-quote'.
43159         * modules/regex-quote-tests: New file.
43160         * tests/test-regex-quote.c: New file.
43162         New module 'regex-quote'.
43163         * lib/regex-quote.h: New file.
43164         * lib/regex-quote.c: New file.
43165         * modules/regex-quote: New file.
43166         Suggested by Reuben Thomas <rrt@sc3d.org>.
43168 2010-09-24  Bruno Haible  <bruno@clisp.org>
43170         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
43171         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
43173 2010-09-23  Bruno Haible  <bruno@clisp.org>
43175         setenv: Relax license.
43176         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
43177         Blake.
43178         Requested by Eric Blake.
43180 2010-09-22  Bruno Haible  <bruno@clisp.org>
43182         termios: Relax license.
43183         * modules/termios (License): Change to LGPLv2+.
43184         Requested by Eric Blake.
43186 2010-09-22  Bruno Haible  <bruno@clisp.org>
43188         threadlib: Allow the package to change the default to 'no'.
43189         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
43190         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
43191         Reported by Paul Eggert.
43193 2010-09-22  Pádraig Brady  <P@draigbrady.com>
43194             Bruno Haible  <bruno@clisp.org>
43196         Fix endless loop in mbmemcasecoll.
43197         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
43198         byte.
43199         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
43201 2010-09-22  Bruno Haible  <bruno@clisp.org>
43203         Tests for module 'memcoll'.
43204         * modules/memcoll-tests: New file.
43205         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
43207         memcoll, xmemcoll: Clarify size vs. length.
43208         * modules/memcoll.c (memcoll0): Clarify specification.
43209         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
43210         passed to collate_error.
43212 2010-09-22  Bruno Haible  <bruno@clisp.org>
43214         Tests for module 'memcasecmp'.
43215         * modules/memcasecmp-tests: New file.
43216         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
43218 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43220         * lib/pthread.in.h: Add split double-inclusion guard, and include
43221         system <pthread.h> if there is one.  Use @@-style as in other
43222         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
43223         pthread.h doesn't.
43224         (pthread_mutexattr_destroy, pthread_mutexattr_init):
43225         (pthread_mutexattr_settype, pthread_mutex_trylock):
43226         New static inline functions, if there's no system <pthread.h>.
43227         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
43228         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
43229         Approximate with mutexes if the system lacks spinlocks, as in
43230         MacOS.
43231         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
43232         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
43233         @@-style.  Check for spinlocks separately.
43234         (gl_PTHREAD_DEFAULTS): New macro.
43235         * modules/pthread: Redo to use a more typical style for in.h files.
43237 2010-09-21  Eric Blake  <eblake@redhat.com>
43239         net_if: enhance tests
43240         * tests/test-net_if.c (main): Move signature checks earlier.
43241         Print failures to stderr.
43242         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
43243         Document the bug that we do not yet fix.
43245 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
43247         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
43248         about gnulib, not GSS.
43250 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
43252         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
43253         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
43254         for Emacs.
43255         * build-aux/pmccabe2html: Make Makefile.am example code more
43256         cut-and-paste friendly.
43258 2010-09-21  Simon Josefsson  <simon@josefsson.org>
43260         * tests/test-net_if.c: New file.
43261         * modules/net_if-tests: New file.
43263 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43265         pthread: add pthread_spin_destroy
43266         * lib/pthread.in.h (pthread_spin_destroy): New function.
43268 2010-09-19  Bruno Haible  <bruno@clisp.org>
43270         gnulib-tool: Fix --help output.
43271         * gnulib-tool (func_usage): Fix help message.
43272         Reported by Reuben Thomas <rrt@sc3d.org>.
43274 2010-09-18  Jim Meyering  <meyering@redhat.com>
43276         maint.mk: avoid unexpanded \n in two diagnostics
43277         * top/maint.mk (sc_prohibit_always_true_header_tests):
43278         Don't use a literal \n in a halt=... assignment.  It would not be
43279         expanded, and the two \n bytes would appear in the diagnostic output
43280         rather than the desired newline.  Use halt=$$(printf ... instead.
43281         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
43283 2010-09-18  Bruno Haible  <bruno@clisp.org>
43285         netinet_in: Doc tweak.
43286         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
43287         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43289 2010-09-18  Jim Meyering  <meyering@redhat.com>
43291         init.sh: correct an outdated comment
43292         * tests/init.sh (create_exe_shims_):  s/function/alias/
43294         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
43295         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
43296         a file named "*.exe" is removed between the glob expansion and the
43297         processing of that oddly named file.
43299 2010-09-17  Eric Blake  <eblake@redhat.com>
43301         mirbsd: add some more support
43302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
43303         in BSD family.
43304         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
43305         devices as OpenBSD.
43306         * m4/host-os.m4 (mirbsd): Add MirBSD.
43308         tests: fix unportable assumption on sys/wait.h
43309         * tests/test-sys_wait.c (main): Relax test.
43310         * tests/test-stdlib.c (main): Likewise.
43312         init.sh: accommodate directory with no .exes
43313         * tests/init.sh: Accomodate directory containing only scripts.
43315         tests: avoid compiler warning
43316         * tests/test-stdlib.c (main): Use the variable.
43318         fdutimens, fdutimensat: update signature, again
43319         * lib/utimens.h (gl_futimens): Delete, and move signature...
43320         (fdutimens): ...here.
43321         (fdutimensat): Rearrange signature.
43322         (lutimensat): Rename variable for clarity.
43323         * lib/fdutimensat.c (fdutimensat): Update signature.
43324         * lib/utimens.c (fdutimens): Likewise.
43325         (gl_futimens): Delete.
43326         (utimens, lutimens): Update callers.
43327         * lib/futimens.c (futimens): Likewise.
43328         * tests/test-fdutimensat.c: Likewise.
43329         * tests/test-utimens.c: Likewise.
43330         * tests/test-futimens.h: Update comment.
43331         * NEWS: Mention this.
43332         Suggested by Paul Eggert.
43334 2010-09-17  Bruno Haible  <bruno@clisp.org>
43336         Take over the maintenance of some older macros from Autoconf.
43337         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
43338         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
43339         GNU Autoconf.
43340         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
43341         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
43343 2010-09-17  Eric Blake  <eblake@redhat.com>
43345         fdutimensat: drop atflag validation
43346         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
43347         with valid fd, to close a race scenario where futimens is
43348         unsupported and FILE was replaced by a symlink.
43349         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
43350         accordingly.
43351         Suggested by Paul Eggert.
43353 2010-09-16  Bruno Haible  <bruno@clisp.org>
43355         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
43356         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
43358 2010-09-16  Bruno Haible  <bruno@clisp.org>
43360         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
43361         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
43362         login_tty exists.
43363         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43365 2010-09-16  Bruno Haible  <bruno@clisp.org>
43367         login_tty: Make the replacement code work on BSD systems.
43368         * lib/login_tty.c: Include <sys/ioctl.h>.
43369         (login_tty): Use ioctl TIOCSCTTY when available.
43370         * modules/login_tty (Depends-on): Add sys_ioctl.
43371         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43373 2010-09-16  Bruno Haible  <bruno@clisp.org>
43375         login_tty: Stricter unit test.
43376         * modules/login_tty-tests (Depends-on): Add tcgetsid.
43377         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
43378         and tcgetsid() after login_tty.
43379         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43381 2010-09-16  Bruno Haible  <bruno@clisp.org>
43383         New module 'tcgetsid'.
43384         * lib/tcgetsid.c: New file.
43385         * m4/tcgetsid.m4: New file.
43386         * modules/tcgetsid: New file.
43387         * modules/termios (Depends-on): Add c++defs, warn-on-use.
43388         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
43389         GNULIB_TCGETSID, HAVE_TCGETSID.
43390         * lib/termios.in.h: Include <sys/types.h>.
43391         (tcgetsid): New declaration.
43392         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
43393         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
43394         * doc/posix-functions/tcgetsid.texi: Mention the new module.
43395         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
43397 2010-09-16  Bruno Haible  <bruno@clisp.org>
43399         Tests for module 'termios'.
43400         * modules/termios-c++-tests: New file.
43401         * modules/termios-tests: New file.
43402         * tests/test-termios-c++.cc: New file.
43403         * tests/test-termios.c: New file.
43405         New module 'termios'.
43406         * modules/termios: New file.
43407         * lib/termios.in.h: New file.
43408         * m4/termios_h.m4: New file.
43409         * doc/posix-headers/termios.texi: Mention the new module.
43411 2010-09-16  Eric Blake  <eblake@redhat.com>
43413         fdutimensat: add an atflag parameter
43414         * lib/fdutimensat.c (fdutimensat): Add new parameter.
43415         * lib/utimens.h (fdutimensat): Update prototype.
43416         * tests/test-fdutimensat.c: Adjust test to match.
43417         * NEWS: Document the change.
43418         Suggested by Paul Eggert.
43420 2010-09-16  Bruno Haible  <bruno@clisp.org>
43422         Fix typos in comments.
43423         * lib/striconveh.h: Fix typo in comment.
43424         * lib/login_tty.c (login_tty): Likewise.
43426 2010-09-15  Bruno Haible  <bruno@clisp.org>
43428         stdlib: clarify MirBSD WEXITSTATUS bug
43429         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
43430         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43432 2010-09-15  Eric Blake  <eblake@redhat.com>
43434         stdlib: work around MirBSD WEXITSTATUS bug
43435         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
43436         * modules/stdlib (Depends-on): Add sys_wait.
43437         * tests/test-sys_wait.c (main): Enhance test.
43438         * tests/test-stdlib.c (main): Likewise.
43439         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
43441         docs: mention MacOS issue with WEXITSTATUS(constant)
43442         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
43443         issue.
43444         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43446         strnlen: add tests
43447         * modules/strnlen-tests: New file.
43448         * tests/test-strnlen.c: Likewise.
43450 2010-09-14  Bruno Haible  <bruno@clisp.org>
43452         unistr/base: Avoid link errors when module 'libunistring' is also used.
43453         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
43454         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
43455         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
43456         Declare also when HAVE_LIBUNISTRING is set.
43457         Reported by Pádraig Brady <P@draigbrady.com>.
43459 2010-09-14  Eric Blake  <eblake@redhat.com>
43461         test-rawmemchr: make more robust
43462         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
43463         (Depends-on, configure.ac): Add needed prerequisites to use it.
43464         * modules/memchr-tests (Files, Depends-on, configure.ac):
43465         Likewise, to avoid implicit reliance on memchr module prereqs.
43466         * tests/test-memchr.c (main): Ensure proper masking.
43467         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
43468         reads.
43470         memchr: detect glibc Alpha bug
43471         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
43472         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
43473         Alpha.
43474         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
43475         * tests/test-memchr.c (main): Enhance test.
43476         Reported by Nelson H. F. Beebe.
43478 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43480         fts, getcwd, glob: audit for dirfd returning -1
43481         * lib/fts.c (opendir): Remove #define; no longer used.
43482         (opendirat): New arg PDIR_FD.  All callers changed.
43483         (fts_build, _opendir2): Use new opendirat to avoid the need for
43484         dirfd, or for checking whether dirfd returns a negative value.
43485         Don't use opendir; always use openat followed by fdopendir.
43486         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
43487         it.
43488         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
43489         returns -1 here.
43490         * modules/fts (Depends-on): Remove dirfd.
43491         * modules/getcwd (Depends-on): Likewise.
43493 2010-09-13  Eric Blake  <eblake@redhat.com>
43495         float: fix broken MirBSD header
43496         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
43497         * doc/posix-headers/float.texi (float.h): Document it.
43499 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43501         fts: use O_NOFOLLOW to avoid race condition when opening a directory
43502         * lib/fts.c (opendirat): New arg extra_flags.
43503         (__opendir2): Use it to avoid following symlinks when opening
43504         a directory, if symlinks are not supposed to be followed.  See
43505         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
43507         fdopendir: preserve argument fd before returning
43508         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
43509         (fdopendir_with_dup, fd_clone_opendir): New static functions.
43510         (fdopendir): Use them, arranging for FD to be open to the same
43511         directory that it was when it started.  (It might be temporarily
43512         closed while fdopendir is running, so this not thread- or
43513         signal-safe.)  Be careful to do the right thing even when file
43514         descriptors are scarce and dup fails with errno == EMFILE.  See
43515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
43517 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
43519         regex: Pass the system regex if its only problem is 32-bit regoff_t.
43520         * NEWS: Document change.
43521         * m4/regex.m4: Disable test for regoff_t size.
43523 2010-09-13  Jim Meyering  <meyering@redhat.com>
43525         fts: don't operate on an invalid file descriptor after failed dup
43526         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
43527         negative file descriptor.
43529 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
43531         savedir: add streamsavedir, deprecate fdsavedir
43532         * NEWS: Mention deprecation of fdsavedir.
43533         * lib/savedir.c (streamsavedir): New extern function, whose name
43534         ends in "savedir" to be consistent with the others.  This differs
43535         from savedirstream in that it doesn't close its argument.  The
43536         next version of GNU tar will use this instead of fdsavedir, to
43537         avoid some race conditions and conserve file descriptors.
43538         (savedirstream): Reimplement as a wrapper around streamsavedir.
43539         (fdsavedir): Add a comment deprecating this function.  As far as
43540         I know, only GNU tar used it, and GNU tar doesn't need it any more.
43541         * lib/savedir.h (streamsavedir): New decl.
43542         (fdsavedir): Add a comment deprecating this.
43544 2010-09-10  Bruno Haible  <bruno@clisp.org>
43546         langinfo: Fix last commit.
43547         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
43548         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
43549         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43551 2010-09-10  Bruno Haible  <bruno@clisp.org>
43553         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
43554         * lib/progreloc.c (O_EXEC): Define fallback.
43556 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
43558         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
43559         * NEWS: Document recent changes to fcntl-h.
43560         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
43561         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
43562         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
43563         Similarly for O_SEARCH; this last was already true, but not documented.
43564         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
43565         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
43566         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
43567         Likewise.
43568         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
43569         is zero, not whether it is defined.
43570         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
43571         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
43572         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
43574 2010-09-10  Bruno Haible  <bruno@clisp.org>
43576         langinfo, nl_langinfo: Fix for IRIX 5.3.
43577         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
43578         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
43579         HAVE_LANGINFO_YESEXPR.
43580         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
43581         HAVE_LANGINFO_YESEXPR.
43582         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
43583         HAVE_LANGINFO_T_FMT_AMPM is 0.
43584         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
43585         HAVE_LANGINFO_YESEXPR is 0.
43586         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
43587         NOEXPR.
43588         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
43589         * doc/posix-functions/nl_langinfo.texi: Likewise.
43590         Reported by Eric Blake.
43592 2010-09-10  Bruno Haible  <bruno@clisp.org>
43594         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
43595         * doc/glibc-functions/login_tty.texi: Mention the include file problem
43596         on FreeBSD 8.0 and OpenBSD 4.6.
43597         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
43598         * m4/pty_h.m4 (gl_PTY_H): Likewise.
43599         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
43600         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
43601         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
43602         ac_includes_default.
43603         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43605 2010-09-09  Eric Blake  <eblake@redhat.com>
43607         strsignal: work around NetBSD bug
43608         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
43609         * lib/string.in.h (includes): Likewise.
43610         * doc/posix-functions/strsignal.texi (strsignal): Document the
43611         bug.
43612         Reported by Nelson H. F. Beebe.
43614         gnulib-tool: work with NetBSD /bin/sh
43615         * gnulib-tool (func_cache_var, func_cache_lookup_module)
43616         (func_get_description, func_get_comment, func_get_status)
43617         (func_get_notice, func_get_applicability, func_get_filelist)
43618         (func_get_dependencies, func_get_autoconf_early_snippet)
43619         (func_get_autoconf_snippet, func_get_automake_snippet)
43620         (func_get_include_directive, func_get_link_directive)
43621         (func_get_license, func_get_maintainer, func_import): Avoid
43622         shell syntax errors from parsing syntax extensions.
43624 2010-09-09  Bruno Haible  <bruno@clisp.org>
43626         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
43627         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
43628         a reliable way to determine whether the 'alias' command works.
43630 2010-09-08  Jim Meyering  <meyering@redhat.com>
43632         init.sh: penalize a set-x-impaired shell; don't disqualify it
43633         * tests/init.sh: Too many shells corrupt application stderr when
43634         you set -x, so we can't afford to disqualify them, since at least
43635         on Irix-6.5, that would disqualify all bourne shells.
43636         Instead, use a two-pass approach.
43637         On the first pass, try to find a shell that meets the stricter
43638         condition that set -x does not corrupt stderr.
43639         If no shell meets the stricter condition, retest each candidate
43640         shell, but without that extra condition.  Finally, when
43641         VERBOSE=yes is requested and set -x might cause trouble, simply
43642         issue a warning and refrain from enabling debug output.
43644 2010-09-08  Eric Blake  <eblake@redhat.com>
43646         unsetenv: fix OpenBSD bug
43647         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
43648         * doc/posix-functions/unsetenv.texi (unsetenv): Update
43649         documentation.
43650         Reported by Jim Meyering.
43652         strtod: work around IRIX 6.5 bug
43653         * lib/strtod.c (strtod): Reparse number on shorter string if
43654         exponent parse was invalid.
43655         * tests/test-strtod.c (main): Add check for "0x1p 2".
43656         Reported by Tom G. Christensen.
43658         getopt: optimize previous patch
43659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
43660         empty variable.  Speed up awk script.
43661         Reported by Paolo Bonzini.
43663 2010-09-08  Jim Meyering  <meyering@redhat.com>
43665         test.sh: disqualify shells for which set -x corrupts stderr
43666         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
43667         and OpenBSD 4.7.  They make it so with "set -x", environment settings
43668         appear in stderr output.  For example, this command:
43669             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
43670         prints "P=1" on those two systems:
43672 2010-09-08  Bruno Haible  <bruno@clisp.org>
43674         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
43675         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
43676         commands, because some shells ignore redirections when there is an
43677         error in the command lookup.
43678         Reported by Eric Blake.
43680 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
43682         * lib/regex.h: Fix a mention of `regex_compile' (should be
43683         `re_compile_pattern').
43684         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
43685         (re_set_registers): Correct name of parameter in comment.
43687         * doc/regex.texi: Add documentation for missing syntax flags.
43688         Remove commented-out documentation of defunct syntax option
43689         RE_NO_EMPTY_ALTS.
43690         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
43691         Add documentation of re_set_registers.
43692         Document trick to re-use a pattern buffer by setting fastmap manually.
43693         Update documentation of struct re_pattern_buffer per public members.
43694         Uncomment documentation of equivalence class operators and
43695         collating symbol operators, since they are now implemented,
43696         Explain leftmost-longest matching in relation to alternatives.
43697         Tidy documentation of substring matching.
43698         Remove POSIX documentation, which is done better in
43699         glibc, and refer the reader there. Keep BSD API documentation, as
43700         that is not readily available elsewhere.
43702 2010-09-07  Eric Blake  <eblake@redhat.com>
43704         getopt: handle POSIXLY_CORRECT set but not exported
43705         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
43706         export state of POSIXLY_CORRECT, due to bash set -o posix.
43707         Reported by Dustin J. Mitchell.
43709 2010-09-05  Bruno Haible  <bruno@clisp.org>
43711         gnulib-tool: Highlight the changed options.
43712         * gnulib-tool (func_usage): Display the --import, --add-import,
43713         --remove-import explanations in bold font.
43715 2010-09-06  Karl Berry  <karl@gnu.org>
43717         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
43719 2010-09-05  Bruno Haible  <bruno@clisp.org>
43721         uniwidth/width: Update comment.
43722         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
43723         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
43725 2010-09-05  Bruno Haible  <bruno@clisp.org>
43727         isinf, isnan: Relax license.
43728         * modules/isinf (License): Change from GPL to LGPL, with consent from
43729         Ben Pfaff.
43730         * modules/isnan (License): Likewise.
43731         Requested by Ludovic Courtès.
43733 2010-09-04  Bruno Haible  <bruno@clisp.org>
43735         gnulib-tool: Help migration from --import to --add-import or --update.
43736         * gnulib-tool: Emit a verbose error message when --import is used
43737         without any module name.
43739 2010-09-04  Bruno Haible  <bruno@clisp.org>
43741         Update doc about gnulib-tool.
43742         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
43743         'gnulib-tool --update' in more detail.
43744         Reported by Eric Blake.
43746 2010-09-04  Bruno Haible  <bruno@clisp.org>
43748         gnulib-tool: Change --import. New options --add/remove-import.
43749         * gnulib-tool: New options --add-import, --remove-import.
43750         (func_usage): Document them.
43751         (have_associative): Define always.
43752         (func_import): In import mode, don't merge the specified settings with
43753         the cached settings. Implement remove-import mode.
43754         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
43755         Explain when to use them versus --import.
43756         (Simple update): Use --add-import instead of --import.
43757         * NEWS: Mention the change.
43759 2010-09-04  Bruno Haible  <bruno@clisp.org>
43761         * doc/gnulib-tool.texi (Initial import): Update paragraph about
43762         separate gnulib.mk.
43764 2010-09-04  Bruno Haible  <bruno@clisp.org>
43766         gnulib-tool: Don't talk about CVS any more.
43767         * gnulib-tool (func_usage, func_import): Write "version control"
43768         instead of CVS.
43770 2010-09-04  Jim Meyering  <meyering@redhat.com>
43772         maint.mk: avoid obscure sc_copyright_check failure in coreutils
43773         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
43774         false positives (whose names may be ill-chosen) when searching
43775         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
43776         would cause a false-positive.
43778         avoid coreutils "make distcheck" failure
43779         Coreutils tests with an absolute build directory name that contains
43780         a space.  Not quoting this directory name caused a failure.
43781         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
43782         * tests/test-vc-list-files-cvs.sh: Likewise.
43784 2010-09-04  Bruno Haible  <bruno@clisp.org>
43786         gnulib-tool: Avoid error when run in a package without Makefile.am.
43787         * gnulib-tool: When collecting the m4dirs in a package that does not
43788         have a Makefile.am, eliminate those directories that contain no
43789         gnulib-cache.m4. Fix expression that counts these directories.
43791 2010-09-04  Bruno Haible  <bruno@clisp.org>
43793         update-copyright test: Improve output when perl is missing or too old.
43794         * tests/test-update-copyright.sh: Move test of Perl version down after
43795         the test whether Perl exists. Provide an explanation relating Perl's
43796         error message to Automake's SKIP: message.
43798 2010-09-04  Bruno Haible  <bruno@clisp.org>
43800         Don't augment PATH in TESTS_ENVIRONMENT.
43801         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
43802         set abs_aux_dir instead of augmenting PATH.
43803         * modules/vc-list-files-tests (Makefile.am): Likewise.
43804         * tests/test-update-copyright.sh: Augment PATH here.
43805         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
43806         path_prepend_.
43807         * tests/test-vc-list-files-git.sh: Likewise.
43809 2010-09-04  Jim Meyering  <meyering@redhat.com>
43811         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
43812         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
43814 2010-09-04  Bruno Haible  <bruno@clisp.org>
43816         strdup: Fix compilation error in C++ mode.
43817         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
43818         the macro.
43820 2010-09-04  Bruno Haible  <bruno@clisp.org>
43822         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
43823         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
43824         macro into a function.
43825         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43827 2010-09-04  Bruno Haible  <bruno@clisp.org>
43829         Set PATH_SEPARATOR the same way autoconf does.
43830         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
43831         the value of PATH_SEPARATOR the same way autoconf-generated configure
43832         scripts do.
43833         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
43834         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43836 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43838         Set PATH_SEPARATOR the same way autoconf does.
43839         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
43840         the same way autoconf-generated configure scripts do.
43841         * posix-modules: Likewise.
43843 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
43845         hash: fix safe_hasher const typo
43846         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
43847         const; otherwise, there is a type error later.
43849 2010-09-02  Jim Meyering  <meyering@redhat.com>
43851         test-update-copyright.sh: require perl 5.8.0
43852         * tests/test-update-copyright.sh: Require 5.8.0,
43853         which Tom G. Christensen has confirmed is adequate,
43854         while 5.6.1 is not.
43856 2010-09-02  Eric Blake  <eblake@redhat.com>
43858         tests: init.sh improvements for re-exec'ing with zsh
43859         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
43860         -vx through shell re-exec.
43861         Reported by Tom G. Christensen.
43863         wctype: fix typo in previous commit
43864         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
43865         Reported by Ludovic Courtès.
43867 2010-09-02  Jim Meyering  <meyering@redhat.com>
43869         test-update-copyright.sh: skip test if Perl is too old
43870         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
43871         Reported by Tom G. Christensen.
43873 2010-09-02  Bruno Haible  <bruno@clisp.org>
43875         wctype: Avoid compilation error on IRIX 6.5.30.
43876         * lib/wctype.in.h (iswblank): Declare with a replacement if
43877         REPLACE_ISWBLANK is set.
43878         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
43879         declared. Set REPLACE_ISWBLANK.
43880         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
43881         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
43882         * doc/posix-headers/wctype.texi: Likewise.
43883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43885 2010-09-01  Bruno Haible  <bruno@clisp.org>
43887         New module 'socketlib'.
43888         * modules/socketlib: New file.
43889         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
43890         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
43891         * modules/sockets (Depends-on): Add socketlib.
43892         Suggested by Sam Steingold <sds@gnu.org>.
43894 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43896         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
43898         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
43899         when one needs search access to a directory but not read access.
43900         On systems where it is available, it works in some cases where
43901         O_RDONLY does not, namely on directories that are searchable but
43902         not readable, and which need only to be searchable.  If O_SEARCH
43903         is not available, fall back to the traditional method of using
43904         O_RDONLY.
43906         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
43907         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
43908         when opening a directory that needs only to be searchable.
43909         * lib/chdir-safer.c (chdir_no_follow): Likewise.
43910         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
43911         * lib/openat-proc.c (openat_proc_name): Likewise.
43912         * lib/openat.c (openat_needs_fchdir): Likewise.
43913         * lib/save-cwd.c (save_cwd): Likewise.
43914         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
43916 2010-08-28  Bruno Haible  <bruno@clisp.org>
43918         New module 'host-cpu-c-abi'.
43919         * modules/host-cpu-c-abi: New file.
43920         * m4/host-cpu-c-abi.m4: New file, based on part of
43921         clisp/src/m4/general.m4.
43922         Requested by Sam Steingold <sds@gnu.org>.
43924 2010-08-31  Eric Blake  <eblake@redhat.com>
43925         and Jim Meyering  <meyering@redhat.com>
43927         hash: factor, and guard against misbehaving hasher function
43928         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
43929         of table->hasher's return value.  Also protect against a hash value
43930         so large that adding it to table->bucket results in a NULL pointer.
43931         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
43932         Use it in place of open-coded check-and-abort.
43934 2010-08-30  Bruno Haible  <bruno@clisp.org>
43936         hash: silence spurious clang warning
43937         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
43938         Reported by Eric Blake.
43940 2010-08-30  Eric Blake  <eblake@redhat.com>
43942         strstr, memmem, strcasestr: avoid leaked shell message
43943         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
43944         FreeBSD.
43945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43948         tests: silence clang warning
43949         * tests/test-malloca.c (do_allocation): Avoid dead store.
43951 2010-08-29  Bruno Haible  <bruno@clisp.org>
43953         gettext: Fix recent mistake.
43954         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
43956 2010-08-29  Bruno Haible  <bruno@clisp.org>
43958         selinux-h: Offer a --without-selinux option.
43959         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
43960         --without-selinux was specified, skip all tests and define
43961         HAVE_SELINUX_SELINUX_H to 0.
43962         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
43963         set LIB_SELINUX to empty.
43964         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
43965         gl_LIBSELINUX. If --without-selinux was specified, replace
43966         selinux/context.h.
43967         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
43969 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43970             Bruno Haible  <bruno@clisp.org>
43972         Make the module 'realloc-gnu' work again on AIX and OSF/1.
43973         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
43974         of HAVE_REALLOC.
43975         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
43976         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
43977         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
43978         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43980 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43981             Bruno Haible  <bruno@clisp.org>
43983         Make the module 'calloc-gnu' work again on AIX and OSF/1.
43984         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
43985         HAVE_CALLOC.
43986         * lib/xmalloc.c: Update accordingly.
43987         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
43988         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
43989         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
43991 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43992             Bruno Haible  <bruno@clisp.org>
43994         Make the module 'malloc-gnu' work again on AIX and OSF/1.
43995         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
43996         HAVE_MALLOC.
43997         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
43998         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
43999         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
44001 2010-08-29  Bruno Haible  <bruno@clisp.org>
44003         Update modules list.
44004         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44005         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
44006         (String handling <string.h>): Add astrxfrm.
44007         (File system functions): Add readlinkat.
44009 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44011         Tests for module 'realloc-gnu'.
44012         * modules/realloc-gnu-tests: New file.
44013         * tests/test-realloc-gnu.c: New file.
44015         Tests for module 'calloc-gnu'.
44016         * modules/calloc-gnu-tests: New file.
44017         * tests/test-calloc-gnu.c: New file.
44019         Tests for module 'malloc-gnu'.
44020         * modules/malloc-gnu-tests: New file.
44021         * tests/test-malloc-gnu.c: New file.
44023 2010-08-28  Bruno Haible  <bruno@clisp.org>
44025         Rename module 'realloc' -> 'realloc-gnu'.
44026         * modules/realloc-gnu: New file, copied from modules/realloc.
44027         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
44028         obsolete.
44029         * modules/mgetgroups (Depends-on): Update.
44030         * doc/posix-functions/realloc.texi: Update.
44031         * NEWS: Mention the change.
44033         Rename module 'calloc' -> 'calloc-gnu'.
44034         * modules/calloc-gnu: New file, copied from modules/calloc.
44035         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
44036         obsolete.
44037         * doc/posix-functions/calloc.texi: Update.
44038         * NEWS: Mention the change.
44040         Rename module 'malloc' -> 'malloc-gnu'.
44041         * modules/malloc-gnu: New file, copied from modules/malloc.
44042         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
44043         obsolete.
44044         * modules/argp (Depends-on): Update.
44045         * modules/regex (Depends-on): Update.
44046         * doc/posix-functions/malloc.texi: Update.
44047         * NEWS: Mention the change.
44049 2010-08-28  Eric Blake  <eblake@redhat.com>
44051         pread, pwrite: add missing dependency
44052         * modules/pread (Depends-on): Add extensions.
44053         * modules/pwrite (Depends-on): Likewise.
44055 2010-08-28  Bruno Haible  <bruno@clisp.org>
44057         unistr/u*-strchr: Fix tests dependencies.
44058         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
44059         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
44060         Reported by Ian Beckwith <ianb@erislabs.net>.
44062 2010-08-28  Bruno Haible  <bruno@clisp.org>
44064         read-file: Don't occupy too much unused memory.
44065         * lib/read-file.c (fread_file): Shrink the buffer at the end.
44067 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
44068             Eric Blake  <eblake@redhat.com>
44069             Bruno Haible  <bruno@clisp.org>
44071         read-file: Avoid memory reallocations with regular files.
44072         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
44073         (fread_file): With regular files, use the remaining length as the
44074         initial buffer size.  Check against overflow.
44075         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
44076         sys_stat.
44078 2010-08-28  Bruno Haible  <bruno@clisp.org>
44080         ftello: Relax license.
44081         * modules/ftello (License): Relax to LGPLv2+.
44082         Reported by Eric Blake.
44084 2010-08-28  Bruno Haible  <bruno@clisp.org>
44086         Avoid relocwrapper link errors due to gnulib replacement functions.
44087         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
44088         function.
44089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44091 2010-08-28  Bruno Haible  <bruno@clisp.org>
44093         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
44094         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
44095         defined.
44096         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
44097         Suggested by Eric Blake.
44099 2010-08-28  Bruno Haible  <bruno@clisp.org>
44101         sys_socket, netdb: Ensure socklen_t gets defined.
44102         * modules/sys_socket (Depends-on): Add socklen.
44103         * modules/netdb (Depends-on): Likewise.
44104         * modules/getaddrinfo (Depends-on): Remove socklen.
44105         * modules/getsockopt (Depends-on): Likewise.
44106         * modules/setsockopt (Depends-on): Likewise.
44107         * tests/test-sys_socket.c: Check that socklen_t is defined.
44108         * tests/test-netdb.c: Likewise.
44109         * m4/socklen.m4: Update comments.
44110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44112 2010-08-27  Eric Blake  <eblake@redhat.com>
44114         login_tty: add missing dependency
44115         * modules/login_tty (Depends-on): Add pty.
44117 2010-08-26  Eric Blake  <eblake@redhat.com>
44119         lib-symbol-versions: fix m4 quoting
44120         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
44121         format for AC_LINK_IFELSE.
44123         glob: fix compile test
44124         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
44126         btowc: fix missing file
44127         * modules/btowc (Files): Also ship locale-fr.m4.
44129         lseek: fix link test
44130         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
44131         AC_LINK_IFELSE.
44133         include_next: silence autoconf 2.68 warning
44134         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
44135         AC_COMPILE_IFELSE as special.
44136         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
44137         autoconf < 2.68.
44139         acl: fix compilation test
44140         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
44141         AC_COMPILE_IFELSE.
44143 2010-08-26  Bruno Haible  <bruno@clisp.org>
44145         Modernize AC_TRY_RUN invocations.
44146         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
44147         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
44148         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
44149         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
44150         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
44151         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
44152         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44154         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
44155         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44156         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44157         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44158         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44159         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44161         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
44162         gl_MBRLEN_NUL_RETVAL): Likewise.
44163         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44164         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44165         Likewise.
44166         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44167         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44168         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44169         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44170         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
44171         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
44172         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
44173         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
44174         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
44175         Likewise.
44176         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44177         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
44178         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44179         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44180         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44181         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44182         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44183         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
44184         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44187 2010-08-26  Bruno Haible  <bruno@clisp.org>
44189         Modernize AC_TRY_LINK invocations.
44190         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
44191         AC_TRY_LINK.
44192         * m4/argp.m4 (gl_ARGP): Likewise.
44193         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44194         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44195         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44196         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44197         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44198         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
44199         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44200         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44201         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44202         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44203         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44204         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
44205         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
44206         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
44207         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44208         * m4/hostent.m4 (gl_HOSTENT): Likewise.
44209         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44210         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
44211         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44212         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
44213         Likewise.
44214         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
44215         Likewise.
44216         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
44217         Likewise.
44218         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44219         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
44220         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
44221         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44222         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44223         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
44224         * m4/servent.m4 (gl_SERVENT): Likewise.
44225         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44226         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44227         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44228         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44229         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44230         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44231         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44233         * modules/tsearch-tests (configure.ac): Likewise.
44235 2010-08-26  Bruno Haible  <bruno@clisp.org>
44237         Modernize AC_TRY_COMPILE invocations.
44238         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
44239         AC_TRY_COMPILE.
44240         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
44241         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
44242         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44243         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44244         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44245         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44246         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44247         * m4/lock.m4 (gl_LOCK): Likewise.
44248         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
44249         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44250         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
44251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
44252         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44253         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
44254         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44255         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
44256         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44257         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44258         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44259         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44260         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
44261         extraneous semicolon.
44263 2010-08-26  Jim Meyering  <meyering@redhat.com>
44265         stat-time: relax license LGPL
44266         * modules/stat-time (License): Change from GPL to LGPL,
44267         with consent from all contributors, for use in libguile.
44268         Requested by Ludovic Courtès.
44270 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
44272         poll: return immediately on POLLHUP.
44273         * lib/poll.c (poll): Always set timeout before wait_timeout is
44274         computed.
44276 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44278         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
44279         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
44280         rmdir ("dir/.//"), unlinkat.
44282 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44284         stdbool: avoid spurious failure with modern xlc
44285         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
44287 2010-08-24  Bruno Haible  <bruno@clisp.org>
44289         getloadavg: simplify code
44290         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
44291         gl_have_func. Update comments.
44293 2010-08-24  Eric Blake  <eblake@redhat.com>
44295         getloadavg: don't define SVR4 on cygwin
44296         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
44297         only define SVR4 when -lkvm is required.
44298         Reported by Yaakov Selkowitz.
44300 2010-08-24  Bruno Haible  <bruno@clisp.org>
44302         priv-set: fix comment
44303         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
44305 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44307         priv-set: fix comments
44308         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
44309         to match code, as suggested by David Bartley in:
44310         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
44312 2010-08-23  Eric Blake  <eblake@redhat.com>
44314         stdbool: avoid rejecting clang
44315         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
44316         * tests/test-stdbool.c: Enable more tests if using the system
44317         <stdbool.h> instead of the gnulib replacement.
44318         (main): Move xlc bug test to a runtime test for all compilers.
44319         Reported by Anders Kaseorg.
44321         argz: fix shell quoting issue
44322         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
44323         Reported by Charles Wilson.
44325 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
44326             Erik Faye-Lund <kusmabite@gmail.com>
44328         poll, select: handle ERROR_BROKEN_PIPE.
44329         * lib/poll.c (win32_compute_revents): Return POLLHUP when
44330         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
44331         * lib/select.c (win32_compute_revents): Do not mark a pipe
44332         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
44334 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
44336         fts: allow compilation with C++
44337         * lib/fts_.h: Specify extern "C" linkage with C++.
44339 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44341         Fix gnulib-tool sed script de-commentation for AIX sed.
44342         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
44343         sed.
44345 2010-08-17  Eric Blake  <eblake@redhat.com>
44347         test-stddef: test for (some) offsetof bugs
44348         * tests/test-stddef.c: Enhance test to ensure correct type of
44349         offsetof.
44350         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
44351         that we are not fixing at this time.
44353 2010-08-15  Bruno Haible  <bruno@clisp.org>
44355         stpncpy: Allow stpncpy to be defined as a macro.
44356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
44357         if it's already correctly declared.
44358         * lib/string.in.h (stpncpy): Undefine before redefining.
44359         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
44361 2010-08-14  Bruno Haible  <bruno@clisp.org>
44363         Rename module 'memxfrm' to 'amemxfrm'.
44364         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
44365         (amemxfrm): Renamed from memxfrm.
44366         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
44367         (amemxfrm): Renamed from memxfrm.
44368         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
44369         * NEWS: Mention the change.
44370         * MODULES.html.sh (String handling <string.h>): Update.
44371         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
44372         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
44373         * lib/unicase/u16-casexfrm.c: Likewise.
44374         * lib/unicase/u32-casexfrm.c: Likewise.
44375         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
44376         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
44377         * lib/uninorm/u16-normxfrm.c: Likewise.
44378         * lib/uninorm/u32-normxfrm.c: Likewise.
44379         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
44380         memxfrm.
44381         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
44382         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
44383         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
44384         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
44385         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
44386         Suggested by Paul Eggert.
44388 2010-08-14  Bruno Haible  <bruno@clisp.org>
44390         Tests for module 'astrxfrm'.
44391         * modules/astrxfrm-tests: New file.
44392         * tests/test-astrxfrm.c: New file.
44394         New module 'astrxfrm'.
44395         * lib/astrxfrm.h: New file.
44396         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
44397         * modules/astrxfrm: New file.
44399 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
44401         regex: Tweak doc.
44402         * doc/regex.texi (Overview): Don't mention regex.c.
44403         (GNU Regular Expression Compiling): Likewise.
44404         (Match-end-of-line Operator): Mention 'not_eol'.
44406 2010-08-14  Brian Gough  <bjg@gnu.org>
44407             Bruno Haible  <bruno@clisp.org>
44409         git-merge-changelog: add doc relating to use with bzr and hg.
44410         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
44412 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
44414         pthread: fix pthread.h creation for srcdir != builddir
44415         * modules/pthread (Makefile.am): Fix the rule to work also in a
44416         non-srcdir build.
44418 2010-08-13  Karl Berry  <karl@gnu.org>
44420         * doc/regex.texi (Predefined Syntaxes): @smallexample.
44421         * doc/posix-*/*: force line break before @url of POSIX
44422         specifications.
44423         Suggested by Werner Lemberg.
44425 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44427         strtod: fix const diagnostic
44428         * lib/strtod.c (strtod): Don't assign const char * to char *,
44429         as this elicits a warning from GCC when warnings are enabled.
44431 2010-08-10  Pádraig Brady  <P@draigbrady.com>
44432         and Eric Blake  <eblake@redhat.com>
44434         copy-acl: ignore ENOTSUP on HP-UX
44435         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
44436         so that it is available for HP-UX.
44437         * lib/copy-acl.c (qcopy_acl): Use it.
44438         Reported by Patrick M. Callahan.
44440 2010-08-10  Eric Blake  <eblake@redhat.com>
44442         open, chown: relax license
44443         * modules/open (License): Change to LGPLv2+, with consent by all
44444         authors, for use in augeas.
44445         * modules/chown (License): Likewise.
44446         * modules/lchown (Likewise): Likewise.
44447         Requested by Adam Stokes.
44449 2010-08-09  Karl Berry  <karl@gnu.org>
44451         * build-aux/ar-lib: new file, import from Automake.
44452         * config/srclist.txt: autocheck for updates.
44454 2010-08-09  Eric Blake  <eblake@redhat.com>
44456         readlinkat: adjust client modules
44457         * modules/areadlinkat (Depends-on): Use readlinkat, not
44458         symlinkat.
44459         * modules/areadlinkat-with-size (Depends-on): Likewise.
44461         mknod: be more vocal about danger of running tests as root
44462         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
44463         root, since that is just asking for problems.
44464         Suggested by Bruno Haible, based on a report by Rainer Tammer.
44466         readlinkat: split into its own module
44467         * modules/symlinkat: Split readlinkat...
44468         * modules/readlinkat: ...into separate module.
44469         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
44470         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
44471         * lib/symlinkat.c (readlinkat): Move...
44472         * lib/readlinkat.c: ...into new file.
44473         * modules/symlinkat-tests: Split readlinkat test...
44474         * modules/readlinkat-tests: ...into separate module.
44475         * tests/test-symlinkat.c: Split...
44476         * tests/test-readlinkat.c: ...into new file.
44477         * NEWS: Document the split.
44478         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44479         * lib/unistd.in.h (readlinkat): Likewise.
44480         Suggested by Bruno Haible.
44482 2010-08-08  Bruno Haible  <bruno@clisp.org>
44484         memxfrm: Speed up.
44485         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
44486         that usually only one call to strxfrm is necessary for each string
44487         part.
44488         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44490 2010-08-07  Karl Berry  <karl@gnu.org>
44492         * doc/posix-headers/limits.texi,
44493         * doc/posix-functions/malloc.texi,
44494         * doc/posix-functions/strsignal.texi: missing @item.
44495         * doc/ld-version-script.texi: spurious leading i.
44496         * doc/regex.texi (Interval Operators): no commas inside @var.
44498 2010-08-01  Bruno Haible  <bruno@clisp.org>
44500         Integrate the regex documentation.
44501         * doc/gnulib.texi: Define 'cn' index.
44502         (Regular expressions): New a chapter that includes regex.texi and
44503         regexprops-generic.texi.
44504         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
44505         syntax.
44507         Whitespace cleanup.
44508         * doc/regex.texi: Remove trailing spaces.
44510         Add regex documentation.
44511         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
44512         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
44513         Written by Kathy A. Hargreaves and Karl Berry.
44515 2010-08-01  Bruno Haible  <bruno@clisp.org>
44517         link: Update documentation.
44518         * doc/posix-functions/link.texi: Update regarding Solaris.
44520 2010-07-31  Bruno Haible  <bruno@clisp.org>
44522         Update modules list.
44523         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
44524         (String handling <string.h>): Add memcmp2, memxfrm.
44525         (Container data structures): Add xlist, xsublist, xoset.
44526         (Core language properties): Add alignof, unused-parameter.
44527         (Process control, Numeric conversion functions <stdlib.h>): Renamed
44528         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
44529         (Unibyte characters <ctype.h>): New section.
44530         (String handling <string.h>): New section.
44531         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
44532         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
44533         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
44534         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
44535         tan, tanh, tanl, y0, y1, yn.
44536         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
44537         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
44538         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
44539         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
44540         unlockpt, vdprintf, vdprintf-posix.
44541         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
44542         (File system functions): Add concat-filename, sys_file, sys_ioctl,
44543         xconcat-filename.
44544         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
44545         getdtablesize, pipe2, pipe2-safer.
44546         (Security): New section.
44547         (Networking functions): Add accept4.
44548         (Signal handling): Add sigpipe.
44549         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
44550         mbmemcasecoll.
44551         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
44552         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
44553         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
44554         pipe-filter-ii.
44555         (Misc): Add argp-version-etc, login_tty, parse-duration.
44557 2010-07-31  Bruno Haible  <bruno@clisp.org>
44559         Improve doc in MODULES.html.
44560         * modules/linkat (Description): Add the word "function".
44561         * modules/mkfifo (Description): Likewise.
44562         * modules/mknod (Description): Likewise.
44563         * modules/remove (Description): Likewise.
44564         * modules/renameat (Description): Likewise.
44565         * modules/stat (Description): Likewise.
44566         * modules/symlink (Description): Likewise.
44567         * modules/unlink (Description): Likewise.
44569 2010-07-31  Bruno Haible  <bruno@clisp.org>
44571         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
44572         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
44573         option --enable/disable-c++ instead of --enable/disable-cxx.
44574         * NEWS: Mention the change.
44576 2010-07-31  Bruno Haible  <bruno@clisp.org>
44578         readlink, areadlink: Relax test a bit.
44579         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
44580         alternative to ENOTDIR.
44581         * tests/test-areadlink.h (test_areadlink): Likewise.
44582         Reported by Rainer Tammer.
44584 2010-07-31  Bruno Haible  <bruno@clisp.org>
44586         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
44587         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
44588         character, perform the search using U_STRCHR.
44589         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
44590         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
44591         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
44592         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
44593         Suggested by Paolo Bonzini.
44595 2010-07-31  Bruno Haible  <bruno@clisp.org>
44597         unistr/u*-strstr: Fix dependencies.
44598         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
44599         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
44600         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
44602 2010-07-31  Bruno Haible  <bruno@clisp.org>
44604         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
44605         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
44606         the beginning of the loop.
44607         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
44608         cases in 'switch' statement.
44610         unistr/u8-strchr: Fix several bugs.
44611         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
44612         the string. When not found, return NULL, not a pointer near the end.
44614         More tests for unistr/u8-strchr.
44615         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
44616         that the function does not read past the first occurrence of the byte
44617         being searched.
44618         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
44619         * tests/unistr/test-u16-strchr.c (main): New function.
44620         * tests/unistr/test-u32-strchr.c (main): New function.
44622 2010-07-31  Bruno Haible  <bruno@clisp.org>
44624         posix-modules: Ignore backup files of documentation files.
44625         * posix-modules: grep only through files named *.texi.
44627 2010-07-31  Bruno Haible  <bruno@clisp.org>
44629         symlinkat: Fix documentation.
44630         * doc/posix-functions/readlinkat.texi: Fix module name.
44632 2010-07-31  Bruno Haible  <bruno@clisp.org>
44634         fchownat: Replace also when chown has the trailing slash bug.
44635         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
44636         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
44637         introduced on 2010-04-10.
44638         Reported by Rainer Tammer.
44640 2010-07-31  Bruno Haible  <bruno@clisp.org>
44642         linkat: Work around AIX 7.1 bug.
44643         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
44644         whether linkat handles trailing slash correctly. If not, replace linkat
44645         and define LINKAT_TRAILING_SLASH_BUG.
44646         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
44647         check whether (fd1,file1) points to a directory if file1 or file2 ends
44648         in a slash. Code taken from lib/link.c.
44649         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
44650         Reported by Rainer Tammer.
44652 2010-07-31  Bruno Haible  <bruno@clisp.org>
44654         Correctly determine whether pow is available in libc on AIX 7 with xlc.
44655         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
44656         This disables an xlc optimization that was causing wrong test results.
44657         Reported by Rainer Tammer.
44659 2010-07-31  Bruno Haible  <bruno@clisp.org>
44661         iconv: Work around AIX 6.1..7.1 bug.
44662         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
44663         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
44664         cross-compiling, guess no on all versions of AIX.
44665         Reported by Rainer Tammer.
44667 2010-07-31  Bruno Haible  <bruno@clisp.org>
44669         readlink: Relax test a bit.
44670         * tests/test-readlink.h (test_readlink): Allow different errno value
44671         when readlink is called with a file name that ends in / and refers to
44672         a file.
44673         Suggested by Eric Blake.
44674         Reported by Rainer Tammer.
44676 2010-07-31  Bruno Haible  <bruno@clisp.org>
44678         copysign: Does not require -lm on glibc systems.
44679         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
44680         gl_COMMON_DOUBLE_MATHFUNC.
44681         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
44683 2010-07-31  Bruno Haible  <bruno@clisp.org>
44685         duplocale: Work around AIX 7.1 bug.
44686         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
44687         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
44688         * lib/duplocale.c (rpl_duplocale): Update comment.
44689         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
44690         Reported by Rainer Tammer.
44692 2010-07-30  Bruno Haible  <bruno@clisp.org>
44694         dirfd: Avoid link error on AIX 7.1.
44695         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
44696         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
44697         exist, set REPLACE_DIRFD.
44698         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
44699         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
44700         * doc/posix-functions/dirfd.texi: Update.
44701         Reported by Rainer Tammer.
44703 2010-07-30  Eric Blake  <eblake@redhat.com>
44705         strtod: next round of AIX fixes
44706         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
44707         exponent.
44708         * tests/test-strtod.c (main): Enhance tests.
44709         * doc/posix-functions/strtod.texi (strtod): Document next bug.
44710         Reported by Rainer Tammer.
44712         futimens: fix configure check
44713         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
44714         Reported by Bruno Haible.
44716 2010-07-30  Bruno Haible  <bruno@clisp.org>
44718         getline: Update regarding AIX.
44719         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
44720         Reported by Rainer Tammer.
44722 2010-07-30  Bruno Haible  <bruno@clisp.org>
44724         wcwidth: Drop replacement on AIX 7.
44725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
44726         AIX 7.
44727         Reported by Rainer Tammer.
44729 2010-07-30  Bruno Haible  <bruno@clisp.org>
44731         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
44732         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
44733         a 'char *'.
44734         Reported by Rainer Tammer.
44736 2010-07-30  Bruno Haible  <bruno@clisp.org>
44738         unlink: Update regarding AIX.
44739         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
44740         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
44741         Reported by Rainer Tammer.
44743 2010-07-30  Bruno Haible  <bruno@clisp.org>
44745         symlink: Update regarding AIX.
44746         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
44747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
44748         Reported by Rainer Tammer.
44750 2010-07-30  Bruno Haible  <bruno@clisp.org>
44752         strndup: Update regarding AIX.
44753         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
44754         AIX 7.
44755         Reported by Rainer Tammer.
44757 2010-07-30  Bruno Haible  <bruno@clisp.org>
44759         stat: Update regarding AIX.
44760         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
44761         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
44762         Reported by Rainer Tammer.
44764 2010-07-30  Bruno Haible  <bruno@clisp.org>
44766         truncl: Fix autoconf test.
44767         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
44768         whether truncl works.
44769         Reported by Rainer Tammer.
44771 2010-07-30  Bruno Haible  <bruno@clisp.org>
44773         round: Update regarding AIX.
44774         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
44775         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
44776         Reported by Rainer Tammer.
44778 2010-07-30  Bruno Haible  <bruno@clisp.org>
44780         rename: Update regarding AIX.
44781         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
44782         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
44783         Reported by Rainer Tammer.
44785 2010-07-30  Bruno Haible  <bruno@clisp.org>
44787         printf.m4: Update regarding AIX.
44788         * m4/printf.m4: Update comments regarding AIX.
44789         Reported by Rainer Tammer.
44791 2010-07-30  Bruno Haible  <bruno@clisp.org>
44793         iconv: Update regarding AIX.
44794         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
44795         AIX 7.
44796         Reported by Rainer Tammer.
44798 2010-07-30  Bruno Haible  <bruno@clisp.org>
44800         getopt: Update regarding AIX.
44801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
44802         no on AIX.
44803         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
44804         Reported by Rainer Tammer.
44806 2010-07-30  Bruno Haible  <bruno@clisp.org>
44808         ldexpl; Update regarding AIX.
44809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
44810         on AIX 7.
44811         Reported by Rainer Tammer.
44813 2010-07-30  Bruno Haible  <bruno@clisp.org>
44815         frexpl: Update regarding AIX.
44816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
44817         on AIX 7.
44818         Reported by Rainer Tammer.
44820 2010-07-30  Bruno Haible  <bruno@clisp.org>
44822         open, fopen: Update regarding AIX.
44823         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
44824         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
44825         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
44826         * doc/posix-functions/fopen.texi: Likewise.
44827         Reported by Rainer Tammer.
44829 2010-07-30  Bruno Haible  <bruno@clisp.org>
44831         chown: Update doc regarding AIX.
44832         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
44833         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
44834         Reported by Rainer Tammer.
44836 2010-07-30  Eric Blake  <eblake@redhat.com>
44838         strtod: fix bug in replacement function on AIX
44839         * lib/strtod.c (strtod): Special case broken "0x" parse in
44840         underlying strtod.
44841         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
44842         * doc/posix-functions/strtod.texi (strtod): Likewise.
44843         Reported by Rainer Tammer.
44845 2010-07-30  Bruno Haible  <bruno@clisp.org>
44847         mbrlen: Fix cross-compilation guess for AIX.
44848         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
44849         guess. Leftover from 2008-12-22.
44851 2010-07-30  Bruno Haible  <bruno@clisp.org>
44853         mbrtowc: Fix cross-compilation guess for AIX.
44854         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
44855         guess. Leftover from 2008-12-21.
44857 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
44859         init.sh: work around trap limitation of some shells
44860         * tests/init.sh (setup_): Move exit trap outside of shell function.
44862 2010-07-29  Eric Blake  <eblake@redhat.com>
44864         strtod: aid debugging
44865         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
44866         understanding why strtod is rejected.
44868 2010-07-28  Bruno Haible  <bruno@clisp.org>
44870         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
44871         * lib/unistr/u8-chr.c: Include <string.h>.
44872         * tests/unistr/test-u8-chr.c: Likewise.
44873         * tests/unistr/test-u16-chr.c: Likewise.
44874         * tests/unistr/test-u32-chr.c: Likewise.
44875         * tests/unistr/test-u8-strchr.c: Likewise.
44876         * tests/unistr/test-u16-strchr.c: Likewise.
44877         * tests/unistr/test-u32-strchr.c: Likewise.
44878         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
44879         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
44880         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
44881         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
44883 2010-07-28  Bruno Haible  <bruno@clisp.org>
44885         Use spaces for indentation, not tabs.
44886         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
44888 2010-07-27  Bruno Haible  <bruno@clisp.org>
44890         mbspcasecmp: Fix function specification.
44891         * lib/string.in.h (mbspcasecmp): Fix specification comment.
44892         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
44893         Reported by Eric Blake <eblake@redhat.com>.
44895 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
44897         timespec: use cast and not conditional, as truncation isn't possible
44898         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
44899         instead of a conditional.  Comment about the situation in more detail.
44900         This undoes most of the 2009-10-29 patch.
44902 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
44904         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
44905         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
44906         * lib/unistr/u8-strchr.c: Likewise.
44907         * modules/unistr/u8-chr: Depend on memchr.
44909         unistr/u*-strchr: add tests
44910         * modules/unistr/u8-strchr-tests: New file.
44911         * modules/unistr/u16-strchr-tests: New file.
44912         * modules/unistr/u32-strchr-tests: New file.
44913         * tests/unistr/test-strchr.h: New file.
44914         * tests/unistr/test-u8-strchr.c: New file.
44915         * tests/unistr/test-u16-strchr.c: New file.
44916         * tests/unistr/test-u32-strchr.c: New file.
44918         unistr/u*-chr: test multibyte sequences more
44919         * tests/unistr/test-chr.h: Do complete testing of the characters in the
44920         test vector.
44921         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
44922         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
44923         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
44925         unistr/u*-chr: test multibyte sequences
44926         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
44928         unistr/u*-chr: prepare for multibyte tests
44929         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
44930         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
44931         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
44932         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
44933         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
44934         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
44936 2010-07-18  Bruno Haible  <bruno@clisp.org>
44938         unistr/u8-strchr: Optimize non-ASCII argument case.
44939         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
44940         because the first byte often matches anyway.
44941         Reported by Pádraig Brady <P@draigbrady.com>.
44943 2010-07-15  Karl Berry  <karl@gnu.org>
44945         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
44947 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
44949         getcwd: on Solaris, work better if ancestors are inaccessible
44950         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
44951         buffer and size, try again with a large buffer.  This works better
44952         on Solaris, since its getcwd succeeds even if the path to the root
44953         is inaccessible, and this is helpful in common cases such as .zfs
44954         hidden directories.  Problem reported by J Chapman Flack in
44955         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
44956         Use system getcwd if it's declared, not merely if it's partly
44957         working; use the partly-working test only to avoid needless effort
44958         if the system getcwd fails.
44959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
44960         comment that was already obsolete and is now even more obsolete.
44961         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
44962         now might call strdup.
44964 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
44966         pthread: Add enough so that coreutils/src/sort.c compiles.
44967         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
44968         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
44969         gnulib. Include <sched.h> and <time.h>, as per POSIX.
44970         Include <sys/types.h>, in case it defines pthread_t.
44971         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
44972         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
44973         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
44974         (pthread_rwlockattr_t, pthread_spinlock_t):
44975         New typedefs, if HAVE_PTHREAD_T is not defined.
44976         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
44977         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
44978         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
44979         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
44980         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
44981         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
44982         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
44983         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
44984         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
44985         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
44986         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
44987         New macros.
44988         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
44989         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
44990         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
44991         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
44992         (pthread_spin_unlock): New dummy functions.
44993         (pthread_create): Return EAGAIN; don't set errno.
44994         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
44995         require AC_C_INLINE.
44996         * modules/pthread (Depends-on): Add sched, time.
44997         (pthread.h): Use AM_V_GEN.
44999 2010-07-13  Bruno Haible  <bruno@clisp.org>
45001         striconveh: Don't malloc memory if the result buffer is sufficient.
45002         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
45003         buffer if its size is sufficient.
45004         Reported by Ludovic Courtès <ludo@gnu.org>.
45006 2010-07-13  Bruno Haible  <bruno@clisp.org>
45008         strtod: Add safety check.
45009         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
45011 2010-07-12  Bruno Haible  <bruno@clisp.org>
45013         Unify tests that set gl_cv_func_ldexpl_no_libm.
45014         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
45015         gl_FUNC_LDEXPL.
45016         (gl_FUNC_LDEXPL): Invoke it.
45017         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45019 2010-07-12  Bruno Haible  <bruno@clisp.org>
45021         Unify tests that set gl_cv_func_ldexp_no_libm.
45022         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
45023         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
45024         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
45025         (configure.ac): Simply invoke gl_FUNC_LDEXP.
45026         * modules/strtod (Files): Add m4/ldexp.m4.
45028 2010-07-12  Bruno Haible  <bruno@clisp.org>
45030         Unify tests that set gl_cv_func_frexpl_no_libm.
45031         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
45032         gl_FUNC_FREXPL_NO_LIBM.
45033         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
45034         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45036 2010-07-12  Bruno Haible  <bruno@clisp.org>
45038         Unify tests that set gl_cv_func_frexp_no_libm.
45039         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
45040         gl_FUNC_FREXP_NO_LIBM.
45041         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
45042         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
45044 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
45046         memcoll: clarify sizes versus lengths, document better, and tweak perf
45047         * lib/memcoll.c (strcoll_loop, memcoll0):
45048         Improve quality of descriptive comments.  Name variables
45049         consistently as to whether they are lengths (which do not include
45050         terminating null) versus sizes (which do).
45051         * lib/xmemcoll.c (xmemcoll0): Likewise.
45052         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
45053         returned when s1size == 0; this is easier to compile and saves
45054         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
45056 2010-07-12  Bruno Haible  <bruno@clisp.org>
45058         Tests for module '_Exit'.
45059         * modules/_Exit-tests: New file.
45060         * tests/test-_Exit.sh: New file.
45061         * tests/test-_Exit.c: New file.
45063         New module '_Exit'.
45064         * lib/stdlib.in.h (__attribute__): New macro.
45065         (_Exit): New declaration.
45066         * lib/_Exit.c: New file.
45067         * m4/_Exit.m4: New file.
45068         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
45069         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
45070         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
45071         * modules/_Exit: New file.
45072         * tests/test-stdlib-c++.cc (_Exit): Check signature.
45073         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
45075 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
45077         strtod: make it more-accurate typically, and don't require libm
45078         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
45079         Include limits.h.  Don't include string.h.
45080         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
45081         (locale_isspace): New function, so that no casts are needed to
45082         check whether *s is a space.
45083         (ldexp): Provide an unused dummy if not available.
45084         (scale_radix_exp, parse_number, underlying_strtod): New functions.
45085         (strtod): Use them.  This implementation prefers to use the
45086         underlying strtod if available, falling back on our own code
45087         only to fix known bugs.  This is more likely to produce an
45088         accurate result.  Also, it avoids the use of libm functions.
45089         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
45090         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
45091         was absent, but it caused a test failure with coreutils.
45092         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
45093         with libm.
45094         * modules/strtod (Makefile.am, Link): libm is no longer needed.
45095         * modules/strtod-tests (Makefile.am): Likewise.
45097 2010-07-11  Pádraig Brady  <P@draigBrady.com>
45098             Bruno Haible  <bruno@clisp.org>
45100         unistr/u8-strchr: Optimize ASCII argument case.
45101         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
45103 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45105         (x)memcoll: minor tweaks
45106         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
45107         is after the type that it qualifies.
45108         (memcoll0): Likewise.
45109         * lib/memcoll.h (memcoll0): Likewise.
45110         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
45111         * lib/xmemcoll.h (xmemcoll0): Likewise.
45112         * lib/memcoll.c (memcoll0): Correct the comment.  This function
45113         differs from memcoll in that the NUL byte is part of the argument.
45114         Omit the abort-checks, as performance is a real issue here.  Plus,
45115         the checks were wrong anyway (an off-by-one error).  Omit local
45116         variable 'diff', as it's a bit clearer that way.
45117         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
45118         no longer needed.
45120 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
45122         (x)memcoll: speedup when input is known to be NUL delimited
45123         * lib/memcoll.c: Include stdlib.
45124         (memcoll0): New function.
45125         (strcoll_loop): New function, refactored for use in both memcoll
45126         and memcoll0.
45127         * lib/memcoll.h (memcoll0): Add prototype.
45128         * lib/xmemcoll.c (xmemcoll0): New function.
45129         (collate_error): New function, refactored for use in both xmemcoll
45130         and xmemcoll0.
45131         * lib/xmemcoll.h (xmemcoll0): Add prototype.
45132         * m4/memcoll.m4: add inline invocation.
45134 2010-07-06  Pádraig Brady  <P@draigBrady.com>
45136         * build-aux/bootstrap: Remove any local translations
45137         from the translation project synchronization directory,
45138         so that local only translations are not distributed.
45140 2010-07-04  Bruno Haible  <bruno@clisp.org>
45142         fsusage: Clarify which code applies to which platforms.
45143         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
45144         platform.
45145         * lib/fsusage.c (get_fs_usage): Likewise.
45147 2010-07-04  Bruno Haible  <bruno@clisp.org>
45149         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
45150         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
45151         Reported by Martin Lambers <marlam@marlam.de>.
45153 2010-07-04  Jim Meyering  <meyering@redhat.com>
45155         hash: once again explicitly disallow insertion of NULL
45156         * lib/hash.c (hash_insert0): Reinstate just-removed test:
45157         inserting a NULL pointer cannot work with these functions.
45158         Add a comment with details.
45159         This reverts part of the 2010-07-01 commit, 5bef1a35
45160         "hash: extend module to deal with non-pointer keys".
45162 2010-07-01  Bruno Haible  <bruno@clisp.org>
45164         stdbool: Update doc.
45165         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
45166         Info from Christian Weisgerber <naddy@mips.inka.de>.
45168 2010-07-01  Jim Meyering  <meyering@redhat.com>
45170         hash: extend module to deal with non-pointer keys
45171         * lib/hash.c (hash_insert0): New interface, much like hash_insert
45172         but that allows insertion of non-pointer entries.
45173         Do not disallow an ENTRY value of NULL.
45174         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
45175         * lib/hash.h (hash_insert0): Declare.
45177 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45179         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
45180         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
45181         not present (i.e. with autoconf 2.59 and when using gettextize, not
45182         gnulib), require AC_GNU_SOURCE instead.
45184 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
45186         idpriv-drop: Fix tests.
45187         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
45188         not to the test-idpriv-droptemp program.
45190 2010-06-29  Bruno Haible  <bruno@clisp.org>
45192         string: Fix syntax error with g++ 2.96.
45193         * lib/string.in.h (__pure__): Remove definition.
45194         (_GL_ATTRIBUTE_PURE): New macro.
45195         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
45196         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
45197         Reported by Christian Weisgerber <naddy@mips.inka.de>.
45199 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
45201         unitypes: Fix bug introduced on 2010-05-18.
45202         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
45204 2010-06-22  Eric Blake  <eblake@redhat.com>
45206         memmem: slight optimization
45207         * lib/str-two-way.h (critical_factorization): Update comments.
45208         Reduce work during factorization phase.
45209         Reported by Carlos Bueno <carlos@bueno.org>.
45211 2010-06-21  Bruno Haible  <bruno@clisp.org>
45213         Fix HAVE_CALLOC_POSIX misnomer.
45214         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
45215         !HAVE_CALLOC_POSIX.
45216         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
45217         HAVE_CALLOC_POSIX.
45218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
45219         instead of HAVE_CALLOC_POSIX.
45220         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
45221         HAVE_CALLOC_POSIX.
45223         Use modern idiom for calloc() replacement.
45224         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
45225         AC_FUNC_CALLOC.
45226         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
45227         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
45228         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45229         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
45230         (gl_REPLACE_CALLOC): New macro.
45232 2010-06-21  Bruno Haible  <bruno@clisp.org>
45234         Fix HAVE_REALLOC_POSIX misnomer.
45235         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
45236         !HAVE_REALLOC_POSIX.
45237         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
45238         HAVE_REALLOC_POSIX.
45239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
45240         instead of HAVE_REALLOC_POSIX.
45241         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
45242         HAVE_REALLOC_POSIX.
45244         Use modern idiom for realloc() replacement.
45245         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
45246         AC_FUNC_REALLOC.
45247         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
45248         Autoconf's AC_FUNC_REALLOC.
45249         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45250         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
45251         (gl_REPLACE_REALLOC): New macro.
45252         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
45254 2010-06-21  Bruno Haible  <bruno@clisp.org>
45256         Fix HAVE_MALLOC_POSIX misnomer.
45257         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
45258         !HAVE_MALLOC_POSIX.
45259         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
45260         HAVE_MALLOC_POSIX.
45261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
45262         instead of HAVE_MALLOC_POSIX.
45263         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
45264         HAVE_MALLOC_POSIX.
45266         Use modern idiom for malloc() replacement.
45267         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
45268         AC_FUNC_MALLOC.
45269         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
45270         Autoconf's AC_FUNC_MALLOC.
45271         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45272         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
45273         (gl_REPLACE_MALLOC): New macro.
45274         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
45276 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
45278         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
45279         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
45280         This macro takes 3 arguments, not 4.
45282 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
45284         ipv6: fix detection under mingw
45285         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
45286         in6_addr.
45288 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
45290         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
45291         that strtod() works when cross-compiling to a glibc version known
45292         to work.
45294 2010-06-15  Bruno Haible  <bruno@clisp.org>
45296         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
45298 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
45300         select: Correct timeout.
45301         * lib/select.c (rpl_select): Compute wait_timeout correctly.
45303 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45305         git-version-gen: init shell var to avoid env var influence
45306         * build-aux/git-version-gen (v): Init shell var to empty.
45308 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
45310         priv-set: Don't assume that priv.h exists merely because getppriv does.
45311         See Jan Andersen's bug report about AIX 5L in
45312         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
45313         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
45314         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
45315         * lib/priv-set.h: Likewise.
45316         * tests/test-priv-set.c: Likewise.
45318 2010-06-13  Bruno Haible  <bruno@clisp.org>
45320         relocatable: Make it easier to test whether to install wrappers.
45321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
45322         RELOCATABLE_VIA_WRAPPER.
45324 2010-06-13  Bruno Haible  <bruno@clisp.org>
45326         gnulib-tool: Display specified modules and dependencies differently.
45327         * gnulib-tool (func_show_module_list): New function.
45328         (func_import, func_create_testdir): Invoke it.
45329         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45331 2010-06-13  Bruno Haible  <bruno@clisp.org>
45333         gnulib-tool: Align code of func_import and func_create_testdir.
45334         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
45335         specified_modules.
45337 2010-06-12  Jim Meyering  <meyering@redhat.com>
45339         test-inttostr: avoid spurious failure on Solaris 9
45340         * tests/test-inttostr.c (main): Skip the test when snprintf fails
45341         to accept "%ju".  Reported by Bruno Haible.
45343 2010-06-11  Jim Meyering  <meyering@redhat.com>
45345         test-sys_socket: mark variables as used more readably
45346         * tests/test-sys_socket.c (main): Mark otherwise unused variables
45347         as "used" explicitly via (void) statement casts.  This is more
45348         readable than using them in an artificial return expression.
45349         Suggestion from Bruno Haible.
45351 2010-06-11  Bruno Haible  <bruno@clisp.org>
45353         Avoid some more warnings from "gcc -Wwrite-strings".
45354         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
45355         to 'const char *'.
45356         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
45357         * tests/test-c-strcasestr.c (main): Likewise.
45358         * tests/test-mbscasestr1.c (main): Likewise.
45359         * tests/test-mbscasestr2.c (main): Likewise.
45360         * tests/test-memmem.c (main): Likewise.
45361         * tests/test-strstr.c (main): Likewise.
45362         * tests/test-strcasestr.c (main): Likewise.
45364 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45366         init.sh: change framework_failure_ to fail with status 99, not 1
45367         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
45368         automake's parallel-tests rule that this is an unexpected failure,
45369         even if the test is listed in XFAIL_TESTS.
45371 2010-06-11  Jim Meyering  <meyering@redhat.com>
45373         test-inttostr: avoid warnings about 4-6KB literal strings
45374         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
45375         Include "macros.h", for its definition of ASSERT.
45376         (CK): s/assert/ASSERT/
45377         * modules/inttostr-tests (Files): Add macros.h.
45379         init.sh: don't use $ME_ or skip_ before they are defined
45380         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
45381         their first uses.  Also hoist their companions: warn_, fail_,
45382         framework_failure_, $stderr_fileno.  Prompted by a patch from
45383         Stefano Lattarini.
45385         test-sys_socket: avoid set-but-not-used warnings from gcc
45386         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
45387         avoid warning about set-but-not-used variables.
45389         test-xvasprintf: avoid 'const' discard warnings
45390         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
45391         "const" when assigning from literal strings.
45392         (test_xasprintf): Add "void" in function argument list to placate
45393         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
45395         tests: avoid compilation warnings in argmatch and exclude tests...
45396         in packages that define ARGMATCH_DIE_DECL, like coreutils.
45397         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
45398         Since it always exits, declare with the "noreturn" attribute.
45399         * tests/test-argmatch.c: Likewise.
45401         tests: avoid 'const' discard warnings in mbsstr tests
45402         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
45403         * tests/test-mbsstr2.c (main): Likewise.
45405         test-verify: avoid warning from gcc's -Wmissing-declarations
45406         * tests/test-verify.c (function): Declare to be static.
45408         test-inttostr.c: include <string.h> for use of strcmp
45409         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
45411         test-linkat: avoid failed assertion on "other" architectures
45412         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
45413         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
45414         sparc: https://bugs.launchpad.net/bugs/591968
45416 2010-06-11  Jim Meyering  <meyering@redhat.com>
45418         printf.m4: avoid autoconf's "Expanded Before Required" warning
45419         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
45420         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
45421         autoconf warning.
45423 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
45425         Replacement header templates are now named with ".in", not "_".
45426         * doc/gnulib-intro.texi: Correct.
45428 2010-06-10  Jim Meyering  <meyering@redhat.com>
45430         inttostr-tests: depend on snprintf, not snprintf-posix
45431         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
45432         snprintf-posix, to avoid this aclocal failure:
45433           missing file gnulib-tests/vasnprintf.c
45434           configure.ac:45: error: expected source file, required through \
45435           AC_LIBSOURCES, not found
45437 2010-06-10  Jim Meyering  <meyering@redhat.com>
45439         inttostr: add a new function, inttostr, and tests
45440         The namesake function was not available.  The existence of the
45441         template file, inttostr.c makes its addition nontrivial.
45442         * lib/anytostr.c: Rename from inttostr.c.
45443         (anytostr): Rename from inttostr.
45444         * lib/inttostr.c: New file.
45445         * modules/inttostr (Files): Add anytostr.c.
45446         (Makefile.am): Set lib_SOURCES instead of ...
45447         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
45448         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
45449         * lib/offtostr.c: Likewise.
45450         * lib/uinttostr.c: Likewise.
45451         * lib/umaxtostr.c: Likewise.
45452         * modules/inttostr-tests: New file.
45453         * tests/test-inttostr.c: New file.  Test these functions.
45455 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
45456             Bruno Haible  <bruno@clisp.org>
45458         Add "Extending Gnulib" chapter to manual.
45459         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
45460         chapter.
45461         (Extending Gnulib): New chapter.
45462         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
45463         chapter.
45465 2010-06-09  Bruno Haible  <bruno@clisp.org>
45467         Avoid relocwrapper link errors due to gnulib replacement functions.
45468         * lib/areadlink.c: Use the system's malloc, realloc functions.
45469         (areadlink): Set errno to ENOMEM explicitly.
45470         * modules/areadlink (Depends-on): Remove malloc-posix.
45471         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45473 2010-06-09  Bruno Haible  <bruno@clisp.org>
45475         Avoid relocwrapper link errors due to gnulib replacement functions.
45476         * lib/canonicalize-lgpl.c: Use the system's malloc function.
45477         * lib/malloca.c: Likewise.
45478         * lib/relocatable.c: Likewise.
45479         * lib/progreloc.c: Use the system's malloc, sprintf functions.
45480         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
45481         * lib/setenv.c: Use the system's malloc, realloc functions.
45482         * lib/strerror.c: Use the system's sprintf function.
45483         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45485 2010-06-04  Bruno Haible  <bruno@clisp.org>
45487         Prefer documented low-level autoconf macro names.
45488         * m4/lib-link.m4: Use m4_translit instead of translit.
45489         * m4/environ.m4: Likewise.
45490         * m4/mathfunc.m4: Likewise.
45491         * m4/onceonly.m4: Likewise.
45492         * m4/stdint.m4: Likewise.
45493         Suggested by Eric Blake.
45495 2010-06-04  Martin Lambers  <marlam@marlam.de>
45496             Bruno Haible  <bruno@clisp.org>
45498         havelib: Allow library names with '+' characters.
45499         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45500         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
45502 2010-06-09  Bruno Haible  <bruno@clisp.org>
45504         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
45505         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
45506         realloc failed.
45508 2010-06-08  Peter Simons  <simons@cryp.to>
45510         maint.mk: make the news-check rule more configurable
45511         * top/maint.mk (news-check-lines-spec): New variable.
45512         (news-check): Use "sed -n 1,10p" in place of "head".
45514 2010-06-07  Jim Meyering  <meyering@redhat.com>
45516         do-release-commit-and-tag: fix typo in --help
45517         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
45519         regex: avoid new dead-code warning with gcc-4.6.0
45520         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
45521         if-block containing a while-loop.  It's been unused for at least
45522         5 years.
45524 2010-06-05  Bruno Haible  <bruno@clisp.org>
45526         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
45527         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
45529 2010-06-04  Bruno Haible  <bruno@clisp.org>
45531         Update to GNU gettext 0.18.1.
45532         * modules/gettext (configure.ac): Require gettext infrastructure from
45533         version 0.18.1.
45535 2010-06-03  Bruno Haible  <bruno@clisp.org>
45537         Don't use AC_LIBOBJ with file names in subdirectories.
45538         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
45539         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
45540         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
45541         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
45542         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
45543         gl_LIBUNISTRING_LIBSOURCE.
45544         (Makefile.am): Augment lib_SOURCES here, conditionally.
45545         * NEWS: Drop requirement for Automake option 'subdir-objects'.
45547 2010-06-03  Bruno Haible  <bruno@clisp.org>
45549         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
45550         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
45551         expansion does not end with a newline.
45552         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
45553         unnecessary newline.
45555 2010-06-03  Bruno Haible  <bruno@clisp.org>
45557         Reduce dependencies.
45558         * tests/test-quotearg.h: New file, extracted from
45559         tests/test-quotearg.c.
45560         * tests/test-quotearg-simple.c: New file, extracted from
45561         tests/test-quotearg.c.
45562         * tests/test-quotearg.c: Don't include <ctype.h>.
45563         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
45564         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
45565         use_quote_double_quotes, use_quotearg_colon): Moved to
45566         tests/test-quotearg.h.
45567         (results_g, flag_results, custom_quotes, custom_results): Moved
45568         to tests/test-quotearg-simple.c.
45569         (main): Moved the part that does not depend on gettext to
45570         tests/test-quotearg-simple.c. Return 77 if the test cannot be
45571         performed.
45572         * modules/quotearg-simple: New file.
45573         * modules/quotearg-simple-tests: New file.
45574         * modules/quotearg (Depends-on): Add quotearg-simple.
45575         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
45576         (Files): Add tests/test-quotearg.h.
45577         Reported by Paolo Bonzini.
45579 2010-06-03  Bruno Haible  <bruno@clisp.org>
45581         Reduce dependencies.
45582         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
45584 2010-06-03  Bruno Haible  <bruno@clisp.org>
45586         time: Undefine more broken macros.
45587         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
45588         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
45589         Reported by Eric Blake.
45591 2010-06-03  Bruno Haible  <bruno@clisp.org>
45593         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
45594         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
45595         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
45596         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
45597         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
45598         Reported by Ludovic Courtès <ludo@gnu.org>.
45600 2010-06-02  Eric Blake  <eblake@redhat.com>
45602         time: work with mingw + pthreads-win32 library
45603         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
45604         if timespec is defined only in pthread.h.
45605         * modules/time (Makefile.am): Substitute it.
45606         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
45607         <pthread.h>, when needed.
45608         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
45609         from the library.
45611 2010-05-31  Bruno Haible  <bruno@clisp.org>
45613         Avoid expanding two macros in the wrong order.
45614         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
45615         gl_LIBUNISTRING if it is defined.
45616         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
45617         autoconf >= 2.64.
45618         Reported by Ludovic Courtès <ludo@gnu.org>.
45620 2010-05-27  Jim Meyering  <meyering@redhat.com>
45622         maint.mk: also prohibit "#undef" of always-defined symbols
45623         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
45624         Allow more than one space before the symbol name.
45625         (sc_prohibit_always-defined_macros): Use grep's -E, now that
45626         the regexp uses alternation.
45628 2010-05-26  Eric Blake  <eblake@redhat.com>
45630         maint.mk: avoid echo -e
45631         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
45632         Convert all uses of echo -* to printf.
45633         Reported by Matthias Bolte.
45635 2010-05-25  Bruno Haible  <bruno@clisp.org>
45637         Update to GNU gettext 0.18, part 2.
45638         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
45639         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
45641 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45643         Add missing include in test-pwrite.c.
45644         * tests/test-pwrite.c: Include string.h, for strcmp.
45646 2010-05-24  Bruno Haible  <bruno@clisp.org>
45648         * NEWS: Mention requirement for Automake option 'subdir-objects'.
45650 2010-05-24  Bruno Haible  <bruno@clisp.org>
45652         Don't use conversion with transliteration in u{8,16,32}_strcoll.
45653         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
45654         iconveh_error argument.
45655         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
45656         U_STRCONV_TO_LOCALE.
45657         * lib/unistr/u16-strcoll.c: Likewise.
45658         * lib/unistr/u32-strcoll.c: Likewise.
45659         * modules/unistr/u8-strcoll (Depends-on): Add
45660         uniconv/u8-strconv-to-enc, localcharset. Remove
45661         uniconv/u8-strconv-to-locale.
45662         (configure.ac): Bump version number.
45663         * modules/unistr/u16-strcoll (Depends-on): Add
45664         uniconv/u16-strconv-to-enc, localcharset. Remove
45665         uniconv/u16-strconv-to-locale.
45666         (configure.ac): Bump version number.
45667         * modules/unistr/u32-strcoll (Depends-on): Add
45668         uniconv/u32-strconv-to-enc, localcharset. Remove
45669         uniconv/u32-strconv-to-locale.
45670         (configure.ac): Bump version number.
45672 2010-05-24  Bruno Haible  <bruno@clisp.org>
45674         Avoid a test failure on NetBSD 5.0.
45675         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
45676         an iconv() bug.
45678 2010-05-24  Bruno Haible  <bruno@clisp.org>
45680         Adjust #include directive style.
45681         * modules/regex (Includes): Recommend to write <regex.h>.
45683 2010-05-24  Bruno Haible  <bruno@clisp.org>
45685         regex: Don't require alloca.
45686         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
45687         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
45688         only inside if (0).
45690 2010-05-23  Jim Meyering  <meyering@redhat.com>
45692         test-renameat.c: include <sys/stat.h>
45693         * tests/test-renameat.c: Include <sys/stat.h>; required for
45694         definition of S_IS* macros.
45696 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
45698         Update maintainer documentation for 'relocatable-prog' module.
45699         * doc/relocatable-maint.texi: Update.
45700         Comments by Bruno Haible.
45702 2010-05-23  Bruno Haible  <bruno@clisp.org>
45704         git-merge-changelog: Enable --split-merged-entry by default.
45705         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
45706         (usage): Don't mention this option any more.
45707         Reported by Ralf Wildenhues.
45709 2010-05-23  Jim Meyering  <meyering@redhat.com>
45711         test-pwrite: do not leave behind a test file named "out"
45712         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
45713         The trivial-looking use of init.sh is really necessary.
45714         It ensures that the temporary file, "out", is created in
45715         a temporary directory, and removed upon termination.
45716         * tests/test-pwrite.sh: Re-add file.
45717         * modules/pwrite-tests: Reference it.
45719 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45721         Fix output redirection buglet in init.sh.
45722         * tests/init.sh: Fix redirection of stderr.
45724 2010-05-20  Simon Josefsson  <simon@josefsson.org>
45726         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
45728 2010-05-17  Simon Josefsson  <simon@josefsson.org>
45730         * modules/valgrind-tests: New file.
45731         * m4/valgrind-tests.m4: New file.
45732         * doc/valgrind-tests.texi: New file.
45733         * doc/gnulib.texi (Running self-tests under valgrind): New
45734         section.
45736 2010-05-19  Bruno Haible  <bruno@clisp.org>
45738         Clean up dead code in recent commit.
45739         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
45740         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
45741         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
45742         Suggested by Paolo Bonzini.
45744 2010-05-19  Bruno Haible  <bruno@clisp.org>
45746         Avoid valgrind error reports from libunistring.
45747         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
45748         * modules/libunistring (Files): Add it.
45749         * modules/libunistring-optional (Files): Likewise.
45751 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
45752             Bruno Haible  <bruno@clisp.org>
45754         New module 'libunistring-optional'.
45755         * modules/libunistring-optional: New file.
45756         * m4/libunistring-base.m4: New file.
45757         * m4/libunistring-optional.m4: New file.
45758         * lib/unicase.in.h: Renamed from lib/unicase.h.
45759         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
45760         * lib/unictype.in.h: Renamed from lib/unictype.h.
45761         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
45762         * lib/uniname.in.h: Renamed from lib/uniname.h.
45763         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
45764         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
45765         * lib/unistr.in.h: Renamed from lib/unistr.h.
45766         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
45767         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
45768         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
45769         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
45770         gl_LIBUNISTRING. If the library was found, determine the installed
45771         version and set LIBUNISTRING_VERSION.
45772         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
45773         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
45774         handle a configuration option --with-included-libunistring.
45775         * modules/libunistring (Files): Add m4/absolute-header.m4.
45776         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
45777         Add m4/libunistring-base.m4.
45778         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45779         (Makefile.am): Build unicase.h from unicase.in.h.
45780         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
45781         Add m4/libunistring-base.m4.
45782         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45783         (Makefile.am): Build uniconv.h from uniconv.in.h.
45784         * modules/unictype/base (Files): Use unictype.in.h instead of
45785         unictype.h. Add m4/libunistring-base.m4.
45786         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45787         (Makefile.am): Build unictype.h from unictype.in.h.
45788         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
45789         Add m4/libunistring-base.m4.
45790         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45791         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
45792         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
45793         Add m4/libunistring-base.m4.
45794         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45795         (Makefile.am): Build uniname.h from uniname.in.h.
45796         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
45797         Add m4/libunistring-base.m4.
45798         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45799         (Makefile.am): Build uninorm.h from uninorm.in.h.
45800         * modules/unistdio/base (Files): Use unistdio.in.h instead of
45801         unistdio.h. Add m4/libunistring-base.m4.
45802         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45803         (Makefile.am): Build unistdio.h from unistdio.in.h.
45804         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
45805         Add m4/libunistring-base.m4.
45806         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45807         (Makefile.am): Build unistr.h from unistr.in.h.
45808         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
45809         Add m4/libunistring-base.m4.
45810         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45811         (Makefile.am): Build unitypes.h from unitypes.in.h.
45812         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
45813         Add m4/libunistring-base.m4.
45814         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45815         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
45816         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
45817         uniwidth.h. Add m4/libunistring-base.m4.
45818         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45819         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
45820         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
45821         instead of augmenting lib_SOURCES.
45822         * modules/unicase/empty-suffix-context: Likewise.
45823         * modules/unicase/locale-language: Likewise.
45824         * modules/unicase/tolower: Likewise.
45825         * modules/unicase/totitle: Likewise.
45826         * modules/unicase/toupper: Likewise.
45827         * modules/unicase/u8-casecmp: Likewise.
45828         * modules/unicase/u8-casecoll: Likewise.
45829         * modules/unicase/u8-casefold: Likewise.
45830         * modules/unicase/u8-casexfrm: Likewise.
45831         * modules/unicase/u8-ct-casefold: Likewise.
45832         * modules/unicase/u8-ct-tolower: Likewise.
45833         * modules/unicase/u8-ct-totitle: Likewise.
45834         * modules/unicase/u8-ct-toupper: Likewise.
45835         * modules/unicase/u8-is-cased: Likewise.
45836         * modules/unicase/u8-is-casefolded: Likewise.
45837         * modules/unicase/u8-is-lowercase: Likewise.
45838         * modules/unicase/u8-is-titlecase: Likewise.
45839         * modules/unicase/u8-is-uppercase: Likewise.
45840         * modules/unicase/u8-prefix-context: Likewise.
45841         * modules/unicase/u8-suffix-context: Likewise.
45842         * modules/unicase/u8-tolower: Likewise.
45843         * modules/unicase/u8-totitle: Likewise.
45844         * modules/unicase/u8-toupper: Likewise.
45845         * modules/unicase/u16-casecmp: Likewise.
45846         * modules/unicase/u16-casecoll: Likewise.
45847         * modules/unicase/u16-casefold: Likewise.
45848         * modules/unicase/u16-casexfrm: Likewise.
45849         * modules/unicase/u16-ct-casefold: Likewise.
45850         * modules/unicase/u16-ct-tolower: Likewise.
45851         * modules/unicase/u16-ct-totitle: Likewise.
45852         * modules/unicase/u16-ct-toupper: Likewise.
45853         * modules/unicase/u16-is-cased: Likewise.
45854         * modules/unicase/u16-is-casefolded: Likewise.
45855         * modules/unicase/u16-is-lowercase: Likewise.
45856         * modules/unicase/u16-is-titlecase: Likewise.
45857         * modules/unicase/u16-is-uppercase: Likewise.
45858         * modules/unicase/u16-prefix-context: Likewise.
45859         * modules/unicase/u16-suffix-context: Likewise.
45860         * modules/unicase/u16-tolower: Likewise.
45861         * modules/unicase/u16-totitle: Likewise.
45862         * modules/unicase/u16-toupper: Likewise.
45863         * modules/unicase/u32-casecmp: Likewise.
45864         * modules/unicase/u32-casecoll: Likewise.
45865         * modules/unicase/u32-casefold: Likewise.
45866         * modules/unicase/u32-casexfrm: Likewise.
45867         * modules/unicase/u32-ct-casefold: Likewise.
45868         * modules/unicase/u32-ct-tolower: Likewise.
45869         * modules/unicase/u32-ct-totitle: Likewise.
45870         * modules/unicase/u32-ct-toupper: Likewise.
45871         * modules/unicase/u32-is-cased: Likewise.
45872         * modules/unicase/u32-is-casefolded: Likewise.
45873         * modules/unicase/u32-is-lowercase: Likewise.
45874         * modules/unicase/u32-is-titlecase: Likewise.
45875         * modules/unicase/u32-is-uppercase: Likewise.
45876         * modules/unicase/u32-prefix-context: Likewise.
45877         * modules/unicase/u32-suffix-context: Likewise.
45878         * modules/unicase/u32-tolower: Likewise.
45879         * modules/unicase/u32-totitle: Likewise.
45880         * modules/unicase/u32-toupper: Likewise.
45881         * modules/unicase/ulc-casecmp: Likewise.
45882         * modules/unicase/ulc-casecoll: Likewise.
45883         * modules/unicase/ulc-casexfrm: Likewise.
45884         * modules/uniconv/u8-conv-from-enc: Likewise.
45885         * modules/uniconv/u8-conv-to-enc: Likewise.
45886         * modules/uniconv/u8-strconv-from-enc: Likewise.
45887         * modules/uniconv/u8-strconv-from-locale: Likewise.
45888         * modules/uniconv/u8-strconv-to-enc: Likewise.
45889         * modules/uniconv/u8-strconv-to-locale: Likewise.
45890         * modules/uniconv/u16-conv-from-enc: Likewise.
45891         * modules/uniconv/u16-conv-to-enc: Likewise.
45892         * modules/uniconv/u16-strconv-from-enc: Likewise.
45893         * modules/uniconv/u16-strconv-from-locale: Likewise.
45894         * modules/uniconv/u16-strconv-to-enc: Likewise.
45895         * modules/uniconv/u16-strconv-to-locale: Likewise.
45896         * modules/uniconv/u32-conv-from-enc: Likewise.
45897         * modules/uniconv/u32-conv-to-enc: Likewise.
45898         * modules/uniconv/u32-strconv-from-enc: Likewise.
45899         * modules/uniconv/u32-strconv-from-locale: Likewise.
45900         * modules/uniconv/u32-strconv-to-enc: Likewise.
45901         * modules/uniconv/u32-strconv-to-locale: Likewise.
45902         * modules/unictype/bidicategory-byname: Likewise.
45903         * modules/unictype/bidicategory-name: Likewise.
45904         * modules/unictype/bidicategory-of: Likewise.
45905         * modules/unictype/bidicategory-test: Likewise.
45906         * modules/unictype/block-list: Likewise.
45907         * modules/unictype/block-test: Likewise.
45908         * modules/unictype/category-C: Likewise.
45909         * modules/unictype/category-Cc: Likewise.
45910         * modules/unictype/category-Cf: Likewise.
45911         * modules/unictype/category-Cn: Likewise.
45912         * modules/unictype/category-Co: Likewise.
45913         * modules/unictype/category-Cs: Likewise.
45914         * modules/unictype/category-L: Likewise.
45915         * modules/unictype/category-Ll: Likewise.
45916         * modules/unictype/category-Lm: Likewise.
45917         * modules/unictype/category-Lo: Likewise.
45918         * modules/unictype/category-Lt: Likewise.
45919         * modules/unictype/category-Lu: Likewise.
45920         * modules/unictype/category-M: Likewise.
45921         * modules/unictype/category-Mc: Likewise.
45922         * modules/unictype/category-Me: Likewise.
45923         * modules/unictype/category-Mn: Likewise.
45924         * modules/unictype/category-N: Likewise.
45925         * modules/unictype/category-Nd: Likewise.
45926         * modules/unictype/category-Nl: Likewise.
45927         * modules/unictype/category-No: Likewise.
45928         * modules/unictype/category-P: Likewise.
45929         * modules/unictype/category-Pc: Likewise.
45930         * modules/unictype/category-Pd: Likewise.
45931         * modules/unictype/category-Pe: Likewise.
45932         * modules/unictype/category-Pf: Likewise.
45933         * modules/unictype/category-Pi: Likewise.
45934         * modules/unictype/category-Po: Likewise.
45935         * modules/unictype/category-Ps: Likewise.
45936         * modules/unictype/category-S: Likewise.
45937         * modules/unictype/category-Sc: Likewise.
45938         * modules/unictype/category-Sk: Likewise.
45939         * modules/unictype/category-Sm: Likewise.
45940         * modules/unictype/category-So: Likewise.
45941         * modules/unictype/category-Z: Likewise.
45942         * modules/unictype/category-Zl: Likewise.
45943         * modules/unictype/category-Zp: Likewise.
45944         * modules/unictype/category-Zs: Likewise.
45945         * modules/unictype/category-and: Likewise.
45946         * modules/unictype/category-and-not: Likewise.
45947         * modules/unictype/category-byname: Likewise.
45948         * modules/unictype/category-name: Likewise.
45949         * modules/unictype/category-none: Likewise.
45950         * modules/unictype/category-of: Likewise.
45951         * modules/unictype/category-or: Likewise.
45952         * modules/unictype/category-test: Likewise.
45953         * modules/unictype/combining-class: Likewise.
45954         * modules/unictype/ctype-alnum: Likewise.
45955         * modules/unictype/ctype-alpha: Likewise.
45956         * modules/unictype/ctype-blank: Likewise.
45957         * modules/unictype/ctype-cntrl: Likewise.
45958         * modules/unictype/ctype-digit: Likewise.
45959         * modules/unictype/ctype-graph: Likewise.
45960         * modules/unictype/ctype-lower: Likewise.
45961         * modules/unictype/ctype-print: Likewise.
45962         * modules/unictype/ctype-punct: Likewise.
45963         * modules/unictype/ctype-space: Likewise.
45964         * modules/unictype/ctype-upper: Likewise.
45965         * modules/unictype/ctype-xdigit: Likewise.
45966         * modules/unictype/decimal-digit: Likewise.
45967         * modules/unictype/digit: Likewise.
45968         * modules/unictype/mirror: Likewise.
45969         * modules/unictype/numeric: Likewise.
45970         * modules/unictype/property-alphabetic: Likewise.
45971         * modules/unictype/property-ascii-hex-digit: Likewise.
45972         * modules/unictype/property-bidi-arabic-digit: Likewise.
45973         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
45974         * modules/unictype/property-bidi-block-separator: Likewise.
45975         * modules/unictype/property-bidi-boundary-neutral: Likewise.
45976         * modules/unictype/property-bidi-common-separator: Likewise.
45977         * modules/unictype/property-bidi-control: Likewise.
45978         * modules/unictype/property-bidi-embedding-or-override: Likewise.
45979         * modules/unictype/property-bidi-eur-num-separator: Likewise.
45980         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
45981         * modules/unictype/property-bidi-european-digit: Likewise.
45982         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
45983         * modules/unictype/property-bidi-left-to-right: Likewise.
45984         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
45985         * modules/unictype/property-bidi-other-neutral: Likewise.
45986         * modules/unictype/property-bidi-pdf: Likewise.
45987         * modules/unictype/property-bidi-segment-separator: Likewise.
45988         * modules/unictype/property-bidi-whitespace: Likewise.
45989         * modules/unictype/property-byname: Likewise.
45990         * modules/unictype/property-combining: Likewise.
45991         * modules/unictype/property-composite: Likewise.
45992         * modules/unictype/property-currency-symbol: Likewise.
45993         * modules/unictype/property-dash: Likewise.
45994         * modules/unictype/property-decimal-digit: Likewise.
45995         * modules/unictype/property-default-ignorable-code-point: Likewise.
45996         * modules/unictype/property-deprecated: Likewise.
45997         * modules/unictype/property-diacritic: Likewise.
45998         * modules/unictype/property-extender: Likewise.
45999         * modules/unictype/property-format-control: Likewise.
46000         * modules/unictype/property-grapheme-base: Likewise.
46001         * modules/unictype/property-grapheme-extend: Likewise.
46002         * modules/unictype/property-grapheme-link: Likewise.
46003         * modules/unictype/property-hex-digit: Likewise.
46004         * modules/unictype/property-hyphen: Likewise.
46005         * modules/unictype/property-id-continue: Likewise.
46006         * modules/unictype/property-id-start: Likewise.
46007         * modules/unictype/property-ideographic: Likewise.
46008         * modules/unictype/property-ids-binary-operator: Likewise.
46009         * modules/unictype/property-ids-trinary-operator: Likewise.
46010         * modules/unictype/property-ignorable-control: Likewise.
46011         * modules/unictype/property-iso-control: Likewise.
46012         * modules/unictype/property-join-control: Likewise.
46013         * modules/unictype/property-left-of-pair: Likewise.
46014         * modules/unictype/property-line-separator: Likewise.
46015         * modules/unictype/property-logical-order-exception: Likewise.
46016         * modules/unictype/property-lowercase: Likewise.
46017         * modules/unictype/property-math: Likewise.
46018         * modules/unictype/property-non-break: Likewise.
46019         * modules/unictype/property-not-a-character: Likewise.
46020         * modules/unictype/property-numeric: Likewise.
46021         * modules/unictype/property-other-alphabetic: Likewise.
46022         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
46023         * modules/unictype/property-other-grapheme-extend: Likewise.
46024         * modules/unictype/property-other-id-continue: Likewise.
46025         * modules/unictype/property-other-id-start: Likewise.
46026         * modules/unictype/property-other-lowercase: Likewise.
46027         * modules/unictype/property-other-math: Likewise.
46028         * modules/unictype/property-other-uppercase: Likewise.
46029         * modules/unictype/property-paired-punctuation: Likewise.
46030         * modules/unictype/property-paragraph-separator: Likewise.
46031         * modules/unictype/property-pattern-syntax: Likewise.
46032         * modules/unictype/property-pattern-white-space: Likewise.
46033         * modules/unictype/property-private-use: Likewise.
46034         * modules/unictype/property-punctuation: Likewise.
46035         * modules/unictype/property-quotation-mark: Likewise.
46036         * modules/unictype/property-radical: Likewise.
46037         * modules/unictype/property-sentence-terminal: Likewise.
46038         * modules/unictype/property-soft-dotted: Likewise.
46039         * modules/unictype/property-space: Likewise.
46040         * modules/unictype/property-terminal-punctuation: Likewise.
46041         * modules/unictype/property-test: Likewise.
46042         * modules/unictype/property-titlecase: Likewise.
46043         * modules/unictype/property-unassigned-code-value: Likewise.
46044         * modules/unictype/property-unified-ideograph: Likewise.
46045         * modules/unictype/property-uppercase: Likewise.
46046         * modules/unictype/property-variation-selector: Likewise.
46047         * modules/unictype/property-white-space: Likewise.
46048         * modules/unictype/property-xid-continue: Likewise.
46049         * modules/unictype/property-xid-start: Likewise.
46050         * modules/unictype/property-zero-width: Likewise.
46051         * modules/unictype/scripts: Likewise.
46052         * modules/unictype/syntax-c-ident: Likewise.
46053         * modules/unictype/syntax-c-whitespace: Likewise.
46054         * modules/unictype/syntax-java-ident: Likewise.
46055         * modules/unictype/syntax-java-whitespace: Likewise.
46056         * modules/unilbrk/u8-possible-linebreaks: Likewise.
46057         * modules/unilbrk/u8-width-linebreaks: Likewise.
46058         * modules/unilbrk/u16-possible-linebreaks: Likewise.
46059         * modules/unilbrk/u16-width-linebreaks: Likewise.
46060         * modules/unilbrk/u32-possible-linebreaks: Likewise.
46061         * modules/unilbrk/u32-width-linebreaks: Likewise.
46062         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
46063         * modules/unilbrk/ulc-width-linebreaks: Likewise.
46064         * modules/uniname/uniname: Likewise.
46065         * modules/uninorm/canonical-decomposition: Likewise.
46066         * modules/uninorm/composition: Likewise.
46067         * modules/uninorm/decomposing-form: Likewise.
46068         * modules/uninorm/decomposition: Likewise.
46069         * modules/uninorm/filter: Likewise.
46070         * modules/uninorm/nfc: Likewise.
46071         * modules/uninorm/nfd: Likewise.
46072         * modules/uninorm/nfkc: Likewise.
46073         * modules/uninorm/nfkd: Likewise.
46074         * modules/uninorm/u8-normalize: Likewise.
46075         * modules/uninorm/u8-normcmp: Likewise.
46076         * modules/uninorm/u8-normcoll: Likewise.
46077         * modules/uninorm/u8-normxfrm: Likewise.
46078         * modules/uninorm/u16-normalize: Likewise.
46079         * modules/uninorm/u16-normcmp: Likewise.
46080         * modules/uninorm/u16-normcoll: Likewise.
46081         * modules/uninorm/u16-normxfrm: Likewise.
46082         * modules/uninorm/u32-normalize: Likewise.
46083         * modules/uninorm/u32-normcmp: Likewise.
46084         * modules/uninorm/u32-normcoll: Likewise.
46085         * modules/uninorm/u32-normxfrm: Likewise.
46086         * modules/unistdio/u8-asnprintf: Likewise.
46087         * modules/unistdio/u8-asprintf: Likewise.
46088         * modules/unistdio/u8-snprintf: Likewise.
46089         * modules/unistdio/u8-sprintf: Likewise.
46090         * modules/unistdio/u8-u8-asnprintf: Likewise.
46091         * modules/unistdio/u8-u8-asprintf: Likewise.
46092         * modules/unistdio/u8-u8-snprintf: Likewise.
46093         * modules/unistdio/u8-u8-sprintf: Likewise.
46094         * modules/unistdio/u8-u8-vasnprintf: Likewise.
46095         * modules/unistdio/u8-u8-vasprintf: Likewise.
46096         * modules/unistdio/u8-u8-vsnprintf: Likewise.
46097         * modules/unistdio/u8-u8-vsprintf: Likewise.
46098         * modules/unistdio/u8-vasnprintf: Likewise.
46099         * modules/unistdio/u8-vasprintf: Likewise.
46100         * modules/unistdio/u8-vsnprintf: Likewise.
46101         * modules/unistdio/u8-vsprintf: Likewise.
46102         * modules/unistdio/u16-asnprintf: Likewise.
46103         * modules/unistdio/u16-asprintf: Likewise.
46104         * modules/unistdio/u16-snprintf: Likewise.
46105         * modules/unistdio/u16-sprintf: Likewise.
46106         * modules/unistdio/u16-u16-asnprintf: Likewise.
46107         * modules/unistdio/u16-u16-asprintf: Likewise.
46108         * modules/unistdio/u16-u16-snprintf: Likewise.
46109         * modules/unistdio/u16-u16-sprintf: Likewise.
46110         * modules/unistdio/u16-u16-vasnprintf: Likewise.
46111         * modules/unistdio/u16-u16-vasprintf: Likewise.
46112         * modules/unistdio/u16-u16-vsnprintf: Likewise.
46113         * modules/unistdio/u16-u16-vsprintf: Likewise.
46114         * modules/unistdio/u16-vasnprintf: Likewise.
46115         * modules/unistdio/u16-vasprintf: Likewise.
46116         * modules/unistdio/u16-vsnprintf: Likewise.
46117         * modules/unistdio/u16-vsprintf: Likewise.
46118         * modules/unistdio/u32-asnprintf: Likewise.
46119         * modules/unistdio/u32-asprintf: Likewise.
46120         * modules/unistdio/u32-snprintf: Likewise.
46121         * modules/unistdio/u32-sprintf: Likewise.
46122         * modules/unistdio/u32-u32-asnprintf: Likewise.
46123         * modules/unistdio/u32-u32-asprintf: Likewise.
46124         * modules/unistdio/u32-u32-snprintf: Likewise.
46125         * modules/unistdio/u32-u32-sprintf: Likewise.
46126         * modules/unistdio/u32-u32-vasnprintf: Likewise.
46127         * modules/unistdio/u32-u32-vasprintf: Likewise.
46128         * modules/unistdio/u32-u32-vsnprintf: Likewise.
46129         * modules/unistdio/u32-u32-vsprintf: Likewise.
46130         * modules/unistdio/u32-vasnprintf: Likewise.
46131         * modules/unistdio/u32-vasprintf: Likewise.
46132         * modules/unistdio/u32-vsnprintf: Likewise.
46133         * modules/unistdio/u32-vsprintf: Likewise.
46134         * modules/unistdio/ulc-asnprintf: Likewise.
46135         * modules/unistdio/ulc-asprintf: Likewise.
46136         * modules/unistdio/ulc-fprintf: Likewise.
46137         * modules/unistdio/ulc-snprintf: Likewise.
46138         * modules/unistdio/ulc-sprintf: Likewise.
46139         * modules/unistdio/ulc-vasnprintf: Likewise.
46140         * modules/unistdio/ulc-vasprintf: Likewise.
46141         * modules/unistdio/ulc-vfprintf: Likewise.
46142         * modules/unistdio/ulc-vsnprintf: Likewise.
46143         * modules/unistdio/ulc-vsprintf: Likewise.
46144         * modules/unistr/u8-check: Likewise.
46145         * modules/unistr/u8-chr: Likewise.
46146         * modules/unistr/u8-cmp: Likewise.
46147         * modules/unistr/u8-cmp2: Likewise.
46148         * modules/unistr/u8-cpy: Likewise.
46149         * modules/unistr/u8-cpy-alloc: Likewise.
46150         * modules/unistr/u8-endswith: Likewise.
46151         * modules/unistr/u8-mblen: Likewise.
46152         * modules/unistr/u8-mbsnlen: Likewise.
46153         * modules/unistr/u8-mbtouc: Likewise.
46154         * modules/unistr/u8-mbtouc-unsafe: Likewise.
46155         * modules/unistr/u8-mbtoucr: Likewise.
46156         * modules/unistr/u8-move: Likewise.
46157         * modules/unistr/u8-next: Likewise.
46158         * modules/unistr/u8-prev: Likewise.
46159         * modules/unistr/u8-set: Likewise.
46160         * modules/unistr/u8-startswith: Likewise.
46161         * modules/unistr/u8-stpcpy: Likewise.
46162         * modules/unistr/u8-stpncpy: Likewise.
46163         * modules/unistr/u8-strcat: Likewise.
46164         * modules/unistr/u8-strchr: Likewise.
46165         * modules/unistr/u8-strcmp: Likewise.
46166         * modules/unistr/u8-strcoll: Likewise.
46167         * modules/unistr/u8-strcpy: Likewise.
46168         * modules/unistr/u8-strcspn: Likewise.
46169         * modules/unistr/u8-strdup: Likewise.
46170         * modules/unistr/u8-strlen: Likewise.
46171         * modules/unistr/u8-strmblen: Likewise.
46172         * modules/unistr/u8-strmbtouc: Likewise.
46173         * modules/unistr/u8-strncat: Likewise.
46174         * modules/unistr/u8-strncmp: Likewise.
46175         * modules/unistr/u8-strncpy: Likewise.
46176         * modules/unistr/u8-strnlen: Likewise.
46177         * modules/unistr/u8-strpbrk: Likewise.
46178         * modules/unistr/u8-strrchr: Likewise.
46179         * modules/unistr/u8-strspn: Likewise.
46180         * modules/unistr/u8-strstr: Likewise.
46181         * modules/unistr/u8-strtok: Likewise.
46182         * modules/unistr/u8-to-u16: Likewise.
46183         * modules/unistr/u8-to-u32: Likewise.
46184         * modules/unistr/u8-uctomb: Likewise.
46185         * modules/unistr/u16-check: Likewise.
46186         * modules/unistr/u16-chr: Likewise.
46187         * modules/unistr/u16-cmp: Likewise.
46188         * modules/unistr/u16-cmp2: Likewise.
46189         * modules/unistr/u16-cpy: Likewise.
46190         * modules/unistr/u16-cpy-alloc: Likewise.
46191         * modules/unistr/u16-endswith: Likewise.
46192         * modules/unistr/u16-mblen: Likewise.
46193         * modules/unistr/u16-mbsnlen: Likewise.
46194         * modules/unistr/u16-mbtouc: Likewise.
46195         * modules/unistr/u16-mbtouc-unsafe: Likewise.
46196         * modules/unistr/u16-mbtoucr: Likewise.
46197         * modules/unistr/u16-move: Likewise.
46198         * modules/unistr/u16-next: Likewise.
46199         * modules/unistr/u16-prev: Likewise.
46200         * modules/unistr/u16-set: Likewise.
46201         * modules/unistr/u16-startswith: Likewise.
46202         * modules/unistr/u16-stpcpy: Likewise.
46203         * modules/unistr/u16-stpncpy: Likewise.
46204         * modules/unistr/u16-strcat: Likewise.
46205         * modules/unistr/u16-strchr: Likewise.
46206         * modules/unistr/u16-strcmp: Likewise.
46207         * modules/unistr/u16-strcoll: Likewise.
46208         * modules/unistr/u16-strcpy: Likewise.
46209         * modules/unistr/u16-strcspn: Likewise.
46210         * modules/unistr/u16-strdup: Likewise.
46211         * modules/unistr/u16-strlen: Likewise.
46212         * modules/unistr/u16-strmblen: Likewise.
46213         * modules/unistr/u16-strmbtouc: Likewise.
46214         * modules/unistr/u16-strncat: Likewise.
46215         * modules/unistr/u16-strncmp: Likewise.
46216         * modules/unistr/u16-strncpy: Likewise.
46217         * modules/unistr/u16-strnlen: Likewise.
46218         * modules/unistr/u16-strpbrk: Likewise.
46219         * modules/unistr/u16-strrchr: Likewise.
46220         * modules/unistr/u16-strspn: Likewise.
46221         * modules/unistr/u16-strstr: Likewise.
46222         * modules/unistr/u16-strtok: Likewise.
46223         * modules/unistr/u16-to-u32: Likewise.
46224         * modules/unistr/u16-to-u8: Likewise.
46225         * modules/unistr/u16-uctomb: Likewise.
46226         * modules/unistr/u32-check: Likewise.
46227         * modules/unistr/u32-chr: Likewise.
46228         * modules/unistr/u32-cmp: Likewise.
46229         * modules/unistr/u32-cmp2: Likewise.
46230         * modules/unistr/u32-cpy: Likewise.
46231         * modules/unistr/u32-cpy-alloc: Likewise.
46232         * modules/unistr/u32-endswith: Likewise.
46233         * modules/unistr/u32-mblen: Likewise.
46234         * modules/unistr/u32-mbsnlen: Likewise.
46235         * modules/unistr/u32-mbtouc: Likewise.
46236         * modules/unistr/u32-mbtouc-unsafe: Likewise.
46237         * modules/unistr/u32-mbtoucr: Likewise.
46238         * modules/unistr/u32-move: Likewise.
46239         * modules/unistr/u32-next: Likewise.
46240         * modules/unistr/u32-prev: Likewise.
46241         * modules/unistr/u32-set: Likewise.
46242         * modules/unistr/u32-startswith: Likewise.
46243         * modules/unistr/u32-stpcpy: Likewise.
46244         * modules/unistr/u32-stpncpy: Likewise.
46245         * modules/unistr/u32-strcat: Likewise.
46246         * modules/unistr/u32-strchr: Likewise.
46247         * modules/unistr/u32-strcmp: Likewise.
46248         * modules/unistr/u32-strcoll: Likewise.
46249         * modules/unistr/u32-strcpy: Likewise.
46250         * modules/unistr/u32-strcspn: Likewise.
46251         * modules/unistr/u32-strdup: Likewise.
46252         * modules/unistr/u32-strlen: Likewise.
46253         * modules/unistr/u32-strmblen: Likewise.
46254         * modules/unistr/u32-strmbtouc: Likewise.
46255         * modules/unistr/u32-strncat: Likewise.
46256         * modules/unistr/u32-strncmp: Likewise.
46257         * modules/unistr/u32-strncpy: Likewise.
46258         * modules/unistr/u32-strnlen: Likewise.
46259         * modules/unistr/u32-strpbrk: Likewise.
46260         * modules/unistr/u32-strrchr: Likewise.
46261         * modules/unistr/u32-strspn: Likewise.
46262         * modules/unistr/u32-strstr: Likewise.
46263         * modules/unistr/u32-strtok: Likewise.
46264         * modules/unistr/u32-to-u16: Likewise.
46265         * modules/unistr/u32-to-u8: Likewise.
46266         * modules/unistr/u32-uctomb: Likewise.
46267         * modules/uniwbrk/u8-wordbreaks: Likewise.
46268         * modules/uniwbrk/u16-wordbreaks: Likewise.
46269         * modules/uniwbrk/u32-wordbreaks: Likewise.
46270         * modules/uniwbrk/ulc-wordbreaks: Likewise.
46271         * modules/uniwbrk/wordbreak-property: Likewise.
46272         * modules/uniwidth/u8-strwidth: Likewise.
46273         * modules/uniwidth/u8-width: Likewise.
46274         * modules/uniwidth/u16-strwidth: Likewise.
46275         * modules/uniwidth/u16-width: Likewise.
46276         * modules/uniwidth/u32-strwidth: Likewise.
46277         * modules/uniwidth/u32-width: Likewise.
46278         * modules/uniwidth/width: Likewise.
46279         * modules/unicase/cased-tests (Makefile.am): Link all test programs
46280         with $(LIBUNISTRING).
46281         * modules/unicase/ignorable-tests: Likewise.
46282         * modules/unicase/locale-language-tests: Likewise.
46283         * modules/unicase/tolower-tests: Likewise.
46284         * modules/unicase/totitle-tests: Likewise.
46285         * modules/unicase/toupper-tests: Likewise.
46286         * modules/unicase/u8-casecmp-tests: Likewise.
46287         * modules/unicase/u8-casecoll-tests: Likewise.
46288         * modules/unicase/u8-casefold-tests: Likewise.
46289         * modules/unicase/u8-is-cased-tests: Likewise.
46290         * modules/unicase/u8-is-casefolded-tests: Likewise.
46291         * modules/unicase/u8-is-lowercase-tests: Likewise.
46292         * modules/unicase/u8-is-titlecase-tests: Likewise.
46293         * modules/unicase/u8-is-uppercase-tests: Likewise.
46294         * modules/unicase/u8-tolower-tests: Likewise.
46295         * modules/unicase/u8-totitle-tests: Likewise.
46296         * modules/unicase/u8-toupper-tests: Likewise.
46297         * modules/unicase/u16-casecmp-tests: Likewise.
46298         * modules/unicase/u16-casecoll-tests: Likewise.
46299         * modules/unicase/u16-casefold-tests: Likewise.
46300         * modules/unicase/u16-is-cased-tests: Likewise.
46301         * modules/unicase/u16-is-casefolded-tests: Likewise.
46302         * modules/unicase/u16-is-lowercase-tests: Likewise.
46303         * modules/unicase/u16-is-titlecase-tests: Likewise.
46304         * modules/unicase/u16-is-uppercase-tests: Likewise.
46305         * modules/unicase/u16-tolower-tests: Likewise.
46306         * modules/unicase/u16-totitle-tests: Likewise.
46307         * modules/unicase/u16-toupper-tests: Likewise.
46308         * modules/unicase/u32-casecmp-tests: Likewise.
46309         * modules/unicase/u32-casecoll-tests: Likewise.
46310         * modules/unicase/u32-casefold-tests: Likewise.
46311         * modules/unicase/u32-is-cased-tests: Likewise.
46312         * modules/unicase/u32-is-casefolded-tests: Likewise.
46313         * modules/unicase/u32-is-lowercase-tests: Likewise.
46314         * modules/unicase/u32-is-titlecase-tests: Likewise.
46315         * modules/unicase/u32-is-uppercase-tests: Likewise.
46316         * modules/unicase/u32-tolower-tests: Likewise.
46317         * modules/unicase/u32-totitle-tests: Likewise.
46318         * modules/unicase/u32-toupper-tests: Likewise.
46319         * modules/unicase/ulc-casecmp-tests: Likewise.
46320         * modules/unicase/ulc-casecoll-tests: Likewise.
46321         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
46322         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
46323         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
46324         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
46325         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
46326         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
46327         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
46328         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
46329         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
46330         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
46331         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
46332         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
46333         * modules/unictype/bidicategory-byname-tests: Likewise.
46334         * modules/unictype/bidicategory-name-tests: Likewise.
46335         * modules/unictype/bidicategory-of-tests: Likewise.
46336         * modules/unictype/bidicategory-test-tests: Likewise.
46337         * modules/unictype/block-list-tests: Likewise.
46338         * modules/unictype/block-of-tests: Likewise.
46339         * modules/unictype/block-test-tests: Likewise.
46340         * modules/unictype/category-C-tests: Likewise.
46341         * modules/unictype/category-Cc-tests: Likewise.
46342         * modules/unictype/category-Cf-tests: Likewise.
46343         * modules/unictype/category-Cn-tests: Likewise.
46344         * modules/unictype/category-Co-tests: Likewise.
46345         * modules/unictype/category-Cs-tests: Likewise.
46346         * modules/unictype/category-L-tests: Likewise.
46347         * modules/unictype/category-Ll-tests: Likewise.
46348         * modules/unictype/category-Lm-tests: Likewise.
46349         * modules/unictype/category-Lo-tests: Likewise.
46350         * modules/unictype/category-Lt-tests: Likewise.
46351         * modules/unictype/category-Lu-tests: Likewise.
46352         * modules/unictype/category-M-tests: Likewise.
46353         * modules/unictype/category-Mc-tests: Likewise.
46354         * modules/unictype/category-Me-tests: Likewise.
46355         * modules/unictype/category-Mn-tests: Likewise.
46356         * modules/unictype/category-N-tests: Likewise.
46357         * modules/unictype/category-Nd-tests: Likewise.
46358         * modules/unictype/category-Nl-tests: Likewise.
46359         * modules/unictype/category-No-tests: Likewise.
46360         * modules/unictype/category-P-tests: Likewise.
46361         * modules/unictype/category-Pc-tests: Likewise.
46362         * modules/unictype/category-Pd-tests: Likewise.
46363         * modules/unictype/category-Pe-tests: Likewise.
46364         * modules/unictype/category-Pf-tests: Likewise.
46365         * modules/unictype/category-Pi-tests: Likewise.
46366         * modules/unictype/category-Po-tests: Likewise.
46367         * modules/unictype/category-Ps-tests: Likewise.
46368         * modules/unictype/category-S-tests: Likewise.
46369         * modules/unictype/category-Sc-tests: Likewise.
46370         * modules/unictype/category-Sk-tests: Likewise.
46371         * modules/unictype/category-Sm-tests: Likewise.
46372         * modules/unictype/category-So-tests: Likewise.
46373         * modules/unictype/category-Z-tests: Likewise.
46374         * modules/unictype/category-Zl-tests: Likewise.
46375         * modules/unictype/category-Zp-tests: Likewise.
46376         * modules/unictype/category-Zs-tests: Likewise.
46377         * modules/unictype/category-and-not-tests: Likewise.
46378         * modules/unictype/category-and-tests: Likewise.
46379         * modules/unictype/category-byname-tests: Likewise.
46380         * modules/unictype/category-name-tests: Likewise.
46381         * modules/unictype/category-none-tests: Likewise.
46382         * modules/unictype/category-of-tests: Likewise.
46383         * modules/unictype/category-or-tests: Likewise.
46384         * modules/unictype/category-test-withtable-tests: Likewise.
46385         * modules/unictype/combining-class-tests: Likewise.
46386         * modules/unictype/ctype-alnum-tests: Likewise.
46387         * modules/unictype/ctype-alpha-tests: Likewise.
46388         * modules/unictype/ctype-blank-tests: Likewise.
46389         * modules/unictype/ctype-cntrl-tests: Likewise.
46390         * modules/unictype/ctype-digit-tests: Likewise.
46391         * modules/unictype/ctype-graph-tests: Likewise.
46392         * modules/unictype/ctype-lower-tests: Likewise.
46393         * modules/unictype/ctype-print-tests: Likewise.
46394         * modules/unictype/ctype-punct-tests: Likewise.
46395         * modules/unictype/ctype-space-tests: Likewise.
46396         * modules/unictype/ctype-upper-tests: Likewise.
46397         * modules/unictype/ctype-xdigit-tests: Likewise.
46398         * modules/unictype/decimal-digit-tests: Likewise.
46399         * modules/unictype/digit-tests: Likewise.
46400         * modules/unictype/mirror-tests: Likewise.
46401         * modules/unictype/numeric-tests: Likewise.
46402         * modules/unictype/property-alphabetic-tests: Likewise.
46403         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
46404         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
46405         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
46406         * modules/unictype/property-bidi-block-separator-tests: Likewise.
46407         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
46408         * modules/unictype/property-bidi-common-separator-tests: Likewise.
46409         * modules/unictype/property-bidi-control-tests: Likewise.
46410         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
46411         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
46412         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
46413         * modules/unictype/property-bidi-european-digit-tests: Likewise.
46414         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
46415         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
46416         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
46417         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
46418         * modules/unictype/property-bidi-pdf-tests: Likewise.
46419         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
46420         * modules/unictype/property-bidi-whitespace-tests: Likewise.
46421         * modules/unictype/property-byname-tests: Likewise.
46422         * modules/unictype/property-combining-tests: Likewise.
46423         * modules/unictype/property-composite-tests: Likewise.
46424         * modules/unictype/property-currency-symbol-tests: Likewise.
46425         * modules/unictype/property-dash-tests: Likewise.
46426         * modules/unictype/property-decimal-digit-tests: Likewise.
46427         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
46428         * modules/unictype/property-deprecated-tests: Likewise.
46429         * modules/unictype/property-diacritic-tests: Likewise.
46430         * modules/unictype/property-extender-tests: Likewise.
46431         * modules/unictype/property-format-control-tests: Likewise.
46432         * modules/unictype/property-grapheme-base-tests: Likewise.
46433         * modules/unictype/property-grapheme-extend-tests: Likewise.
46434         * modules/unictype/property-grapheme-link-tests: Likewise.
46435         * modules/unictype/property-hex-digit-tests: Likewise.
46436         * modules/unictype/property-hyphen-tests: Likewise.
46437         * modules/unictype/property-id-continue-tests: Likewise.
46438         * modules/unictype/property-id-start-tests: Likewise.
46439         * modules/unictype/property-ideographic-tests: Likewise.
46440         * modules/unictype/property-ids-binary-operator-tests: Likewise.
46441         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
46442         * modules/unictype/property-ignorable-control-tests: Likewise.
46443         * modules/unictype/property-iso-control-tests: Likewise.
46444         * modules/unictype/property-join-control-tests: Likewise.
46445         * modules/unictype/property-left-of-pair-tests: Likewise.
46446         * modules/unictype/property-line-separator-tests: Likewise.
46447         * modules/unictype/property-logical-order-exception-tests: Likewise.
46448         * modules/unictype/property-lowercase-tests: Likewise.
46449         * modules/unictype/property-math-tests: Likewise.
46450         * modules/unictype/property-non-break-tests: Likewise.
46451         * modules/unictype/property-not-a-character-tests: Likewise.
46452         * modules/unictype/property-numeric-tests: Likewise.
46453         * modules/unictype/property-other-alphabetic-tests: Likewise.
46454         * modules/unictype/property-other-default-ignorable-code-point-tests:
46455         Likewise.
46456         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
46457         * modules/unictype/property-other-id-continue-tests: Likewise.
46458         * modules/unictype/property-other-id-start-tests: Likewise.
46459         * modules/unictype/property-other-lowercase-tests: Likewise.
46460         * modules/unictype/property-other-math-tests: Likewise.
46461         * modules/unictype/property-other-uppercase-tests: Likewise.
46462         * modules/unictype/property-paired-punctuation-tests: Likewise.
46463         * modules/unictype/property-paragraph-separator-tests: Likewise.
46464         * modules/unictype/property-pattern-syntax-tests: Likewise.
46465         * modules/unictype/property-pattern-white-space-tests: Likewise.
46466         * modules/unictype/property-private-use-tests: Likewise.
46467         * modules/unictype/property-punctuation-tests: Likewise.
46468         * modules/unictype/property-quotation-mark-tests: Likewise.
46469         * modules/unictype/property-radical-tests: Likewise.
46470         * modules/unictype/property-sentence-terminal-tests: Likewise.
46471         * modules/unictype/property-soft-dotted-tests: Likewise.
46472         * modules/unictype/property-space-tests: Likewise.
46473         * modules/unictype/property-terminal-punctuation-tests: Likewise.
46474         * modules/unictype/property-test-tests: Likewise.
46475         * modules/unictype/property-titlecase-tests: Likewise.
46476         * modules/unictype/property-unassigned-code-value-tests: Likewise.
46477         * modules/unictype/property-unified-ideograph-tests: Likewise.
46478         * modules/unictype/property-uppercase-tests: Likewise.
46479         * modules/unictype/property-variation-selector-tests: Likewise.
46480         * modules/unictype/property-white-space-tests: Likewise.
46481         * modules/unictype/property-xid-continue-tests: Likewise.
46482         * modules/unictype/property-xid-start-tests: Likewise.
46483         * modules/unictype/property-zero-width-tests: Likewise.
46484         * modules/unictype/scripts-tests: Likewise.
46485         * modules/unictype/syntax-c-ident-tests: Likewise.
46486         * modules/unictype/syntax-c-whitespace-tests: Likewise.
46487         * modules/unictype/syntax-java-ident-tests: Likewise.
46488         * modules/unictype/syntax-java-whitespace-tests: Likewise.
46489         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
46490         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
46491         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
46492         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
46493         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
46494         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
46495         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
46496         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
46497         * modules/uniname/uniname-tests: Likewise.
46498         * modules/uninorm/canonical-decomposition-tests: Likewise.
46499         * modules/uninorm/compat-decomposition-tests: Likewise.
46500         * modules/uninorm/composition-tests: Likewise.
46501         * modules/uninorm/decomposing-form-tests: Likewise.
46502         * modules/uninorm/decomposition-tests: Likewise.
46503         * modules/uninorm/filter-tests: Likewise.
46504         * modules/uninorm/nfc-tests: Likewise.
46505         * modules/uninorm/nfd-tests: Likewise.
46506         * modules/uninorm/nfkc-tests: Likewise.
46507         * modules/uninorm/nfkd-tests: Likewise.
46508         * modules/uninorm/u8-normcmp-tests: Likewise.
46509         * modules/uninorm/u8-normcoll-tests: Likewise.
46510         * modules/uninorm/u16-normcmp-tests: Likewise.
46511         * modules/uninorm/u16-normcoll-tests: Likewise.
46512         * modules/uninorm/u32-normcmp-tests: Likewise.
46513         * modules/uninorm/u32-normcoll-tests: Likewise.
46514         * modules/unistdio/u8-asnprintf-tests: Likewise.
46515         * modules/unistdio/u8-vasnprintf-tests: Likewise.
46516         * modules/unistdio/u8-vasprintf-tests: Likewise.
46517         * modules/unistdio/u8-vsnprintf-tests: Likewise.
46518         * modules/unistdio/u8-vsprintf-tests: Likewise.
46519         * modules/unistdio/u16-asnprintf-tests: Likewise.
46520         * modules/unistdio/u16-vasnprintf-tests: Likewise.
46521         * modules/unistdio/u16-vasprintf-tests: Likewise.
46522         * modules/unistdio/u16-vsnprintf-tests: Likewise.
46523         * modules/unistdio/u16-vsprintf-tests: Likewise.
46524         * modules/unistdio/u32-asnprintf-tests: Likewise.
46525         * modules/unistdio/u32-vasnprintf-tests: Likewise.
46526         * modules/unistdio/u32-vasprintf-tests: Likewise.
46527         * modules/unistdio/u32-vsnprintf-tests: Likewise.
46528         * modules/unistdio/u32-vsprintf-tests: Likewise.
46529         * modules/unistdio/ulc-asnprintf-tests: Likewise.
46530         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
46531         * modules/unistdio/ulc-vasprintf-tests: Likewise.
46532         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
46533         * modules/unistdio/ulc-vsprintf-tests: Likewise.
46534         * modules/unistr/u8-check-tests: Likewise.
46535         * modules/unistr/u8-chr-tests: Likewise.
46536         * modules/unistr/u8-cmp-tests: Likewise.
46537         * modules/unistr/u8-cmp2-tests: Likewise.
46538         * modules/unistr/u8-cpy-alloc-tests: Likewise.
46539         * modules/unistr/u8-cpy-tests: Likewise.
46540         * modules/unistr/u8-mblen-tests: Likewise.
46541         * modules/unistr/u8-mbsnlen-tests: Likewise.
46542         * modules/unistr/u8-mbtouc-tests: Likewise.
46543         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
46544         * modules/unistr/u8-mbtoucr-tests: Likewise.
46545         * modules/unistr/u8-move-tests: Likewise.
46546         * modules/unistr/u8-next-tests: Likewise.
46547         * modules/unistr/u8-prev-tests: Likewise.
46548         * modules/unistr/u8-set-tests: Likewise.
46549         * modules/unistr/u8-stpcpy-tests: Likewise.
46550         * modules/unistr/u8-stpncpy-tests: Likewise.
46551         * modules/unistr/u8-strcat-tests: Likewise.
46552         * modules/unistr/u8-strcmp-tests: Likewise.
46553         * modules/unistr/u8-strcoll-tests: Likewise.
46554         * modules/unistr/u8-strcpy-tests: Likewise.
46555         * modules/unistr/u8-strdup-tests: Likewise.
46556         * modules/unistr/u8-strlen-tests: Likewise.
46557         * modules/unistr/u8-strmblen-tests: Likewise.
46558         * modules/unistr/u8-strmbtouc-tests: Likewise.
46559         * modules/unistr/u8-strncat-tests: Likewise.
46560         * modules/unistr/u8-strncmp-tests: Likewise.
46561         * modules/unistr/u8-strncpy-tests: Likewise.
46562         * modules/unistr/u8-strnlen-tests: Likewise.
46563         * modules/unistr/u8-to-u16-tests: Likewise.
46564         * modules/unistr/u8-to-u32-tests: Likewise.
46565         * modules/unistr/u8-uctomb-tests: Likewise.
46566         * modules/unistr/u16-check-tests: Likewise.
46567         * modules/unistr/u16-chr-tests: Likewise.
46568         * modules/unistr/u16-cmp-tests: Likewise.
46569         * modules/unistr/u16-cmp2-tests: Likewise.
46570         * modules/unistr/u16-cpy-alloc-tests: Likewise.
46571         * modules/unistr/u16-cpy-tests: Likewise.
46572         * modules/unistr/u16-mblen-tests: Likewise.
46573         * modules/unistr/u16-mbsnlen-tests: Likewise.
46574         * modules/unistr/u16-mbtouc-tests: Likewise.
46575         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
46576         * modules/unistr/u16-mbtoucr-tests: Likewise.
46577         * modules/unistr/u16-move-tests: Likewise.
46578         * modules/unistr/u16-next-tests: Likewise.
46579         * modules/unistr/u16-prev-tests: Likewise.
46580         * modules/unistr/u16-set-tests: Likewise.
46581         * modules/unistr/u16-stpcpy-tests: Likewise.
46582         * modules/unistr/u16-stpncpy-tests: Likewise.
46583         * modules/unistr/u16-strcat-tests: Likewise.
46584         * modules/unistr/u16-strcmp-tests: Likewise.
46585         * modules/unistr/u16-strcoll-tests: Likewise.
46586         * modules/unistr/u16-strcpy-tests: Likewise.
46587         * modules/unistr/u16-strdup-tests: Likewise.
46588         * modules/unistr/u16-strlen-tests: Likewise.
46589         * modules/unistr/u16-strmblen-tests: Likewise.
46590         * modules/unistr/u16-strmbtouc-tests: Likewise.
46591         * modules/unistr/u16-strncat-tests: Likewise.
46592         * modules/unistr/u16-strncmp-tests: Likewise.
46593         * modules/unistr/u16-strncpy-tests: Likewise.
46594         * modules/unistr/u16-strnlen-tests: Likewise.
46595         * modules/unistr/u16-to-u32-tests: Likewise.
46596         * modules/unistr/u16-to-u8-tests: Likewise.
46597         * modules/unistr/u16-uctomb-tests: Likewise.
46598         * modules/unistr/u32-check-tests: Likewise.
46599         * modules/unistr/u32-chr-tests: Likewise.
46600         * modules/unistr/u32-cmp-tests: Likewise.
46601         * modules/unistr/u32-cmp2-tests: Likewise.
46602         * modules/unistr/u32-cpy-alloc-tests: Likewise.
46603         * modules/unistr/u32-cpy-tests: Likewise.
46604         * modules/unistr/u32-mblen-tests: Likewise.
46605         * modules/unistr/u32-mbsnlen-tests: Likewise.
46606         * modules/unistr/u32-mbtouc-tests: Likewise.
46607         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
46608         * modules/unistr/u32-mbtoucr-tests: Likewise.
46609         * modules/unistr/u32-move-tests: Likewise.
46610         * modules/unistr/u32-next-tests: Likewise.
46611         * modules/unistr/u32-prev-tests: Likewise.
46612         * modules/unistr/u32-set-tests: Likewise.
46613         * modules/unistr/u32-stpcpy-tests: Likewise.
46614         * modules/unistr/u32-stpncpy-tests: Likewise.
46615         * modules/unistr/u32-strcat-tests: Likewise.
46616         * modules/unistr/u32-strcmp-tests: Likewise.
46617         * modules/unistr/u32-strcoll-tests: Likewise.
46618         * modules/unistr/u32-strcpy-tests: Likewise.
46619         * modules/unistr/u32-strdup-tests: Likewise.
46620         * modules/unistr/u32-strlen-tests: Likewise.
46621         * modules/unistr/u32-strmblen-tests: Likewise.
46622         * modules/unistr/u32-strmbtouc-tests: Likewise.
46623         * modules/unistr/u32-strncat-tests: Likewise.
46624         * modules/unistr/u32-strncmp-tests: Likewise.
46625         * modules/unistr/u32-strncpy-tests: Likewise.
46626         * modules/unistr/u32-strnlen-tests: Likewise.
46627         * modules/unistr/u32-to-u16-tests: Likewise.
46628         * modules/unistr/u32-to-u8-tests: Likewise.
46629         * modules/unistr/u32-uctomb-tests: Likewise.
46630         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
46631         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
46632         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
46633         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
46634         * modules/uniwidth/u8-strwidth-tests: Likewise.
46635         * modules/uniwidth/u8-width-tests: Likewise.
46636         * modules/uniwidth/u16-strwidth-tests: Likewise.
46637         * modules/uniwidth/u16-width-tests: Likewise.
46638         * modules/uniwidth/u32-strwidth-tests: Likewise.
46639         * modules/uniwidth/u32-width-tests: Likewise.
46640         * modules/uniwidth/width-tests: Likewise.
46642 2010-05-18  Richard Jones  <rjones@redhat.com>
46644         doc: users.txt: list hivex
46645         * users.txt: Add hivex.
46647 2010-05-18  Richard Jones  <rjones@redhat.com>
46649         doc: users.txt: list febootstrap
46650         * users.txt: Add febootstrap.
46652 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
46654         bootstrap: fix an error when gnulib is not used as a git submodule
46655         * build-aux/bootstrap (gnulib_path): If its length is zero then
46656         assign "gnulib" to it.
46657         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
46659 2010-05-16  Bruno Haible  <bruno@clisp.org>
46661         Avoid autoconf warnings about AM_ICONV.
46662         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
46663         2.64.
46665 2010-05-16  Bruno Haible  <bruno@clisp.org>
46667         absolute-header: Make the macro usable in more situations.
46668         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
46669         from gl_ABSOLUTE_HEADER.
46670         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
46672 2010-05-16  James Youngman  <jay@gnu.org>
46674         doc: update users.txt
46675         * users.txt: Add CSSC.
46677 2010-05-16  Jim Meyering  <meyering@redhat.com>
46679         init.sh: fix an error in the previous change; add more comments
46680         * tests/init.sh: Compare exit code in loop against 9, not 2.
46681         Patch by Bruno Haible.
46682         Make the two tests more similar by adding an empty "then" clause.
46683         Add comments.
46685         init.sh: avoid unnecessary shell re-exec
46686         * tests/init.sh: Improve the re-exec-required check to first test the
46687         current shell.  If it passes the test, do not search for a shell that
46688         does pass, and do not re-exec.  This test is particularly contorted to
46689         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
46690         of $(...) evokes a syntax error and causes immediate shell exit with
46691         status 2.  Bruno Haible reported that the re-exec made it impossible
46692         to single-step through any init.sh-using script.
46694 2010-05-16  Bruno Haible  <bruno@clisp.org>
46696         Fix collision between gnulib's and libintl's printf replacements.
46697         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
46698         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
46699         (printf): When using GNU C, map the __printf__ function to rpl_printf
46700         via __asm__. When not using GNU C, define rpl_printf instead of
46701         __printf__.
46702         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
46703         commit.
46704         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
46705         commit.
46706         * m4/asm-underscore.m4: New file.
46707         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
46708         * modules/stdio (Files): Add m4/asm-underscore.m4.
46709         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
46710         Reported by Ben Pfaff.
46712 2010-05-16  Bruno Haible  <bruno@clisp.org>
46714         verify: Avoid skipping the test on openSUSE 11.0.
46715         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
46717 2010-05-13  Bruno Haible  <bruno@clisp.org>
46719         Avoid useless warnings from G++.
46720         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
46721         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
46722         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46724 2010-05-11  Jim Meyering  <meyering@redhat.com>
46726         maint.mk: tweak preceding change
46727         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
46728         regexps tighter by anchoring at EOL, and make the new group "shy"
46729         for slightly decreased overhead.
46731 2010-05-11  Eric Blake  <eblake@redhat.com>
46733         maint.mk: gnulib doesn't guarantee NSIG
46734         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
46736 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
46738         test-pwrite.c: Remove unused variable declaration.
46739         * tests/test-pwrite.c (main): Remove read_buf declaration.
46741         Remove useless test-pwrite.sh file.
46742         * tests/test-pwrite.sh: Delete file.
46743         * modules/pwrite-tests: Remove references.
46744         Reported by Bruno Haible.
46746 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
46748         init.sh: fix a typo
46749         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
46751 2010-05-10  Jim Meyering  <meyering@redhat.com>
46753         maint.mk: avoid using a temporary file in the always-defined-macros check
46754         * top/maint.mk (.re-defmac): Remove rule.
46755         (gl_trap_): Remove definition.
46756         (sc_prohibit_always-defined_macros): Rewrite not to create and
46757         depend on a temporary file.  Instead, depend on GNU grep's ability
46758         to read a list of regular expressions from stdin when given "-f -".
46760 2010-05-09  Bruno Haible  <bruno@clisp.org>
46762         Update to GNU gettext 0.18, part 1.
46763         * m4/gettext.m4: Update to GNU gettext 0.18.
46764         * m4/intl.m4: Likewise.
46765         * m4/po.m4: Likewise.
46766         * modules/gettext (Files): Add m4/fcntl-o.m4.
46767         (configure.ac): Require gettext infrastructure from version 0.18.
46769 2010-05-09  Jim Meyering  <meyering@redhat.com>
46771         init.sh: enable MALLOC_PERTURB_
46772         * tests/init.sh: Enable glibc's malloc-perturbing option.
46774         maint.mk: improve sc_cross_check_PATH_usage_in_tests
46775         With my recent change in init.sh from the two-line form:
46776             -#   : ${srcdir=.}
46777             -#   . "$srcdir/init.sh"; path_prepend_ .
46778             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
46779         I noticed that using the one-line form would cause this test
46780         to fail with a false-positive, or to stop working altogether,
46781         depending on whether help-version changed or all the tests did.
46782         * top/maint.mk (_hv_regex): Remove this definition.
46783         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
46784         (_hv_regex_strong): Use a stronger regex to check for conformance.
46785         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
46786         Give a separate diagnostic for lack of conforming use.
46788         maint.mk: prohibit definition of symbols defined by gnulib
46789         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
46790         definition of symbols defined by gnulib.
46792 2010-05-09  Bruno Haible  <bruno@clisp.org>
46794         acl: Avoid test failure on Cygwin-hosted mingw.
46795         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
46797 2010-05-09  Bruno Haible  <bruno@clisp.org>
46799         error: Use system's fcntl function.
46800         * lib/error.c (fcntl): Undefine.
46802 2010-05-09  Jim Meyering  <meyering@redhat.com>
46804         verify: adjust formatting to be more consistent
46805         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
46806         argument-list '('s, and after one comma.
46808 2010-05-09  Bruno Haible  <bruno@clisp.org>
46810         error: More reliable output on mingw.
46811         * lib/error.c: Include <windows.h>.
46812         (is_open): New function.
46813         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
46814         defined.
46816 2010-05-09  Bruno Haible  <bruno@clisp.org>
46818         vasnprintf: Fix syntax errors in libintl build on mingw.
46819         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
46820         pad_ourselves and prec_ourselves after use.
46822 2010-05-08  Bruno Haible  <bruno@clisp.org>
46824         * lib/config.charset: Update comments for Cygwin 1.7.
46825         * lib/localcharset.c: Likewise.
46827 2010-05-07  Jim Meyering  <meyering@redhat.com>
46829         init.sh: improve comments
46830         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
46831         . "${srcdir=.}/init.sh"; path_prepend_ .
46832         Add a note about path_prepend_ and the alternative of using
46833         TESTS_ENVIRONMENT.
46835 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46837         exclude: Unescape hashed patterns in wildcard mode.
46838         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
46839         to the hash list.
46840         * tests/test-exclude8.sh: New test case.
46841         * modules/exclude-tests: Add new test.
46843 2010-05-05  Eric Blake  <eblake@redhat.com>
46845         verify: automate tests
46846         * modules/verify-tests: New module.
46847         * tests/test-verify.sh: New file.
46848         * tests/test-verify.c: Guard each negative test with a unique id.
46849         Also avoid warning about unused left hand of comma expressions.
46851 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
46853         Further improvements to verify.h, suggested by Eric Blake.
46854         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
46855         the GL_* versions, to avoid collision with OpenGL.
46856         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
46857         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
46858         than testing merely whether it's defined.
46860         Modify verify.h to pacify gcc -Wredundant_decls.
46861         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
46862         These use the prefix "GL_" since they're likely to be useful elsewhere.
46863         We may need to break them out into a different .h file.
46864         (__COUNTER__): Define to 0 if the compiler doesn't support it.
46865         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
46866         of verify_function__.
46868 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46870         Tests for module pwrite.
46871         * modules/pwrite-tests: New file.
46872         * tests/test-pwrite.sh: New file.
46873         * tests/test-pwrite.c: New file.
46875         New module pwrite.
46876         * lib/unistd.in.h (pwrite): New declaration.
46877         * lib/pwrite.c: New file, from glibc with modifications.
46878         * m4/pwrite.m4: New file.
46879         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
46880         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
46881         REPLACE_PWRITE.
46882         * modules/pwrite: New file.
46883         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
46884         REPLACE_PWRITE.
46885         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
46886         * doc/posix-functions/pwrite.texi: Mention the new module.
46888 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46890         pread: Update documentation.
46891         * doc/posix-functions/pread.texi: Mention the 'pread' module.
46893 2010-05-04  Eric Blake  <eblake@redhat.com>
46895         docs: update cygwin progress
46896         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
46897         this bug.
46898         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
46899         Added in cygwin 1.7.2.
46900         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
46901         Likewise.
46902         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
46903         Likewise.
46904         * doc/glibc-functions/dup3.texi (dup3): Likewise.
46905         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
46906         * doc/glibc-functions/accept4.texi (accept4): Likewise.
46907         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
46908         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
46909         Mention nproc module.
46910         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
46911         bug in cygwin 1.7.5 addition.
46912         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
46913         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
46914         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
46915         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
46916         1.7.5.
46917         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
46918         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
46919         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
46920         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
46921         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
46922         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
46923         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
46924         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
46925         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
46926         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
46927         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
46928         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
46929         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
46930         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
46931         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
46932         Likewise.
46933         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
46934         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
46935         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
46936         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
46937         Likewise.
46938         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
46939         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
46940         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
46941         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
46942         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
46943         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
46944         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
46945         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
46946         Likewise.
46947         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
46948         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
46949         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
46950         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
46951         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
46952         Likewise.
46953         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
46954         Likewise.
46955         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
46956         Likewise.
46957         * doc/glibc-functions/xdrrec_endofrecord.texi
46958         (xdrrec_endofrecord): Likewise.
46959         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
46960         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
46961         Likewise.
46962         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
46963         Likewise.
46965 2010-05-04  Jim Meyering  <meyering@redhat.com>
46967         gendocs.sh: make its "-s FILE" option more useful
46968         * build-aux/gendocs.sh: When honoring the -s FILE option, update
46969         $PACKAGE to reflect the probably-different basename of "FILE".
46971 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46973         bootstrap: don't ignore download_po_files failure
46974         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
46975         failure.
46977 2010-05-03  Jim Meyering  <meyering@redhat.com>
46979         maint.mk: allow to pass options to gendocs.sh
46980         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
46981         (gendocs_options_): New overridable variable.
46983         gnu-web-doc-update: don't ignore configure or build failure
46984         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
46986         announce-gen: backslash-escape '@'s in --help output
46987         * build-aux/announce-gen: Fix syntax errors.
46989         maint.mk, announce-gen: allow project-specific announcement mail headers
46990         * top/maint.mk (translation_project_): Define default.
46991         (announcement_Cc_, announcement_mail_headers_): Likewise.
46992         (announcement): Invoke announce-gen with new --mail-headers option.
46993         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
46995         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
46996         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
46997         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
46998         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
46999         line in the "err2" output file when running "make check" in verbose
47000         mode (i.e., with set -x enabled).
47002 2010-05-03  Bruno Haible  <bruno@clisp.org>
47004         wctob: Fix for weird platforms.
47005         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
47006         argument value.
47008 2010-05-03  Jim Meyering  <meyering@redhat.com>
47010         maint.mk: prohibit unwarranted use of <strings.h>
47011         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
47012         strings.h in a file that does not also use strcasecmp, strncasecmp,
47013         ffs or ffsll.
47015         maint.mk: remove obsolete comments
47016         * top/maint.mk: Remove stale, commented-out rules.
47018 2010-05-02  Bruno Haible  <bruno@clisp.org>
47020         wcwidth: Declare also when it's aliased.
47021         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
47022         macro.
47024 2010-05-02  Bruno Haible  <bruno@clisp.org>
47026         Fix regression from 2010-04-25.
47027         * gnulib-tool (func_modules_transitive_closure): Check the status of
47028         all modules, not only of the tests that are of the form foo-tests where
47029         foo is a module.
47031 2010-05-02  Bruno Haible  <bruno@clisp.org>
47033         wctob: Work around nasty Cygwin 1.7.2 bug.
47034         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
47035         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
47037 2010-05-01  Bruno Haible  <bruno@clisp.org>
47039         fpurge: Sharper test.
47040         * tests/test-fpurge.c (main): Add one more ftell check.
47041         * modules/fpurge-tests (Depends-on): Add ftell.
47042         Suggested by Eric Blake.
47044 2010-05-01  Bruno Haible  <bruno@clisp.org>
47046         ftello: Another test.
47047         * tests/test-ftello3.c: New file.
47048         * modules/ftello-tests (Files): Add it.
47049         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
47050         MOSTLYCLEANFILES.
47052         ftell: Another test.
47053         * tests/test-ftell3.c: New file.
47054         * modules/ftell-tests (Files): Add it.
47055         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
47056         MOSTLYCLEANFILES.
47058 2010-05-01  Bruno Haible  <bruno@clisp.org>
47060         ftell, ftello: Work around Solaris bug.
47061         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
47062         * lib/ftello.c: Include stdio-impl.h.
47063         (ftello): On Solaris, when _IOWRT is set, compute the result without
47064         looking at _IOREAD.
47065         * modules/ftello (Files): Add lib/stdio-impl.h.
47066         * doc/posix-functions/ftell.texi: Mention Solaris bug.
47067         * doc/posix-functions/ftello.texi: Likewise.
47068         Reported by Eric Blake.
47070 2010-05-01  Bruno Haible  <bruno@clisp.org>
47072         freading: Adapt to special meaning of _IOREAD flag on Solaris.
47073         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
47074         the _IOWRT flag is also set.
47076 2010-05-01  Bruno Haible  <bruno@clisp.org>
47078         Fix doc about a HP-UX stdio bug.
47079         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
47080         * doc/posix-functions/ftello.texi: Likewise.
47082 2010-05-01  Bruno Haible  <bruno@clisp.org>
47084         lseek test: Fix failure on Solaris.
47085         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
47086         output.
47088 2010-04-30  Jim Meyering  <meyering@redhat.com>
47090         bootstrap: don't ignore failure to generate po*/Makevars
47091         * build-aux/bootstrap (with_gettext): Don't ignore failure
47092         to create po/Makevars or runtime-po/Makevars.
47094 2010-04-29  Eric Blake  <eblake@redhat.com>
47096         headers: relax license to LGPLv2+
47097         * modules/fcntl-h (License): Relax license.
47098         * modules/getopt-posix (License): Likewise.
47099         * modules/locale (License): Likewise.
47100         * modules/math (License): Likewise.
47101         * modules/pty (License): Likewise.
47102         * modules/sched (License): Likewise.
47103         * modules/search (License): Likewise.
47104         * modules/spawn (License): Likewise.
47105         * modules/stdarg (License): Likewise.
47106         * modules/sysexits (License): Likewise.
47108 2010-04-29  Jim Meyering  <meyering@redhat.com>
47110         inttypes: relax license to LGPLv2+
47111         * modules/inttypes (License): Relax license.
47113 2010-04-29  Simon Josefsson  <simon@josefsson.org>
47115         * top/maint.mk (indent): Run twice to produce idempotent results.
47117 2010-04-28  Bruno Haible  <bruno@clisp.org>
47119         getdate: Generate getdate.c in the source directory.
47120         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
47121         MOSTLYCLEANFILES.
47122         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
47124 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
47126         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
47127         is not declared as a const *; avoid warnings in that case.
47129 2010-04-28  Eric Blake  <eblake@redhat.com>
47131         canonicalize-lgpl: avoid compiler warning
47132         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
47133         declaration' / 'extraneous semicolon' warning with some compilers.
47134         Reported by Andreas Gruenbacher.
47136 2010-04-28  Jim Meyering  <meyering@redhat.com>
47138         init.sh: ensure a more reliable exit status when exiting via trap
47139         * tests/init.sh (setup_): Don't rely on $? in signal handler.
47140         Inspired by patches from Dmitry V. Levin.
47141         Also trap on signal 3 (SIGQUIT).
47143 2010-04-27  Bruno Haible  <bruno@clisp.org>
47145         Update doc about utimes().
47146         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
47147         'utimens' module.
47148         Reported by Andreas Gruenbacher <agruen@suse.de>.
47150 2010-04-27  Eric Blake  <eblake@redhat.com>
47152         full-read, full-write: relax license
47153         * modules/full-read (License): Drop to LGPLv2+.
47154         * modules/full-write (License): Likewise.
47155         * modules/safe-read (License): Likewise.
47156         * modules/safe-write (License): Likewise.
47158         pthread: mention library for linking
47159         * modules/pthread (Link): Mention $(LIB_PTHREAD).
47161 2010-04-27  Jim Meyering  <meyering@redhat.com>
47163         maint.mk: fix a bug introduced in last change
47164         * top/maint.mk (gl_assured_headers_): Now that all names are on
47165         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
47166         is not anchored to end of word, it should be adequate.
47168         maint.mk: avoid side-effect in latest syntax-check
47169         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
47170         to run commands via $(shell...), and hence to incur cost only when
47171         the new rule is actually run.
47173         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
47174         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
47175         and use that to create a regexp used to detect all #if HAVE_..._H uses.
47176         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
47177         (gl_assured_headers_, az_, AZ_): Define.
47178         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
47180 2010-04-26  Jim Meyering  <jim@meyering.net>
47181             Bruno Haible  <bruno@clisp.org>
47183         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
47184         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
47185         Prompted by an exchange with Gilles Espinasse.
47187 2010-04-26  Jim Meyering  <meyering@redhat.com>
47189         git-version-gen: aesthetic tweak
47190         * build-aux/git-version-gen: Use "$nl" rather than a literal,
47191         so that the command remains on a single line.
47193 2010-04-26  Eric Blake  <eblake@redhat.com>
47195         git-version-gen: allow use on EBCDIC hosts
47196         * build-aux/git-version-gen (dirty): Use literal rather than tying
47197         ourselves to ascii.
47198         Reported by Steve Goetze.
47200 2010-04-25  Bruno Haible  <bruno@clisp.org>
47202         netdb: Add support for GNULIB_POSIXCHECK.
47203         * lib/netdb.in.h: Include warn-on-use.h.
47204         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
47205         functions are used when GNULIB_POSIXCHECK is defined and the
47206         getaddrinfo module is not in use.
47207         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
47208         freeaddrinfo, gai_strerror, getnameinfo are declared.
47209         * modules/netdb (Depends-on): Add warn-on-use.
47210         (Makefile.am): Include warn-on-use.h in netdb.h.
47212 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
47214         build: avoid "make check" failure without .git/ directory
47215         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
47216         there is no .git/ directory.
47218 2010-04-25  Bruno Haible  <bruno@clisp.org>
47220         ptsname: Fix misuse of ttyname_r.
47221         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
47222         of errno.
47224 2010-04-25  Bruno Haible  <bruno@clisp.org>
47226         ttyname_r: Make it work on Solaris 10.
47227         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
47228         if the system function has the POSIX declaration. Test whether the
47229         function fails if the buffer is less than 128 bytes large.
47230         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
47231         system's ttyname_r function. Provide a reasonably large buffer.
47232         * modules/ttyname_r (Depends-on): Add extensions.
47233         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
47235 2010-04-25  Bruno Haible  <bruno@clisp.org>
47237         Use the 'extensions' module for some more functions on Solaris.
47238         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
47239         module.
47240         * doc/posix-functions/ctime_r.texi: Likewise.
47241         * doc/posix-functions/getgrgid_r.texi: Likewise.
47242         * doc/posix-functions/getgrnam_r.texi: Likewise.
47243         * doc/posix-functions/getpwnam_r.texi: Likewise.
47244         * doc/posix-functions/getpwuid_r.texi: Likewise.
47245         * doc/posix-functions/readdir_r.texi: Likewise.
47246         * doc/posix-functions/sigwait.texi: Likewise.
47247         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
47248         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
47250 2010-04-25  Bruno Haible  <bruno@clisp.org>
47252         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
47253         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
47254         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
47255         * lib/ttyname_r.c: Include <limits.h>.
47256         (ttyname_r): Define using the system's ttyname_r function, if it exists
47257         and not on Solaris.
47258         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
47259         set.
47260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
47261         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
47262         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
47263         Reported by Simon Josefsson.
47265 2010-04-25  Bruno Haible  <bruno@clisp.org>
47267         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
47268         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
47269         * doc/posix-functions/ctime_r.texi: Likewise.
47270         * doc/posix-functions/getgrgid_r.texi: Likewise.
47271         * doc/posix-functions/getgrnam_r.texi: Likewise.
47272         * doc/posix-functions/getlogin_r.texi: Likewise.
47273         * doc/posix-functions/getpwnam_r.texi: Likewise.
47274         * doc/posix-functions/getpwuid_r.texi: Likewise.
47275         * doc/posix-functions/readdir_r.texi: Likewise.
47276         * doc/posix-functions/sigwait.texi: Likewise.
47277         * doc/posix-functions/ttyname_r.texi: Likewise.
47278         Reported by Simon Josefsson.
47280 2010-04-25  Bruno Haible  <bruno@clisp.org>
47282         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
47283         * gnulib-tool (func_usage): Document that --with-*-tests options apply
47284         also to --create-testdir.
47285         (func_acceptable): Don't consider the status of *-tests modules here.
47286         (func_modules_transitive_closure): Consider it here, before including a
47287         test module.
47288         (func_import, func_create_testdir): Set inc_all_direct_tests,
47289         inc_all_indirect_tests.
47290         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
47291         --create-testdir and --create-megatestdir.
47293 2010-04-25  Bruno Haible  <bruno@clisp.org>
47295         gnulib-tool: Add --without-*-tests options.
47296         * gnulib-tool (func_usage): Document the --without-*-tests options.
47297         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
47298         excl_unportable_tests): New variables.
47299         Fail if they are specified with --import or --update.
47300         (func_acceptable): Respect the excl_*_tests variables.
47301         (func_import): Set the excl_*_tests variables to empty.
47303 2010-04-25  Simon Josefsson  <simon@josefsson.org>
47304             Bruno Haible  <bruno@clisp.org>
47306         Work around a MacOS X 10.4 bug with openpty.
47307         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
47308         * tests/test-openpty.c (main): Close the master side explicitly.
47310 2010-04-25  Bruno Haible  <bruno@clisp.org>
47312         strnlen: Fix a C++ test error on MacOS X and Solaris.
47313         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
47314         the function is not declared.
47315         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
47316         Simon Josefsson.
47318 2010-04-24  Bruno Haible  <bruno@clisp.org>
47320         Avoid a gcc warning.
47321         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
47322         of correct type for %08lx directive.
47323         Reported by Eric Blake.
47325 2010-04-24  Bruno Haible  <bruno@clisp.org>
47327         vasnprintf: Correct errno value in case of out-of-memory.
47328         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
47329         or sprintf. Use the errno value from SNPRINTF or sprintf.
47330         Reported by Ian Beckwith <ianb@erislabs.net>.
47332 2010-04-24  Bruno Haible  <bruno@clisp.org>
47334         ansi-c++-opt: Find correct compiler when cross-compiling.
47335         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
47336         AC_CHECK_PROGS.
47337         Reported by Simon Josefsson.
47339 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
47341         vc-list-files: Add support for subversion
47342         * build-aux/vc-list-files: Use "svn list" to generate the list of
47343         files controlled by subversion.
47345 2010-04-23  Jim Meyering  <meyering@redhat.com>
47347         vc-list-files tests: convert to use init.sh
47348         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
47349         path_prepend_.
47350         Use Exit, not exit.
47351         Use skip_ rather than open coding it.
47352         Remove trap set-up and compare definitions.
47353         * tests/test-vc-list-files-git.sh: Likewise.
47354         * modules/vc-list-files-tests (Files): Add tests/init.sh.
47356 2010-04-22  Simon Josefsson  <simon@josefsson.org>
47358         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
47359         backup files.
47361 2010-04-21  Simon Josefsson  <simon@josefsson.org>
47363         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
47365 2010-04-20  Eric Blake  <eblake@redhat.com>
47367         tests: be robust to ignored SIGPIPE
47368         * tests/test-select-in.sh: Consume all output.
47369         * tests/test-lseek.sh: Check correct exit status, while avoiding
47370         EPIPE.
47372 2010-04-20  Simon Josefsson  <simon@josefsson.org>
47373             Bruno Haible  <bruno@clisp.org>
47375         visibility: Don't use -fvisibility if it leads to a warning.
47376         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
47377         yes, don't pretend that visibility works if it leads to a warning.
47378         Reported by Mike Gran <spk121@yahoo.com>.
47380 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
47382         * build-aux/bootstrap: Use "git -h" for testing for supported options
47383         instead of "git --help".  The short-form option only shows a summary,
47384         and doesn't layout the full man page.  Grep for the full option name
47385         in the summary, too.
47387 2010-04-19  Bruno Haible  <bruno@clisp.org>
47389         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
47390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
47391         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
47392         mention of RELOCATABLE_STRIP.
47393         Reported by Sylvain Beucler <beuc@beuc.net>.
47395 2010-04-19  Bruno Haible  <bruno@clisp.org>
47397         * lib/diffseq.h: Fix typo in comment.
47398         Reported by Eric Blake.
47400 2010-04-19  Bruno Haible  <bruno@clisp.org>
47402         ioctl: Move autoconf macro to a .m4 file.
47403         * m4/ioctl.m4: New file, extracted from modules/ioctl.
47404         * modules/ioctl (Files): Add it.
47405         (configure.ac): Simply invoke gl_FUNC_IOCTL.
47406         Reported by Ian Beckwith <ianb@erislabs.net>.
47408 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
47409             Bruno Haible  <bruno@clisp.org>
47411         diffseq: Accommodate use-case with abstract arrays.
47412         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
47413         is not defined.
47414         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
47415         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
47417 2010-04-18  Bruno Haible  <bruno@clisp.org>
47419         * doc/posix-headers/stdbool.texi: More precise wording.
47421 2010-04-17  Jim Meyering  <meyering@redhat.com>
47423         maint.mk: use gnu-style indentation in an embedded perl script
47424         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
47425         Rename variable: s/two/last_two_bytes/
47427 2010-04-16  Eric Blake  <eblake@redhat.com>
47429         test-stdbool: skip test that fails with Solaris CC
47430         * tests/test-stdbool.c (f): Skip test that causes compilation
47431         error under buggy C++ compiler.
47432         * lib/stdbool.in.h: Document the limitation.
47433         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
47435         setenv: allow compilation with C++
47436         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
47437         register keyword.
47439         stdint: allow test to pass with C++
47440         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
47442         getopt: allow compilation with C++
47443         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
47444         struct.
47445         * lib/getopt.c (_getopt_internal_r): Use correct type.
47446         Reported by Dagobert Michelson, via Joel E. Denny.
47448 2010-04-16  Bruno Haible  <bruno@clisp.org>
47450         Override netdb.h always.
47451         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
47452         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
47453         Reported by Ludovic Courtès <ludo@gnu.org>.
47455 2010-04-15  Bruno Haible  <bruno@clisp.org>
47457         openpty: Fix mistake from 2010-03-21.
47458         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
47459         Reported by Simon Josefsson.
47461 2010-04-15  Eric Blake  <eblake@redhat.com>
47463         test-forkpty: fix expected signature
47464         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
47465         Reported by Simon Josefsson.
47467 2010-04-15  Jim Meyering  <meyering@redhat.com>
47469         maint.mk: texinfo_suffix_re_: correct the default regexp
47470         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
47472         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
47473         make it configurable via texinfo_suffix_re_.
47475 2010-04-14  Eric Blake  <eblake@redhat.com>
47477         strtok_r: relax license to LGPLv2+
47478         * modules/strtok_r (License): Relax license.
47479         Reported by Matthias Bolte.
47481 2010-04-14  Simon Josefsson  <simon@josefsson.org>
47483         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
47484         version 1.4.4 by default instead of requiring the libgcrypt
47485         version used during build.  This makes it possible to use the
47486         application with older but still binary compatible libgcrypt
47487         versions.
47489 2010-04-13  Eric Blake  <eblake@redhat.com>
47491         getopt-gnu: match recent glibc fixes and posix ruling
47492         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
47493         '+' handling, when requesting extensions.
47494         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
47495         'W;' handling.
47496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
47497         * doc/posix-functions/getopt.texi (getopt): Document this.
47498         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47499         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47500         Likewise.
47502         getopt: merge bug fixes from glibc
47503         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
47504         diagnostics.  Honor '+:' correctly.  Reject ';'.
47506         getopt-posix: detect MacOS bug
47507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
47508         optind when missing a required argument.
47509         * doc/posix-functions/getopt.texi (getopt): Document the bug.
47510         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47511         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47512         Likewise.
47514         getopt-posix: avoid spurious failure on Solaris
47515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
47516         an indicator that setting optind=1 is sufficient for reset.
47518         getopt-posix: avoid spurious failure on FreeBSD
47519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
47520         in POSIX mode, since the m4 test uses it.
47522         gnulib-tool: silence warning on BSD sh
47523         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
47525 2010-04-13  Jim Meyering  <meyering@redhat.com>
47527         doc: users.txt: GNU patch now uses gnulib
47528         * users.txt: Add patch.
47530 2010-04-12  Jim Meyering  <meyering@redhat.com>
47532         maint.mk: generate more concise timing data for syntax-check rules
47533         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
47534         " done" from each line that reports a syntax-check test duration.
47536 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
47538         git-version-gen: use "git update-index..." rather than "git status"
47539         * build-aux/git-version-gen: Use git update-index --refresh, not
47540         "git status".  With some versions of git, "git status" would fail
47541         to update the index and result in an unwarranted "-dirty" suffix.
47543 2010-04-11  Jim Meyering  <meyering@redhat.com>
47545         openat: correct formatting (no semantic change)
47546         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
47547         Suggested by Bruno Haible.
47549 2010-04-11  Bruno Haible  <bruno@clisp.org>
47551         Stricter declaration checking in testdirs.
47552         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47553         If for_tests is true, augment AM_CPPFLAGS to define
47554         GNULIB_STRICT_CHECKING.
47555         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
47556         GNULIB_STRICT_CHECKING is defined, verify that the function is
47557         declared.
47559 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
47560             Bruno Haible  <bruno@clisp.org>
47562         libunistring: Improve configure output.
47563         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
47564         Don't say "consider installing GNU libunistring" when checking again
47565         with libiconv.
47567 2010-04-11  Bruno Haible  <bruno@clisp.org>
47569         libunistring: Correct value of $LTLIBUNISTRING.
47570         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
47571         correct the value of $LTLIBUNISTRING.
47573 2010-04-11  Bruno Haible  <bruno@clisp.org>
47575         havelib: Add static libraries to LIBS in the right order.
47576         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
47577         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
47579 2010-04-11  Bruno Haible  <bruno@clisp.org>
47581         libunistring: Detect libunistring also when it depends on libiconv.
47582         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
47583         the second AC_LIB_HAVE_LINKFLAGS invocation.
47585 2010-04-11  James Youngman  <jay@gnu.org>
47587         close-stream: declare local scalars to be "const"
47588         * lib/close-stream.c (close_stream): Make boolean variables const
47589         to document the fact that we set but do not change them.
47591 2010-04-11  Bruno Haible  <bruno@clisp.org>
47593         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
47595 2010-04-11  Jim Meyering  <meyering@redhat.com>
47597         maint.mk: don't include dist-check.mk
47598         * top/maint.mk: Remove bogus include directive.
47600         maint.mk: improve empty-line-at-EOF check
47601         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
47602         solution, rather than tail+Perl-based one.  The latter would read
47603         a few kilobytes from the end of each file, and did not handle empty
47604         files properly.
47606         maint.mk: print the elapsed time for each syntax-check rule
47607         * top/maint.mk (sc_m_rules_): Save start time in a file.
47608         (sc_z_rules_): New rules: remove temp file and print elapsed time.
47609         (local-check): Interpose the .z rules
47611 2010-04-11  Jim Meyering  <meyering@redhat.com>
47613         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
47614         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
47615         empty file with one that ends in an empty line.
47617 2010-04-10  Bruno Haible  <bruno@clisp.org>
47619         mkdir: Make it work on mingw64.
47620         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
47621         * lib/mkdir.c: Update comment.
47622         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
47624 2010-04-10  Bruno Haible  <bruno@clisp.org>
47626         Don't override improved macro from newer autoconf.
47627         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
47628         autoconf >= 2.62.
47629         Reported by Joel E. Denny <jdenny@clemson.edu>.
47631 2010-04-10  Jim Meyering  <meyering@redhat.com>
47633         maint.mk: new syntax-check rule: prohibit empty lines at end of file
47634         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
47636         maint.mk: correct a diagnostic
47637         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
47638         in diagnostic; now use $prohibit.
47640 2010-04-10  Bruno Haible  <address@hidden>
47642         fchownat: Fix a C++ test error on Solaris 8.
47643         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
47644         the function does not exist.
47646 2010-04-10  Bruno Haible  <bruno@clisp.org>
47648         vasnprintf: Add more tests.
47649         * tests/test-vasnprintf-posix.c: Include <errno.h>.
47650         (test_function): Test converting an invalid wide string.
47652         vasnprintf: Correct handling of unconvertible wide string arguments.
47653         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
47654         VASNPRINTF.
47655         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
47656         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
47657         smaller than the expected maximum need for the directive. Set errno to
47658         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
47659         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
47660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
47661         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
47662         * modules/vasnprintf (Files): Add m4/printf.m4.
47663         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47665 2010-04-10  Bruno Haible  <bruno@clisp.org>
47667         vasnprintf: Fix crash in %ls directive.
47668         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
47669         string is passed as argument to %ls, with no precision and no width.
47670         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47672 2010-04-10  Bruno Haible  <bruno@clisp.org>
47674         vasnprintf: Fix multiple test failures on mingw.
47675         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
47676         _snprintf, or snwprintf, not _snwprintf.
47678 2010-04-10  Bruno Haible  <bruno@clisp.org>
47680         write: Fix a C++ test error on mingw.
47681         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
47683 2010-04-10  Bruno Haible  <bruno@clisp.org>
47685         vasnprintf test: Reduce code duplication.
47686         * tests/test-vasnprintf.c (test_function): New function, extracted from
47687         test_vasnprintf.
47688         (test_vasnprintf, test_asnprintf): Invoke it.
47690 2010-04-10  Bruno Haible  <bruno@clisp.org>
47692         strnlen: Fix warning in C++ mode on MacOS X.
47693         * lib/string.in.h (strnlen): Use the modern idiom.
47694         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
47695         defining strnlen as a macro already in <config.h>.
47696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47697         REPLACE_STRNLEN.
47698         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
47699         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47701 2010-04-08  James Youngman  <jay@gnu.org>
47703         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
47704         the example.
47706 2010-04-09  Jim Meyering  <meyering@redhat.com>
47708         maint.mk: print better diagnostic when there is no $(_hv_file)
47709         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
47710         announce that when $(_hv_file) (aka help-version) does not exist.
47712         init.sh: run tr in the "C" locale to avoid multibyte interpretation
47713         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
47714         not try to interpret its random input bytes.  Jarno Rajahalme reported
47715         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
47716         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
47717         (mktempd_): Likewise, just in case.
47719         ftruncate: add two years to projected module removal date: 2012
47720         * m4/ftruncate.m4: Adjust comments.
47722         ftruncate: mark module as obsolete; even MinGW provides it, now
47723         * modules/ftruncate (Status): Obsolete.
47724         (Notice): Say that.
47725         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
47726         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
47728 2010-04-08  Bruno Haible  <bruno@clisp.org>
47730         Fix side effects from tests-related modules.
47731         * modules/dprintf-posix (Comment): New section.
47732         * modules/fprintf-posix (Comment): Likewise.
47733         * modules/obstack-printf-posix (Comment): Likewise.
47734         * modules/printf-posix (Comment): Likewise.
47735         * modules/snprintf-posix (Comment): Likewise.
47736         * modules/sprintf-posix (Comment): Likewise.
47737         * modules/vasnprintf-posix (Comment): Likewise.
47738         * modules/vasprintf-posix (Comment): Likewise.
47739         * modules/vdprintf-posix (Comment): Likewise.
47740         * modules/vfprintf-posix (Comment): Likewise.
47741         * modules/vprintf-posix (Comment): Likewise.
47742         * modules/vsnprintf-posix (Comment): Likewise.
47743         * modules/vsprintf-posix (Comment): Likewise.
47744         * modules/xprintf-posix (Comment): Likewise.
47745         * modules/xvasprintf-posix (Comment): Likewise.
47746         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
47747         * modules/floorf-tests (Depends-on): Likewise.
47748         * modules/round-tests (Depends-on): Likewise.
47749         * modules/roundf-tests (Depends-on): Likewise.
47750         * modules/trunc-tests (Depends-on): Likewise.
47751         * modules/truncf-tests (Depends-on): Likewise.
47752         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
47753         'fprintf-posix' module is not present.
47754         * tests/test-floorf2.c (check): Likewise.
47755         * tests/test-trunc2.c (check): Likewise.
47756         * tests/test-truncf2.c (check): Likewise.
47757         * tests/test-round2.c (equal): Likewise.
47758         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47760 2010-04-07  Karl Berry  <karl@gnu.org>
47762         * config/srclist.txt,
47763         * config/srclistvars.sh,
47764         * config/srclist-update: doc fixes.
47766 2010-04-07  Jim Meyering  <meyering@redhat.com>
47768         maint.mk: add a PATH crosschecking syntax-check rule
47769         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
47770         Useful if you use a test like the one in help-version (coreutils,
47771         diffutils, grep, gzip) that ensures $(VERSION) matches what is
47772         printed by prog --version.
47774 2010-04-06  Bruno Haible  <bruno@clisp.org>
47776         Fix link error on mingw.
47777         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
47778         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
47780 2010-04-06  Bruno Haible  <bruno@clisp.org>
47782         Assume rmdir exists.
47783         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
47785 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
47787         doc: update users.txt
47788         * users.txt: Add gcal.
47790 2010-04-06  Jim Meyering  <meyering@redhat.com>
47792         init.sh: simply unset TMPDIR rather than risking env -i
47793         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
47794         although it probably works fine on all Unix-based systems, some
47795         systems (Cygwin?) cannot tolerate a totally cleared environment.
47796         Suggestion from Eric Blake.
47798 2010-04-06  Jim Meyering  <meyering@redhat.com>
47800         init.sh: portability fix: use env's POSIX-specified -i option not -u
47801         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
47802         than unportable env -u.  Solaris 5.11's env lacks support for -u.
47804 2010-04-05  Bruno Haible  <bruno@clisp.org>
47806         btowc: Work around Cygwin 1.7.2 bug.
47807         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
47808         does not map NUL to 0.
47809         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
47811 2010-04-05  Bruno Haible  <bruno@clisp.org>
47813         Make the multithread modules work on Cygwin 1.7.2.
47814         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
47815         imported symbols can be declared weak, so that it returns "no" on
47816         Cygwin 1.7.2.
47818 2010-04-05  Bruno Haible  <bruno@clisp.org>
47820         Use the module 'strncat'.
47821         * modules/unistr/u8-strncat (Depends-on): Add strncat.
47823         Tests for module 'strncat'.
47824         * modules/strncat-tests: New file.
47825         * tests/test-strncat.c: New file.
47827         New module 'strncat'.
47828         * lib/string.in.h (strncat): New declaration.
47829         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
47830         * m4/strncat.m4: New file, based on m4/memchr.m4.
47831         * modules/strncat: New file.
47832         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
47833         is declared.
47834         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
47835         REPLACE_STRNCAT.
47836         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
47837         REPLACE_STRNCAT.
47838         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
47839         module.
47840         * tests/test-string-c++.cc: Check signature of strncat.
47842 2010-04-05  Jim Meyering  <meyering@redhat.com>
47844         xstrtoumax-tests: convert to use init.sh
47845         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
47846         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47847         Use Exit, not exit.
47848         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47850         xstrtoimax-tests: convert to use init.sh
47851         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
47852         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47853         Use Exit, not exit.
47854         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47856 2010-04-05  Bruno Haible  <bruno@clisp.org>
47858         sys_socket: Avoid #define replacements in C++ mode.
47859         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
47860         warning to the function if possible, rather than #defining the symbol
47861         to a dysfunctional alias.
47863 2010-04-05  Bruno Haible  <bruno@clisp.org>
47865         fseeko: Fix C++ test error on mingw.
47866         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
47867         gl_FUNC_FSEEKO.
47868         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
47869         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
47870         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
47871         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
47873 2010-04-05  Bruno Haible  <bruno@clisp.org>
47875         duplocale: Improve test output.
47876         * tests/test-duplocale.c (main): Print reason for skipped test.
47878 2010-04-05  Bruno Haible  <bruno@clisp.org>
47880         Assume rmdir exists.
47881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
47882         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
47884 2010-04-05  Bruno Haible  <bruno@clisp.org>
47886         Fix link error on Solaris 8 with cc.
47887         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
47889 2010-04-05  Bruno Haible  <bruno@clisp.org>
47891         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47892         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
47894 2010-04-05  Bruno Haible  <bruno@clisp.org>
47896         vasprintf: Update documentation.
47897         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
47899 2010-04-05  Bruno Haible  <bruno@clisp.org>
47901         ptsname: Improve test.
47902         * tests/test-ptsname.c (main): Also try the various master names of BSD
47903         systems.
47905 2010-04-05  Bruno Haible  <bruno@clisp.org>
47907         memchr: Avoid a possible C++ test error.
47908         * lib/string.in.h (memchr): Provide declaration if function is missing.
47909         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
47910         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
47911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
47912         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
47914 2010-04-05  Bruno Haible  <bruno@clisp.org>
47916         strtok_r: Improve idiom.
47917         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
47918         AC_LIBOBJ is used.
47920 2010-04-05  Bruno Haible  <bruno@clisp.org>
47922         strdup: Improve idiom.
47923         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
47924         AC_LIBOBJ is used.
47925         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
47926         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
47927         when AC_LIBOBJ is used.
47929 2010-04-05  Bruno Haible  <bruno@clisp.org>
47931         mbsinit, mbrtowc, wcrtomb: Improve idioms.
47932         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
47933         don't set REPLACE_MBSINIT to 1.
47934         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
47935         don't set REPLACE_MBRTOWC to 1.
47936         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
47937         exist, don't set REPLACE_MBSRTOWCS to 1.
47938         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
47939         exist, don't set REPLACE_MBSNRTOWCS to 1.
47940         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
47941         don't set REPLACE_WCRTOMB to 1.
47942         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
47943         exist, don't set REPLACE_WCSRTOMBS to 1.
47944         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
47945         exist, don't set REPLACE_WCSNRTOMBS to 1.
47947 2010-04-05  Bruno Haible  <bruno@clisp.org>
47949         ldexpl: Improve idiom.
47950         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
47951         make sure to set HAVE_DECL_LDEXPL to 0.
47953 2010-04-05  Jim Meyering  <meyering@redhat.com>
47955         xstrtol-tests: convert to use init.sh
47956         * modules/xstrtol-tests (Files): Add tests/init.sh.
47957         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47958         Use Exit, not exit.
47959         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47961         atexit-tests: convert to use init.sh
47962         * modules/atexit-tests (Files): Add tests/init.sh.
47963         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47964         Use Exit, not exit.
47965         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47967         init.sh: fix typo
47968         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
47970         init.sh: make it easier for a test script to write to the tty, ...
47971         when using automake's parallel-tests mode.
47972         * tests/init.sh (stderr_fileno_): Define overridable variable.
47973         (warn_): New function, to use it.
47974         (fail_, skip_, framework_failure_): Use warn_.
47976 2010-04-04  Bruno Haible  <bruno@clisp.org>
47978         btowc: Avoid warning.
47979         * lib/btowc.c: Include <stdlib.h>.
47980         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
47982 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47983             Bruno Haible  <bruno@clisp.org>
47985         wchar: Port to NetBSD 1.5.
47986         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
47987         * lib/wctype.in.h (WEOF): Likewise.
47989 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47990             Bruno Haible  <bruno@clisp.org>
47992         Port extended stdio to NetBSD 1.5.
47993         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
47994         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
47995         older.
47997 2010-04-04  Bruno Haible  <bruno@clisp.org>
47999         string: Remove unused substitution.
48000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48001         HAVE_DECL_STRERROR.
48002         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
48004 2010-04-04  Bruno Haible  <bruno@clisp.org>
48006         strtod: Avoid a possible C++ test error.
48007         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
48008         set REPLACE_STRTOD.
48010 2010-04-04  Bruno Haible  <bruno@clisp.org>
48012         strerror: Update documentation.
48013         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
48015 2010-04-04  Bruno Haible  <bruno@clisp.org>
48017         stdio: Fix some C++ test errors on Solaris 8 with GCC.
48018         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
48019         _GL_CXXALIAS_SYS_CAST.
48021 2010-04-04  Bruno Haible  <bruno@clisp.org>
48023         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
48024         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
48025         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
48026         REPLACE_FREXPL to 1.
48027         * doc/posix-functions/frexpl.texi: Update documentation.
48029 2010-04-04  Bruno Haible  <bruno@clisp.org>
48031         math: Fix some C++ test errors on Solaris 8 and Cygwin.
48032         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
48034 2010-04-04  Bruno Haible  <bruno@clisp.org>
48036         Implement nanosleep for native Windows.
48037         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
48039 2010-04-04  Bruno Haible  <bruno@clisp.org>
48041         math: Fix some C++ test errors on Solaris 8.
48042         * lib/math.in.h (truncf, trunc): Use simpler idiom.
48044 2010-04-04  Bruno Haible  <bruno@clisp.org>
48046         math: Fix some C++ test errors on Cygwin.
48047         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
48048         truncl): Provide declaration if the system does not have it.
48049         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
48050         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
48051         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
48052         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
48053         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
48054         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
48055         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
48056         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
48057         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
48058         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
48059         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
48060         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
48061         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
48062         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
48063         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
48064         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
48065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
48066         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
48067         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
48068         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
48069         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
48070         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
48072 2010-04-04  Bruno Haible  <bruno@clisp.org>
48074         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
48075         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48076         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48077         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48078         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48079         * m4/isinf.m4 (gl_ISINF): Likewise.
48080         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48082 2010-04-04  Bruno Haible  <bruno@clisp.org>
48084         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
48085         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48087 2010-04-04  Bruno Haible  <bruno@clisp.org>
48089         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
48090         * modules/tmpfile (configure.ac): Update.
48092         tmpfile: Fix C++ test error on mingw.
48093         * lib/stdio.in.h (tmpfile): New declaration.
48094         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
48095         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
48096         * modules/tmpfile (Depends-on): Add stdio.
48097         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48098         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
48099         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
48100         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
48101         REPLACE_TMPFILE.
48102         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
48104 2010-04-04  Bruno Haible  <bruno@clisp.org>
48106         ioctl: Fix C++ test error on mingw.
48107         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
48108         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
48109         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
48111 2010-04-03  Bruno Haible  <bruno@clisp.org>
48113         wcwidth: Fix C++ test error on mingw.
48114         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
48115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
48116         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
48118 2010-04-03  Bruno Haible  <bruno@clisp.org>
48120         nanosleep: Fix C++ test error on mingw.
48121         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
48122         * lib/time.in.h (nanosleep): Use modern idiom.
48123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
48124         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
48125         REPLACE_NANOSLEEP to 1.
48126         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
48127         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
48129 2010-04-03  Bruno Haible  <bruno@clisp.org>
48131         strptime: Fix C++ test error on mingw.
48132         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
48133         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
48134         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
48135         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
48136         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
48137         not REPLACE_STRPTIME.
48138         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
48139         REPLACE_STRPTIME.
48141 2010-04-03  Bruno Haible  <bruno@clisp.org>
48143         timegm: Fix C++ test error on mingw.
48144         * lib/time.in.h (timegm): Use modern idiom.
48145         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
48146         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
48147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
48148         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
48150 2010-04-03  Bruno Haible  <bruno@clisp.org>
48152         timegm: Assume declaration if function exists.
48153         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
48154         if it exists. Don't clobber ac_cv_func_timegm.
48156 2010-04-03  Bruno Haible  <bruno@clisp.org>
48158         time_r: Fix C++ test error on mingw.
48159         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
48160         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
48161         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
48162         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
48163         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
48165 2010-04-03  Bruno Haible  <bruno@clisp.org>
48167         time_r: Minor updates.
48168         * modules/time_r (Description): Mention the provided functions.
48169         * lib/time_r.c: Don't include <string.h>.
48170         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
48171         * doc/posix-functions/localtime_r.texi: Likewise.
48173 2010-04-03  Bruno Haible  <bruno@clisp.org>
48175         time: Fix regression introduced on 2010-03-08.
48176         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
48177         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
48179 2010-04-03  Jim Meyering  <meyering@redhat.com>
48181         maint.mk: don't silently disable project-specific syntax-check rules
48182         * top/maint.mk (_prohibit_regexp): Define, to help people realize
48183         that they need to convert their project-specific syntax-check rules
48184         to use the new _sc_search_regexp.
48186 2010-04-03  Bruno Haible  <bruno@clisp.org>
48188         fchdir: Fix regression introduced on 2010-03-08.
48189         * lib/unistd.in.h (fchdir): Fix declaration.
48190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
48191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
48192         REPLACE_FCHDIR.
48193         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
48194         REPLACE_FCHDIR.
48196 2010-04-03  Bruno Haible  <bruno@clisp.org>
48198         getpagesize: Fix C++ test error on mingw.
48199         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
48200         system does not declare the function.
48201         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
48202         declared.
48203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48204         HAVE_DECL_GETPAGESIZE.
48205         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
48207 2010-04-03  Bruno Haible  <bruno@clisp.org>
48209         stdio: Make C++ tests work on mingw.
48210         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
48211         does not declare the function.
48213 2010-04-03  Bruno Haible  <bruno@clisp.org>
48215         ftello: Fix C++ test error on mingw.
48216         * lib/stdio.in.h (ftello): Use modern idiom.
48217         * lib/ftello.c (ftello): Renamed from rpl_ftello.
48218         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
48219         is missing and that it needs to be replaced.
48220         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
48221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
48222         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
48224 2010-04-03  Bruno Haible  <bruno@clisp.org>
48226         fseeko: Fix C++ test error on mingw.
48227         * lib/stdio.in.h (fseeko): Use modern idiom.
48228         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
48229         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
48230         is missing and that it needs to be replaced.
48231         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
48232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
48233         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
48235 2010-04-03  Bruno Haible  <bruno@clisp.org>
48237         mkstemp: Fix C++ test error on mingw.
48238         * lib/stdlib.in.h (mkstemp): Use modern idiom.
48239         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
48240         function is missing and that it needs to be replaced.
48241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
48242         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
48244 2010-04-03  Bruno Haible  <bruno@clisp.org>
48246         stpncpy: Fix C++ test error on mingw.
48247         * lib/string.in.h (stpncpy): Use modern idiom.
48248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
48249         function is missing and that it needs to be replaced.
48250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48251         REPLACE_STPNCPY.
48252         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
48254 2010-04-03  Bruno Haible  <bruno@clisp.org>
48256         sys_stat: Fix C++ test error on mingw.
48257         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
48258         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
48260 2010-04-03  Bruno Haible  <bruno@clisp.org>
48262         pty: Update doc.
48263         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
48265 2010-04-03  Bruno Haible  <bruno@clisp.org>
48267         unistd: Fix C++ test error on mingw.
48268         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
48270 2010-04-03  Bruno Haible  <bruno@clisp.org>
48272         Update doc regarding mingw.
48273         * doc/glibc-functions/openpty.texi: Update regarding mingw.
48274         * doc/glibc-functions/login_tty.texi: Likewise.
48275         * doc/glibc-functions/forkpty.texi: Likewise.
48277 2010-04-03  Bruno Haible  <bruno@clisp.org>
48279         stdlib: Avoid compilation failure of c-strtold on mingw.
48280         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
48282 2010-04-03  Bruno Haible  <bruno@clisp.org>
48284         locale: Make C++ tests work on Cygwin and mingw.
48285         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
48286         cannot provide the function.
48287         Reported by Simon Josefsson.
48289 2010-04-03  Bruno Haible  <bruno@clisp.org>
48291         localename: Port to MacOS X 10.6.
48292         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
48293         memory layout of the locales in MacOS X 10.6 as well.
48294         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
48296 2010-04-02  Bruno Haible  <bruno@clisp.org>
48298         gnulib-tool: Ensure that long-running tests are executed last.
48299         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
48300         running tests after the one for the other tests.
48302 2010-04-02  Bruno Haible  <bruno@clisp.org>
48304         gnulib-tool: Ensure the tests in the main directory are executed first.
48305         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
48306         start with the current directory.
48308 2010-04-02  Bruno Haible  <bruno@clisp.org>
48310         Tests for module 'havelib', moved here from GNU gettext.
48311         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
48312         modifications.
48313         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
48314         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
48315         with modifications.
48316         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
48317         modifications.
48318         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
48319         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
48320         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
48321         with modifications.
48322         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
48323         with modifications.
48324         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
48325         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
48326         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
48327         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
48328         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
48329         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
48330         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
48331         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
48332         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
48333         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
48334         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
48335         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
48336         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
48337         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
48338         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
48339         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
48340         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
48341         with modifications.
48342         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
48343         with modifications.
48344         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
48345         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
48346         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
48347         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
48348         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
48349         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
48350         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
48351         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
48352         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
48353         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
48354         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
48355         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
48356         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
48357         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
48358         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
48359         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
48360         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
48361         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
48362         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
48363         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
48364         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
48365         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
48366         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
48367         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
48368         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
48369         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
48370         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
48371         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
48372         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
48373         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
48374         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
48375         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
48376         * tests/havelib/rpathx/rpathx.c: New file, from
48377         gettext/autoconf-lib-link.
48378         * tests/havelib/rpathx/Makefile.am: New file, from
48379         gettext/autoconf-lib-link.
48380         * tests/havelib/rpathx/configure.ac: New file, from
48381         gettext/autoconf-lib-link with modifications.
48382         * tests/havelib/rpathy/rpathy.c: New file, from
48383         gettext/autoconf-lib-link.
48384         * tests/havelib/rpathy/Makefile.am: New file, from
48385         gettext/autoconf-lib-link.
48386         * tests/havelib/rpathy/configure.ac: New file, from
48387         gettext/autoconf-lib-link with modifications.
48388         * tests/havelib/rpathz/rpathz.c: New file, from
48389         gettext/autoconf-lib-link.
48390         * tests/havelib/rpathz/Makefile.am: New file, from
48391         gettext/autoconf-lib-link.
48392         * tests/havelib/rpathz/configure.ac: New file, from
48393         gettext/autoconf-lib-link with modifications.
48394         * tests/havelib/rpathlx/usex.c: New file, from
48395         gettext/autoconf-lib-link.
48396         * tests/havelib/rpathlx/Makefile.am: New file, from
48397         gettext/autoconf-lib-link.
48398         * tests/havelib/rpathlx/configure.ac: New file, from
48399         gettext/autoconf-lib-link with modifications.
48400         * tests/havelib/rpathly/usey.c: New file, from
48401         gettext/autoconf-lib-link.
48402         * tests/havelib/rpathly/Makefile.am: New file, from
48403         gettext/autoconf-lib-link.
48404         * tests/havelib/rpathly/configure.ac: New file, from
48405         gettext/autoconf-lib-link with modifications.
48406         * tests/havelib/rpathlz/usez.c: New file, from
48407         gettext/autoconf-lib-link.
48408         * tests/havelib/rpathlz/Makefile.am: New file, from
48409         gettext/autoconf-lib-link.
48410         * tests/havelib/rpathlz/configure.ac: New file, from
48411         gettext/autoconf-lib-link with modifications.
48412         * tests/havelib/rpathlyx/usey.c: New file, from
48413         gettext/autoconf-lib-link.
48414         * tests/havelib/rpathlyx/Makefile.am: New file, from
48415         gettext/autoconf-lib-link.
48416         * tests/havelib/rpathlyx/configure.ac: New file, from
48417         gettext/autoconf-lib-link with modifications.
48418         * tests/havelib/rpathlzyx/usez.c: New file, from
48419         gettext/autoconf-lib-link.
48420         * tests/havelib/rpathlzyx/Makefile.am: New file, from
48421         gettext/autoconf-lib-link.
48422         * tests/havelib/rpathlzyx/configure.ac: New file, from
48423         gettext/autoconf-lib-link with modifications.
48424         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
48425         with modifications.
48427 2010-04-02  Bruno Haible  <bruno@clisp.org>
48429         gnulib-tool: Create distributed built sources also for the tests.
48430         * gnulib-tool (func_create_testdir): Also generate distributed built
48431         sources in the tests directory.
48433 2010-04-02  Bruno Haible  <bruno@clisp.org>
48435         gnulib-tool: Obey user's environment variables.
48436         * gnulib-tool (func_create_testdir): When creating built sources,
48437         respect the environment variables for autoconf, automake, etc. given by
48438         the user.
48440 2010-04-02  Bruno Haible  <bruno@clisp.org>
48442         gnulib-tool: Provide the value of --m4-base to modules.
48443         * gnulib-tool (func_import, func_create_testdir): Emit a definition
48444         of gl_m4_base.
48446 2010-04-02  Eric Blake  <eblake@redhat.com>
48448         maint.mk: fix some fallout
48449         * NEWS: Document the incompatible change, and its effect on cfg.mk.
48450         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
48452 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
48454         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
48455         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
48456         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
48457         (sc_cast_of_x_alloc_return_value): Likewise.
48458         (sc_cast_of_alloca_return_value): Likewise.
48459         (sc_space_tab): Likewise.
48460         (sc_prohibit_atoi_atof): Likewise.
48461         (sc_prohibit_magic_number_exit): Likewise.
48462         (sc_error_exit_success): Likewise.
48463         (sc_file_system): Likewise.
48464         (sc_prohibit_have_config_h): Likewise.
48465         (sc_require_config_h): Likewise.
48466         (sc_prohibit_HAVE_MBRTOWC): Likewise.
48467         (sc_obsolete_symbols): Likewise.
48468         (sc_changelog): Likewise.
48469         (sc_program_name): Likewise.
48470         (sc_the_the): Likewise.
48471         (sc_trailing_blank): Likewise.
48472         (sc_two_space_separator_in_usage): Likewise.
48473         (sc_useless_cpp_parens): Likewise.
48474         (sc_GPL_version): Likewise.
48475         (sc_GFDL_version): Likewise.
48476         (sc_texinfo_acronym): Likewise.
48477         (sc_prohibit_cvs_keyword): Likewise.
48478         (sc_prohibit_stat_st_blocks): Likewise.
48479         (sc_prohibit_S_IS_definition): Likewise.
48480         (sc_redundant_const): Likewise.
48481         (sc_makefile_TAB_only_indentation): Likewise.
48482         (sc_m4_quote_check): Likewise.
48483         (sc_makefile_path_separator_check): Likewise.
48484         (sc_copyright_check): Likewise.
48485         (sc_Wundef_boolean): Likewise.
48486         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48488         maint.mk: match 0 or more whitespace-before-function-call '('
48489         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
48490         that have zero or two-and-more spaces between the function name
48491         and the open parenthesis.
48492         (sc_error_message_warn_fatal): Likewise.
48493         (sc_error_message_uppercase): Likewise.
48494         (sc_error_message_period): Likewise.
48496 2010-03-31  Eric Blake  <eblake@redhat.com>
48498         maint.mk: check for [ as well as test
48499         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
48500         Based on a libvirt report by Matthias Bolte.
48502         gnumakefile: don't squelch _version output
48503         * top/GNUmakefile (_version): Create one-shot dependency rather
48504         than using $(shell) when version must be regenerated.
48505         (_autoreconf): Run verbosely, by default.
48507         sys_time: avoid compiler warnings
48508         * lib/sys_time.in.h (includes): Ensure gcc pragma is
48509         unconditional, fixing regression from 2010-03-29.
48510         Reported by Simon Josefsson.
48512 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
48514         maint.mk: s/_header_without_use/_sc_header_without_use/
48515         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
48516         (sc_prohibit_assert_without_use): Use the new name.
48517         (sc_prohibit_close_stream_without_use): Likewise.
48518         (sc_prohibit_getopt_without_use): Likewise.
48519         (sc_prohibit_quotearg_without_use): Likewise.
48520         (sc_prohibit_quote_without_use): Likewise.
48521         (sc_prohibit_long_options_without_use): Likewise.
48522         (sc_prohibit_inttostr_without_use): Likewise.
48523         (sc_prohibit_ignore_value_without_use): Likewise.
48524         (sc_prohibit_error_without_use): Likewise.
48525         (sc_prohibit_xalloc_without_use): Likewise.
48526         (sc_prohibit_hash_without_use): Likewise.
48527         (sc_prohibit_hash_pjw_without_use): Likewise.
48528         (sc_prohibit_safe_read_without_use): Likewise.
48529         (sc_prohibit_argmatch_without_use): Likewise.
48530         (sc_prohibit_canonicalize_without_use): Likewise.
48531         (sc_prohibit_root_dev_ino_without_use): Likewise.
48532         (sc_prohibit_openat_without_use): Likewise.
48533         (sc_prohibit_c_ctype_without_use): Likewise.
48534         (sc_prohibit_signal_without_use): Likewise.
48535         (sc_prohibit_intprops_without_use): Likewise.
48537 2010-03-30  Eric Blake  <eblake@redhat.com>
48539         maint: improve module indicators
48540         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
48541         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
48542         columns, and avoid extra macro expansion.
48544         fdopendir: work around FreeBSD bug
48545         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
48546         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
48547         * modules/dirent (Makefile.am): Substitute it.
48548         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
48549         declaration.
48550         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
48551         fix.
48552         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48554 2010-03-29  Bruno Haible  <bruno@clisp.org>
48556         Emit #pragma system_header after the inclusion guard, not before.
48557         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
48558         guard that spans the entire file, not before. This enables an
48559         optimization in GCC's preprocessor.
48560         * lib/ctype.in.h: Likewise.
48561         * lib/dirent.in.h: Likewise.
48562         * lib/errno.in.h: Likewise.
48563         * lib/float.in.h: Likewise.
48564         * lib/getopt.in.h: Likewise.
48565         * lib/iconv.in.h: Likewise.
48566         * lib/langinfo.in.h: Likewise.
48567         * lib/locale.in.h: Likewise.
48568         * lib/math.in.h: Likewise.
48569         * lib/netdb.in.h: Likewise.
48570         * lib/netinet_in.in.h: Likewise.
48571         * lib/pty.in.h: Likewise.
48572         * lib/sched.in.h: Likewise.
48573         * lib/se-selinux.in.h: Likewise.
48574         * lib/search.in.h: Likewise.
48575         * lib/spawn.in.h: Likewise.
48576         * lib/stdarg.in.h: Likewise.
48577         * lib/stdint.in.h: Likewise.
48578         * lib/string.in.h: Likewise.
48579         * lib/strings.in.h: Likewise.
48580         * lib/sys_file.in.h: Likewise.
48581         * lib/sys_ioctl.in.h: Likewise.
48582         * lib/sys_time.in.h: Likewise.
48583         * lib/sys_times.in.h: Likewise.
48584         * lib/sys_utsname.in.h: Likewise.
48585         * lib/sys_wait.in.h: Likewise.
48586         * lib/sysexits.in.h: Likewise.
48587         * lib/wctype.in.h: Likewise.
48589 2010-03-28  James Youngman  <jay@gnu.org>
48591         save-cwd: don't leak a file descriptor when the caller execs.
48592         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
48593         saved file descriptor.
48594         * modules/save-cwd (Depends-on): Depend on cloexec.
48596 2010-03-29  Bruno Haible  <bruno@clisp.org>
48598         Remove vestiges of fts-lgpl module.
48599         * lib/fts_.h: Assume GNULIB_FTS is 1.
48600         * lib/fts.c: Likewise.
48601         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
48603 2010-03-28  Bruno Haible  <bruno@clisp.org>
48605         Fix definition of tests witness macro.
48606         * gnulib-tool (func_import): Fix definition of witness macro.
48608 2010-03-28  Bruno Haible  <bruno@clisp.org>
48610         Fix ioctl's protoype on glibc systems.
48611         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
48612         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
48613         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
48614         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
48615         signature. If not, arrange to replace the ioctl function.
48616         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48617         REPLACE_IOCTL.
48618         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
48619         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
48620         Reported by Ludovic Courtès <ludo@gnu.org>.
48622 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
48624         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
48625         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
48626         made it so grep -r --include=GLOB* ... did not work.
48628 2010-03-26  Jim Meyering  <meyering@redhat.com>
48629             Eric Blake  <eblake@redhat.com>
48631         maint.mk: prohibit use of test's -o and -a operators
48632         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
48634 2010-03-28  Bruno Haible  <bruno@clisp.org>
48636         Remove unused GNULIB_XYZ macro definitions.
48637         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
48638         invocation.
48640 2010-03-28  Bruno Haible  <bruno@clisp.org>
48642         Mark privileged tests modules.
48643         * modules/idpriv-drop-tests (Status): New section.
48644         * modules/idpriv-droptemp-tests (Status): New section.
48646 2010-03-28  Bruno Haible  <bruno@clisp.org>
48648         Split C++ tests into separate tests modules.
48649         * modules/dirent-c++-tests: New file, extracted from
48650         modules/dirent-tests.
48651         * modules/dirent-tests: Depend on it.
48652         * modules/fcntl-h-c++-tests: New file, extracted from
48653         modules/fcntl-h-tests.
48654         * modules/fcntl-h-tests: Depend on it.
48655         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
48656         * modules/glob-tests: Depend on it.
48657         * modules/iconv-h-c++-tests: New file, extracted from
48658         modules/iconv-h-tests.
48659         * modules/iconv-h-tests: Depend on it.
48660         * modules/langinfo-c++-tests: New file, extracted from
48661         modules/langinfo-tests.
48662         * modules/langinfo-tests: Depend on it.
48663         * modules/locale-c++-tests: New file, extracted from
48664         modules/locale-tests.
48665         * modules/locale-tests: Depend on it.
48666         * modules/math-c++-tests: New file, extracted from modules/math-tests.
48667         * modules/math-tests: Depend on it.
48668         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
48669         * modules/pty-tests: Depend on it.
48670         * modules/search-c++-tests: New file, extracted from
48671         modules/search-tests.
48672         * modules/search-tests: Depend on it.
48673         * modules/signal-c++-tests: New file, extracted from
48674         modules/signal-tests.
48675         * modules/signal-tests: Depend on it.
48676         * modules/spawn-c++-tests: New file, extracted from
48677         modules/spawn-tests.
48678         * modules/spawn-tests: Depend on it.
48679         * modules/stdio-c++-tests: New file, extracted from
48680         modules/stdio-tests.
48681         * modules/stdio-tests: Depend on it.
48682         * modules/stdlib-c++-tests: New file, extracted from
48683         modules/stdlib-tests.
48684         * modules/stdlib-tests: Depend on it.
48685         * modules/string-c++-tests: New file, extracted from
48686         modules/string-tests.
48687         * modules/string-tests: Depend on it.
48688         * modules/sys_ioctl-c++-tests: New file, extracted from
48689         modules/sys_ioctl-tests.
48690         * modules/sys_ioctl-tests: Depend on it.
48691         * modules/sys_select-c++-tests: New file, extracted from
48692         modules/sys_select-tests.
48693         * modules/sys_select-tests: Depend on it.
48694         * modules/sys_socket-c++-tests: New file, extracted from
48695         modules/sys_socket-tests.
48696         * modules/sys_socket-tests: Depend on it.
48697         * modules/sys_stat-c++-tests: New file, extracted from
48698         modules/sys_stat-tests.
48699         * modules/sys_stat-tests: Depend on it.
48700         * modules/sys_time-c++-tests: New file, extracted from
48701         modules/sys_time-tests.
48702         * modules/sys_time-tests: Depend on it.
48703         * modules/time-c++-tests: New file, extracted from modules/time-tests.
48704         * modules/time-tests: Depend on it.
48705         * modules/unistd-c++-tests: New file, extracted from
48706         modules/unistd-tests.
48707         * modules/unistd-tests: Depend on it.
48708         * modules/wchar-c++-tests: New file, extracted from
48709         modules/wchar-tests.
48710         * modules/wchar-tests: Depend on it.
48711         * modules/wctype-c++-tests: New file, extracted from
48712         modules/wctype-tests.
48713         * modules/wctype-tests: Depend on it.
48714         Reported by Simon Josefsson.
48716 2010-03-28  Bruno Haible  <bruno@clisp.org>
48718         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
48719         * gnulib-tool (func_exists_module): New function, extracted from
48720         func_verify_module.
48721         (func_verify_module): Use it.
48722         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
48723         'foo' only if 'foo' exists.
48724         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
48725         module.
48727 2010-03-28  Bruno Haible  <bruno@clisp.org>
48729         gnulib-tool: Add support for special categories of tests.
48730         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
48731         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
48732         (func_usage): Document them.
48733         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
48734         inc_unportable_tests, inc_all_tests): New variables.
48735         (func_acceptable): Consider these variables.
48736         (func_modules_transitive_closure): Make it work when the 'Status' field
48737         consists of multiple words.
48738         (func_import): Store and restore the values of inc_cxx_tests,
48739         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
48740         inc_all_tests in gnulib-comp.m4.
48741         (func_create_testdir): Set inc_all_tests to true.
48742         * doc/gnulib.texi (Extra tests modules): New section.
48743         Suggested by Jim Meyering.
48745 2010-03-28  Bruno Haible  <bruno@clisp.org>
48747         ansi-c++-opt: Allow turning off the C++ build by default.
48748         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
48749         gl_CXX_CHOICE_DEFAULT_NO is defined.
48750         Requested by Eric Blake.
48752 2010-03-28  Bruno Haible  <bruno@clisp.org>
48754         unistd: Avoid #define replacements in C++ mode.
48755         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
48756         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
48757         setsockopt, shutdown, select): In C++, attach a warning to the function
48758         if possible, rather than #defining the symbol to a dysfunctional alias.
48759         Reported by John W. Eaton <jwe@gnu.org>.
48761 2010-03-28  Bruno Haible  <bruno@clisp.org>
48763         Fix link errors on mingw.
48764         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
48765         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
48766         $(LIBSOCKET).
48767         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
48768         $(LIBSOCKET).
48770 2010-03-28  Bruno Haible  <bruno@clisp.org>
48771             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48773         lib-ignore: Determine different options for different compilers.
48774         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
48775         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
48776         Add comments.
48777         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
48778         * NEWS: Mention the change.
48780 2010-03-27  Bruno Haible  <bruno@clisp.org>
48782         Remove unused GNULIB_XYZ macro definitions.
48783         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
48784         * modules/fseek (configure.ac): Likewise.
48785         * modules/ioctl (configure.ac): Likewise.
48786         * modules/open (configure.ac): Likewise.
48787         * modules/stdlib-safer (configure.ac): Likewise.
48789 2010-03-27  Bruno Haible  <bruno@clisp.org>
48791         Add a remark about certain modules.
48792         * modules/malloc (Comment): New section.
48793         * modules/realloc (Comment): Likewise.
48794         * modules/sigpipe (Comment): Likewise.
48796 2010-03-27  Bruno Haible  <bruno@clisp.org>
48798         Resolve conflict between the two kinds of module indicators.
48799         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
48800         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
48801         * modules/canonicalize (configure.ac): Invoke
48802         gl_MODULE_INDICATOR_FOR_TESTS.
48803         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
48804         GNULIB_XYZ.
48805         * tests/test-dirent-c++.cc: Likewise.
48806         * tests/test-dirent-safer.c: Likewise.
48807         * tests/test-dup2.c: Likewise.
48808         * tests/test-fchdir.c: Likewise.
48809         * tests/test-fcntl-h-c++.cc: Likewise.
48810         * tests/test-getopt.c: Likewise.
48811         * tests/test-getopt.h: Likewise.
48812         * tests/test-langinfo-c++.cc: Likewise.
48813         * tests/test-locale-c++.cc: Likewise.
48814         * tests/test-math-c++.cc: Likewise.
48815         * tests/test-pty-c++.cc: Likewise.
48816         * tests/test-search-c++.cc: Likewise.
48817         * tests/test-signal-c++.cc: Likewise.
48818         * tests/test-spawn-c++.cc: Likewise.
48819         * tests/test-stdio-c++.cc: Likewise.
48820         * tests/test-stdlib-c++.cc: Likewise.
48821         * tests/test-string-c++.cc: Likewise.
48822         * tests/test-sys_ioctl-c++.cc: Likewise.
48823         * tests/test-sys_select-c++.cc: Likewise.
48824         * tests/test-sys_socket-c++.cc: Likewise.
48825         * tests/test-sys_stat-c++.cc: Likewise.
48826         * tests/test-sys_time-c++.cc: Likewise.
48827         * tests/test-time-c++.cc: Likewise.
48828         * tests/test-unistd-c++.cc: Likewise.
48829         * tests/test-wchar-c++.cc: Likewise.
48830         * tests/uninorm/test-u8-nfc.c: Likewise.
48831         * tests/uninorm/test-u8-nfd.c: Likewise.
48832         * tests/uninorm/test-u8-nfkc.c: Likewise.
48833         * tests/uninorm/test-u8-nfkd.c: Likewise.
48834         * tests/uninorm/test-u16-nfc.c: Likewise.
48835         * tests/uninorm/test-u16-nfd.c: Likewise.
48836         * tests/uninorm/test-u16-nfkc.c: Likewise.
48837         * tests/uninorm/test-u16-nfkd.c: Likewise.
48838         * tests/uninorm/test-u32-nfc.c: Likewise.
48839         * tests/uninorm/test-u32-nfc-big.c: Likewise.
48840         * tests/uninorm/test-u32-nfd.c: Likewise.
48841         * tests/uninorm/test-u32-nfd-big.c: Likewise.
48842         * tests/uninorm/test-u32-nfkc.c: Likewise.
48843         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
48844         * tests/uninorm/test-u32-nfkd.c: Likewise.
48845         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
48846         * tests/uninorm/test-u32-normalize-big.c: Likewise.
48848 2010-03-27  Bruno Haible  <bruno@clisp.org>
48850         Distinguish two kinds of module indicators.
48851         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
48852         gl_MODULE_INDICATOR.
48853         (gl_MODULE_INDICATOR): New macro.
48854         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48855         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
48856         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48857         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48858         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48859         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48860         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48861         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48862         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48863         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48864         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48865         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48867         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48868         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48869         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48870         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48871         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48872         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48873         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48874         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48875         * modules/cloexec (configure.ac): Likewise.
48876         * modules/getopt-gnu (configure.ac): Likewise.
48877         * modules/uninorm/u8-normalize (configure.ac): Likewise.
48878         * modules/uninorm/u16-normalize (configure.ac): Likewise.
48879         * modules/uninorm/u32-normalize (configure.ac): Likewise.
48880         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
48882 2010-03-27  Bruno Haible  <bruno@clisp.org>
48884         New module description field 'Comment'.
48885         * gnulib-tool: New option --extract-comment.
48886         (func_usage): Document it.
48887         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
48888         (func_get_comment): New function.
48889         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
48891 2010-03-27  Bruno Haible  <bruno@clisp.org>
48893         Addendum to 2010-02-07 commit.
48894         * gnulib-tool (func_usage): Document --extract-applicability option.
48896 2010-03-27  Bruno Haible  <bruno@clisp.org>
48898         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
48899         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
48900         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
48901         rather than link errors.
48903 2010-03-27  Bruno Haible  <bruno@clisp.org>
48905         Avoid side effects from tests-related modules on the compilation of lib.
48906         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
48907         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
48908         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
48909         parameter. Emit into AM_CPPFLAGS a definition of the designated C
48910         macro.
48911         (func_import): Define a witness macro. Assign it a value that depends
48912         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
48913         tests-related modules.
48914         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
48915         Reported by Jim Meyering.
48917 2010-03-27  Bruno Haible  <bruno@clisp.org>
48919         Factorize common .m4 code.
48920         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
48921         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
48922         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
48923         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
48924         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48925         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
48926         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
48927         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48928         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48929         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48930         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
48931         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48932         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48933         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48934         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48935         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
48936         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48937         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48939         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
48940         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
48941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48942         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48943         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48944         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48945         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48946         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
48947         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
48948         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
48949         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48950         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48951         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48953 2010-03-27  Bruno Haible  <bruno@clisp.org>
48955         Fix a compilation error on Cygwin with g++ >= 4.3.
48956         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
48957         if it is undefined or if we alias it to chmod.
48958         (lstat): Don't warn about the use of this function if it is undefined
48959         or if we alias it to stat.
48960         Reported by Simon Josefsson.
48962 2010-03-27  Bruno Haible  <bruno@clisp.org>
48964         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
48965         * modules/getlogin (configure.ac): Update.
48967         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
48968         * modules/getlogin_r (configure.ac): Update.
48970         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
48971         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
48972         * modules/inet_ntop (configure.ac): Update.
48974         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
48975         * modules/inet_pton (configure.ac): Update.
48977         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
48978         * modules/mbslen (configure.ac): Update.
48980         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
48981         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
48982         * modules/forkpty (configure.ac): Update.
48983         * modules/openpty (configure.ac): Update.
48985 2010-03-26  Simon Josefsson  <simon@josefsson.org>
48987         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
48988         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
48990 2010-03-25  Eric Blake  <eblake@redhat.com>
48992         maint: use pragma consistently across replacement headers
48993         * lib/ctype.in.h (system_header): Hoist for consistent placement.
48994         * lib/dirent.in.h (system_header): Likewise.
48995         * lib/errno.in.h (system_header): Likewise.
48996         * lib/float.in.h (system_header): Likewise.
48997         * lib/getopt.in.h (system_header): Likewise.
48998         * lib/iconv.in.h (system_header): Likewise.
48999         * lib/inttypes.in.h (system_header): Likewise.
49000         * lib/langinfo.in.h (system_header): Likewise.
49001         * lib/locale.in.h (system_header): Likewise.
49002         * lib/math.in.h (system_header): Likewise.
49003         * lib/netdb.in.h (system_header): Likewise.
49004         * lib/netinet_in.in.h (system_header): Likewise.
49005         * lib/pty.in.h (system_header): Likewise.
49006         * lib/sched.in.h (system_header): Likewise.
49007         * lib/se-selinux.in.h (system_header): Likewise.
49008         * lib/search.in.h (system_header): Likewise.
49009         * lib/spawn.in.h (system_header): Likewise.
49010         * lib/stdarg.in.h (system_header): Likewise.
49011         * lib/stdint.in.h (system_header): Likewise.
49012         * lib/string.in.h (system_header): Likewise.
49013         * lib/strings.in.h (system_header): Likewise.
49014         * lib/sys_file.in.h (system_header): Likewise.
49015         * lib/sys_ioctl.in.h (system_header): Likewise.
49016         * lib/sys_socket.in.h (system_header): Likewise.
49017         * lib/sys_times.in.h (system_header): Likewise.
49018         * lib/sys_utsname.in.h (system_header): Likewise.
49019         * lib/sys_wait.in.h (system_header): Likewise.
49020         * lib/sysexits.in.h (system_header): Likewise.
49021         * lib/unistd.in.h (system_header): Likewise.
49022         * lib/wctype.in.h (system_header): Likewise.
49024         arpa/inet: fix mingw compilation warning
49025         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
49026         Reported by Matthew Bolte.
49028 2010-03-25  Bruno Haible  <bruno@clisp.org>
49030         Avoid collision between gnulib wrapper and libintl wrapper.
49031         * lib/printf.c (printf): Don't define if a printf wrapper is already
49032         defined in intl/printf.c.
49033         Reported by Michel Boaventura <michel@michelboaventura.com>.
49035 2010-03-25  Bruno Haible  <bruno@clisp.org>
49037         Use ANSI C.
49038         * lib/readutmp.h (getutent): Provide ANSI C prototype.
49040 2010-03-25  Bruno Haible  <bruno@clisp.org>
49042         Minor formatting changes.
49043         * lib/acosl.c: Insert space before function argument list.
49044         * lib/argz.c: Likewise.
49045         * lib/asinl.c: Likewise.
49046         * lib/expl.c: Likewise.
49047         * lib/gen-uni-tables.c: Likewise.
49048         * lib/gettext.h: Likewise.
49049         * lib/glthread/lock.h: Likewise.
49050         * lib/tanl.c: Likewise.
49051         * lib/uniname/uniname.c: Likewise.
49052         * tests/test-idpriv-drop.c: Likewise.
49053         * tests/test-idpriv-droptemp.c: Likewise.
49054         * tests/test-lock.c: Likewise.
49055         * tests/test-tls.c: Likewise.
49056         * lib/argp-help.c: Insert space before function-like macro argument
49057         list.
49058         * lib/memcmp.c: Likewise.
49059         * tests/test-base64.c: Likewise.
49060         * lib/localename.c: Insert space before sizeof's argument list.
49061         * lib/safe-alloc.h: Likewise.
49062         * lib/file-set.h: Insert space before macro argument list.
49063         * tests/test-argp.c: Likewise.
49064         * lib/argp-namefrob.h: Insert space before function parameter list.
49065         * lib/getaddrinfo.c: Likewise.
49066         * lib/netdb.in.h: Likewise.
49067         * lib/parse-duration.h: Likewise.
49068         * lib/parse-duration.c: Likewise.
49069         * lib/poll.c: Likewise.
49070         * lib/select.c: Likewise.
49071         * lib/trim.h: Likewise.
49072         * tests/test-usleep.c: Likewise.
49073         * lib/ldexpl.c: Insert space before function parameter list and before
49074         function argument list.
49075         * lib/logl.c: Likewise.
49076         * lib/sqrtl.c: Likewise.
49077         * lib/trim.c: Likewise.
49078         * lib/cosl.c: Use GNU style indentation. Insert space before function
49079         argument list.
49080         * lib/sinl.c: Likewise.
49081         * lib/tsearch.c: Insert space after 'for'.
49082         Reported by Jim Meyering.
49084 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
49086         * maint.mk (sc_Wundef_boolean): Check for the presence of the
49087         config header before grepping, as it's not present before
49088         autoreconf/configure are run.  Reported by Simon Josefsson.
49090 2010-03-23  Bruno Haible  <bruno@clisp.org>
49092         pt_chown: Make it work with automake < 1.11.
49093         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
49094         Reported by Simon Josefsson.
49096 2010-03-23  Bruno Haible  <bruno@clisp.org>
49098         pt_chown: Don't depend on GPLed modules.
49099         * lib/pt_chown.c: Don't include idpriv.h.
49100         (main): Don't drop privileges.
49101         * modules/pt_chown (Depends-on): Remove idpriv-drop.
49102         Reported by Simon Josefsson.
49104 2010-03-24  Simon Josefsson  <simon@josefsson.org>
49106         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
49107         suggestions from karl@freefriends.org (Karl Berry).
49109 2010-03-22  Eric Blake  <eblake@redhat.com>
49111         gethostname: further tweaks
49112         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
49113         are overriding gethostname.
49114         Suggested by Bruno Haible.
49116 2010-03-21  Bruno Haible  <bruno@clisp.org>
49118         Fix comments.
49119         * lib/forkpty.c (rpl_forkpty): Fix comment.
49120         * lib/openpty.c (rpl_openpty): Likewise.
49121         Reported by Eric Blake.
49123 2010-03-22  Eric Blake  <eblake@redhat.com>
49125         gethostname: fix build on mingw
49126         * lib/unistd.in.h (includes): Work around fact that mingw
49127         <winsock2.h> re-includes <unistd.h>, by avoiding any
49128         redeclarations if we are being included by <winsock2.h>.
49129         Reported by Matthias Bolte.
49131 2010-03-21  Bruno Haible  <bruno@clisp.org>
49133         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
49134         * lib/forkpty.c (forkpty): New replacement function, from glibc with
49135         modifications.
49136         * lib/pty.in.h (forkpty): Update declaration. Add comments.
49137         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
49138         provide the replacement.
49139         * modules/forkpty (Depends-on): Add openpty, login_tty.
49140         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
49141         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
49142         * doc/glibc-functions/forkpty.texi: More supported platforms.
49143         * config/srclist.txt: Add forkpty.c (commented).
49145 2010-03-21  Bruno Haible  <bruno@clisp.org>
49147         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
49148         (Makefile.am): Verify that PTY_LIB is defined.
49150         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
49152 2010-03-21  Bruno Haible  <bruno@clisp.org>
49154         Tests for module 'login_tty'.
49155         * modules/login_tty-tests: New file.
49156         * tests/test-login_tty.c: New file.
49158         New module 'login_tty'.
49159         * lib/login_tty.c: New file.
49160         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
49161         * modules/login_tty: New file.
49162         * doc/glibc-functions/login_tty.texi: Mention the new module.
49164 2010-03-21  Bruno Haible  <bruno@clisp.org>
49166         login_tty: Documentation.
49167         * doc/glibc-functions/login_tty.texi: New file.
49168         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
49170 2010-03-21  Bruno Haible  <bruno@clisp.org>
49172         pty: Consistent macro naming.
49173         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
49174         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
49175         * modules/pty (configure.ac): Update.
49177 2010-03-21  Bruno Haible  <bruno@clisp.org>
49179         Tests for openpty: Make stricter.
49180         * tests/test-openpty.c (main): Add test of canonical processing and
49181         erase.
49182         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
49184         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
49185         * lib/openpty.c (openpty): New replacement function.
49186         * lib/pty.in.h: Include <termios.h>.
49187         (openpty): Update declaration. Add comments.
49188         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
49189         is not declared, arrange to provide the replacement. Check for _getpty
49190         and posix_openpt.
49191         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
49192         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
49193         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
49194         * modules/pty-tests (test_pty_c___LDADD): New variable.
49195         * doc/glibc-functions/openpty.texi: More supported platforms.
49197 2010-03-21  Bruno Haible  <bruno@clisp.org>
49199         setenv: Tweaks.
49200         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
49201         the test program.
49202         * doc/posix-functions/setenv.texi: Update platforms list.
49204 2010-03-21  Bruno Haible  <bruno@clisp.org>
49206         New module 'unlockpt'.
49207         * lib/unlockpt.c: New file, from glibc with modifications.
49208         * m4/unlockpt.m4: New file.
49209         * modules/unlockpt: New file.
49210         * lib/stdlib.in.h (unlockpt): New declaration.
49211         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
49212         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
49213         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
49214         HAVE_UNLOCKPT.
49215         * doc/posix-functions/unlockpt.texi: Mention the new module.
49216         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
49217         * config/srclist.txt: Add unlockpt.c (commented).
49219 2010-03-21  Jim Meyering  <meyering@redhat.com>
49221         maint.mk: prohibit inclusion of "intprops.h" without use
49222         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
49224 2010-03-21  Bruno Haible  <bruno@clisp.org>
49226         New module 'grantpt'.
49227         * lib/grantpt.c: New file, from glibc with modifications.
49228         * m4/grantpt.m4: New file.
49229         * modules/grantpt: New file.
49230         * lib/stdlib.in.h (grantpt): New declaration.
49231         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
49232         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
49233         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
49234         HAVE_GRANTPT.
49235         * doc/posix-functions/grantpt.texi: Mention the new module.
49236         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
49237         * config/srclist.txt: Add grantpt.c (commented).
49239 2010-03-21  Bruno Haible  <bruno@clisp.org>
49241         New module 'pt_chown'.
49242         * lib/pt_chown.c: New file, from glibc with modifications.
49243         * lib/pty-private.h: New file, from glibc with modifications.
49244         * modules/pt_chown: New file.
49245         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
49247 2010-03-21  Bruno Haible  <bruno@clisp.org>
49249         Tests for module 'ptsname'.
49250         * modules/ptsname-tests: New file.
49251         * tests/test-ptsname.c: New file.
49253         New module 'ptsname'.
49254         * lib/ptsname.c: New file, from glibc with modifications.
49255         * m4/ptsname.m4: New file.
49256         * modules/ptsname: New file.
49257         * lib/stdlib.in.h (ptsname): New declaration.
49258         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
49259         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
49260         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
49261         HAVE_PTSNAME.
49262         * doc/posix-functions/ptsname.texi: Mention the new module.
49263         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
49264         * config/srclist.txt: Add ptsname.c (commented).
49266 2010-03-21  Bruno Haible  <bruno@clisp.org>
49268         Tests for module 'ttyname_r'.
49269         * modules/ttyname_r-tests: New file.
49270         * tests/test-ttyname_r.c: New file.
49272         New module 'ttyname_r'.
49273         * lib/ttyname_r.c: New file.
49274         * m4/ttyname_r.m4: New file.
49275         * modules/ttyname_r: New file.
49276         * lib/unistd.in.h (ttyname_r): New declaration.
49277         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
49278         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
49279         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
49280         HAVE_TTYNAME_R.
49281         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
49282         * doc/posix-functions/ttyname_r.texi: Mention the new module.
49284 2010-03-20  Bruno Haible  <bruno@clisp.org>
49286         signal: Undefine macro definitions in C++ mode.
49287         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
49288         sigfillset): Undefine macro definitions from the system header in C++
49289         mode.
49290         Reported by John W. Eaton <jwe@gnu.org>.
49292 2010-03-20  Bruno Haible  <bruno@clisp.org>
49294         Ensure no #include statements inside extern "C" { ... }.
49295         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
49296         contain #include statements.
49297         * lib/time.in.h: Likewise.
49299 2010-03-20  Bruno Haible  <bruno@clisp.org>
49301         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
49302         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
49303         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
49304         Reported by John W. Eaton <jwe@gnu.org>.
49306 2010-03-20  Bruno Haible  <bruno@clisp.org>
49308         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
49309         Reported by Jim Meyering.
49311 2010-03-20  Bruno Haible  <bruno@clisp.org>
49313         pipe: Set errno upon failure.
49314         * lib/pipe.h: Specify that when -1 is returned, errno is set.
49315         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
49316         errno value in error message.
49318 2010-03-20  Bruno Haible  <bruno@clisp.org>
49319             Jim Meyering  <meyering@redhat.com>
49321         lchown: Avoid "unused variable" warning.
49322         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
49324 2010-03-20  Bruno Haible  <bruno@clisp.org>
49326         Work around unlink() bug on MacOS X 10.5.6.
49327         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
49328         attempting to unlink a parent directory.
49329         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
49330         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
49331         activate for the replacement function.
49332         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
49334 2010-03-20  Bruno Haible  <bruno@clisp.org>
49336         Fix link errors on Solaris 8.
49337         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
49338         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
49340 2010-03-19  Jim Meyering  <meyering@redhat.com>
49342         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
49343         The _LIBC implementation of build_range_exp correctly honors the
49344         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
49345         However, the non-_LIBC implementation would ignore that syntax-bit
49346         flag and return REG_ERANGE unconditionally.
49347         This change makes it honor that flag.
49348         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
49349         Make two pointer parameters "const".
49350         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
49351         (parse_bracket_exp): Update caller.
49353         regex.m4: correct the reversed range endpoint ([b-a]) test
49354         * m4/regex.m4: When requiring that [b-a] evoke failure,
49355         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
49356         test pass once again for x86-based systems.
49358 2010-03-19  Bruno Haible  <bruno@clisp.org>
49360         scandir: Fix link error on Solaris 8.
49361         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
49362         macros.
49364 2010-03-19  Bruno Haible  <bruno@clisp.org>
49366         getusershell: Fix documentation.
49367         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
49368         module.
49369         * doc/glibc-functions/setusershell.texi: Likewise.
49371         getusershell: Provide declaration, missing on Solaris 9.
49372         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
49373         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
49374         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
49375         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
49376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49377         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
49378         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
49379         HAVE_GETUSERSHELL.
49380         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
49382 2010-03-19  Bruno Haible  <bruno@clisp.org>
49384         wctype: Provide iswblank function.
49385         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
49386         exists and is fine.
49387         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
49388         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
49389         * tests/test-wctype.c (main): Re-enable the iswblank tests.
49390         * doc/posix-functions/iswblank.texi: Update.
49392 2010-03-19  Bruno Haible  <bruno@clisp.org>
49394         Tests of module 'pty' in C++ mode.
49395         * modules/pty-tests: New file.
49396         * tests/test-pty-c++.cc: New file.
49397         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49399 2010-03-19  Eric Blake  <eblake@redhat.com>
49401         logb: fix documentation
49402         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
49403         1.5 declaration bug.
49405         forkpty, openpty: prefer glibc's const-safe prototype
49406         * lib/forkpty.c (rpl_forkpty): New file.
49407         * lib/openpty.c (rpl_openpty): Likewise.
49408         * modules/forkpty (Files): Distribute it.
49409         * modules/openpty (Files): Likewise.
49410         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
49411         check...
49412         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
49413         replacement for non-const BSD signature.
49414         * modules/pty (Makefile.am): Substitute witnesses.
49415         * lib/pty.in.h (forkpty, openpty): Declare replacements.
49416         * tests/test-forkpty.c: Update signature check.
49417         * tests/test-openpty.c: Likewise.
49418         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
49419         * doc/glibc-functions/openpty.texi (openpty): Likewise.
49421         forkpty, openpty: split functions into new modules
49422         * modules/pty (Makefile.am): Substitute new witnesses.
49423         (Libraries): Move library detection...
49424         * modules/forkpty: ...into new module.
49425         * modules/openpty: Another new module.
49426         * modules/pty-tests: Rename and split...
49427         * modules/forkpty-tests: ...to this...
49428         * modules/openpty-tests: ...and this.
49429         * tests/test-pty.c: Rename and split...
49430         * tests/test-forkpty.c: ...to this...
49431         * tests/test-openpty.c: ...and this.
49432         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
49433         (gl_PTY): Split library searching...
49434         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
49435         (gl_FORKPTY, gl_OPENPTY): New macros.
49436         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
49437         * NEWS: Mention the split.
49438         * MODULES.html.sh (Misc): Document the modules.
49439         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
49440         * doc/glibc-functions/openpty.texi (openpty): Likewise.
49442         pty: improve replacement header
49443         * lib/pty.in.h: New file.
49444         * modules/pty (Files): Ship it.
49445         (Makefile.am): Always build replacement.
49446         * m4/pty.m4: Rename...
49447         * m4/pty_h.m4: ...to this.
49448         (gl_PTY): Modernize setting of witness macros; update check of
49449         forkpty to take proper advantage of cache.
49450         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
49452         getopt: avoid compiler warning
49453         * lib/getopt.c (attribute_hidden): Remove unused macro.
49455 2010-03-18  Bruno Haible  <bruno@clisp.org>
49457         Fix link errors on Solaris 8.
49458         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
49459         * modules/search-tests (test_search_c___LDADD): Likewise.
49460         * modules/signal-tests (test_signal_c___LDADD): Likewise.
49461         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
49462         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
49463         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
49464         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
49465         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
49466         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
49468 2010-03-18  Bruno Haible  <bruno@clisp.org>
49470         Fix bug introduced on 2010-03-14.
49471         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
49472         (gl_SPAWN_H): Require it.
49473         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
49474         Reported by Simon Josefsson.
49476 2010-03-18  Bruno Haible  <bruno@clisp.org>
49478         Fix typo introduced on 2009-12-31.
49479         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
49480         posix_spawn_file_actions_adddup2.
49482 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
49483         and Eric Blake  <eblake@redhat.com>
49485         test-vc-list-files-git: make more robust
49486         * tests/test-vc-list-files-git.sh: Unset problematic environment
49487         variables.  Chain commands together.
49489 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
49491         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
49492         `AC_CHECK_DECL' invocation.
49494 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
49496         * lib/inttostr.c (inttostr): Make sure the invocation of verify
49497         appears before executable statements. Suggested by Petr Sumbera
49498         <Petr.Sumbera@Sun.COM>.
49500 2010-03-14  Bruno Haible  <bruno@clisp.org>
49502         * tests/test-flock.c (test_exclusive): Comment out a test that causes
49503         portability problems. Instead use a simpler test.
49504         (main): Check that invalid arguments are rejected only on Linux.
49506 2010-03-14  Bruno Haible  <bruno@clisp.org>
49508         Fix bug introduced on 2009-12-31.
49509         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
49510         gl_PREREQ_SYS_H_WINSOCK2 always.
49511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
49512         SYS_SOCKET_H variable.
49513         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
49514         Update comments.
49515         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
49516         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
49517         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49518         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49519         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49521 2010-03-14  Bruno Haible  <bruno@clisp.org>
49523         Fix values returned by sinl, cosl.
49524         * lib/trigl.h: Add specification comments.
49525         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
49526         that combines the values from the precomputed table with the values of
49527         the Chebyshev polynomials.
49529 2010-03-14  Bruno Haible  <bruno@clisp.org>
49531         Fix compilation error when modules 'posix_spawn[p]' are not used.
49532         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
49533         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
49535 2010-03-14  Bruno Haible  <bruno@clisp.org>
49537         Fix compilation error on mingw when module 'time_r' is not used.
49538         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
49539         is 1.
49540         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
49541         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49542         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
49543         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
49545 2010-03-14  Bruno Haible  <bruno@clisp.org>
49547         Fix compilation error with Sun C.
49548         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
49549         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
49550         instead of GCC specific ULONG_LONG_MAX.
49551         * lib/xstrtoll.c: Likewise.
49552         * lib/xstrtoull.c: Likewise.
49554 2010-03-13  Bruno Haible  <bruno@clisp.org>
49556         Allow the user to disable C++ code and tests.
49557         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
49558         (gl_PROG_ANSI_CXX): Require it.
49560 2010-03-13  Bruno Haible  <bruno@clisp.org>
49562         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
49563         cases.
49565 2010-03-13  Bruno Haible  <bruno@clisp.org>
49567         Test that gnulib does not break the standard C++ headers.
49568         * tests/test-locale-c++2.cc: New file.
49569         * modules/locale-tests (Files): Add it.
49570         (Makefile.am): Compile it for test-locale-c++.
49571         * tests/test-math-c++2.cc: New file.
49572         * modules/math-tests (Files): Add it.
49573         (Makefile.am): Compile it for test-math-c++.
49574         * tests/test-signal-c++2.cc: New file.
49575         * modules/signal-tests (Files): Add it.
49576         (Makefile.am): Compile it for test-signal-c++.
49577         * tests/test-stdio-c++2.cc: New file.
49578         * modules/stdio-tests (Files): Add it.
49579         (Makefile.am): Compile it for test-stdio-c++.
49580         * tests/test-stdlib-c++2.cc: New file.
49581         * modules/stdlib-tests (Files): Add it.
49582         (Makefile.am): Compile it for test-stdlib-c++.
49583         * tests/test-string-c++2.cc: New file.
49584         * modules/string-tests (Files): Add it.
49585         (Makefile.am): Compile it for test-string-c++.
49586         * tests/test-time-c++2.cc: New file.
49587         * modules/time-tests (Files): Add it.
49588         (Makefile.am): Compile it for test-time-c++.
49589         Reported by John W. Eaton <jwe@gnu.org>.
49591 2010-03-13  Bruno Haible  <bruno@clisp.org>
49593         * gnulib-tool (func_usage): Clarify which options are available for
49594         --create-testdir and --create-megatestdir.
49596 2010-03-13  Bruno Haible  <bruno@clisp.org>
49598         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
49599         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
49600         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
49601         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
49602         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
49603         when appropriate.
49604         Reported by Jim Meyering.
49606 2010-03-12  Simon Josefsson  <simon@josefsson.org>
49608         * gnulib-tool (func_import): Explain origin of code.
49610 2010-03-12  Bruno Haible  <bruno@clisp.org>
49612         Fix problem with automake's definition of CXXLINK.
49613         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
49614         Reported by Simon Josefsson and Ludovic Courtès.
49616 2010-03-12  Bruno Haible  <bruno@clisp.org>
49618         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
49619         stable releases.
49621 2010-03-11  Bruno Haible  <bruno@clisp.org>
49623         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
49624         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
49625         whether the system provides one variant or multiple variants of the
49626         function.
49627         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
49628         C++ compilers.
49629         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
49630         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
49631         Reported by Jim Meyering.
49633 2010-03-09  Simon Josefsson  <simon@josefsson.org>
49635         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
49637 2010-03-08  Bruno Haible  <bruno@clisp.org>
49639         gnulib-tool: Add support for --libtool in --create-testdir.
49640         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
49641         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
49643 2010-03-08  Eric Blake  <eblake@redhat.com>
49645         gnulib-tool.texi: mention possibility of git submodule
49646         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
49647         submodules.
49648         * doc/.gitignore: Ignore another generated file.
49650 2010-03-08  Karl Berry  <karl@gnu.org>
49652         * doc/gnulib-tool.texi (VCS Issues): Mention third option
49653         of committing gnulib files while skipping others.
49655 2010-03-07  Bruno Haible  <bruno@clisp.org>
49657         Tests of module 'wctype' in C++ mode.
49658         * tests/test-wctype-c++.cc: New file.
49659         * modules/wctype-tests (Files): Add it and tests/signature.h.
49660         (Depends-on): Add ansi-c++-opt.
49661         (Makefile.am): Arrange to compile and run test-wctype-c++.
49663         Tests of module 'wchar' in C++ mode.
49664         * tests/test-wchar-c++.cc: New file.
49665         * modules/wchar-tests (Files): Add it and tests/signature.h.
49666         (Depends-on): Add ansi-c++-opt.
49667         (Makefile.am): Arrange to compile and run test-wchar-c++.
49668         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
49669         gl_MODULE_INDICATOR.
49671         Tests of module 'unistd' in C++ mode.
49672         * tests/test-unistd-c++.cc: New file.
49673         * modules/unistd-tests (Files): Add it and tests/signature.h.
49674         (Depends-on): Add ansi-c++-opt.
49675         (Makefile.am): Arrange to compile and run test-unistd-c++.
49676         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
49677         gl_MODULE_INDICATOR.
49679         Tests of module 'time' in C++ mode.
49680         * tests/test-time-c++.cc: New file.
49681         * modules/time-tests (Files): Add it and tests/signature.h.
49682         (Depends-on): Add ansi-c++-opt.
49683         (Makefile.am): Arrange to compile and run test-time-c++.
49684         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49686         Tests of module 'sys_time' in C++ mode.
49687         * tests/test-sys_time-c++.cc: New file.
49688         * modules/sys_time-tests (Files): Add it and tests/signature.h.
49689         (Depends-on): Add ansi-c++-opt.
49690         (Makefile.am): Arrange to compile and run test-sys_time-c++.
49691         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
49692         gl_MODULE_INDICATOR.
49694         Tests of module 'sys_stat' in C++ mode.
49695         * tests/test-sys_stat-c++.cc: New file.
49696         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
49697         (Depends-on): Add ansi-c++-opt.
49698         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
49699         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
49700         gl_MODULE_INDICATOR.
49702         Tests of module 'sys_socket' in C++ mode.
49703         * tests/test-sys_socket-c++.cc: New file.
49704         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
49705         (Depends-on): Add ansi-c++-opt.
49706         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
49707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
49708         gl_MODULE_INDICATOR.
49710         Tests of module 'sys_select' in C++ mode.
49711         * tests/test-sys_select-c++.cc: New file.
49712         * modules/sys_select-tests (Files): Add it and tests/signature.h.
49713         (Depends-on): Add ansi-c++-opt.
49714         (Makefile.am): Arrange to compile and run test-sys_select-c++.
49715         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
49716         gl_MODULE_INDICATOR.
49718         Tests of module 'sys_ioctl' in C++ mode.
49719         * tests/test-sys_ioctl-c++.cc: New file.
49720         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
49721         (Depends-on): Add ansi-c++-opt.
49722         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
49723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
49724         gl_MODULE_INDICATOR.
49726         Tests of module 'string' in C++ mode.
49727         * tests/test-string-c++.cc: New file.
49728         * modules/string-tests (Files): Add it and tests/signature.h.
49729         (Depends-on): Add ansi-c++-opt.
49730         (Makefile.am): Arrange to compile and run test-string-c++.
49731         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
49732         gl_MODULE_INDICATOR.
49734         Tests of module 'stdlib' in C++ mode.
49735         * tests/test-stdlib-c++.cc: New file.
49736         * modules/stdlib-tests (Files): Add it and tests/signature.h.
49737         (Depends-on): Add ansi-c++-opt.
49738         (Makefile.am): Arrange to compile and run test-stdlib-c++.
49739         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
49740         gl_MODULE_INDICATOR.
49742         Tests of module 'stdio' in C++ mode.
49743         * tests/test-stdio-c++.cc: New file.
49744         * modules/stdio-tests (Files): Add it and tests/signature.h.
49745         (Depends-on): Add ansi-c++-opt.
49746         (Makefile.am): Arrange to compile and run test-stdio-c++.
49747         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
49748         gl_MODULE_INDICATOR.
49750         Tests of module 'spawn' in C++ mode.
49751         * tests/test-spawn-c++.cc: New file.
49752         * modules/spawn-tests (Files): Add it and tests/signature.h.
49753         (Depends-on): Add ansi-c++-opt.
49754         (Makefile.am): Arrange to compile and run test-spawn-c++.
49755         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
49756         gl_MODULE_INDICATOR.
49758         Tests of module 'signal' in C++ mode.
49759         * tests/test-signal-c++.cc: New file.
49760         * modules/signal-tests (Files): Add it and tests/signature.h.
49761         (Depends-on): Add ansi-c++-opt.
49762         (Makefile.am): Arrange to compile and run test-signal-c++.
49763         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
49764         gl_MODULE_INDICATOR.
49766         Tests of module 'search' in C++ mode.
49767         * tests/test-search-c++.cc: New file.
49768         * modules/search-tests (Files): Add it and tests/signature.h.
49769         (Depends-on): Add ansi-c++-opt.
49770         (Makefile.am): Arrange to compile and run test-search-c++.
49771         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
49772         gl_MODULE_INDICATOR.
49774         Tests of module 'math' in C++ mode.
49775         * tests/test-math-c++.cc: New file.
49776         * modules/math-tests (Files): Add it and tests/signature.h.
49777         (Depends-on): Add ansi-c++-opt.
49778         (Makefile.am): Arrange to compile and run test-math-c++.
49779         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49781         Tests of module 'locale' in C++ mode.
49782         * tests/test-locale-c++.cc: New file.
49783         * modules/locale-tests (Files): Add it and tests/signature.h.
49784         (Depends-on): Add ansi-c++-opt.
49785         (Makefile.am): Arrange to compile and run test-locale-c++.
49786         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
49787         gl_MODULE_INDICATOR.
49789         Tests of module 'langinfo' in C++ mode.
49790         * tests/test-langinfo-c++.cc: New file.
49791         * modules/langinfo-tests (Files): Add it and tests/signature.h.
49792         (Depends-on): Add ansi-c++-opt.
49793         (Makefile.am): Arrange to compile and run test-langinfo-c++.
49794         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
49795         gl_MODULE_INDICATOR.
49797         Tests of module 'iconv-h' in C++ mode.
49798         * tests/test-iconv-h-c++.cc: New file.
49799         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
49800         (Depends-on): Add ansi-c++-opt.
49801         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
49803         Tests of module 'glob' in C++ mode.
49804         * tests/test-glob-c++.cc: New file.
49805         * modules/glob-tests (Files): Add it.
49806         (Depends-on): Add ansi-c++-opt.
49807         (Makefile.am): Arrange to compile and run test-glob-c++.
49809         Tests of module 'fcntl-h' in C++ mode.
49810         * tests/test-fcntl-h-c++.cc: New file.
49811         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
49812         (Depends-on): Add ansi-c++-opt.
49813         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
49814         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
49815         gl_MODULE_INDICATOR.
49817         Tests of module 'dirent' in C++ mode.
49818         * tests/test-dirent-c++.cc: New file.
49819         * modules/dirent-tests (Files): Add it and tests/signature.h.
49820         (Depends-on): Add ansi-c++-opt.
49821         (Makefile.am): Arrange to compile and run test-dirent-c++.
49822         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
49823         gl_MODULE_INDICATOR.
49825         New module 'ansi-c++-opt'.
49826         * modules/ansi-c++-opt: New file.
49827         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
49829         Document C++ namespace mode.
49830         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
49832         wctype: Avoid #define replacements in C++ mode.
49833         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
49834         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
49835         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
49836         In C++, define a namespaced alias symbol.
49837         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
49838         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
49839         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
49840         rule.
49842         wchar: Avoid #define replacements in C++ mode.
49843         * lib/wchar.in.h: Include c++defs.h.
49844         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
49845         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
49846         symbol.
49847         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
49848         * modules/wchar (Depends-on): Add c++defs.
49849         (Makefile.am): Update wchar.h rule.
49851         unistd: Avoid #define replacements in C++ mode.
49852         * lib/unistd.in.h: Include c++defs.h.
49853         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
49854         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
49855         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
49856         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
49857         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
49858         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
49859         symbol.
49860         (environ): Update.
49861         * modules/unistd (Depends-on): Add c++defs.
49862         (Makefile.am): Update unistd.h rule.
49864         time: Avoid #define replacements in C++ mode.
49865         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
49866         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
49867         define a namespaced alias symbol.
49868         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
49869         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
49870         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
49871         * modules/time (Depends-on): Add c++defs, warn-on-use.
49872         (Makefile.am): Update time.h rule.
49873         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49874         * modules/nanosleep (configure.ac): Likewise.
49875         * modules/strptime (configure.ac): Likewise.
49876         * modules/timegm (configure.ac): Likewise.
49878         sys_time: Avoid #define replacements in C++ mode.
49879         * lib/sys_time.in.h: Include c++defs.h.
49880         (gettimeofday): In C++, define a namespaced alias symbol.
49881         * modules/sys_time (Depends-on): Add c++defs.
49882         (Makefile.am): Update sys/time.h rule.
49884         sys_stat: Avoid #define replacements in C++ mode.
49885         * lib/sys_stat.in.h: Include c++defs.h.
49886         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
49887         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
49888         namespaced alias symbol.
49889         In C++, define a namespaced alias symbol.
49890         * modules/sys_stat (Depends-on): Add c++defs.
49891         (Makefile.am): Update sys/stat.h rule.
49893         sys_socket: Avoid #define replacements in C++ mode.
49894         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
49895         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
49896         definitions also when the system has a <sys/socket.h>.
49897         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49898         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
49899         In C++, define a namespaced alias symbol.
49900         * modules/sys_socket (Depends-on): Add c++defs.
49901         (Makefile.am): Update sys/socket.h rule.
49903         sys_select: Avoid #define replacements in C++ mode.
49904         * lib/sys_select.in.h: Include c++defs.h. Enable the function
49905         definitions also when the system has a <sys/select.h>.
49906         (select): In C++, define a namespaced alias symbol.
49907         * modules/sys_select (Depends-on): Add c++defs.
49908         (Makefile.am): Update sys/select.h rule.
49910         sys_ioctl: Avoid #define replacements in C++ mode.
49911         * lib/sys_ioctl.in.h: Include c++defs.h.
49912         (ioctl): In C++, define a namespaced alias symbol.
49913         * modules/sys_ioctl (Depends-on): Add c++defs.
49914         (Makefile.am): Update sys/ioctl.h rule.
49916         string: Avoid #define replacements in C++ mode.
49917         * lib/string.in.h: Include c++defs.h.
49918         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
49919         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
49920         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
49921         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
49922         strsignal, strverscmp): In C++, define a namespaced alias symbol.
49923         * modules/string (Depends-on): Add c++defs.
49924         (Makefile.am): Update string.h rule.
49926         stdlib: Avoid #define replacements in C++ mode.
49927         * lib/stdlib.in.h: Include c++defs.h.
49928         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
49929         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
49930         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
49931         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
49932         symbol.
49933         * modules/stdlib (Depends-on): Add c++defs.
49934         (Makefile.am): Update stdlib.h rule.
49936         stdio: Avoid #define replacements in C++ mode.
49937         * lib/stdio.in.h: Include c++defs.h.
49938         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
49939         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
49940         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
49941         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
49942         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
49943         namespaced alias symbol.
49944         * modules/stdio (Depends-on): Add c++defs.
49945         (Makefile.am): Update stdio.h rule.
49947         spawn: Avoid #define replacements in C++ mode.
49948         * lib/spawn.in.h: Include c++defs.h.
49949         (posix_spawn, posix_spawnp, posix_spawnattr_init,
49950         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
49951         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
49952         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
49953         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
49954         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
49955         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
49956         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
49957         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
49958         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
49959         In C++, define a namespaced alias symbol.
49960         * modules/spawn (Depends-on): Add c++defs.
49961         (Makefile.am): Update spawn.h rule.
49963         signal: Avoid #define replacements in C++ mode.
49964         * lib/signal.in.h: Include c++defs.h.
49965         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
49966         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
49967         namespaced alias symbol.
49968         * modules/signal (Depends-on): Add c++defs.
49969         (Makefile.am): Update signal.h rule.
49971         search: Avoid #define replacements in C++ mode.
49972         * lib/search.in.h: Include c++defs.h.
49973         (_gl_search_compar_fn, _gl_search_action_fn): New types.
49974         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
49975         symbol.
49976         * modules/search (Depends-on): Add c++defs.
49977         (Makefile.am): Update search.h rule.
49979         math: Avoid #define replacements in C++ mode.
49980         * lib/math.in.h: Include c++defs.h.
49981         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
49982         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
49983         trunc, truncl): In C++, define a namespaced alias symbol.
49984         * modules/math (Depends-on): Add c++defs.
49985         (Makefile.am): Update math.h rule.
49987         locale: Avoid #define replacements in C++ mode.
49988         * lib/locale.in.h: Include c++defs.h.
49989         (duplocale): In C++, define a namespaced alias symbol.
49990         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
49991         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
49992         * modules/locale (Depends-on): Add c++defs.
49993         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
49995         langinfo: Avoid #define replacements in C++ mode.
49996         * lib/langinfo.in.h: Include c++defs.h.
49997         (nl_langinfo): In C++, define a namespaced alias symbol.
49998         * modules/langinfo (Depends-on): Add c++defs.
49999         (Makefile.am): Update langinfo.h rule.
50001         iconv-h: Avoid #define replacements in C++ mode.
50002         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
50003         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
50004         symbol.
50005         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50006         whenever iconv is present.
50007         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
50008         (Makefile.am): Update iconv.h rule.
50010         glob: Avoid #define replacements in C++ mode.
50011         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
50012         (_gl_glob_errfunc_fn): New type.
50013         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
50014         symbol.
50015         * modules/glob (Depends-on): Add c++defs, warn-on-use.
50016         (Makefile.am): Update glob.h rule.
50018         fcntl-h: Avoid #define replacements in C++ mode.
50019         * lib/fcntl.in.h: Include c++defs.h.
50020         (fcntl, open, openat): In C++, define a namespaced alias symbol.
50021         * modules/fcntl-h (Depends-on): Add c++defs.
50022         (Makefile.am): Update fcntl.h rule.
50024         dirent: Avoid #define replacements in C++ mode.
50025         * lib/dirent.in.h: Include c++defs.h.
50026         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
50027         namespaced alias symbol.
50028         (dirfd): Update declaration.
50029         * modules/dirent (Depends-on): Add c++defs.
50030         (Makefile.am): Update dirent.h rule.
50032         ctype: Make it usable in C++ code.
50033         * lib/ctype.in.h: Include c++defs.h.
50034         (isblank): Declare as extern "C".
50035         * modules/ctype (Depends-on): Add c++defs.
50036         (Makefile.am): Update ctype.h rule.
50038         New module 'c++defs'.
50039         * modules/c++defs: New file.
50040         * build-aux/c++defs.h: New file.
50041         Reported by John W. Eaton <jwe@gnu.org>.
50043 2010-03-07  Bruno Haible  <bruno@clisp.org>
50045         logb: Provide missing declaration for Cygwin.
50046         * lib/math.in.h (logb): New declaration.
50047         * m4/logb.m4: New file.
50048         * modules/logb (Files): Add m4/logb.m4.
50049         (Depends-on): Add math.
50050         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
50051         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
50052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
50053         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
50054         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
50056 2010-03-07  Bruno Haible  <bruno@clisp.org>
50058         Fix test-cond link error.
50059         * tests/test-cond.c: Include <stdio.h>.
50061 2010-03-07  Bruno Haible  <bruno@clisp.org>
50063         Fix test-dirent-safer link error.
50064         * modules/dirent-safer-tests (Makefile.am): Define
50065         test_dirent_safer_LDADD.
50067 2010-03-07  Bruno Haible  <bruno@clisp.org>
50069         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
50070         among default module list.
50072 2010-03-07  Bruno Haible  <bruno@clisp.org>
50074         Fix link error on platforms with GNU libiconv.
50075         * modules/unistr/u8-strcoll-tests (Makefile): Define
50076         test_u8_strcoll_LDADD.
50077         * modules/unistr/u16-strcoll-tests (Makefile): Define
50078         test_u16_strcoll_LDADD.
50079         * modules/unistr/u32-strcoll-tests (Makefile): Define
50080         test_u32_strcoll_LDADD.
50082 2010-03-07  Bruno Haible  <bruno@clisp.org>
50084         Use POSIX declarations for socket functions.
50085         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
50086         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
50087         rpl_sendto): Change declaration to match POSIX.
50088         * lib/connect.c (rpl_connect): Likewise.
50089         * lib/accept.c (rpl_accept): Likewise.
50090         * lib/bind.c (rpl_bind): Likewise.
50091         * lib/getpeername.c (rpl_getpeername): Likewise.
50092         * lib/getsockname.c (rpl_getsockname): Likewise.
50093         * lib/recv.c (rpl_recv): Likewise.
50094         * lib/send.c (rpl_send): Likewise.
50095         * lib/recvfrom.c (rpl_recvfrom): Likewise.
50096         * lib/sendto.c (rpl_sendto): Likewise.
50098 2010-03-06  Bruno Haible  <bruno@clisp.org>
50100         Clarify access, euidaccess, faccessat.
50101         * doc/posix-functions/faccessat.texi: Mention security problem under
50102         "Other problems", not "Portability problems".
50103         * doc/posix-functions/access.texi: Likewise. Mention a related security
50104         problem.
50105         * doc/glibc-functions/euidaccess.texi: Mention security problems.
50106         * lib/euidaccess.c: Add comments about platforms.
50107         * lib/unistd.in.h (access, euidaccess): Add warnings.
50109 2010-03-07  Bruno Haible  <bruno@clisp.org>
50111         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
50112         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
50113         (POSIX_SPAWN_SETSCHEDULER): Likewise.
50114         (POSIX_SPAWN_USEVFORK): Define in a way that works when
50115         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
50116         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
50117         declare when POSIX_SPAWN_SETSCHEDULER is zero.
50118         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
50119         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
50120         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
50121         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
50122         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
50123         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
50124         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
50125         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
50126         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
50127         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
50128         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
50129         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
50130         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
50131         Likewise.
50132         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
50133         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
50134         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
50135         Likewise.
50136         * tests/test-spawn.c (main): Make it work when
50137         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
50139 2010-03-07  Bruno Haible  <bruno@clisp.org>
50141         Fix incorrect Makefile.am generation in German locale.
50142         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50143         Execute sed command with character range in C locale.
50145 2010-03-06  Bruno Haible  <bruno@clisp.org>
50147         Tests for module 'iconv-h'.
50148         * modules/iconv-h-tests: New file.
50149         * tests/test-iconv-h.c: New file.
50151         New module 'iconv-h'.
50152         * modules/iconv-h: New file.
50153         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
50154         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
50155         (configure.ac): Remove gl_ICONV_H.
50156         (Makefile.am): Remove rule for iconv.h.
50158 2010-03-06  Bruno Haible  <bruno@clisp.org>
50160         More consistent naming of *.m4 files.
50161         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
50162         * modules/wctype (Files): Update.
50164         More consistent naming of *.m4 files.
50165         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
50166         * modules/wchar (Files): Update.
50168 2010-03-06  Jim Meyering  <meyering@redhat.com>
50170         euidaccess: relax license to LGPLv2+
50171         * modules/euidaccess (License): Relax to LGPLv2+.
50173 2010-03-06  Bruno Haible  <bruno@clisp.org>
50175         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
50176         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
50177         (Makefile.am): Augment lib_SOURCES instead.
50179 2010-03-04  Jim Meyering  <meyering@redhat.com>
50181         utime: remove obsolete module
50182         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
50183         unnecessary for years, and has been marked as obsolete for 10 months.
50184         * modules/utime: Remove file.
50185         * lib/utime.c: Remove file.
50186         * m4/utime.m4: Remove file.
50187         * m4/utimes-null.m4: Remove file.
50188         * doc/posix-functions/utime.texi (utime): Remove reference to
50189         the module.  Move the sole "fixed by gnulib" item into the
50190         "problems not fixed by Gnulib" list.
50191         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
50193 2010-03-05  Simon Josefsson  <simon@josefsson.org>
50195         * modules/exit (License): Relax license to LGPLv2+.
50196         (Status): Mark as obsolete.
50197         * NEWS: Mention deprecated 'exit' module.
50198         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
50199         of now obsolete 'exit'.
50201 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50203         fts-lgpl: remove unused module
50204         * modules/fts-lgpl: Remove.
50205         * MODULES.html.sh (func_all_modules): Adjust.
50206         * check-module (find_included_lib_files): Adjust.
50207         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
50209 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
50211         copy-acl: enhance Solaris ACL error handling
50212         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
50213         * lib/set-mode-acl.c (qset_acl): Likewise.
50215 2010-03-02  Bruno Haible  <bruno@clisp.org>
50217         spawn: Don't override the system defined values on FreeBSD 8.
50218         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
50219         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
50220         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
50221         if HAVE_POSIX_SPAWN is 1.
50222         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
50224 2010-03-01  Bruno Haible  <bruno@clisp.org>
50226         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
50227         regarding Automake.
50229 2010-02-25  Bruno Haible  <bruno@clisp.org>
50231         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
50232         * gnulib-tool: Define 'echo' as a function only before the ksh alias
50233         setting, not afterwards.
50234         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
50236 2010-02-24  Eric Blake  <eblake@redhat.com>
50238         bootstrap, git-version-gen: use timestamp
50239         * build-aux/git-version-gen (scriptversion): Force UTC.
50240         * build-aux/bootstrap (scriptversion): New variable.
50242         bootstrap: allow older git
50243         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
50244         older than 1.6.4.  Requested by the libvirt project.
50246 2010-02-23  Eric Blake  <eblake@redhat.com>
50248         warn-on-use: work with old autoconf
50249         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
50250         AS_VAR semantics of autoconf 2.60.
50251         Reported by Bruno Haible.
50253         bootstrap: improve some comments
50254         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
50255         clarification comments.
50257         gettimeofday: provide correct function
50258         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
50259         when replacement is declared, otherwise provide gettimeofday.
50260         Reported by Michael Goffioul.
50262 2010-02-23  Jim Meyering  <meyering@redhat.com>
50264         lib-ignore: relax license to "unlimited", not LGPLv2+
50265         * modules/lib-ignore (License): Relax to "unlimited".
50267 2010-02-23  Jim Meyering  <meyering@redhat.com>
50269         lib-ignore: relax license to LGPLv2+
50270         * modules/lib-ignore (License): Relax to LGPLv2+.
50272 2010-02-22  Eric Blake  <eblake@redhat.com>
50274         lseek: avoid bash 3.2 broken pipe bug
50275         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
50276         warning from bash 3.2.
50277         Reported by Ben Pfaff, with analysis from Bruno Haible.
50279         bootstrap: support non-FSF copyright holder
50280         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
50281         bootstrap.conf override of COPYRIGHT_HOLDER.
50282         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
50284         bootstrap: interoperate with gettext 0.14.1
50285         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
50287         bootstrap: allow for alternate submodule location
50288         * build-aux/bootstrap (gnulib_path): New variable; use instead of
50289         hardcoding submodule location.
50290         (gnulib_mk): Allow direct use of Makefile.am.
50292         bootstrap: use GNULIB_SRCDIR to reduce disk usage
50293         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
50294         rather than reconfiguring where the submodule points.
50296         gettimeofday: restore support for platforms that lack function
50297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
50298         replacement if function is missing.
50299         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
50300         * modules/sys_time (Makefile.am): Substitute it.
50301         * lib/sys_time.in.h (gettimeofday): Check it.
50302         Reported by Michael Goffioul.
50304 2010-02-21  Bruno Haible  <bruno@clisp.org>
50306         * lib/stdio.in.h (obstack_printf): Fix typo.
50308 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
50310         vc-list-files: use bzr ls's -R option
50311         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
50312         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
50314 2010-02-21  Jim Meyering  <meyering@redhat.com>
50316         init.sh: fix EXEEXT shims to work also for names like test-prog
50317         * tests/init.sh: Re-exec a better shell, when needed.
50318         If the current shell lacks support for posix $(...), an init.sh-using
50319         test will now try to find a shell that supports that.  If EXEEXT is
50320         nonempty, we also require support for hyphen-in-alias-name and shell
50321         substitutions like ${var#glob}.  Failure to find such a shell results
50322         in a skipped test.
50324 2010-02-21  Bruno Haible  <bruno@clisp.org>
50326         Really work around "broken pipe" error message from bash 3.2.
50327         * gnulib-tool (func_reset_sigpipe): Remove function.
50328         (echo): In bash 3.2, define to a function that uses printf.
50329         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
50331 2010-02-20  Bruno Haible  <bruno@clisp.org>
50333         Restore support for automake 1.9.6 with autoconf 2.61.
50334         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
50335         Reported by James Youngman <jay@gnu.org>.
50337 2010-02-20  Bruno Haible  <bruno@clisp.org>
50339         Improve *printf warning condition.
50340         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
50341         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
50342         and the function is overridden due to SIGPIPE emulation.
50344 2010-02-20  Bruno Haible  <bruno@clisp.org>
50346         * lib/stdio.in.h: Tweak comments.
50348 2010-02-19  Bruno Haible  <bruno@clisp.org>
50350         Make it easier to find modules. New gnulib-tool option '--find'.
50351         * gnulib-tool: New option --find.
50352         (func_usage): Document it.
50353         (func_sanitize_modulelist): New function, extracted from
50354         func_all_modules.
50355         (func_all_modules): Invoke it.
50356         * doc/gnulib-tool.texi (Which modules?): New node.
50358 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
50360         * lib/sys_select.in.h: Provide select replacement even if
50361         sys/select.h exists on a system, for Interix.
50363 2010-02-18  Jim Meyering  <meyering@redhat.com>
50365         init.sh: don't use $(...) just yet
50366         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
50367         to accommodate e.g., Solaris' /bin/sh.
50369 2010-02-17  Bruno Haible  <bruno@clisp.org>
50371         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
50372         Reported by Ludovic Courtès <ludo@gnu.org>.
50374 2010-02-16  Simon Josefsson  <simon@josefsson.org>
50376         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
50377         linking with -lintl.
50379 2010-02-17  Simon Josefsson  <simon@josefsson.org>
50381         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
50382         if not provided by the system's netdb.h.  Reported by
50383         ludo@gnu.org (Ludovic Courtès).
50385 2010-02-15  Jim Meyering  <meyering@redhat.com>
50387         init.sh: improve portability and efficiency
50388         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
50389         "dummy" in a for loop.
50390         Use '!', not '^' to select the complement of a character set used
50391         in a "case" statement.
50392         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
50393         Suggestions from Eric Blake.
50395         init.sh: automatically accommodate programs with the .exe suffix
50396         Automatically arrange for an invocation of "prog" to execute the
50397         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
50398         may use the simpler "prog", yet still work when built on a system
50399         that requires specifying the added suffix.
50400         Do this by constructing a function named "prog" that invokes
50401         "prog.exe" for each .exe file in selected directories.
50402         * tests/init.sh (find_exe_basenames_): New function.
50403         (create_exe_shim_functions_): New function.
50404         (path_prepend_): Use it.
50406         maint.mk: mark syntax-check sc_*.m rules as .PHONY
50407         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
50408         "make -t syntax-check" doesn't create a ton of sc_*.m files.
50410 2010-02-14  Jim Meyering  <meyering@redhat.com>
50412         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
50413         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
50414         (sc_prohibit_hash_pjw_without_use): New rule.
50416         maint.mk: allow the default upload destination dir to be overridden
50417         * top/maint.mk (upload_dest_dir_): Define with a default that
50418         preserves the status quo.
50419         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
50420         Reported by Peter Simons.
50422         maint.mk: prohibit inclusion of "hash.h" without_use
50423         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
50425 2010-02-10  Jim Meyering  <meyering@redhat.com>
50427         maint.mk: prohibit inclusion of "ignore-value.h" without_use
50428         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
50430 2010-02-09  Eric Blake  <ebb9@byu.net>
50431         and Bruno Haible  <bruno@clisp.org>
50433         obstack-printf-posix: ensure declaration
50434         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
50435         extracted from gl_FUNC_OBSTACK_PRINTF.
50436         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
50437         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50438         Likewise.
50439         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
50440         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
50441         0.
50443 2010-02-08  Bruno Haible  <bruno@clisp.org>
50445         gnulib-tool: Fix typo in 2010-02-07 commit.
50446         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
50447         Reported by Eric Blake.
50449 2010-02-07  Bruno Haible  <bruno@clisp.org>
50451         gnulib-tool: Fix up caching patches.
50452         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
50453         option --no-cache. Use associative arrays when supported by the shell.
50454         (sed_comments): New variable.
50455         (modcache): Renamed from do_cache.
50456         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
50457         abbreviate unnecessarily.
50458         (have_associative): New variable.
50459         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
50460         way also for ksh and zsh.
50461         (func_init_sed_convert_to_cache_statements): New function, extracted
50462         from func_cache_lookup_module. Add support for associative arrays.
50463         Don't set the c_MODULE_cached variable here. Ignore all lines before
50464         the first field header. Remove only the final newline, not all trailing
50465         newlines. Support empty fields correctly. Limit the use of 'eval' to
50466         assignments.
50467         (func_get_description, func_get_status, func_get_notice,
50468         func_get_applicability, func_get_filelist, func_get_dependencies,
50469         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
50470         func_get_automake_snippet, func_get_include_directive,
50471         func_get_link_directive, func_get_license, func_get_maintainer):
50472         Update documentation. List the unoptimized code first. Add support for
50473         associative arrays. Limit the use of 'eval' to assignments.
50474         (func_get_applicability): Undo stylistic pessimisations.
50475         (func_get_automake_snippet, func_get_include_directive): Reduce code
50476         duplication.
50477         (func_modules_transitive_closure, func_modules_add_dummy,
50478         func_modules_notice, func_modules_to_filelist, func_add_file,
50479         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
50480         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
50481         func_create_testdir, func_create_megatestdir): Update documentation.
50483 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50485         * gnulib-tool (func_cache_lookup_module): Store the module name
50486         belonging to the cache variable; error out if two different
50487         module names map to the same cache variable name.
50489 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50491         gnulib-tool: Make caching optional.
50492         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
50493         Update matching short versions of --no-changelog.
50494         (func_usage): Update.
50495         (sed_extract_cache_prog): Renamed from ...
50496         (sed_extract_prog): ... this; revert to old extraction script.
50497         (func_get_description, func_get_status)
50498         (func_get_notice, func_get_applicability, func_get_filelist)
50499         (func_get_dependencies, func_get_autoconf_early_snippet)
50500         (func_get_autoconf_snippet, func_get_automake_snippet)
50501         (func_get_include_directive, func_get_link_directive)
50502         (func_get_license, func_get_maintainer): If $do_cache is false,
50503         use old, non-caching extraction scripts.
50504         Suggestion by Bruno Haible.
50506 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50508         gnulib-tool: cache module metainformation.
50509         * gnulib-tool (sed_extract_prog): Match newline before each
50510         header, and rewrite header to a shell variable suffix.
50511         (func_cache_var, func_cache_lookup_module): New functions,
50512         to turn a module name into a cache variable prefix, and to
50513         look up and cache module metainformation.
50514         (func_get_description, func_get_status)
50515         (func_get_notice, func_get_applicability, func_get_filelist)
50516         (func_get_dependencies, func_get_autoconf_early_snippet)
50517         (func_get_autoconf_snippet, func_get_automake_snippet)
50518         (func_get_include_directive, func_get_link_directive)
50519         (func_get_license, func_get_maintainer): Use
50520         func_cache_lookup_module.
50522 2010-02-07  Bruno Haible  <bruno@clisp.org>
50524         fnctl: Fix missing dependency.
50525         * modules/fcntl (Depends-on): Add getdtablesize.
50526         Reported by John W. Eaton <jwe@gnu.org>.
50528 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50530         Argp: fix recognition of short alias options.
50532         * lib/argp-parse.c (convert_options): Fix improper use of
50533         `|' between character values.
50534         * tests/test-argp.c (group1_option): New alias option
50535         --read (-r).
50536         (group1_parser): Special handling for 'r'.
50537         (test15): New test case.
50538         (test_fun): Add test15.
50539         * tests/test-argp-2.sh: Update expected --help and --usage
50540         outputs.
50542 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50544         * tests/test-argp.c: Fix indentation.
50546 2010-02-04  Eric Blake  <ebb9@byu.net>
50548         gettimeofday: expose type of second argument
50549         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
50550         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
50551         * tests/test-gettimeofday.c: Use it to silence warning.
50552         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
50553         the issue.
50555 2010-02-03  Jim Meyering  <meyering@redhat.com>
50557         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
50558         * lib/regcomp.c (TYPE_SIGNED): Define.
50559         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
50561         regcomp.c: avoid a new -Wshadow warning
50562         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
50564 2010-02-01  Jim Meyering  <meyering@redhat.com>
50566         removing useless parentheses in cpp #define directives
50567         For motivation, see commit c0221df4, "define STREQ(a,b)
50568         consistently, removing useless parentheses"
50569         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
50570         * lib/mountlist.c (MNT_IGNORE): Likewise.
50571         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
50573 2010-02-01  Eric Blake  <ebb9@byu.net>
50575         sys_time: use link-warning
50576         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
50577         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
50578         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
50579         * modules/sys_time (Depends-on): Add warn-on-use.
50580         (Makefile.am): Always build replacement.
50581         (configure.ac): Update substitutions.
50582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
50583         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
50584         bother with SYS_TIME_H.
50585         * modules/gettimeofday (configure.ac): Declare indicator.
50586         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
50587         in use.
50589         closein-tests: silence compiler warning
50590         * tests/test-closein.c (main): Ignore fread result.
50591         * modules/closein-tests (Depends-on): Add ignore-value.
50593         tests: silence warning about system return
50594         * tests/test-areadlink-with-size.c (main): Ignore system result.
50595         * tests/test-areadlink.c (main): Likewise.
50596         * tests/test-areadlinkat-with-size.c (main): Likewise.
50597         * tests/test-areadlinkat.c (main): Likewise.
50598         * tests/test-canonicalize-lgpl.c (main): Likewise.
50599         * tests/test-canonicalize.c (main): Likewise.
50600         * tests/test-chown.c (main): Likewise.
50601         * tests/test-fchownat.c (main): Likewise.
50602         * tests/test-fdutimensat.c (main): Likewise.
50603         * tests/test-fstatat.c (main): Likewise.
50604         * tests/test-futimens.c (main): Likewise.
50605         * tests/test-lchown.c (main): Likewise.
50606         * tests/test-link.c (main): Likewise.
50607         * tests/test-linkat.c (main): Likewise.
50608         * tests/test-lstat.c (main): Likewise.
50609         * tests/test-mkdir.c (main): Likewise.
50610         * tests/test-mkdirat.c (main): Likewise.
50611         * tests/test-mkfifo.c (main): Likewise.
50612         * tests/test-mkfifoat.c (main): Likewise.
50613         * tests/test-mknod.c (main): Likewise.
50614         * tests/test-readlink.c (main): Likewise.
50615         * tests/test-remove.c (main): Likewise.
50616         * tests/test-rename.c (main): Likewise.
50617         * tests/test-renameat.c (main): Likewise.
50618         * tests/test-rmdir.c (main): Likewise.
50619         * tests/test-symlink.c (main): Likewise.
50620         * tests/test-symlinkat.c (main): Likewise.
50621         * tests/test-unlink.c (main): Likewise.
50622         * tests/test-unlinkat.c (main): Likewise.
50623         * tests/test-utimens.c (main): Likewise.
50624         * tests/test-utimensat.c (main): Likewise.
50625         * modules/areadlink-tests (Depends-on): Add ignore-value.
50626         * modules/areadlink-with-size-tests (Depends-on): Likewise.
50627         * modules/areadlinkat-tests (Depends-on): Likewise.
50628         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
50629         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
50630         * modules/canonicalize-tests (Depends-on): Likewise.
50631         * modules/chown-tests (Depends-on): Likewise.
50632         * modules/fdutimensat-tests (Depends-on): Likewise.
50633         * modules/futimens-tests (Depends-on): Likewise.
50634         * modules/lchown-tests (Depends-on): Likewise.
50635         * modules/link-tests (Depends-on): Likewise.
50636         * modules/linkat-tests (Depends-on): Likewise.
50637         * modules/lstat-tests (Depends-on): Likewise.
50638         * modules/mkdir-tests (Depends-on): Likewise.
50639         * modules/mkfifo-tests (Depends-on): Likewise.
50640         * modules/mkfifoat-tests (Depends-on): Likewise.
50641         * modules/mknod-tests (Depends-on): Likewise.
50642         * modules/openat-tests (Depends-on): Likewise.
50643         * modules/readlink-tests (Depends-on): Likewise.
50644         * modules/remove-tests (Depends-on): Likewise.
50645         * modules/rename-tests (Depends-on): Likewise.
50646         * modules/renameat-tests (Depends-on): Likewise.
50647         * modules/rmdir-tests (Depends-on): Likewise.
50648         * modules/symlink-tests (Depends-on): Likewise.
50649         * modules/symlinkat-tests (Depends-on): Likewise.
50650         * modules/unlink-tests (Depends-on): Likewise.
50651         * modules/utimens-tests (Depends-on): Likewise.
50652         * modules/utimensat-tests (Depends-on): Likewise.
50654 2010-01-31  Bruno Haible  <bruno@clisp.org>
50656         Perform the same test for many <math.h> functions.
50657         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
50658         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
50659         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
50660         of gl_MATHFUNC.
50661         * modules/acos (configure.ac): Likewise.
50662         * modules/asin (configure.ac): Likewise.
50663         * modules/atan (configure.ac): Likewise.
50664         * modules/atan2 (configure.ac): Likewise.
50665         * modules/cbrt (configure.ac): Likewise.
50666         * modules/copysign (configure.ac): Likewise.
50667         * modules/cos (configure.ac): Likewise.
50668         * modules/cosh (configure.ac): Likewise.
50669         * modules/erf (configure.ac): Likewise.
50670         * modules/erfc (configure.ac): Likewise.
50671         * modules/exp (configure.ac): Likewise.
50672         * modules/fmod (configure.ac): Likewise.
50673         * modules/hypot (configure.ac): Likewise.
50674         * modules/j0 (configure.ac): Likewise.
50675         * modules/j1 (configure.ac): Likewise.
50676         * modules/jn (configure.ac): Likewise.
50677         * modules/lgamma (configure.ac): Likewise.
50678         * modules/log (configure.ac): Likewise.
50679         * modules/log10 (configure.ac): Likewise.
50680         * modules/log1p (configure.ac): Likewise.
50681         * modules/pow (configure.ac): Likewise.
50682         * modules/remainder (configure.ac): Likewise.
50683         * modules/sin (configure.ac): Likewise.
50684         * modules/sinh (configure.ac): Likewise.
50685         * modules/tan (configure.ac): Likewise.
50686         * modules/tanh (configure.ac): Likewise.
50687         * modules/y0 (configure.ac): Likewise.
50688         * modules/y1 (configure.ac): Likewise.
50689         * modules/yn (configure.ac): Likewise.
50690         Suggested by Paolo Bonzini.
50692 2010-01-31  Bruno Haible  <bruno@clisp.org>
50694         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
50696 2010-01-31  Bruno Haible  <bruno@clisp.org>
50698         Work around getdelim() bug on FreeBSD 8.0.
50699         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
50700         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
50701         not work.
50702         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
50703         is 1.
50704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
50705         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
50706         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
50707         a non-zero size.
50708         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
50710 2010-01-31  Bruno Haible  <bruno@clisp.org>
50712         Work around getline() bug on FreeBSD 8.0.
50713         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
50714         and a non-zero size.
50715         * tests/test-getline.c (main): Likewise.
50716         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
50717         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
50719 2010-01-28  Eric Blake  <ebb9@byu.net>
50721         regex: fix build failure
50722         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
50723         platforms.
50725 2010-01-28  Jim Meyering  <meyering@redhat.com>
50727         regex: do not ignore memory allocation failure
50728         * lib/regex_internal.c (create_cd_newstate): Detect
50729         re_node_set_init_copy failure.   Extracted from glibc commit
50730         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50732         regex: sync more white-space changes from libc
50733         * lib/regex_internal.c: White-space only changes.
50734         * lib/regexec.c: Likewise.
50736         regex: add many uses of __attribute_warn_unused_result__
50737         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
50738         * lib/regexec.c: Likewise.
50739         Extracted from a messy glibc commit.
50741         regcomp.c: spelling and merge-artifact from glibc
50742         * lib/regcomp.c: Merge remainder of glibc's
50743         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50745         regcomp.c: sync white-space changes from glibc
50746         * lib/regcomp.c: Merge to accommodate white space
50747         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50749         regcomp.c: do not ignore internal return values
50750         * lib/regcomp.c: Do not ignore internal return values.
50751         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
50752         but without its white-space changes and spelling fixes.
50754         regex_internal.h: define __attribute_warn_unused_result__
50755         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
50757         maint: add a syntax-check rule to check for vulnerable Makefile.in
50758         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
50760 2010-01-27  Jim Meyering  <meyering@redhat.com>
50762         ncftpput-ftp: clean up spaces
50763         * build-aux/ncftpput-ftp: Make Copyright line consistent.
50764         Remove trailing blanks.
50766 2010-01-27  Simon Josefsson  <simon@josefsson.org>
50768         * build-aux/git-version-gen: Fix copyright statement.
50769         * build-aux/gnupload: Likewise.
50770         * tests/test-arcfour.c: Likewise.
50771         * tests/test-arctwo.c: Likewise.
50772         * tests/test-count-one-bits.c: Likewise.
50773         * tests/test-crc.c: Likewise.
50774         * tests/test-des.c: Likewise.
50775         * tests/test-gc-arcfour.c: Likewise.
50776         * tests/test-gc-arctwo.c: Likewise.
50777         * tests/test-gc-des.c: Likewise.
50778         * tests/test-gc-hmac-md5.c: Likewise.
50779         * tests/test-gc-hmac-sha1.c: Likewise.
50780         * tests/test-gc-md2.c: Likewise.
50781         * tests/test-gc-md4.c: Likewise.
50782         * tests/test-gc-md5.c: Likewise.
50783         * tests/test-gc-pbkdf2-sha1.c: Likewise.
50784         * tests/test-gc-rijndael.c: Likewise.
50785         * tests/test-gc-sha1.c: Likewise.
50786         * tests/test-gc.c: Likewise.
50787         * tests/test-gethostname.c: Likewise.
50788         * tests/test-gettimeofday.c: Likewise.
50789         * tests/test-hash.c: Likewise.
50790         * tests/test-hmac-md5.c: Likewise.
50791         * tests/test-hmac-sha1.c: Likewise.
50792         * tests/test-md2.c: Likewise.
50793         * tests/test-md4.c: Likewise.
50794         * tests/test-md5.c: Likewise.
50795         * tests/test-memchr.c: Likewise.
50796         * tests/test-memchr2.c: Likewise.
50797         * tests/test-memcmp.c: Likewise.
50798         * tests/test-memmem.c: Likewise.
50799         * tests/test-memrchr.c: Likewise.
50800         * tests/test-rawmemchr.c: Likewise.
50801         * tests/test-read-file.c: Likewise.
50802         * tests/test-rijndael.c: Likewise.
50803         * tests/test-sockets.c: Likewise.
50804         * tests/test-strchrnul.c: Likewise.
50805         * tests/test-strstr.c: Likewise.
50806         * tests/test-strtod.c: Likewise.
50807         * build-aux/ncftpput-ftp: Likewise.
50809 2010-01-26  Eric Blake  <ebb9@byu.net>
50811         ignore-value: update recommended header name
50812         * modules/ignore-value (Include): Only use <> for headers that
50813         exist in glibc.
50815 2010-01-26  Jim Meyering  <meyering@redhat.com>
50817         test-userspec.c: avoid compiler warnings
50818         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
50819         and "initialization discards qualifiers..." warnings.
50820         Put the first "uid" in its own scope, and make char* members "const".
50822 2010-01-25  Bruno Haible  <bruno@clisp.org>
50824         gnulib-tool: Make warning diagnostics consistent.
50825         * gnulib-tool (func_warning): New function.
50826         Use it everywhere where gnulib-tool produces output to stderr and it is
50827         not a fatal error.
50829 2010-01-25  Bruno Haible  <bruno@clisp.org>
50831         Fix test dependencies.
50832         * modules/xstrtol-tests (Depends-on): Add inttypes.
50833         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
50835 2010-01-25  Pádraig Brady  <P@draigBrady.com>
50837         syntax-check: detect incorrect boolean macro values in config.h
50838         * modules/maintainer-makefile (configure.ac): Parameterize the location
50839         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
50840         The logic is from Eric Blake and the location indicated by Jim Meyering.
50841         Note the more natural CONFIG_HEADER name is prohibited by automake
50842         for backwards compatibility reasons.
50843         * top/maint.mk (sc_Wundef_boolean): New rule.
50845 2010-01-25  Jim Meyering  <meyering@redhat.com>
50847         bootstrap: detect MacOS 10.6's shasum, too
50848         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
50849         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
50851 2010-01-23  Jim Meyering  <meyering@redhat.com>
50853         xstrtoll: new module
50854         * modules/xstrtoll: New file.
50855         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
50856         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
50857         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
50858         ./configure fails if you use this module and lack "long long".
50859         * modules/xstrtoll-tests: New module.
50860         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
50861         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
50862         new init.sh-based test framework.
50864 2010-01-24  Bruno Haible  <bruno@clisp.org>
50866         Tests for module 'yn'.
50867         * modules/yn-tests: New file.
50868         * tests/test-yn.c: New file.
50870         Tests for module 'y1'.
50871         * modules/y1-tests: New file.
50872         * tests/test-y1.c: New file.
50874         Tests for module 'y0'.
50875         * modules/y0-tests: New file.
50876         * tests/test-y0.c: New file.
50878         Tests for module 'tanh'.
50879         * modules/tanh-tests: New file.
50880         * tests/test-tanh.c: New file.
50882         Tests for module 'tan'.
50883         * modules/tan-tests: New file.
50884         * tests/test-tan.c: New file.
50886         Tests for module 'sqrt'.
50887         * modules/sqrt-tests: New file.
50888         * tests/test-sqrt.c: New file.
50890         Tests for module 'sinh'.
50891         * modules/sinh-tests: New file.
50892         * tests/test-sinh.c: New file.
50894         Tests for module 'sin'.
50895         * modules/sin-tests: New file.
50896         * tests/test-sin.c: New file.
50898         Tests for module 'rint'.
50899         * modules/rint-tests: New file.
50900         * tests/test-rint.c: New file.
50902         Tests for module 'remainder'.
50903         * modules/remainder-tests: New file.
50904         * tests/test-remainder.c: New file.
50906         Tests for module 'pow'.
50907         * modules/pow-tests: New file.
50908         * tests/test-pow.c: New file.
50910         Tests for module 'nextafter'.
50911         * modules/nextafter-tests: New file.
50912         * tests/test-nextafter.c: New file.
50914         Tests for module 'modf'.
50915         * modules/modf-tests: New file.
50916         * tests/test-modf.c: New file.
50918         Tests for module 'logb'.
50919         * modules/logb-tests: New file.
50920         * tests/test-logb.c: New file.
50922         Tests for module 'log1p'.
50923         * modules/log1p-tests: New file.
50924         * tests/test-log1p.c: New file.
50926         Tests for module 'log10'.
50927         * modules/log10-tests: New file.
50928         * tests/test-log10.c: New file.
50930         Tests for module 'log'.
50931         * modules/log-tests: New file.
50932         * tests/test-log.c: New file.
50934         Tests for module 'lgamma'.
50935         * modules/lgamma-tests: New file.
50936         * tests/test-lgamma.c: New file.
50938         Tests for module 'ldexp'.
50939         * modules/ldexp-tests: New file.
50940         * tests/test-ldexp.c: New file.
50942         Tests for module 'jn'.
50943         * modules/jn-tests: New file.
50944         * tests/test-jn.c: New file.
50946         Tests for module 'j1'.
50947         * modules/j1-tests: New file.
50948         * tests/test-j1.c: New file.
50950         Tests for module 'j0'.
50951         * modules/j0-tests: New file.
50952         * tests/test-j0.c: New file.
50954         Tests for module 'hypot'.
50955         * modules/hypot-tests: New file.
50956         * tests/test-hypot.c: New file.
50958         Tests for module 'fmod'.
50959         * modules/fmod-tests: New file.
50960         * tests/test-fmod.c: New file.
50962         Tests for module 'fabs'.
50963         * modules/fabs-tests: New file.
50964         * tests/test-fabs.c: New file.
50966         Tests for module 'exp'.
50967         * modules/exp-tests: New file.
50968         * tests/test-exp.c: New file.
50970         Tests for module 'erfc'.
50971         * modules/erfc-tests: New file.
50972         * tests/test-erfc.c: New file.
50974         Tests for module 'erf'.
50975         * modules/erf-tests: New file.
50976         * tests/test-erf.c: New file.
50978         Tests for module 'cosh'.
50979         * modules/cosh-tests: New file.
50980         * tests/test-cosh.c: New file.
50982         Tests for module 'cos'.
50983         * modules/cos-tests: New file.
50984         * tests/test-cos.c: New file.
50986         Tests for module 'copysign'.
50987         * modules/copysign-tests: New file.
50988         * tests/test-copysign.c: New file.
50990         Tests for module 'cbrt'.
50991         * modules/cbrt-tests: New file.
50992         * tests/test-cbrt.c: New file.
50994         Tests for module 'atan2'.
50995         * modules/atan2-tests: New file.
50996         * tests/test-atan2.c: New file.
50998         Tests for module 'atan'.
50999         * modules/atan-tests: New file.
51000         * tests/test-atan.c: New file.
51002         Tests for module 'asin'.
51003         * modules/asin-tests: New file.
51004         * tests/test-asin.c: New file.
51006         Tests for module 'acos'.
51007         * modules/acos-tests: New file.
51008         * tests/test-acos.c: New file.
51010 2010-01-24  Bruno Haible  <bruno@clisp.org>
51012         Fix tests for common <math.h> functions.
51013         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
51014         code snippet that references the function pointer, rather than merely
51015         calling the function. Substitute the FUNC_LIBM variable.
51016         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
51017         * modules/acos (configure.ac): Likewise.
51018         * modules/asin (configure.ac): Likewise.
51019         * modules/atan (configure.ac): Likewise.
51020         * modules/atan2 (configure.ac): Likewise.
51021         * modules/cbrt (configure.ac): Likewise.
51022         * modules/copysign (configure.ac): Likewise.
51023         * modules/cos (configure.ac): Likewise.
51024         * modules/cosh (configure.ac): Likewise.
51025         * modules/erf (configure.ac): Likewise.
51026         * modules/erfc (configure.ac): Likewise.
51027         * modules/exp (configure.ac): Likewise.
51028         * modules/fabs (configure.ac): Likewise.
51029         * modules/fmod (configure.ac): Likewise.
51030         * modules/hypot (configure.ac): Likewise.
51031         * modules/j0 (configure.ac): Likewise.
51032         * modules/j1 (configure.ac): Likewise.
51033         * modules/jn (configure.ac): Likewise.
51034         * modules/ldexp (configure.ac): Likewise.
51035         * modules/lgamma (configure.ac): Likewise.
51036         * modules/log (configure.ac): Likewise.
51037         * modules/log10 (configure.ac): Likewise.
51038         * modules/log1p (configure.ac): Likewise.
51039         * modules/logb (configure.ac): Likewise.
51040         * modules/modf (configure.ac): Likewise.
51041         * modules/nextafter (configure.ac): Likewise.
51042         * modules/pow (configure.ac): Likewise.
51043         * modules/remainder (configure.ac): Likewise.
51044         * modules/rint (configure.ac): Likewise.
51045         * modules/sin (configure.ac): Likewise.
51046         * modules/sinh (configure.ac): Likewise.
51047         * modules/tan (configure.ac): Likewise.
51048         * modules/tanh (configure.ac): Likewise.
51049         * modules/y0 (configure.ac): Likewise.
51050         * modules/y1 (configure.ac): Likewise.
51051         * modules/yn (configure.ac): Likewise.
51053 2010-01-24  Bruno Haible  <bruno@clisp.org>
51055         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
51056         * tests/test-acosl.c (x): New variable.
51057         (main): Store argument in x and fetch it from x.
51058         * tests/test-asinl.c (x): New variable.
51059         (main): Store argument in x and fetch it from x.
51060         * tests/test-atanl.c (x): New variable.
51061         (main): Store argument in x and fetch it from x.
51062         * tests/test-cosl.c (x): New variable.
51063         (main): Store argument in x and fetch it from x.
51064         * tests/test-expl.c (x): New variable.
51065         (main): Store argument in x and fetch it from x.
51066         * tests/test-logl.c (x): New variable.
51067         (main): Store argument in x and fetch it from x.
51068         * tests/test-sinl.c (x): New variable.
51069         (main): Store argument in x and fetch it from x.
51070         * tests/test-sqrtl.c (x): New variable.
51071         (main): Store argument in x and fetch it from x.
51072         * tests/test-tanl.c (x): New variable.
51073         (main): Store argument in x and fetch it from x.
51075 2010-01-24  Bruno Haible  <bruno@clisp.org>
51077         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
51078         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
51079         assignments to the initial TESTS_ENVIRONMENT.
51080         * doc/gnulib.texi (Unit test modules): Document it.
51081         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
51082         TESTS_ENVIRONMENT.
51083         * modules/btowc-tests (Makefile.am): Likewise.
51084         * modules/c-stack-tests (Makefile.am): Likewise.
51085         * modules/c-strcase-tests (Makefile.am): Likewise.
51086         * modules/copy-file-tests (Makefile.am): Likewise.
51087         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
51088         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
51089         * modules/mbrtowc-tests (Makefile.am): Likewise.
51090         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51091         * modules/mbscasestr-tests (Makefile.am): Likewise.
51092         * modules/mbschr-tests (Makefile.am): Likewise.
51093         * modules/mbscspn-tests (Makefile.am): Likewise.
51094         * modules/mbsinit-tests (Makefile.am): Likewise.
51095         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51096         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
51097         * modules/mbspbrk-tests (Makefile.am): Likewise.
51098         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51099         * modules/mbsrchr-tests (Makefile.am): Likewise.
51100         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
51101         * modules/mbsspn-tests (Makefile.am): Likewise.
51102         * modules/mbsstr-tests (Makefile.am): Likewise.
51103         * modules/nl_langinfo-tests (Makefile.am): Likewise.
51104         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
51105         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51106         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51107         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51108         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51109         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
51110         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51111         * modules/wcrtomb-tests (Makefile.am): Likewise.
51112         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
51113         * modules/wcsrtombs-tests (Makefile.am): Likewise.
51114         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
51115         assignments from TESTS_ENVIRONMENT.
51116         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
51117         augmentation.
51118         * modules/argp-version-etc-tests (Makefile.am): Likewise.
51119         * modules/atexit-tests (Makefile.am): Likewise.
51120         * modules/binary-io-tests (Makefile.am): Likewise.
51121         * modules/closein-tests (Makefile.am): Likewise.
51122         * modules/dprintf-posix-tests (Makefile.am): Likewise.
51123         * modules/exclude-tests (Makefile.am): Likewise.
51124         * modules/fflush-tests (Makefile.am): Likewise.
51125         * modules/fpending-tests (Makefile.am): Likewise.
51126         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51127         * modules/freadahead-tests (Makefile.am): Likewise.
51128         * modules/freadptr-tests (Makefile.am): Likewise.
51129         * modules/freadseek-tests (Makefile.am): Likewise.
51130         * modules/fseek-tests (Makefile.am): Likewise.
51131         * modules/fseeko-tests (Makefile.am): Likewise.
51132         * modules/ftell-tests (Makefile.am): Likewise.
51133         * modules/ftello-tests (Makefile.am): Likewise.
51134         * modules/idpriv-drop-tests (Makefile.am): Likewise.
51135         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
51136         * modules/lseek-tests (Makefile.am): Likewise.
51137         * modules/parse-duration-tests (Makefile.am): Likewise.
51138         * modules/perror-tests (Makefile.am): Likewise.
51139         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
51140         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
51141         * modules/pipe-tests (Makefile.am): Likewise.
51142         * modules/pread-tests (Makefile.am): Likewise.
51143         * modules/printf-posix-tests (Makefile.am): Likewise.
51144         * modules/select-tests (Makefile.am): Likewise.
51145         * modules/sigpipe-tests (Makefile.am): Likewise.
51146         * modules/tsearch-tests (Makefile.am): Likewise.
51147         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
51148         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
51149         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51150         * modules/uniwidth/width-tests (Makefile.am): Likewise.
51151         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
51152         * modules/version-etc-tests (Makefile.am): Likewise.
51153         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51154         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51155         * modules/xalloc-die-tests (Makefile.am): Likewise.
51156         * modules/xprintf-posix-tests (Makefile.am): Likewise.
51157         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51158         * modules/xstrtol-tests (Makefile.am): Likewise.
51159         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51160         * modules/yesno-tests (Makefile.am): Likewise.
51161         Suggested by Jim Meyering.
51163 2010-01-24  Bruno Haible  <bruno@clisp.org>
51165         More documentation.
51166         * doc/gnulib.texi (Writing modules): New chapter.
51167         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
51168         the new chapter.
51170 2010-01-24  Jim Meyering  <meyering@redhat.com>
51172         maint.mk: do not prepend "./" after filtering
51173         * top/maint.mk (_prepend_srcdir_prefix): New variable
51174         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
51175         "./" when $(srcdir) is ".".
51177         define STREQ(a,b) consistently, removing useless parentheses
51178         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
51179         since the only risk is that "a" or "b" contains an unparenthesized
51180         comma, but if either did that, STREQ would have 3 or more arguments.
51181         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
51182         * lib/fts.c (STREQ): Remove unnecessary parentheses.
51183         * lib/hash-triple.c (STREQ): Likewise.
51184         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
51185         * lib/getugroups.c (STREQ): Likewise.
51187 2010-01-23  Jim Meyering  <meyering@redhat.com>
51189         maint.mk: fix syntax-check in a non-srcdir build directory
51190         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
51191         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
51193 2010-01-22  Jim Meyering  <meyering@redhat.com>
51195         userspec: add unit tests
51196         * tests/test-userspec.c: New file.
51197         * modules/userspec-tests: Likewise.
51199 2010-01-21  Jim Meyering  <meyering@redhat.com>
51201         maint.mk: handle source file names containing "." robustly
51202         * top/maint.mk (_dot_escaped_srcdir): Define.
51203         (VC_LIST): Use it in LHS of sed substitution.
51205 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
51207         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
51208         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
51209         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
51210         from a non-srcdir build.
51212 2010-01-20  Eric Blake  <ebb9@byu.net>
51214         warn-on-use: use instead of link-warning
51215         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
51216         * modules/unistd (Depends-on, Makefile.am): Likewise.
51217         * modules/arpa_inet (Depends-on): Replace link-warning with
51218         warn-on-use.
51219         (Makefile.am): Update rules accordingly.
51220         * modules/ctype (Depends-on, Makefile.am): Likewise.
51221         * modules/dirent (Depends-on, Makefile.am): Likewise.
51222         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
51223         * modules/inttypes (Depends-on, Makefile.am): Likewise.
51224         * modules/langinfo (Depends-on, Makefile.am): Likewise.
51225         * modules/locale (Depends-on, Makefile.am): Likewise.
51226         * modules/math (Depends-on, Makefile.am): Likewise.
51227         * modules/search (Depends-on, Makefile.am): Likewise.
51228         * modules/signal (Depends-on, Makefile.am): Likewise.
51229         * modules/spawn (Depends-on, Makefile.am): Likewise.
51230         * modules/stdlib (Depends-on, Makefile.am): Likewise.
51231         * modules/string (Depends-on, Makefile.am): Likewise.
51232         * modules/strings (Depends-on, Makefile.am): Likewise.
51233         * modules/sys_file (Depends-on, Makefile.am): Likewise.
51234         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
51235         * modules/sys_select (Depends-on, Makefile.am): Likewise.
51236         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
51237         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
51238         * modules/sys_times (Depends-on, Makefile.am): Likewise.
51239         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
51240         * modules/wchar (Depends-on, Makefile.am): Likewise.
51241         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
51242         should be poisoned.
51243         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
51244         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
51245         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
51246         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51247         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51248         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51249         * m4/math_h.m4 (gl_MATH_H): Likewise.
51250         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51251         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51252         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
51253         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51254         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51256         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
51257         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
51258         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
51259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51260         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51262         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51263         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51264         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51265         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51266         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
51267         GL_LINK_WARNING.
51268         * lib/ctype.in.h: Likewise.
51269         * lib/dirent.in.h: Likewise.
51270         * lib/fcntl.in.h: Likewise.
51271         * lib/inttypes.in.h: Likewise.
51272         * lib/langinfo.in.h: Likewise.
51273         * lib/locale.in.h: Likewise.
51274         * lib/math.in.h: Likewise.
51275         * lib/search.in.h: Likewise.
51276         * lib/signal.in.h: Likewise.
51277         * lib/spawn.in.h: Likewise.
51278         * lib/stdio.in.h: Likewise.
51279         * lib/stdlib.in.h: Likewise.
51280         * lib/string.in.h: Likewise.
51281         * lib/strings.in.h: Likewise.
51282         * lib/sys_file.in.h: Likewise.
51283         * lib/sys_ioctl.in.h: Likewise.
51284         * lib/sys_select.in.h: Likewise.
51285         * lib/sys_socket.in.h: Likewise.
51286         * lib/sys_stat.in.h: Likewise.
51287         * lib/sys_times.in.h: Likewise.
51288         * lib/sys_utsname.in.h: Likewise.
51289         * lib/unistd.in.h: Likewise.
51290         * lib/wchar.in.h: Likewise.
51292 2010-01-20  Bruno Haible  <bruno@clisp.org>
51294         Avoid duplicate -lm.
51295         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
51296         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
51297         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
51298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
51299         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
51300         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
51301         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
51302         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
51303         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
51304         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
51305         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
51306         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
51307         Reported by Paolo Bonzini.
51309 2010-01-19  Bruno Haible  <bruno@clisp.org>
51311         langinfo, nl_langinfo: Relicense under LGPLv2+.
51312         * modules/langinfo (License): Change to LGPLv2+.
51313         * modules/nl_langinfo (License): Likewise.
51314         Patch by David Lutterkort <lutter@redhat.com>.
51316 2010-01-19  Bruno Haible  <bruno@clisp.org>
51318         Avoid compilation error with cc on OSF/1 5.1.
51319         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
51320         statement, not before.
51321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51323 2010-01-18  Bruno Haible  <bruno@clisp.org>
51325         Avoid a link error due to the __printf__ symbol.
51326         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
51327         and 2.6.x.
51328         (__format__, __printf__): Remove definitions.
51329         * lib/argp-fmtstream.h: Likewise.
51330         * lib/argp.h: Likewise.
51331         * lib/error.h: Likewise.
51332         * lib/vasnprintf.h: Likewise.
51333         * lib/xprintf.h: Likewise.
51334         * lib/xvasprintf.h: Likewise.
51335         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51337 2010-01-18  Bruno Haible  <bruno@clisp.org>
51339         Tests for module 'tanl'.
51340         * modules/tanl-tests: New file.
51341         * tests/test-tanl.c: New file.
51343         Tests for module 'sqrtl'.
51344         * modules/sqrtl-tests: New file.
51345         * tests/test-sqrtl.c: New file.
51347         Tests for module 'sinl'.
51348         * modules/sinl-tests: New file.
51349         * tests/test-sinl.c: New file.
51351         Tests for module 'logl'.
51352         * modules/logl-tests: New file.
51353         * tests/test-logl.c: New file.
51355         Tests for module 'expl'.
51356         * modules/expl-tests: New file.
51357         * tests/test-expl.c: New file.
51359         Tests for module 'cosl'.
51360         * modules/cosl-tests: New file.
51361         * tests/test-cosl.c: New file.
51363         Tests for module 'atanl'.
51364         * modules/atanl-tests: New file.
51365         * tests/test-atanl.c: New file.
51367         Tests for module 'asinl'.
51368         * modules/asinl-tests: New file.
51369         * tests/test-asinl.c: New file.
51371         Tests for module 'acosl'.
51372         * modules/acosl-tests: New file.
51373         * tests/test-acosl.c: New file.
51375         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
51376         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
51377         tanl): Use the standard gnulib idiom.
51378         * lib/cosl.c: Don't include trigl.c and sincosl.c.
51379         * lib/sinl.c: Likewise.
51380         * lib/tanl.c: Don't include trigl.c.
51381         (kernel_tanl): Make static.
51382         * lib/sincosl.c: Include trigl.h first.
51383         * lib/trigl.c: Likewise.
51384         * m4/acosl.m4: New file.
51385         * m4/asinl.m4: New file.
51386         * m4/atanl.m4: New file.
51387         * m4/cosl.m4: New file.
51388         * m4/expl.m4: New file.
51389         * m4/logl.m4: New file.
51390         * m4/sinl.m4: New file.
51391         * m4/sqrtl.m4: New file.
51392         * m4/tanl.m4: New file.
51393         * m4/mathl.m4: Remove file.
51394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
51395         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
51396         Don't initialize GNULIB_MATHL.
51397         * modules/acosl: New file.
51398         * modules/asinl: New file.
51399         * modules/atanl: New file.
51400         * modules/cosl: New file.
51401         * modules/expl: New file.
51402         * modules/logl: New file.
51403         * modules/sinl: New file.
51404         * modules/sqrtl: New file.
51405         * modules/tanl: New file.
51406         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
51407         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
51408         substitute GNULIB_MATHL.
51409         * modules/mathl: Rewritten.
51410         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
51411         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
51412         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
51413         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
51414         * doc/posix-functions/expl.texi: Mention the 'expl' module.
51415         * doc/posix-functions/logl.texi: Mention the 'logl' module.
51416         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
51417         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
51418         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
51420 2010-01-18  Bruno Haible  <bruno@clisp.org>
51422         sqrt: Make gl_FUNC_SQRT requirable.
51423         * m4/sqrt.m4: New file.
51424         * modules/sqrt (Files): Add it.
51425         (configure.ac): Invoke gl_FUNC_SQRT.
51427 2010-01-18  Bruno Haible  <bruno@clisp.org>
51429         New modules for common <math.h> functions.
51430         * m4/mathfunc.m4: New file.
51431         * modules/acos: New file.
51432         * modules/asin: New file.
51433         * modules/atan: New file.
51434         * modules/atan2: New file.
51435         * modules/cbrt: New file.
51436         * modules/copysign: New file.
51437         * modules/cos: New file.
51438         * modules/cosh: New file.
51439         * modules/erf: New file.
51440         * modules/erfc: New file.
51441         * modules/exp: New file.
51442         * modules/fabs: New file.
51443         * modules/fmod: New file.
51444         * modules/hypot: New file.
51445         * modules/j0: New file.
51446         * modules/j1: New file.
51447         * modules/jn: New file.
51448         * modules/ldexp: New file.
51449         * modules/lgamma: New file.
51450         * modules/log: New file.
51451         * modules/log10: New file.
51452         * modules/log1p: New file.
51453         * modules/logb: New file.
51454         * modules/modf: New file.
51455         * modules/nextafter: New file.
51456         * modules/pow: New file.
51457         * modules/remainder: New file.
51458         * modules/rint: New file.
51459         * modules/sin: New file.
51460         * modules/sinh: New file.
51461         * modules/sqrt: New file.
51462         * modules/tan: New file.
51463         * modules/tanh: New file.
51464         * modules/y0: New file.
51465         * modules/y1: New file.
51466         * modules/yn: New file.
51467         * doc/posix-functions/acos.texi: Mention the 'acos' module.
51468         * doc/posix-functions/asin.texi: Mention the 'asin' module.
51469         * doc/posix-functions/atan.texi: Mention the 'atan' module.
51470         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
51471         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
51472         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
51473         * doc/posix-functions/cos.texi: Mention the 'cos' module.
51474         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
51475         * doc/posix-functions/erf.texi: Mention the 'erf' module.
51476         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
51477         * doc/posix-functions/exp.texi: Mention the 'exp' module.
51478         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
51479         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
51480         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
51481         * doc/posix-functions/j0.texi: Mention the 'j0' module.
51482         * doc/posix-functions/j1.texi: Mention the 'j1' module.
51483         * doc/posix-functions/jn.texi: Mention the 'jn' module.
51484         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
51485         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
51486         * doc/posix-functions/log.texi: Mention the 'log' module.
51487         * doc/posix-functions/log10.texi: Mention the 'log10' module.
51488         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
51489         * doc/posix-functions/logb.texi: Mention the 'logb' module.
51490         * doc/posix-functions/modf.texi: Mention the 'modf' module.
51491         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
51492         * doc/posix-functions/pow.texi: Mention the 'pow' module.
51493         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
51494         * doc/posix-functions/rint.texi: Mention the 'rint' module.
51495         * doc/posix-functions/sin.texi: Mention the 'sin' module.
51496         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
51497         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
51498         * doc/posix-functions/tan.texi: Mention the 'tan' module.
51499         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
51500         * doc/posix-functions/y0.texi: Mention the 'y0' module.
51501         * doc/posix-functions/y1.texi: Mention the 'y1' module.
51502         * doc/posix-functions/yn.texi: Mention the 'yn' module.
51504 2010-01-18  Jim Meyering  <meyering@redhat.com>
51506         ignore-value: relax license to LGPLv2+
51507         * modules/ignore-value (License): Relax to LGPLv2+.
51509         getdate: don't leak when TZ contains two or more '"'s
51510         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
51511         double quote in TZ after the first one.
51513         readtokens: do not leak internal token_lengths buffer
51514         * lib/readtokens.c (readtokens): Free the local, lengths,
51515         when the supplied "token_lengths" parameter is NULL.
51517 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51519         Fix a couple of missing LIBTHREAD link failures on AIX.
51520         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
51521         $(LIBTHREAD).
51522         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
51524         Link test-poll against INET_PTON_LIB.
51525         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
51526         for inet_pton on Solaris 10.
51528 2010-01-17  Bruno Haible  <bruno@clisp.org>
51530         unistdio/*-sprintf: Fix typo in module description.
51531         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
51532         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
51533         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
51534         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
51535         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
51536         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
51537         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
51538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51540 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51542         gnulib-tool: fix filelist for AIX, HP-UX ksh.
51543         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
51544         variables in shell case patterns, for AIX and HP-UX ksh.
51546         Split large sed scripts, for HP-UX sed.
51547         * modules/stdio: Split sed scripts around 50 sed commands,
51548         to avoid HP-UX limit of 99 commands, in the near future.
51549         * modules/string: Likewise.
51550         * modules/unistd: Likewise.
51552         gnulib-tool: avoid writing in the current directory.
51553         * gnulib-tool (func_emit_lib_Makefile_am)
51554         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
51555         not in the current directory, so concurrent gnulib-tool
51556         instances do not interfere.
51558 2010-01-16  Jim Meyering  <meyering@redhat.com>
51560         doc: update users.txt
51561         * users.txt: Add grep.
51562         (diffutils, gzip): Update URLs.
51564 2010-01-12  Bruno Haible  <bruno@clisp.org>
51566         posix_spawn: Avoid test failure on Cygwin.
51567         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
51568         characters.
51569         Reported by Simon Josefsson.
51571 2010-01-12  Bruno Haible  <bruno@clisp.org>
51573         * tests/test-cond.c (main): When skipping the test, show the reason.
51575 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51577         * lib/striconv.c (str_cd_iconv): Avoid if before free.
51579 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51581         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
51582         VC_LIST_ALWAYS_EXCLUDE_REGEX.
51584 2010-01-12  Eric Blake  <ebb9@byu.net>
51586         build: guarantee AS_VAR_IF
51587         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
51588         (gl_AS_VAR_IF): Move...
51589         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
51590         Reported by Simon Josefsson.
51592 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51594         * lib/stdio.in.h: Fix typo.
51596 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51598         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
51599         libgpg-error.
51601 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51603         * tests/test-xalloc-die.sh: Use $EXEEXT.
51605 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51606             Bruno Haible  <bruno@clisp.org>
51608         getlogin, getlogin_r: Avoid test failure.
51609         * tests/test-getlogin.c: Include <stdio.h>.
51610         (main): Skip the test when the function fails because stdin is not a
51611         tty.
51612         * tests/test-getlogin_r.c: Include <stdio.h>.
51613         (main): Skip the test when the function fails because stdin is not a
51614         tty.
51616 2010-01-11  Eric Blake  <ebb9@byu.net>
51618         tests: avoid more large file warnings
51619         * tests/test-fflush.c: Avoid warning about ftell use.
51620         * tests/test-fseek.c: Avoid warning about fseek use.
51622 2010-01-10  Bruno Haible  <bruno@clisp.org>
51624         nproc: Work better on Linux when /proc and /sys are not mounted.
51625         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
51626         as lower bound when, on glibc/Linux systems,
51627         sysconf (_SC_NPROCESSORS_CONF) returns 1.
51628         Suggested by Pádraig Brady <P@draigbrady.com>.
51629         Reported by Dmitry V. Levin <ldv@altlinux.org>.
51631         nproc: Refactor.
51632         * lib/nproc.c (num_processors_via_affinity_mask): New function,
51633         extracted from num_processors.
51634         (num_processors): Call it.
51636 2010-01-11  Jim Meyering  <meyering@redhat.com>
51638         utimecmp: avoid new warning from upcoming gcc-4.5.0
51639         * lib/utimecmp.c (BILLION): Define using #define rather than an
51640         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
51642 2010-01-11  Eric Blake  <ebb9@byu.net>
51644         math: add portability warnings for classification macros
51645         * modules/math (Depends-on): Add warn-on-use.
51646         (Makefile.am): Provide new substitutions.
51647         * m4/math_h.m4 (gl_MATH_H): Require inline.
51648         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
51649         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
51650         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
51651         implement warnings.
51653         unistd: warn on use of environ without module
51654         * modules/unistd (Depends-on): Add warn-on-use.
51655         (Makefile.am): Provide new substitutions.
51656         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
51657         * lib/unistd.in.h (environ): Wrap with a warning helper function.
51659         stdio: warn on suspicious uses
51660         * modules/stdio (Depends-on): Add warn-on-use.
51661         (Makefile.am): Provide new substitutions.
51662         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
51663         fseeko.
51664         * lib/stdio.in.h (gets): Always warn on use.
51665         (fseek, ftell): Adjust when warnings are issued, and honor
51666         _GL_NO_LARGE_FILES as a way to silence the warning.
51667         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
51668         any warning about large file offsets.
51669         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
51670         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
51671         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
51672         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
51673         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
51674         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
51675         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
51676         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
51678         warn-on-use: new module
51679         * modules/warn-on-use: New file.
51680         * build-aux/warn-on-use.h: Likewise.
51681         * m4/warn-on-use.m4: Likewise.
51682         * MODULES.html.sh (Support for building): Mention it.
51684 2010-01-10  Bruno Haible  <bruno@clisp.org>
51686         Tests for module 'unistr/u32-strdup'.
51687         * modules/unistr/u32-strdup-tests: New file.
51688         * tests/unistr/test-u32-strdup.c: New file.
51690         Tests for module 'unistr/u16-strdup'.
51691         * modules/unistr/u16-strdup-tests: New file.
51692         * tests/unistr/test-u16-strdup.c: New file.
51694         Tests for module 'unistr/u8-strdup'.
51695         * modules/unistr/u8-strdup-tests: New file.
51696         * tests/unistr/test-u8-strdup.c: New file.
51697         * tests/unistr/test-strdup.h: New file.
51699         Tests for module 'unistr/u32-strncmp'.
51700         * modules/unistr/u32-strncmp-tests: New file.
51701         * tests/unistr/test-u32-strncmp.c: New file.
51703         Tests for module 'unistr/u16-strncmp'.
51704         * modules/unistr/u16-strncmp-tests: New file.
51705         * tests/unistr/test-u16-strncmp.c: New file.
51707         Tests for module 'unistr/u8-strncmp'.
51708         * modules/unistr/u8-strncmp-tests: New file.
51709         * tests/unistr/test-u8-strncmp.c: New file.
51710         * tests/unistr/test-strncmp.h: New file.
51712         Tests for module 'unistr/u32-strcoll'.
51713         * modules/unistr/u32-strcoll-tests: New file.
51714         * tests/unistr/test-u32-strcoll.c: New file.
51716         Tests for module 'unistr/u16-strcoll'.
51717         * modules/unistr/u16-strcoll-tests: New file.
51718         * tests/unistr/test-u16-strcoll.c: New file.
51720         Tests for module 'unistr/u8-strcoll'.
51721         * modules/unistr/u8-strcoll-tests: New file.
51722         * tests/unistr/test-u8-strcoll.c: New file.
51724         Tests for module 'unistr/u32-strcmp'.
51725         * modules/unistr/u32-strcmp-tests: New file.
51726         * tests/unistr/test-u32-strcmp.c: New file.
51727         * tests/unistr/test-u32-strcmp.h: New file.
51729         Tests for module 'unistr/u16-strcmp'.
51730         * modules/unistr/u16-strcmp-tests: New file.
51731         * tests/unistr/test-u16-strcmp.c: New file.
51732         * tests/unistr/test-u16-strcmp.h: New file.
51734         Tests for module 'unistr/u8-strcmp'.
51735         * modules/unistr/u8-strcmp-tests: New file.
51736         * tests/unistr/test-u8-strcmp.c: New file.
51737         * tests/unistr/test-u8-strcmp.h: New file.
51738         * tests/unistr/test-strcmp.h: New file.
51740         Tests for module 'unistr/u32-strncat'.
51741         * modules/unistr/u32-strncat-tests: New file.
51742         * tests/unistr/test-u32-strncat.c: New file.
51744         Tests for module 'unistr/u16-strncat'.
51745         * modules/unistr/u16-strncat-tests: New file.
51746         * tests/unistr/test-u16-strncat.c: New file.
51748         Tests for module 'unistr/u8-strncat'.
51749         * modules/unistr/u8-strncat-tests: New file.
51750         * tests/unistr/test-u8-strncat.c: New file.
51751         * tests/unistr/test-strncat.h: New file.
51753         Tests for module 'unistr/u32-strcat'.
51754         * modules/unistr/u32-strcat-tests: New file.
51755         * tests/unistr/test-u32-strcat.c: New file.
51757         Tests for module 'unistr/u16-strcat'.
51758         * modules/unistr/u16-strcat-tests: New file.
51759         * tests/unistr/test-u16-strcat.c: New file.
51761         Tests for module 'unistr/u8-strcat'.
51762         * modules/unistr/u8-strcat-tests: New file.
51763         * tests/unistr/test-u8-strcat.c: New file.
51764         * tests/unistr/test-strcat.h: New file.
51766         Tests for module 'unistr/u32-stpncpy'.
51767         * modules/unistr/u32-stpncpy-tests: New file.
51768         * tests/unistr/test-u32-stpncpy.c: New file.
51770         Tests for module 'unistr/u16-stpncpy'.
51771         * modules/unistr/u16-stpncpy-tests: New file.
51772         * tests/unistr/test-u16-stpncpy.c: New file.
51774         Tests for module 'unistr/u8-stpncpy'.
51775         * modules/unistr/u8-stpncpy-tests: New file.
51776         * tests/unistr/test-u8-stpncpy.c: New file.
51777         * tests/unistr/test-stpncpy.h: New file.
51779         Tests for module 'unistr/u32-strncpy'.
51780         * modules/unistr/u32-strncpy-tests: New file.
51781         * tests/unistr/test-u32-strncpy.c: New file.
51783         Tests for module 'unistr/u16-strncpy'.
51784         * modules/unistr/u16-strncpy-tests: New file.
51785         * tests/unistr/test-u16-strncpy.c: New file.
51787         Tests for module 'unistr/u8-strncpy'.
51788         * modules/unistr/u8-strncpy-tests: New file.
51789         * tests/unistr/test-u8-strncpy.c: New file.
51790         * tests/unistr/test-strncpy.h: New file.
51792         Tests for module 'unistr/u32-stpcpy'.
51793         * modules/unistr/u32-stpcpy-tests: New file.
51794         * tests/unistr/test-u32-stpcpy.c: New file.
51796         Tests for module 'unistr/u16-stpcpy'.
51797         * modules/unistr/u16-stpcpy-tests: New file.
51798         * tests/unistr/test-u16-stpcpy.c: New file.
51800         Tests for module 'unistr/u8-stpcpy'.
51801         * modules/unistr/u8-stpcpy-tests: New file.
51802         * tests/unistr/test-u8-stpcpy.c: New file.
51803         * tests/unistr/test-stpcpy.h: New file.
51805         Tests for module 'unistr/u32-strcpy'.
51806         * modules/unistr/u32-strcpy-tests: New file.
51807         * tests/unistr/test-u32-strcpy.c: New file.
51809         Tests for module 'unistr/u16-strcpy'.
51810         * modules/unistr/u16-strcpy-tests: New file.
51811         * tests/unistr/test-u16-strcpy.c: New file.
51813         Tests for module 'unistr/u8-strcpy'.
51814         * modules/unistr/u8-strcpy-tests: New file.
51815         * tests/unistr/test-u8-strcpy.c: New file.
51816         * tests/unistr/test-strcpy.h: New file.
51818         Tests for module 'unistr/u32-strnlen'.
51819         * modules/unistr/u32-strnlen-tests: New file.
51820         * tests/unistr/test-u32-strnlen.c: New file.
51822         Tests for module 'unistr/u16-strnlen'.
51823         * modules/unistr/u16-strnlen-tests: New file.
51824         * tests/unistr/test-u16-strnlen.c: New file.
51826         Tests for module 'unistr/u8-strnlen'.
51827         * modules/unistr/u8-strnlen-tests: New file.
51828         * tests/unistr/test-u8-strnlen.c: New file.
51829         * tests/unistr/test-strnlen.h: New file.
51831         Tests for module 'unistr/u32-strlen'.
51832         * modules/unistr/u32-strlen-tests: New file.
51833         * tests/unistr/test-u32-strlen.c: New file.
51835         Tests for module 'unistr/u16-strlen'.
51836         * modules/unistr/u16-strlen-tests: New file.
51837         * tests/unistr/test-u16-strlen.c: New file.
51839         Tests for module 'unistr/u8-strlen'.
51840         * modules/unistr/u8-strlen-tests: New file.
51841         * tests/unistr/test-u8-strlen.c: New file.
51843         Tests for module 'unistr/u32-prev'.
51844         * modules/unistr/u32-prev-tests: New file.
51845         * tests/unistr/test-u32-prev.c: New file.
51847         Tests for module 'unistr/u16-prev'.
51848         * modules/unistr/u16-prev-tests: New file.
51849         * tests/unistr/test-u16-prev.c: New file.
51851         Tests for module 'unistr/u8-prev'.
51852         * modules/unistr/u8-prev-tests: New file.
51853         * tests/unistr/test-u8-prev.c: New file.
51855         Tests for module 'unistr/u32-next'.
51856         * modules/unistr/u32-next-tests: New file.
51857         * tests/unistr/test-u32-next.c: New file.
51859         Tests for module 'unistr/u16-next'.
51860         * modules/unistr/u16-next-tests: New file.
51861         * tests/unistr/test-u16-next.c: New file.
51863         Tests for module 'unistr/u8-next'.
51864         * modules/unistr/u8-next-tests: New file.
51865         * tests/unistr/test-u8-next.c: New file.
51867         Tests for module 'unistr/u32-strmbtouc'.
51868         * modules/unistr/u32-strmbtouc-tests: New file.
51869         * tests/unistr/test-u32-strmbtouc.c: New file.
51871         Tests for module 'unistr/u16-strmbtouc'.
51872         * modules/unistr/u16-strmbtouc-tests: New file.
51873         * tests/unistr/test-u16-strmbtouc.c: New file.
51875         Tests for module 'unistr/u8-strmbtouc'.
51876         * modules/unistr/u8-strmbtouc-tests: New file.
51877         * tests/unistr/test-u8-strmbtouc.c: New file.
51879         Tests for module 'unistr/u32-strmblen'.
51880         * modules/unistr/u32-strmblen-tests: New file.
51881         * tests/unistr/test-u32-strmblen.c: New file.
51883         Tests for module 'unistr/u16-strmblen'.
51884         * modules/unistr/u16-strmblen-tests: New file.
51885         * tests/unistr/test-u16-strmblen.c: New file.
51887         Tests for module 'unistr/u8-strmblen'.
51888         * modules/unistr/u8-strmblen-tests: New file.
51889         * tests/unistr/test-u8-strmblen.c: New file.
51891         Tests for module 'unistr/u32-cpy-alloc'.
51892         * modules/unistr/u32-cpy-alloc-tests: New file.
51893         * tests/unistr/test-u32-cpy-alloc.c: New file.
51895         Tests for module 'unistr/u16-cpy-alloc'.
51896         * modules/unistr/u16-cpy-alloc-tests: New file.
51897         * tests/unistr/test-u16-cpy-alloc.c: New file.
51899         Tests for module 'unistr/u8-cpy-alloc'.
51900         * modules/unistr/u8-cpy-alloc-tests: New file.
51901         * tests/unistr/test-u8-cpy-alloc.c: New file.
51902         * tests/unistr/test-cpy-alloc.h: New file.
51904         Tests for module 'unistr/u32-mbsnlen'.
51905         * modules/unistr/u32-mbsnlen-tests: New file.
51906         * tests/unistr/test-u32-mbsnlen.c: New file.
51908         Tests for module 'unistr/u16-mbsnlen'.
51909         * modules/unistr/u16-mbsnlen-tests: New file.
51910         * tests/unistr/test-u16-mbsnlen.c: New file.
51912         Tests for module 'unistr/u8-mbsnlen'.
51913         * modules/unistr/u8-mbsnlen-tests: New file.
51914         * tests/unistr/test-u8-mbsnlen.c: New file.
51916         Tests for module 'unistr/u32-chr'.
51917         * modules/unistr/u32-chr-tests: New file.
51918         * tests/unistr/test-u32-chr.c: New file.
51920         Tests for module 'unistr/u16-chr'.
51921         * modules/unistr/u16-chr-tests: New file.
51922         * tests/unistr/test-u16-chr.c: New file.
51924         Tests for module 'unistr/u8-chr'.
51925         * modules/unistr/u8-chr-tests: New file.
51926         * tests/unistr/test-u8-chr.c: New file.
51927         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
51929         Tests for module 'unistr/u32-cmp2'.
51930         * modules/unistr/u32-cmp2-tests: New file.
51931         * tests/unistr/test-u32-cmp2.c: New file.
51933         Tests for module 'unistr/u16-cmp2'.
51934         * modules/unistr/u16-cmp2-tests: New file.
51935         * tests/unistr/test-u16-cmp2.c: New file.
51937         Tests for module 'unistr/u8-cmp2'.
51938         * modules/unistr/u8-cmp2-tests: New file.
51939         * tests/unistr/test-u8-cmp2.c: New file.
51940         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
51942         Tests for module 'unistr/u32-cmp'.
51943         * modules/unistr/u32-cmp-tests: New file.
51944         * tests/unistr/test-u32-cmp.c: New file.
51946         Tests for module 'unistr/u16-cmp'.
51947         * modules/unistr/u16-cmp-tests: New file.
51948         * tests/unistr/test-u16-cmp.c: New file.
51950         Tests for module 'unistr/u8-cmp'.
51951         * modules/unistr/u8-cmp-tests: New file.
51952         * tests/unistr/test-u8-cmp.c: New file.
51953         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
51955         Tests for module 'unistr/u32-set'.
51956         * modules/unistr/u32-set-tests: New file.
51957         * tests/unistr/test-u32-set.c: New file.
51959         Tests for module 'unistr/u16-set'.
51960         * modules/unistr/u16-set-tests: New file.
51961         * tests/unistr/test-u16-set.c: New file.
51963         Tests for module 'unistr/u8-set'.
51964         * modules/unistr/u8-set-tests: New file.
51965         * tests/unistr/test-u8-set.c: New file.
51966         * tests/unistr/test-set.h: New file.
51968         Tests for module 'unistr/u32-move'.
51969         * modules/unistr/u32-move-tests: New file.
51970         * tests/unistr/test-u32-move.c: New file.
51972         Tests for module 'unistr/u16-move'.
51973         * modules/unistr/u16-move-tests: New file.
51974         * tests/unistr/test-u16-move.c: New file.
51976         Tests for module 'unistr/u8-move'.
51977         * modules/unistr/u8-move-tests: New file.
51978         * tests/unistr/test-u8-move.c: New file.
51979         * tests/unistr/test-move.h: New file.
51981         Tests for module 'unistr/u32-cpy'.
51982         * modules/unistr/u32-cpy-tests: New file.
51983         * tests/unistr/test-u32-cpy.c: New file.
51985         Tests for module 'unistr/u16-cpy'.
51986         * modules/unistr/u16-cpy-tests: New file.
51987         * tests/unistr/test-u16-cpy.c: New file.
51989         Tests for module 'unistr/u8-cpy'.
51990         * modules/unistr/u8-cpy-tests: New file.
51991         * tests/unistr/test-u8-cpy.c: New file.
51992         * tests/unistr/test-cpy.h: New file.
51994 2010-01-09  Bruno Haible  <bruno@clisp.org>
51996         Tests for module 'unistr/u32-uctomb'.
51997         * modules/unistr/u32-uctomb-tests: New file.
51998         * tests/unistr/test-u32-uctomb.c: New file.
52000         Tests for module 'unistr/u16-uctomb'.
52001         * modules/unistr/u16-uctomb-tests: New file.
52002         * tests/unistr/test-u16-uctomb.c: New file.
52004         Tests for module 'unistr/u8-uctomb'.
52005         * modules/unistr/u8-uctomb-tests: New file.
52006         * tests/unistr/test-u8-uctomb.c: New file.
52008         Tests for module 'unistr/u32-mbtoucr'.
52009         * modules/unistr/u32-mbtoucr-tests: New file.
52010         * tests/unistr/test-u32-mbtoucr.c: New file.
52012         Tests for module 'unistr/u16-mbtoucr'.
52013         * modules/unistr/u16-mbtoucr-tests: New file.
52014         * tests/unistr/test-u16-mbtoucr.c: New file.
52016         Tests for module 'unistr/u8-mbtoucr'.
52017         * modules/unistr/u8-mbtoucr-tests: New file.
52018         * tests/unistr/test-u8-mbtoucr.c: New file.
52020         Tests for module 'unistr/u32-mbtouc'.
52021         * modules/unistr/u32-mbtouc-tests: New file.
52022         * tests/unistr/test-u32-mbtouc.c: New file.
52024         Tests for module 'unistr/u16-mbtouc'.
52025         * modules/unistr/u16-mbtouc-tests: New file.
52026         * tests/unistr/test-u16-mbtouc.c: New file.
52028         Tests for module 'unistr/u8-mbtouc'.
52029         * modules/unistr/u8-mbtouc-tests: New file.
52030         * tests/unistr/test-u8-mbtouc.c: New file.
52032         Tests for module 'unistr/u32-mbtouc-unsafe'.
52033         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
52034         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
52035         * tests/unistr/test-u32-mbtouc.h: New file.
52037         Tests for module 'unistr/u16-mbtouc-unsafe'.
52038         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
52039         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
52040         * tests/unistr/test-u16-mbtouc.h: New file.
52042         Tests for module 'unistr/u8-mbtouc-unsafe'.
52043         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
52044         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
52045         * tests/unistr/test-u8-mbtouc.h: New file.
52047         Tests for module 'unistr/u32-mblen'.
52048         * modules/unistr/u32-mblen-tests: New file.
52049         * tests/unistr/test-u32-mblen.c: New file.
52051         Tests for module 'unistr/u16-mblen'.
52052         * modules/unistr/u16-mblen-tests: New file.
52053         * tests/unistr/test-u16-mblen.c: New file.
52055         Tests for module 'unistr/u8-mblen'.
52056         * modules/unistr/u8-mblen-tests: New file.
52057         * tests/unistr/test-u8-mblen.c: New file.
52059         Tests for module 'unistr/u32-to-u16'.
52060         * modules/unistr/u32-to-u16-tests: New file.
52061         * tests/unistr/test-u32-to-u16.c: New file.
52063         Tests for module 'unistr/u32-to-u8'.
52064         * modules/unistr/u32-to-u8-tests: New file.
52065         * tests/unistr/test-u32-to-u8.c: New file.
52067         Tests for module 'unistr/u16-to-u32'.
52068         * modules/unistr/u16-to-u32-tests: New file.
52069         * tests/unistr/test-u16-to-u32.c: New file.
52071         Tests for module 'unistr/u16-to-u8'.
52072         * modules/unistr/u16-to-u8-tests: New file.
52073         * tests/unistr/test-u16-to-u8.c: New file.
52075         Tests for module 'unistr/u8-to-u32'.
52076         * modules/unistr/u8-to-u32-tests: New file.
52077         * tests/unistr/test-u8-to-u32.c: New file.
52079         Tests for module 'unistr/u8-to-u16'.
52080         * modules/unistr/u8-to-u16-tests: New file.
52081         * tests/unistr/test-u8-to-u16.c: New file.
52083         Tests for module 'unistr/u32-check'.
52084         * modules/unistr/u32-check-tests: New file.
52085         * tests/unistr/test-u32-check.c: New file.
52087         Tests for module 'unistr/u16-check'.
52088         * modules/unistr/u16-check-tests: New file.
52089         * tests/unistr/test-u16-check.c: New file.
52091         Tests for module 'unistr/u8-check'.
52092         * modules/unistr/u8-check-tests: New file.
52093         * tests/unistr/test-u8-check.c: New file.
52095         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
52096         (category_equals): New function.
52097         (main): Add more tests.
52098         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
52100         * tests/unictype/test-bidi_byname.c (main): Add more tests.
52102 2010-01-10  Bruno Haible  <bruno@clisp.org>
52104         unistr/u*-strcoll: Try harder to distinguish different strings.
52105         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
52106         compare s1 and s2 to see if they are different.
52108 2010-01-10  Bruno Haible  <bruno@clisp.org>
52110         unistr/u*-stpncpy: Fix the return value.
52111         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
52112         description of the return value consistent with stpncpy in glibc.
52113         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
52114         written non-NUL unit.
52116 2010-01-10  Bruno Haible  <bruno@clisp.org>
52118         unistr/u*-next: Add missing dependencies.
52119         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
52120         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
52121         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
52123 2010-01-10  Bruno Haible  <bruno@clisp.org>
52125         unistr/u8-mbsnlen: Fix return value for incomplete character.
52126         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
52127         u8_mblen.
52128         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
52129         Remove unistr/u8-mblen.
52130         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
52131         u16_mblen.
52132         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
52133         Remove unistr/u16-mblen.
52135 2010-01-10  Bruno Haible  <bruno@clisp.org>
52137         wchar: Fix compilation error when <wchar.h> is used from coreutils.
52138         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
52139         Reported by Brian Gough <bjg@gnu.org> and
52140         Chris Clayton <chris2553@googlemail.com> via
52141         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
52143 2010-01-09  Bruno Haible  <bruno@clisp.org>
52145         unistr/u16-to-u32: Reject invalid input.
52146         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
52147         u16_mbtouc.
52148         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
52149         Remove unistr/u16-mbtouc.
52151         unistr/u16-to-u8: Reject invalid input.
52152         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
52153         u16_mbtouc.
52154         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
52155         Remove unistr/u16-mbtouc.
52157         unistr/u8-to-u32: Reject invalid input.
52158         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
52159         u8_mbtouc.
52160         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
52161         Remove unistr/u8-mbtouc.
52163         unistr/u8-to-u16: Reject invalid input.
52164         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
52165         u8_mbtouc.
52166         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
52167         Remove unistr/u8-mbtouc.
52169 2010-01-09  Bruno Haible  <bruno@clisp.org>
52171         Tests for module 'getlogin'.
52172         * modules/getlogin-tests: New file.
52173         * tests/test-getlogin.c: New file.
52175         New module 'getlogin'.
52176         * lib/unistd.in.h (getlogin): New declaration.
52177         * lib/getlogin.c: New file.
52178         * m4/getlogin.m4: New file.
52179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
52180         HAVE_GETLOGIN.
52181         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
52182         HAVE_GETLOGIN.
52183         * modules/getlogin: New file.
52184         * doc/posix-functions/getlogin.texi: Mention the new module.
52185         Reported by John W. Eaton <jwe@gnu.org>.
52187 2010-01-09  Bruno Haible  <bruno@clisp.org>
52189         getlogin_r: Support for native Windows.
52190         * lib/getlogin_r.c: Include <windows.h>
52191         (getlogin_r): Implement for native Windows.
52192         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
52193         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
52194         via John W. Eaton <jwe@gnu.org>.
52196 2010-01-09  Bruno Haible  <bruno@clisp.org>
52198         getlogin_r: Small fixes.
52199         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
52200         succeeds.
52201         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
52202         before testing whether getlogin_r is declared. No need to set
52203         HAVE_DECL_GETLOGIN_R to 1.
52204         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
52206 2010-01-09  Bruno Haible  <bruno@clisp.org>
52208         * lib/unistd.in.h (getlogin_r): Add comment.
52210 2010-01-09  Bruno Haible  <bruno@clisp.org>
52212         Tests for module 'getlogin_r'.
52213         * modules/getlogin_r-tests: New file.
52214         * tests/test-getlogin_r.c: New file.
52216 2010-01-09  Jim Meyering  <meyering@redhat.com>
52218         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
52219         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
52220         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
52222 2010-01-08  Simon Josefsson  <simon@josefsson.org>
52224         * lib/dup2.c (rpl_dup2): Improve comment.
52226 2010-01-08  Eric Blake  <ebb9@byu.net>
52228         maint.mk: allow packages to add makefile @@ exceptions
52229         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
52230         (sc_makefile_check): Rename...
52231         (sc_makefile_at_at_check): ...to this, and use hook.
52233         dup2: work around mingw bug
52234         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
52235         Reported by Simon Josefsson.
52237 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
52239         glob: Fix C++ compilation.
52240         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
52241         C++.
52243 2010-01-07  Bruno Haible  <bruno@clisp.org>
52245         Fix indentation of wctype.in.h, broken since 2007-01-06.
52246         * lib/wctype.in.h: Fix indentation of preprocessor directives.
52248 2010-01-07  Bruno Haible  <bruno@clisp.org>
52250         mbslen: Avoid collision with system function.
52251         * lib/string.in.h [MirBSD]: Include <wchar.h>.
52252         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
52253         * m4/mbslen.m4: New file.
52254         * modules/mbslen (Files): Add it.
52255         (configure.ac): Invoke gl_MBSLEN.
52256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
52257         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
52258         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
52259         via Ian Beckwith <ianb@erislabs.net>.
52261 2010-01-07  Bruno Haible  <bruno@clisp.org>
52263         dirent: Document the last fix.
52264         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
52266 2010-01-07  Bruno Haible  <bruno@clisp.org>
52268         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
52269         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
52270         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
52271         va_list are defined.
52272         * doc/posix-headers/stdio.texi: Document the bug of missing types.
52273         Reported by Eric Blake.
52275 2010-01-07  Bruno Haible  <bruno@clisp.org>
52277         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
52278         * modules/xlist (Depends-on): Add 'list',
52279         * modules/xoset (Depends-on): Add 'oset'.
52280         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52282 2010-01-07  Bruno Haible  <bruno@clisp.org>
52284         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
52285         * doc/posix-functions/strncasecmp.texi: Likewise.
52287 2010-01-07  Bruno Haible  <bruno@clisp.org>
52289         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
52291 2010-01-07  John W. Eaton  <jwe@octave.org>
52293         wctype: allow C++ use
52294         * lib/wctype.in.h: Add extern "C" block for C++.
52296 2010-01-06  Eric Blake  <ebb9@byu.net>
52298         maint.mk: detect incorrect GFDL usage
52299         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
52301 2010-01-06  Jim Meyering  <meyering@redhat.com>
52302         and Eric Blake  <ebb9@byu.net>
52304         maint.mk: ignore multi-line copyright in NEWS
52305         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
52307 2010-01-06  Eric Blake  <ebb9@byu.net>
52309         select: add missing dependency
52310         * modules/select-tests (Depends-on): Move sockets dependency...
52311         * modules/select (Depends-on): ...here.
52312         Reported by Ian Beckwith.
52314         doc: regenerate INSTALL
52315         * doc/INSTALL: Reflect recent autoconf update.
52316         * doc/INSTALL.ISO: Likewise.
52317         * doc/INSTALL.UTF-8: Likewise.
52319         pread: fix compilation on glibc
52320         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
52321         Reported by Ralf Wildenhues.
52323         dirent: fix test failure
52324         * lib/dirent.in.h (includes): Guarantee ino_t.
52325         Reported by Ralf Wildenhues.
52327 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
52329         linkat, renameat: avoid bad free
52330         * lib/at-func2.c (at_func2): Fix typo.
52331         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
52333 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52335         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
52336         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
52337         to avoid failure of symlink test later.
52339 2010-01-06  Eric Blake  <ebb9@byu.net>
52341         stdio, unistd: guarantee ssize_t
52342         * lib/unistd.in.h (includes): Ensure that types required by POSIX
52343         2008 are exposed when needed.
52344         * lib/stdio.in.h (includes): Likewise.
52345         Reported by Ralf Wildenhues.
52347 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
52349         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
52350         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
52351         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
52353 2010-01-06  Jim Meyering  <meyering@redhat.com>
52355         readtokens: this module *does* require xalloc.h
52356         It uses only functions that were omitted by the old syntax-check rule.
52357         * lib/readtokens.c: Include "xalloc.h" once again.
52358         * modules/readtokens (Depends-on): Add xalloc.
52359         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
52361 2010-01-05  Eric Blake  <ebb9@byu.net>
52363         maint: support 'make announcement' from a VPATH build
52364         * top/maint.mk (announcement): Look for correct NEWS file.
52366 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
52368         utimens (fdutimens): ignore a negative FD, per contract
52369         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
52370         when we have a valid file descriptor.  Otherwise, using a brand
52371         new glibc (with just-patched futimens that now fails with EBADF)
52372         would cause this function to fail with ENOSYS.
52373         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
52374         See also http://bugzilla.redhat.com/552320.
52376 2010-01-05  Eric Blake  <ebb9@byu.net>
52378         strcase: document what it provides
52379         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
52380         gnulib module.
52381         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
52382         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
52384 2010-01-05  Jim Meyering  <meyering@redhat.com>
52386         maint: remove useless inclusions of "xalloc.h"
52387         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
52388         * lib/readtokens.c: Likewise.
52389         * lib/same.c: Likewise.
52390         * modules/getloadavg (Depends-on): Remove xalloc.
52391         * modules/readtokens: Likewise.
52392         * modules/same: Likewise.
52394         maint.mk: include 4 more function names in alloca.h-checking regexp
52395         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
52396         regexp.  Before, we would give a false-positive (saying alloca.h
52397         is included unnecessarily) when the only uses involved omitted symbols.
52399         xalloc.h: use consistent formatting
52400         * lib/xalloc.h: Move declarations to start in the first column.
52402 2010-01-05  Eric Blake  <ebb9@byu.net>
52404         mkdir: avoid xalloc
52405         * lib/mkdir.c (includes): Drop unused header.
52406         Reported by John W. Eaton.
52408 2010-01-04  Jim Meyering  <meyering@redhat.com>
52410         nl_langinfo: avoid configure-time syntax error
52411         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
52412         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
52413         the empty string.  Don't let that provoke a shell syntax error.
52415         regcomp, regexec, fnmatch: avoid array bounds read error
52416         * lib/regcomp.c (build_equiv_class): From glibc:
52417         Use only the low 24 bits of a findidx return value as an index
52418         into the weights array.  Patch by Ulrich Drepper:
52419         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
52420         * lib/regexec.c (check_node_accept_bytes): Likewise.
52421         * lib/fnmatch_loop.c (FCT): Likewise.
52423         regcomp: skip collseq lookup when there are no rules
52424         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
52425         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
52427         regcomp: recognize ill-formed { } expressions
52428         * lib/regcomp.c (parse_dup_op): From glibc:
52429         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
52431         regcomp: fix typo in comment
52432         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
52433         s/satisfy/satisfies/.
52435         regcomp: sync from glibc: remove dead store
52436         * lib/regcomp.c (duplicate_node_closure): Remove useless
52437         search_duplicated_node call and dead store.
52439         regcomp: sync from glibc; always use nl_langinfo
52440         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
52441         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
52442         * modules/regex (Depends-on): Add nl_langinfo.
52444 2010-01-04  Eric Blake  <ebb9@byu.net>
52446         fdopendir: fix configure test
52447         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
52449 2010-01-01  Bruno Haible  <bruno@clisp.org>
52451         wchar: Remove unused configure check.
52452         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
52454 2010-01-01  Eric Blake  <ebb9@byu.net>
52456         headers: make check of system header explicit
52457         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
52458         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
52459         ourselves.
52460         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52462         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52463         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
52464         internals.
52465         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
52466         missing.
52467         Suggested by Bruno Haible.
52469 2010-01-01  Jim Meyering  <meyering@redhat.com>
52471         ChangeLog: tweak to eliminate unnecessary copyright line
52472         * ChangeLog: Remove a copyright line that was mistakenly updated
52473         by today's update-copyright run.  Reported by Eric Blake.
52475         test-update-copyright: don't let envvar setting cause test failure
52476         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
52478 2010-01-01  Bruno Haible  <bruno@clisp.org>
52480         localename: Avoid gcc warning.
52481         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
52482         function if it is not used.
52484 2010-01-01  Jim Meyering  <meyering@redhat.com>
52486         update nearly all FSF copyright year lists to include 2010
52487         Use the same procedure as for 2009, outlined in
52488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
52490         version-etc: set COPYRIGHT_YEAR to 2010
52491         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
52493 2009-12-31  Eric Blake  <ebb9@byu.net>
52495         doc: correct availability of cygwin 1.5.x getopt
52496         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
52497         variables.
52498         * doc/posix-functions/opterr.texi (opterr): Likewise.
52499         * doc/posix-functions/optind.texi (optind): Likewise.
52500         * doc/posix-functions/optopt.texi (optopt): Likewise.
52501         * doc/posix-functions/tzname.texi (tzname): Likewise.
52503         openat: update maintainer
52504         * modules/openat (Maintainer): Add myself.
52506         utimens: avoid shadowing warning
52507         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
52508         buffers into one, to avoid shadowing, as well as avoiding a
52509         redundant stat.
52510         Reported by Jim Meyering.
52512         test-dup2: avoid compiler warning
52513         * tests/test-dup2.c (is_inheritable): Only define if used.
52515 2010-01-01  Bruno Haible  <bruno@clisp.org>
52517         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
52518         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
52519         defined, use wctomb instead of wcrtomb.
52521 2010-01-01  Bruno Haible  <bruno@clisp.org>
52523         iconv: Reject native Solaris iconv.
52524         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
52525         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
52527 2009-12-31  Bruno Haible  <bruno@clisp.org>
52529         * tests/test-signal.c (main): Remove test of 'SIG'.
52531 2009-12-31  Bruno Haible  <bruno@clisp.org>
52533         spawn: Fix incomplete fix.
52534         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52535         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
52536         warnings for GNULIB_POSIXCHECK again.
52537         Reported by Eric Blake.
52539 2009-12-31  Bruno Haible  <bruno@clisp.org>
52541         Avoid namespace pollution on glibc systems.
52542         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
52543         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
52544         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
52545         glibc systems.
52547 2009-12-31  Bruno Haible  <bruno@clisp.org>
52549         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
52550         (gl_REPLACE_WCHAR_H): Turn into a no-op.
52551         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
52552         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52553         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52554         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52555         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52557 2009-12-31  Bruno Haible  <bruno@clisp.org>
52559         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52560         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
52561         afterwards.
52563 2009-12-31  Bruno Haible  <bruno@clisp.org>
52565         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
52566         SYS_UTSNAME_H.
52568 2009-12-31  Bruno Haible  <bruno@clisp.org>
52570         spawn: Fix misapplied patch.
52571         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52572         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
52573         warnings for GNULIB_POSIXCHECK.
52575 2009-12-31  Bruno Haible  <bruno@clisp.org>
52577         times: Update after sys_times changed.
52578         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
52579         * modules/times (Files): Add it.
52580         (configure.ac): Invoke gl_FUNC_TIMES.
52582 2009-12-31  Bruno Haible  <bruno@clisp.org>
52584         Use AC_C_INLINE where necessary.
52585         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
52586         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52588         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52589         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52590         * m4/mbiter.m4 (gl_MBITER): Likewise.
52591         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52592         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52593         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
52594         * modules/u64 (configure.ac): Likewise.
52596 2009-12-31  Bruno Haible  <bruno@clisp.org>
52598         Use AC_C_INLINE instead of module 'inline' where possible.
52599         * modules/inline (Description): Clarify purpose.
52600         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
52601         * modules/count-one-bits (Depends-on): Remove inline.
52602         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
52603         * modules/openat (Depends-on): Remove inline.
52604         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
52605         instead of depending on module 'inline'.
52606         * modules/filevercmp (Depends-on, configure.ac): Likewise.
52607         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
52608         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
52609         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
52610         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
52611         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
52612         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
52613         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
52614         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
52615         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
52616         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
52617         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
52618         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
52619         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
52620         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
52621         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
52622         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
52623         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
52624         Likewise.
52625         * modules/unictype/property-ascii-hex-digit (Depends-on,
52626         configure.ac): Likewise.
52627         * modules/unictype/property-bidi-arabic-digit (Depends-on,
52628         configure.ac): Likewise.
52629         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
52630         configure.ac): Likewise.
52631         * modules/unictype/property-bidi-block-separator (Depends-on,
52632         configure.ac): Likewise.
52633         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
52634         configure.ac): Likewise.
52635         * modules/unictype/property-bidi-common-separator (Depends-on,
52636         configure.ac): Likewise.
52637         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
52638         Likewise.
52639         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
52640         configure.ac): Likewise.
52641         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
52642         configure.ac): Likewise.
52643         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
52644         configure.ac): Likewise.
52645         * modules/unictype/property-bidi-european-digit (Depends-on,
52646         configure.ac): Likewise.
52647         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
52648         configure.ac): Likewise.
52649         * modules/unictype/property-bidi-left-to-right (Depends-on,
52650         configure.ac): Likewise.
52651         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
52652         configure.ac): Likewise.
52653         * modules/unictype/property-bidi-other-neutral (Depends-on,
52654         configure.ac): Likewise.
52655         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
52656         Likewise.
52657         * modules/unictype/property-bidi-segment-separator (Depends-on,
52658         configure.ac): Likewise.
52659         * modules/unictype/property-bidi-whitespace (Depends-on,
52660         configure.ac): Likewise.
52661         * modules/unictype/property-combining (Depends-on, configure.ac):
52662         Likewise.
52663         * modules/unictype/property-composite (Depends-on, configure.ac):
52664         Likewise.
52665         * modules/unictype/property-currency-symbol (Depends-on,
52666         configure.ac): Likewise.
52667         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
52668         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
52669         Likewise.
52670         * modules/unictype/property-default-ignorable-code-point (Depends-on,
52671         configure.ac): Likewise.
52672         * modules/unictype/property-deprecated (Depends-on, configure.ac):
52673         Likewise.
52674         * modules/unictype/property-diacritic (Depends-on, configure.ac):
52675         Likewise.
52676         * modules/unictype/property-extender (Depends-on, configure.ac):
52677         Likewise.
52678         * modules/unictype/property-format-control (Depends-on, configure.ac):
52679         Likewise.
52680         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
52681         Likewise.
52682         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
52683         Likewise.
52684         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
52685         Likewise.
52686         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
52687         Likewise.
52688         * modules/unictype/property-hyphen (Depends-on, configure.ac):
52689         Likewise.
52690         * modules/unictype/property-id-continue (Depends-on, configure.ac):
52691         Likewise.
52692         * modules/unictype/property-id-start (Depends-on, configure.ac):
52693         Likewise.
52694         * modules/unictype/property-ideographic (Depends-on, configure.ac):
52695         Likewise.
52696         * modules/unictype/property-ids-binary-operator (Depends-on,
52697         configure.ac): Likewise.
52698         * modules/unictype/property-ids-trinary-operator (Depends-on,
52699         configure.ac): Likewise.
52700         * modules/unictype/property-ignorable-control (Depends-on,
52701         configure.ac): Likewise.
52702         * modules/unictype/property-iso-control (Depends-on, configure.ac):
52703         Likewise.
52704         * modules/unictype/property-join-control (Depends-on, configure.ac):
52705         Likewise.
52706         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
52707         Likewise.
52708         * modules/unictype/property-line-separator (Depends-on, configure.ac):
52709         Likewise.
52710         * modules/unictype/property-logical-order-exception (Depends-on,
52711         configure.ac): Likewise.
52712         * modules/unictype/property-lowercase (Depends-on, configure.ac):
52713         Likewise.
52714         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
52715         * modules/unictype/property-non-break (Depends-on, configure.ac):
52716         Likewise.
52717         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
52718         Likewise.
52719         * modules/unictype/property-numeric (Depends-on, configure.ac):
52720         Likewise.
52721         * modules/unictype/property-other-alphabetic (Depends-on,
52722         configure.ac): Likewise.
52723         * modules/unictype/property-other-default-ignorable-code-point
52724         (Depends-on, configure.ac): Likewise.
52725         * modules/unictype/property-other-grapheme-extend (Depends-on,
52726         configure.ac): Likewise.
52727         * modules/unictype/property-other-id-continue (Depends-on,
52728         configure.ac): Likewise.
52729         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
52730         Likewise.
52731         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
52732         Likewise.
52733         * modules/unictype/property-other-math (Depends-on, configure.ac):
52734         Likewise.
52735         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
52736         Likewise.
52737         * modules/unictype/property-paired-punctuation (Depends-on,
52738         configure.ac): Likewise.
52739         * modules/unictype/property-paragraph-separator (Depends-on,
52740         configure.ac): Likewise.
52741         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
52742         Likewise.
52743         * modules/unictype/property-pattern-white-space (Depends-on,
52744         configure.ac): Likewise.
52745         * modules/unictype/property-private-use (Depends-on, configure.ac):
52746         Likewise.
52747         * modules/unictype/property-punctuation (Depends-on, configure.ac):
52748         Likewise.
52749         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
52750         Likewise.
52751         * modules/unictype/property-radical (Depends-on, configure.ac):
52752         Likewise.
52753         * modules/unictype/property-sentence-terminal (Depends-on,
52754         configure.ac): Likewise.
52755         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
52756         Likewise.
52757         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
52758         * modules/unictype/property-terminal-punctuation (Depends-on,
52759         configure.ac): Likewise.
52760         * modules/unictype/property-titlecase (Depends-on, configure.ac):
52761         Likewise.
52762         * modules/unictype/property-unassigned-code-value (Depends-on,
52763         configure.ac): Likewise.
52764         * modules/unictype/property-unified-ideograph (Depends-on,
52765         configure.ac): Likewise.
52766         * modules/unictype/property-uppercase (Depends-on, configure.ac):
52767         Likewise.
52768         * modules/unictype/property-variation-selector (Depends-on,
52769         configure.ac): Likewise.
52770         * modules/unictype/property-white-space (Depends-on, configure.ac):
52771         Likewise.
52772         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
52773         Likewise.
52774         * modules/unictype/property-xid-start (Depends-on, configure.ac):
52775         Likewise.
52776         * modules/unictype/property-zero-width (Depends-on, configure.ac):
52777         Likewise.
52778         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
52779         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
52780         Likewise.
52782 2009-12-31  Bruno Haible  <bruno@clisp.org>
52784         Remove unnecessary AC_C_INLINE invocation.
52785         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
52786         since 2009-08-21.
52788 2009-12-31  Jim Meyering  <meyering@redhat.com>
52790         maint.mk: don't require explicit gpg_key_ID in cfg.mk
52791         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
52792         With this change, we can all remove the gpg_key_ID = ... definition
52793         from our respective cfg.mk files.
52795         maint.mk: create announcement template in ~/, not in /tmp
52796         * top/maint.mk (emit_upload_commands): Adjust.
52797         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
52798         Remove temporary file, .ci-msg.
52800 2009-12-31  Eric Blake  <ebb9@byu.net>
52802         link-warning: always build headers with link warnings
52803         * modules/arpa_inet (Makefile.am): Always build replacement
52804         header.
52805         * modules/ctype (Makefile.am): Likewise.
52806         * modules/dirent (Makefile.am): Likewise.
52807         * modules/inttypes (Makefile.am): Likewise.
52808         * modules/langinfo (Makefile.am): Likewise.
52809         * modules/locale (Makefile.am): Likewise.
52810         * modules/spawn (Makefile.am): Likewise.
52811         * modules/sys_file (Makefile.am): Likewise.
52812         * modules/sys_ioctl (Makefile.am): Likewise.
52813         * modules/sys_select (Makefile.am): Likewise.
52814         * modules/sys_socket (Makefile.am): Likewise.
52815         * modules/sys_times (Makefile.am): Likewise.
52816         * modules/sys_utsname (Makefile.am): Likewise.
52817         * modules/sys_wait (Makefile.am): Likewise.
52818         * modules/wchar (Makefile.am): Likewise.
52819         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
52820         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
52821         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
52822         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
52823         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
52824         Likewise.
52825         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52826         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52827         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
52828         Likewise.
52829         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
52830         Likewise.
52831         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
52832         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
52833         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
52834         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52835         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52836         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52837         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52838         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
52839         (gl_WCHAR_H_DEFAULTS): Likewise.
52841 2009-12-31  Eric Blake  <ebb9@byu.net>
52843         signal, spawn: use link warnings
52844         * lib/signal.in.h (sigset_t): Make unconditional.
52845         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
52846         (sigpending, sigprocmask, sigaction): Add link warnings.
52847         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
52848         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
52849         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
52850         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
52851         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
52852         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
52853         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
52854         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
52855         (posix_spawn_file_actions_destroy)
52856         (posix_spawn_file_actions_addopen)
52857         (posix_spawn_file_actions_addclose)
52858         (posix_spawn_file_actions_adddup2): Likewise.
52859         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
52860         * tests/test-signal.c (main): Enhance test.
52862         spawn: improve wrapper support
52863         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
52864         (gl_SPAWN_H_DEFAULTS): New defaults.
52865         * modules/spawn (Makefile.am): Substitute them.
52866         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
52867         Only declare if missing or broken.
52869         sys_times, sys_utsname: use include_next
52870         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
52871         header.
52872         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
52873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52874         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52875         * modules/sys_times (Depends-on): Add include_next.
52876         (Makefile.am): Substitute additional values.
52877         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52878         * lib/sys_times.in.h (includes): Include native header, if
52879         available.
52880         * lib/sys_utsname.in.h (includes): Likewise.
52881         * tests/test-sys_times.c (main): Enhance test.
52883         fdutimensat: revert prior patch
52884         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
52885         utimens.h.
52886         Reported by Bruno Haible.
52888 2009-12-30  Eric Blake  <ebb9@byu.net>
52890         sys_wait: drop link-warning dependency
52891         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
52892         link-warning efforts.
52893         * lib/sys_wait.in.h: Likewise.
52895         fdutimensat: remove bogus dependency
52896         * modules/fdutimensat (Depends-on): Drop inline.
52898         unistd: fix typo
52899         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
52901 2009-12-30  Bruno Haible  <bruno@clisp.org>
52903         Fix compilation error with Solaris cc.
52904         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
52905         * lib/unicase/u16-is-invariant.c: Likewise.
52906         * lib/unicase/u32-is-invariant.c: Likewise.
52907         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52909 2009-12-30  Bruno Haible  <bruno@clisp.org>
52911         Fix test crash.
52912         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
52913         locales.
52914         Reported by Simon Josefsson <simon@josefsson.org>.
52916 2009-12-30  Bruno Haible  <bruno@clisp.org>
52918         Fix compilation error on most platforms.
52919         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
52920         Reported by Simon Josefsson <simon@josefsson.org>
52921         and Nelson H. F. Beebe <beebe@math.utah.edu>.
52923 2009-12-30  Eric Blake  <ebb9@byu.net>
52925         futimens, utimensat: work around ntfs-3g bug
52926         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
52927         a ctime bug is present, and expand workaround to cover ntfs-3g.
52928         * lib/utimens.c (fdutimens, lutimens): Likewise.
52929         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
52930         (validate_timespec): Adjust return value.
52931         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
52932         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52933         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
52935 2009-12-29  Eric Blake  <ebb9@byu.net>
52937         link-warning: make usage consistent
52938         * modules/ctype (Depends-on): Add link-warning.
52939         (Makefile.am): Update rules accordingly.
52940         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52941         * modules/locale (Depends-on, Makefile.am): Likewise.
52942         * modules/sys_file (Makefile.am): Likewise.
52943         * modules/getopt-posix (Makefile.am): Delete unused link warning
52944         efforts.
52945         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
52946         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
52947         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
52948         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
52950         stdio: remove unused variables
52951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
52952         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
52953         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
52955         tests: test more substitute headers
52956         * modules/ctype-tests: New file.
52957         * modules/dirent-tests: Likewise.
52958         * modules/spawn-tests: Likewise.
52959         * modules/sys_file-tests: Likewise.
52960         * modules/sys_ioctl-tests: Likewise.
52961         * modules/sys_wait-tests: Likewise.
52962         * tests/test-ctype.c: Likewise.
52963         * tests/test-dirent.c: Likewise.
52964         * tests/test-spawn.c: Likewise.
52965         * tests/test-sys_file.c: Likewise.
52966         * tests/test-sys_ioctl.c: Likewise.
52967         * tests/test-sys_wait.c: Likewise.
52968         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
52969         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
52970         whether or not flock is in use.
52972         tests: remove License section from module
52973         * modules/arpa_inet-tests: Remove unneeded section.
52974         * modules/byteswap-tests: Likewise.
52975         * modules/ceilf-tests: Likewise.
52976         * modules/ceill-tests: Likewise.
52977         * modules/crypto/des-tests: Likewise.
52978         * modules/crypto/gc-arcfour-tests: Likewise.
52979         * modules/crypto/gc-arctwo-tests: Likewise.
52980         * modules/crypto/gc-des-tests: Likewise.
52981         * modules/crypto/gc-hmac-md5-tests: Likewise.
52982         * modules/crypto/gc-hmac-sha1-tests: Likewise.
52983         * modules/crypto/gc-md2-tests: Likewise.
52984         * modules/crypto/gc-md4-tests: Likewise.
52985         * modules/crypto/gc-md5-tests: Likewise.
52986         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
52987         * modules/crypto/gc-rijndael-tests: Likewise.
52988         * modules/crypto/gc-sha1-tests: Likewise.
52989         * modules/crypto/gc-tests: Likewise.
52990         * modules/crypto/md2-tests: Likewise.
52991         * modules/crypto/md4-tests: Likewise.
52992         * modules/fcntl-h-tests: Likewise.
52993         * modules/floorf-tests: Likewise.
52994         * modules/floorl-tests: Likewise.
52995         * modules/frexp-nolibm-tests: Likewise.
52996         * modules/frexp-tests: Likewise.
52997         * modules/frexpl-nolibm-tests: Likewise.
52998         * modules/frexpl-tests: Likewise.
52999         * modules/getaddrinfo-tests: Likewise.
53000         * modules/inttypes-tests: Likewise.
53001         * modules/isfinite-tests: Likewise.
53002         * modules/isinf-tests: Likewise.
53003         * modules/ldexpl-tests: Likewise.
53004         * modules/locale-tests: Likewise.
53005         * modules/math-tests: Likewise.
53006         * modules/netdb-tests: Likewise.
53007         * modules/netinet_in-tests: Likewise.
53008         * modules/printf-frexp-tests: Likewise.
53009         * modules/printf-frexpl-tests: Likewise.
53010         * modules/priv-set-tests: Likewise.
53011         * modules/random_r-tests: Likewise.
53012         * modules/round-tests: Likewise.
53013         * modules/roundf-tests: Likewise.
53014         * modules/roundl-tests: Likewise.
53015         * modules/search-tests: Likewise.
53016         * modules/select-tests: Likewise.
53017         * modules/signal-tests: Likewise.
53018         * modules/stdbool-tests: Likewise.
53019         * modules/stddef-tests: Likewise.
53020         * modules/stdint-tests: Likewise.
53021         * modules/stdio-tests: Likewise.
53022         * modules/stdlib-tests: Likewise.
53023         * modules/string-tests: Likewise.
53024         * modules/strings-tests: Likewise.
53025         * modules/sys_select-tests: Likewise.
53026         * modules/sys_socket-tests: Likewise.
53027         * modules/sys_stat-tests: Likewise.
53028         * modules/sys_time-tests: Likewise.
53029         * modules/sys_utsname-tests: Likewise.
53030         * modules/sysexits-tests: Likewise.
53031         * modules/time-tests: Likewise.
53032         * modules/trunc-tests: Likewise.
53033         * modules/truncf-tests: Likewise.
53034         * modules/truncl-tests: Likewise.
53035         * modules/tsearch-tests: Likewise.
53036         * modules/unistd-tests: Likewise.
53037         * modules/wchar-tests: Likewise.
53038         * modules/wctype-tests: Likewise.
53040         tests: fix license on several tests
53041         * tests/test-des.c: Update to GPLv3+.
53042         * tests/test-flock.c: Likewise.
53043         * tests/test-fsync.c: Likewise.
53044         * tests/test-futimens.h: Likewise.
53045         * tests/test-gc-arcfour.c: Likewise.
53046         * tests/test-gc-arctwo.c: Likewise.
53047         * tests/test-gc-des.c: Likewise.
53048         * tests/test-gc-hmac-md5.c: Likewise.
53049         * tests/test-gc-hmac-sha1.c: Likewise.
53050         * tests/test-gc-md2.c: Likewise.
53051         * tests/test-gc-md4.c: Likewise.
53052         * tests/test-gc-md5.c: Likewise.
53053         * tests/test-gc-pbkdf2-sha1.c: Likewise.
53054         * tests/test-gc-rijndael.c: Likewise.
53055         * tests/test-gc-sha1.c: Likewise.
53056         * tests/test-gc.c: Likewise.
53057         * tests/test-getcwd.c: Likewise.
53058         * tests/test-link.c: Likewise.
53059         * tests/test-link.h: Likewise.
53060         * tests/test-lutimens.h: Likewise.
53061         * tests/test-md2.c: Likewise.
53062         * tests/test-md4.c: Likewise.
53063         * tests/test-mkdir.h: Likewise.
53064         * tests/test-rename.c: Likewise.
53065         * tests/test-rename.h: Likewise.
53066         * tests/test-safe-alloc.c: Likewise.
53067         * tests/test-utimens-common.h: Likewise.
53068         * tests/test-utimens.h: Likewise.
53070         maint: sync license texts
53071         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
53072         * doc/gpl-3.0.texi: Revert copyright year update.
53073         * doc/lgpl-3.0.texi: Likewise.
53075 2009-12-29  Jim Meyering  <meyering@redhat.com>
53077         update nearly all FSF copyright year lists to include 2009
53078         The files named by the following are exempted:
53079             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
53080               test -f "$dst" && { echo "$dst"; continue; }
53081               test -d "$dst" || continue
53082               echo "$dst"/$(basename "$src")
53083             done > exempt
53084             git ls-files tests/unictype >> exempt
53085         In the remaining files, convert to all-interval notation if
53086         - there is already at least one year interval like 2000-2003
53087         - the file is maintained by me
53088         - the file is in lib/uni*/, where that style already prevails
53089         Otherwise, use update-copyright's default.
53091 2009-12-29  Simon Josefsson  <simon@josefsson.org>
53092         and Eric Blake  <ebb9@byu.net>
53094         tests: don't require debug system() to pass
53095         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
53096         * tests/test-rmdir.h (test_rmdir_func): Likewise.
53097         * tests/test-unlink.h (test_unlink_func): Likewise.
53098         * tests/test-fstatat.c (main): ...into callers.
53099         * tests/test-lstat.c (main): Likewise.
53100         * tests/test-rmdir.c (main): Likewise.
53101         * tests/test-unlink.c (main): Likewise.
53102         * tests/test-unlinkat.c (main): Likewise.
53103         * tests/test-areadlink-with-size.c (main): Don't require a
53104         debug-only system call to pass, aiding cross-testing to mingw.
53105         * tests/test-areadlink.c (main): Likewise.
53106         * tests/test-areadlinkat-with-size.c (main): Likewise.
53107         * tests/test-areadlinkat.c (main): Likewise.
53108         * tests/test-canonicalize-lgpl.c (main): Likewise.
53109         * tests/test-canonicalize.c (main): Likewise.
53110         * tests/test-chown.c (main): Likewise.
53111         * tests/test-fchownat.c (main): Likewise.
53112         * tests/test-lchown.c (main): Likewise.
53113         * tests/test-fdutimensat.c (main): Likewise.
53114         * tests/test-futimens.c (main): Likewise.
53115         * tests/test-link.c (main): Likewise.
53116         * tests/test-linkat.c (main): Likewise.
53117         * tests/test-mkdir.c (main): Likewise.
53118         * tests/test-mkdirat.c (main): Likewise.
53119         * tests/test-mkfifo.c (main): Likewise.
53120         * tests/test-mkfifoat.c (main): Likewise.
53121         * tests/test-mknod.c (main): Likewise.
53122         * tests/test-readlink.c (main): Likewise.
53123         * tests/test-remove.c (main): Likewise.
53124         * tests/test-rename.c (main): Likewise.
53125         * tests/test-renameat.c (main): Likewise.
53126         * tests/test-symlink.c (main): Likewise.
53127         * tests/test-symlinkat.c (main): Likewise.
53128         * tests/test-utimens.c (main): Likewise.
53129         * tests/test-utimensat.c (main): Likewise.
53131 2009-12-29  Simon Josefsson  <simon@josefsson.org>
53133         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
53134         on $(UNUSED_PARAMETER_H) to avoid build failure.
53136 2009-12-28  Jim Meyering  <meyering@redhat.com>
53138         update-copyright: you may specify a max. line length other than 72
53139         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
53141         maint: use consistent FSF copyright line syntax
53142         * lib/posixtm.c: Add missing comma in FSF copyright line.
53143         * lib/posixtm.h: Likewise.
53144         * lib/getugroups.c: Add missing ", Inc.".
53146         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
53147         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
53148         FSF copyright line.  Remove trailing blanks.
53150 2009-12-28  Eric Blake  <ebb9@byu.net>
53152         test-dup2: reduce dependencies
53153         * modules/cloexec (Configure.ac): Set witness.
53154         * modules/dup2-tests (Depends-on): Drop cloexec.
53155         * tests/test-dup2.c (main): Skip portion of test if cloexec module
53156         not present.
53157         Suggested by Bruno Haible.
53159 2009-12-26  Bruno Haible  <bruno@clisp.org>
53161         Remove an unneeded dependency.
53162         * modules/fseterr (Depends-on): Remove dup2.
53164 2009-12-26  Eric Blake  <ebb9@byu.net>
53166         tests: use macros.h in more places
53167         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
53168         (ASSERT_STREAM): Provide default of stderr.
53169         * tests/test-dirent-safer.c: Include macros.h, using alternate
53170         stream for assertions.
53171         * tests/test-dup-safer.c: Likewise.
53172         * tests/test-freopen-safer.c: Likewise.
53173         * tests/test-getopt.c: Likewise.
53174         * tests/test-openat-safer.c: Likewise.
53175         * tests/test-pipe.c: Likewise.
53176         * tests/test-popen-safer.c: Likewise.
53177         * modules/dirent-safer-tests (Files): Include macros.h.
53178         * modules/unistd-safer-tests (Files): Likewise.
53179         * modules/freopen-safer-tests (Files): Likewise.
53180         * modules/getopt-posix-tests (Files): Likewise.
53181         * modules/openat-safer-tests (Files): Likewise.
53182         * modules/pipe-tests (Files): Likewise.
53184 2009-12-26  Bruno Haible  <bruno@clisp.org>
53186         javacomp: Portability fix.
53187         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
53188         that it also works on Solaris.
53190 2009-12-26  Bruno Haible  <bruno@clisp.org>
53192         localename: Fix storage allocation of gl_locale_name_thread's result.
53193         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
53194         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
53195         all platforms that have 'uselocale'.
53196         (gl_locale_name_thread_unsafe): New function, extracted from
53197         gl_locale_name_thread.
53198         (gl_locale_name_thread): Call struniq on all platforms that have
53199         'uselocale'.
53200         * tests/test-localename.c (test_locale_name_thread): Check that the
53201         resulting strings are permanently allocated.
53202         * modules/localename-tests (Depends-on): Add strdup.
53204 2009-12-26  Bruno Haible  <bruno@clisp.org>
53206         * tests/test-localename.c (categories): Fill in the strings.
53208 2009-12-26  Jim Meyering  <meyering@redhat.com>
53210         isdir: complete the removal of m4/isdir.m4
53211         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
53213         isdir: clean up, since at least grep still uses it
53214         * lib/isdir.c: Include "isdir.h".
53215         (S_ISDIR): Remove now-unneeded definition.
53216         * modules/isdir (Files): Add lib/isdir.h.
53217         * lib/isdir.h: New file, with declaration.
53218         * m4/isdir.m4: Remove file -- unneeded.
53220 2009-12-25  Bruno Haible  <bruno@clisp.org>
53222         selinux-h: Make generated .h files standalone.
53223         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
53224         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
53225         * lib/se-selinux.in.h: Likewise.
53226         * modules/selinux-h (Depends-on): Add unused-parameter.
53227         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
53228         selinux/selinux.h and selinux/context.h.
53229         Suggested by Eric Blake.
53231 2009-12-25  Bruno Haible  <bruno@clisp.org>
53233         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
53234         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
53235         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
53236         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
53237         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
53239 2009-12-24  Bruno Haible  <bruno@clisp.org>
53241         openat: Fix warning.
53242         * lib/openat-proc.c: Include <unistd.h>.
53244 2009-12-24  Bruno Haible  <bruno@clisp.org>
53246         New module 'unused-parameter'.
53247         * build-aux/unused-parameter.h: New file, extracted from earlier
53248         gnulib-common.m4.
53249         * modules/unused-parameter: New file.
53250         * lib/unistr.h: Include unused-parameter.h.
53251         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
53252         _GL_UNUSED.
53253         * modules/unistr/base (Depends-on): Add unused-parameter.
53255 2009-12-24  Bruno Haible  <bruno@clisp.org>
53257         Add missing dependencies to 'extensions' module.
53258         * m4/extensions.m4: Add comment.
53259         * modules/accept4 (Depends-on): Add extensions.
53260         * modules/dup3 (Depends-on): Likewise.
53261         * modules/fcntl (Depends-on): Likewise.
53262         * modules/futimens (Depends-on): Likewise.
53263         * modules/mknod (Depends-on): Likewise.
53264         * modules/pipe2 (Depends-on): Likewise.
53265         * modules/stat-time (Depends-on): Likewise.
53266         * modules/strcasestr-simple (Depends-on): Likewise.
53267         * modules/strsignal (Depends-on): Likewise.
53268         * modules/utimensat (Depends-on): Likewise.
53269         * modules/localcharset (Depends-on): Likewise. Needed because of
53270         gl_FCNTL_O_FLAGS.
53271         * modules/wcrtomb (Depends-on): Likewise. Needed because of
53272         AC_TYPE_MBSTATE_T.
53273         * modules/wcsnrtombs (Depends-on): Likewise.
53274         * modules/wcsrtombs (Depends-on): Likewise.
53276 2009-12-24  Bruno Haible  <bruno@clisp.org>
53278         binary-io: Avoid gcc warning due to SET_BINARY.
53279         * lib/binary-io.h (SET_BINARY): Cast the result to void.
53280         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
53282 2009-12-24  Bruno Haible  <bruno@clisp.org>
53284         Avoid future namespace pollution on glibc systems.
53285         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
53286         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
53287         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
53288         glibc systems.
53290 2009-12-24  Bruno Haible  <bruno@clisp.org>
53292         Refactor common macros used in tests.
53293         * tests/macros.h: New file.
53294         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
53295         and/or <stdlib.h>, if appropriate.
53296         (ASSERT, SIZEOF): Remove macros.
53297         * tests/test-areadlink-with-size.c: Likewise.
53298         * tests/test-areadlinkat.c: Likewise.
53299         * tests/test-areadlinkat-with-size.c: Likewise.
53300         * tests/test-argmatch.c: Likewise.
53301         * tests/test-argv-iter.c: Likewise.
53302         * tests/test-array-mergesort.c: Likewise.
53303         * tests/test-array_list.c: Likewise.
53304         * tests/test-array_oset.c: Likewise.
53305         * tests/test-avltree_list.c: Likewise.
53306         * tests/test-avltree_oset.c: Likewise.
53307         * tests/test-avltreehash_list.c: Likewise.
53308         * tests/test-base64.c: Likewise.
53309         * tests/test-binary-io.c: Likewise.
53310         * tests/test-bitrotate.c: Likewise.
53311         * tests/test-btowc.c: Likewise.
53312         * tests/test-byteswap.c: Likewise.
53313         * tests/test-c-ctype.c: Likewise.
53314         * tests/test-c-stack.c: Likewise.
53315         * tests/test-c-strcasecmp.c: Likewise.
53316         * tests/test-c-strcasestr.c: Likewise.
53317         * tests/test-c-strncasecmp.c: Likewise.
53318         * tests/test-c-strstr.c: Likewise.
53319         * tests/test-canonicalize-lgpl.c: Likewise.
53320         * tests/test-canonicalize.c: Likewise.
53321         * tests/test-carray_list.c: Likewise.
53322         * tests/test-ceilf1.c: Likewise.
53323         * tests/test-ceilf2.c: Likewise.
53324         * tests/test-ceill.c: Likewise.
53325         * tests/test-chown.c: Likewise.
53326         * tests/test-cloexec.c: Likewise.
53327         * tests/test-copy-acl.c: Likewise.
53328         * tests/test-copy-file.c: Likewise.
53329         * tests/test-count-one-bits.c: Likewise.
53330         * tests/test-dprintf-posix.c: Likewise.
53331         * tests/test-dup2.c: Likewise.
53332         * tests/test-dup3.c: Likewise.
53333         * tests/test-duplocale.c: Likewise.
53334         * tests/test-fbufmode.c: Likewise.
53335         * tests/test-fchdir.c: Likewise.
53336         * tests/test-fchownat.c: Likewise.
53337         * tests/test-fcntl-safer.c: Likewise.
53338         * tests/test-fcntl.c: Likewise.
53339         * tests/test-fdopendir.c: Likewise.
53340         * tests/test-fdutimensat.c: Likewise.
53341         * tests/test-fflush2.c: Likewise.
53342         * tests/test-file-has-acl.c: Likewise.
53343         * tests/test-filevercmp.c: Likewise.
53344         * tests/test-flock.c: Likewise.
53345         * tests/test-floorf1.c: Likewise.
53346         * tests/test-floorf2.c: Likewise.
53347         * tests/test-floorl.c: Likewise.
53348         * tests/test-fnmatch.c: Likewise.
53349         * tests/test-fopen.h: Likewise.
53350         * tests/test-fpending.c: Likewise.
53351         * tests/test-fprintf-posix.c: Likewise.
53352         * tests/test-fpurge.c: Likewise.
53353         * tests/test-freadable.c: Likewise.
53354         * tests/test-freadahead.c: Likewise.
53355         * tests/test-freading.c: Likewise.
53356         * tests/test-freadptr.c: Likewise.
53357         * tests/test-freadptr2.c: Likewise.
53358         * tests/test-freadseek.c: Likewise.
53359         * tests/test-freopen.c: Likewise.
53360         * tests/test-frexp.c: Likewise.
53361         * tests/test-frexpl.c: Likewise.
53362         * tests/test-fseek.c: Likewise.
53363         * tests/test-fseeko.c: Likewise.
53364         * tests/test-fstatat.c: Likewise.
53365         * tests/test-fstrcmp.c: Likewise.
53366         * tests/test-fsync.c: Likewise.
53367         * tests/test-ftell.c: Likewise.
53368         * tests/test-ftello.c: Likewise.
53369         * tests/test-func.c: Likewise.
53370         * tests/test-futimens.c: Likewise.
53371         * tests/test-fwritable.c: Likewise.
53372         * tests/test-fwriting.c: Likewise.
53373         * tests/test-getcwd.c: Likewise.
53374         * tests/test-getdate.c: Likewise.
53375         * tests/test-getdelim.c: Likewise.
53376         * tests/test-getdtablesize.c: Likewise.
53377         * tests/test-getgroups.c: Likewise.
53378         * tests/test-getline.c: Likewise.
53379         * tests/test-getndelim2.c: Likewise.
53380         * tests/test-glob.c: Likewise.
53381         * tests/test-hash.c: Likewise.
53382         * tests/test-i-ring.c: Likewise.
53383         * tests/test-iconv-utf.c: Likewise.
53384         * tests/test-iconv.c: Likewise.
53385         * tests/test-idpriv-drop.c: Likewise.
53386         * tests/test-idpriv-droptemp.c: Likewise.
53387         * tests/test-inet_ntop.c: Likewise.
53388         * tests/test-inet_pton.c: Likewise.
53389         * tests/test-isblank.c: Likewise.
53390         * tests/test-isfinite.c: Likewise.
53391         * tests/test-isinf.c: Likewise.
53392         * tests/test-isnan.c: Likewise.
53393         * tests/test-isnand.h: Likewise.
53394         * tests/test-isnanf.h: Likewise.
53395         * tests/test-isnanl.h: Likewise.
53396         * tests/test-lchown.c: Likewise.
53397         * tests/test-ldexpl.c: Likewise.
53398         * tests/test-link.c: Likewise.
53399         * tests/test-linkat.c: Likewise.
53400         * tests/test-linked_list.c: Likewise.
53401         * tests/test-linkedhash_list.c: Likewise.
53402         * tests/test-localename.c: Likewise.
53403         * tests/test-lseek.c: Likewise.
53404         * tests/test-lstat.c: Likewise.
53405         * tests/test-mbmemcasecmp.c: Likewise.
53406         * tests/test-mbmemcasecoll.c: Likewise.
53407         * tests/test-mbrtowc.c: Likewise.
53408         * tests/test-mbscasecmp.c: Likewise.
53409         * tests/test-mbscasestr1.c: Likewise.
53410         * tests/test-mbscasestr2.c: Likewise.
53411         * tests/test-mbscasestr3.c: Likewise.
53412         * tests/test-mbscasestr4.c: Likewise.
53413         * tests/test-mbschr.c: Likewise.
53414         * tests/test-mbscspn.c: Likewise.
53415         * tests/test-mbsinit.c: Likewise.
53416         * tests/test-mbsncasecmp.c: Likewise.
53417         * tests/test-mbsnrtowcs.c: Likewise.
53418         * tests/test-mbspbrk.c: Likewise.
53419         * tests/test-mbspcasecmp.c: Likewise.
53420         * tests/test-mbsrchr.c: Likewise.
53421         * tests/test-mbsrtowcs.c: Likewise.
53422         * tests/test-mbsspn.c: Likewise.
53423         * tests/test-mbsstr1.c: Likewise.
53424         * tests/test-mbsstr2.c: Likewise.
53425         * tests/test-mbsstr3.c: Likewise.
53426         * tests/test-memchr.c: Likewise.
53427         * tests/test-memchr2.c: Likewise.
53428         * tests/test-memcmp.c: Likewise.
53429         * tests/test-memmem.c: Likewise.
53430         * tests/test-memrchr.c: Likewise.
53431         * tests/test-mkdir.c: Likewise.
53432         * tests/test-mkdirat.c: Likewise.
53433         * tests/test-mkfifo.c: Likewise.
53434         * tests/test-mkfifoat.c: Likewise.
53435         * tests/test-mknod.c: Likewise.
53436         * tests/test-nanosleep.c: Likewise.
53437         * tests/test-nl_langinfo.c: Likewise.
53438         * tests/test-obstack-printf.c: Likewise.
53439         * tests/test-open.c: Likewise.
53440         * tests/test-openat.c: Likewise.
53441         * tests/test-pipe-filter-gi1.c: Likewise.
53442         * tests/test-pipe-filter-gi2-main.c: Likewise.
53443         * tests/test-pipe-filter-ii1.c: Likewise.
53444         * tests/test-pipe-filter-ii2-main.c: Likewise.
53445         * tests/test-pipe2.c: Likewise.
53446         * tests/test-popen.h: Likewise.
53447         * tests/test-posixtm.c: Likewise.
53448         * tests/test-pread.c: Likewise.
53449         * tests/test-printf-frexp.c: Likewise.
53450         * tests/test-printf-frexpl.c: Likewise.
53451         * tests/test-printf-posix.c: Likewise.
53452         * tests/test-priv-set.c: Likewise.
53453         * tests/test-quotearg.c: Likewise.
53454         * tests/test-random_r.c: Likewise.
53455         * tests/test-rawmemchr.c: Likewise.
53456         * tests/test-rbtree_list.c: Likewise.
53457         * tests/test-rbtree_oset.c: Likewise.
53458         * tests/test-rbtreehash_list.c: Likewise.
53459         * tests/test-readlink.c: Likewise.
53460         * tests/test-remove.c: Likewise.
53461         * tests/test-rename.c: Likewise.
53462         * tests/test-renameat.c: Likewise.
53463         * tests/test-rmdir.c: Likewise.
53464         * tests/test-round1.c: Likewise.
53465         * tests/test-roundf1.c: Likewise.
53466         * tests/test-roundl.c: Likewise.
53467         * tests/test-safe-alloc.c: Likewise.
53468         * tests/test-sameacls.c: Likewise.
53469         * tests/test-set-mode-acl.c: Likewise.
53470         * tests/test-setenv.c: Likewise.
53471         * tests/test-sigaction.c: Likewise.
53472         * tests/test-signbit.c: Likewise.
53473         * tests/test-sleep.c: Likewise.
53474         * tests/test-snprintf-posix.c: Likewise.
53475         * tests/test-snprintf.c: Likewise.
53476         * tests/test-sprintf-posix.c: Likewise.
53477         * tests/test-stat-time.c: Likewise.
53478         * tests/test-stat.c: Likewise.
53479         * tests/test-strcasestr.c: Likewise.
53480         * tests/test-strchrnul.c: Likewise.
53481         * tests/test-strerror.c: Likewise.
53482         * tests/test-striconv.c: Likewise.
53483         * tests/test-striconveh.c: Likewise.
53484         * tests/test-striconveha.c: Likewise.
53485         * tests/test-strsignal.c: Likewise.
53486         * tests/test-strstr.c: Likewise.
53487         * tests/test-strtod.c: Likewise.
53488         * tests/test-strverscmp.c: Likewise.
53489         * tests/test-symlink.c: Likewise.
53490         * tests/test-symlinkat.c: Likewise.
53491         * tests/test-trunc1.c: Likewise.
53492         * tests/test-trunc2.c: Likewise.
53493         * tests/test-truncf1.c: Likewise.
53494         * tests/test-truncf2.c: Likewise.
53495         * tests/test-truncl.c: Likewise.
53496         * tests/test-uname.c: Likewise.
53497         * tests/test-unlink.c: Likewise.
53498         * tests/test-unlinkat.c: Likewise.
53499         * tests/test-unsetenv.c: Likewise.
53500         * tests/test-usleep.c: Likewise.
53501         * tests/test-utimens.c: Likewise.
53502         * tests/test-utimensat.c: Likewise.
53503         * tests/test-vasnprintf-posix.c: Likewise.
53504         * tests/test-vasnprintf-posix2.c: Likewise.
53505         * tests/test-vasnprintf.c: Likewise.
53506         * tests/test-vasprintf-posix.c: Likewise.
53507         * tests/test-vasprintf.c: Likewise.
53508         * tests/test-vdprintf-posix.c: Likewise.
53509         * tests/test-vfprintf-posix.c: Likewise.
53510         * tests/test-vprintf-posix.c: Likewise.
53511         * tests/test-vsnprintf-posix.c: Likewise.
53512         * tests/test-vsnprintf.c: Likewise.
53513         * tests/test-vsprintf-posix.c: Likewise.
53514         * tests/test-wcrtomb.c: Likewise.
53515         * tests/test-wcsnrtombs.c: Likewise.
53516         * tests/test-wcsrtombs.c: Likewise.
53517         * tests/test-wctype.c: Likewise.
53518         * tests/test-wcwidth.c: Likewise.
53519         * tests/test-xfprintf-posix.c: Likewise.
53520         * tests/test-xmemdup0.c: Likewise.
53521         * tests/test-xprintf-posix.c: Likewise.
53522         * tests/test-xvasprintf.c: Likewise.
53523         * tests/unicase/test-locale-language.c: Likewise.
53524         * tests/unicase/test-mapping-part1.h: Likewise.
53525         * tests/unicase/test-predicate-part1.h: Likewise.
53526         * tests/unicase/test-u8-casecmp.c: Likewise.
53527         * tests/unicase/test-u8-casecoll.c: Likewise.
53528         * tests/unicase/test-u8-casefold.c: Likewise.
53529         * tests/unicase/test-u8-is-cased.c: Likewise.
53530         * tests/unicase/test-u8-is-casefolded.c: Likewise.
53531         * tests/unicase/test-u8-is-lowercase.c: Likewise.
53532         * tests/unicase/test-u8-is-titlecase.c: Likewise.
53533         * tests/unicase/test-u8-is-uppercase.c: Likewise.
53534         * tests/unicase/test-u8-tolower.c: Likewise.
53535         * tests/unicase/test-u8-totitle.c: Likewise.
53536         * tests/unicase/test-u8-toupper.c: Likewise.
53537         * tests/unicase/test-u16-casecmp.c: Likewise.
53538         * tests/unicase/test-u16-casecoll.c: Likewise.
53539         * tests/unicase/test-u16-casefold.c: Likewise.
53540         * tests/unicase/test-u16-is-cased.c: Likewise.
53541         * tests/unicase/test-u16-is-casefolded.c: Likewise.
53542         * tests/unicase/test-u16-is-lowercase.c: Likewise.
53543         * tests/unicase/test-u16-is-titlecase.c: Likewise.
53544         * tests/unicase/test-u16-is-uppercase.c: Likewise.
53545         * tests/unicase/test-u16-tolower.c: Likewise.
53546         * tests/unicase/test-u16-totitle.c: Likewise.
53547         * tests/unicase/test-u16-toupper.c: Likewise.
53548         * tests/unicase/test-u32-casecmp.c: Likewise.
53549         * tests/unicase/test-u32-casecoll.c: Likewise.
53550         * tests/unicase/test-u32-casefold.c: Likewise.
53551         * tests/unicase/test-u32-is-cased.c: Likewise.
53552         * tests/unicase/test-u32-is-casefolded.c: Likewise.
53553         * tests/unicase/test-u32-is-lowercase.c: Likewise.
53554         * tests/unicase/test-u32-is-titlecase.c: Likewise.
53555         * tests/unicase/test-u32-is-uppercase.c: Likewise.
53556         * tests/unicase/test-u32-tolower.c: Likewise.
53557         * tests/unicase/test-u32-totitle.c: Likewise.
53558         * tests/unicase/test-u32-toupper.c: Likewise.
53559         * tests/unicase/test-ulc-casecmp.c: Likewise.
53560         * tests/unicase/test-ulc-casecoll.c: Likewise.
53561         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53562         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53563         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53564         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53565         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53566         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53567         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53568         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53569         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53570         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53571         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53572         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53573         * tests/unictype/test-bidi_byname.c: Likewise.
53574         * tests/unictype/test-bidi_name.c: Likewise.
53575         * tests/unictype/test-bidi_of.c: Likewise.
53576         * tests/unictype/test-bidi_test.c: Likewise.
53577         * tests/unictype/test-block_list.c: Likewise.
53578         * tests/unictype/test-block_of.c: Likewise.
53579         * tests/unictype/test-block_test.c: Likewise.
53580         * tests/unictype/test-categ_and.c: Likewise.
53581         * tests/unictype/test-categ_and_not.c: Likewise.
53582         * tests/unictype/test-categ_byname.c: Likewise.
53583         * tests/unictype/test-categ_name.c: Likewise.
53584         * tests/unictype/test-categ_none.c: Likewise.
53585         * tests/unictype/test-categ_of.c: Likewise.
53586         * tests/unictype/test-categ_or.c: Likewise.
53587         * tests/unictype/test-categ_test_withtable.c: Likewise.
53588         * tests/unictype/test-combining.c: Likewise.
53589         * tests/unictype/test-decdigit.c: Likewise.
53590         * tests/unictype/test-digit.c: Likewise.
53591         * tests/unictype/test-mirror.c: Likewise.
53592         * tests/unictype/test-numeric.c: Likewise.
53593         * tests/unictype/test-pr_byname.c: Likewise.
53594         * tests/unictype/test-pr_test.c: Likewise.
53595         * tests/unictype/test-predicate-part1.h: Likewise.
53596         * tests/unictype/test-scripts.c: Likewise.
53597         * tests/unictype/test-sy_c_ident.c: Likewise.
53598         * tests/unictype/test-sy_java_ident.c: Likewise.
53599         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
53600         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
53601         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
53602         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
53603         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
53604         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
53605         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
53606         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
53607         * tests/uninorm/test-canonical-decomposition.c: Likewise.
53608         * tests/uninorm/test-compat-decomposition.c: Likewise.
53609         * tests/uninorm/test-composition.c: Likewise.
53610         * tests/uninorm/test-decomposing-form.c: Likewise.
53611         * tests/uninorm/test-decomposition.c: Likewise.
53612         * tests/uninorm/test-u8-nfc.c: Likewise.
53613         * tests/uninorm/test-u8-nfd.c: Likewise.
53614         * tests/uninorm/test-u8-nfkc.c: Likewise.
53615         * tests/uninorm/test-u8-nfkd.c: Likewise.
53616         * tests/uninorm/test-u8-normcmp.c: Likewise.
53617         * tests/uninorm/test-u8-normcoll.c: Likewise.
53618         * tests/uninorm/test-u16-nfc.c: Likewise.
53619         * tests/uninorm/test-u16-nfd.c: Likewise.
53620         * tests/uninorm/test-u16-nfkc.c: Likewise.
53621         * tests/uninorm/test-u16-nfkd.c: Likewise.
53622         * tests/uninorm/test-u16-normcmp.c: Likewise.
53623         * tests/uninorm/test-u16-normcoll.c: Likewise.
53624         * tests/uninorm/test-u32-nfc.c: Likewise.
53625         * tests/uninorm/test-u32-nfd.c: Likewise.
53626         * tests/uninorm/test-u32-nfkc.c: Likewise.
53627         * tests/uninorm/test-u32-nfkd.c: Likewise.
53628         * tests/uninorm/test-u32-normalize-big.c: Likewise.
53629         * tests/uninorm/test-u32-normcmp.c: Likewise.
53630         * tests/uninorm/test-u32-normcoll.c: Likewise.
53631         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
53632         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53633         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53634         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53635         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53636         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53637         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53638         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53639         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53640         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53641         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53642         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53643         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53644         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53645         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53646         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53647         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53648         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53649         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53650         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53651         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53652         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53653         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53654         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53655         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53656         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53657         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53658         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53659         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53660         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
53661         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
53662         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
53663         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
53664         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53665         * tests/uniwidth/test-u8-width.c: Likewise.
53666         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53667         * tests/uniwidth/test-u16-width.c: Likewise.
53668         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53669         * tests/uniwidth/test-u32-width.c: Likewise.
53670         * tests/uniwidth/test-uc_width.c: Likewise.
53671         * tests/uniwidth/test-uc_width2.c: Likewise.
53672         * modules/acl-tests (Files): Add tests/macros.h.
53673         * modules/areadlink-tests (Files): Likewise.
53674         * modules/areadlink-with-size-tests (Files): Likewise.
53675         * modules/areadlinkat-tests (Files): Likewise.
53676         * modules/areadlinkat-with-size-tests (Files): Likewise.
53677         * modules/argmatch-tests (Files): Likewise.
53678         * modules/argv-iter-tests (Files): Likewise.
53679         * modules/array-list-tests (Files): Likewise.
53680         * modules/array-mergesort-tests (Files): Likewise.
53681         * modules/array-oset-tests (Files): Likewise.
53682         * modules/avltree-list-tests (Files): Likewise.
53683         * modules/avltree-oset-tests (Files): Likewise.
53684         * modules/avltreehash-list-tests (Files): Likewise.
53685         * modules/base64-tests (Files): Likewise.
53686         * modules/binary-io-tests (Files): Likewise.
53687         * modules/bitrotate-tests (Files): Likewise.
53688         * modules/btowc-tests (Files): Likewise.
53689         * modules/byteswap-tests (Files): Likewise.
53690         * modules/c-ctype-tests (Files): Likewise.
53691         * modules/c-stack-tests (Files): Likewise.
53692         * modules/c-strcase-tests (Files): Likewise.
53693         * modules/c-strcasestr-tests (Files): Likewise.
53694         * modules/c-strstr-tests (Files): Likewise.
53695         * modules/canonicalize-lgpl-tests (Files): Likewise.
53696         * modules/canonicalize-tests (Files): Likewise.
53697         * modules/carray-list-tests (Files): Likewise.
53698         * modules/ceilf-tests (Files): Likewise.
53699         * modules/ceill-tests (Files): Likewise.
53700         * modules/chown-tests (Files): Likewise.
53701         * modules/cloexec-tests (Files): Likewise.
53702         * modules/copy-file-tests (Files): Likewise.
53703         * modules/count-one-bits-tests (Files): Likewise.
53704         * modules/dprintf-posix-tests (Files): Likewise.
53705         * modules/dup2-tests (Files): Likewise.
53706         * modules/dup3-tests (Files): Likewise.
53707         * modules/duplocale-tests (Files): Likewise.
53708         * modules/fbufmode-tests (Files): Likewise.
53709         * modules/fchdir-tests (Files): Likewise.
53710         * modules/fcntl-safer-tests (Files): Likewise.
53711         * modules/fcntl-tests (Files): Likewise.
53712         * modules/fdopendir-tests (Files): Likewise.
53713         * modules/fdutimensat-tests (Files): Likewise.
53714         * modules/fflush-tests (Files): Likewise.
53715         * modules/filevercmp-tests (Files): Likewise.
53716         * modules/flock-tests (Files): Likewise.
53717         * modules/floorf-tests (Files): Likewise.
53718         * modules/floorl-tests (Files): Likewise.
53719         * modules/fnmatch-tests (Files): Likewise.
53720         * modules/fopen-safer-tests (Files): Likewise.
53721         * modules/fopen-tests (Files): Likewise.
53722         * modules/fpending-tests (Files): Likewise.
53723         * modules/fprintf-posix-tests (Files): Likewise.
53724         * modules/fpurge-tests (Files): Likewise.
53725         * modules/freadable-tests (Files): Likewise.
53726         * modules/freadahead-tests (Files): Likewise.
53727         * modules/freading-tests (Files): Likewise.
53728         * modules/freadptr-tests (Files): Likewise.
53729         * modules/freadseek-tests (Files): Likewise.
53730         * modules/freopen-tests (Files): Likewise.
53731         * modules/frexp-nolibm-tests (Files): Likewise.
53732         * modules/frexp-tests (Files): Likewise.
53733         * modules/frexpl-nolibm-tests (Files): Likewise.
53734         * modules/frexpl-tests (Files): Likewise.
53735         * modules/fseek-tests (Files): Likewise.
53736         * modules/fseeko-tests (Files): Likewise.
53737         * modules/fstrcmp-tests (Files): Likewise.
53738         * modules/fsync-tests (Files): Likewise.
53739         * modules/ftell-tests (Files): Likewise.
53740         * modules/ftello-tests (Files): Likewise.
53741         * modules/func-tests (Files): Likewise.
53742         * modules/futimens-tests (Files): Likewise.
53743         * modules/fwritable-tests (Files): Likewise.
53744         * modules/fwriting-tests (Files): Likewise.
53745         * modules/getcwd-tests (Files): Likewise.
53746         * modules/getdate-tests (Files): Likewise.
53747         * modules/getdelim-tests (Files): Likewise.
53748         * modules/getdtablesize-tests (Files): Likewise.
53749         * modules/getgroups-tests (Files): Likewise.
53750         * modules/getline-tests (Files): Likewise.
53751         * modules/getndelim2-tests (Files): Likewise.
53752         * modules/glob-tests (Files): Likewise.
53753         * modules/hash-tests (Files): Likewise.
53754         * modules/i-ring-tests (Files): Likewise.
53755         * modules/iconv-tests (Files): Likewise.
53756         * modules/iconv_open-utf-tests (Files): Likewise.
53757         * modules/idpriv-drop-tests (Files): Likewise.
53758         * modules/idpriv-droptemp-tests (Files): Likewise.
53759         * modules/inet_ntop-tests (Files): Likewise.
53760         * modules/inet_pton-tests (Files): Likewise.
53761         * modules/isblank-tests (Files): Likewise.
53762         * modules/isfinite-tests (Files): Likewise.
53763         * modules/isinf-tests (Files): Likewise.
53764         * modules/isnan-tests (Files): Likewise.
53765         * modules/isnand-nolibm-tests (Files): Likewise.
53766         * modules/isnand-tests (Files): Likewise.
53767         * modules/isnanf-nolibm-tests (Files): Likewise.
53768         * modules/isnanf-tests (Files): Likewise.
53769         * modules/isnanl-nolibm-tests (Files): Likewise.
53770         * modules/isnanl-tests (Files): Likewise.
53771         * modules/lchown-tests (Files): Likewise.
53772         * modules/ldexpl-tests (Files): Likewise.
53773         * modules/link-tests (Files): Likewise.
53774         * modules/linkat-tests (Files): Likewise.
53775         * modules/linked-list-tests (Files): Likewise.
53776         * modules/linkedhash-list-tests (Files): Likewise.
53777         * modules/localename-tests (Files): Likewise.
53778         * modules/lseek-tests (Files): Likewise.
53779         * modules/lstat-tests (Files): Likewise.
53780         * modules/mbmemcasecmp-tests (Files): Likewise.
53781         * modules/mbmemcasecoll-tests (Files): Likewise.
53782         * modules/mbrtowc-tests (Files): Likewise.
53783         * modules/mbscasecmp-tests (Files): Likewise.
53784         * modules/mbscasestr-tests (Files): Likewise.
53785         * modules/mbschr-tests (Files): Likewise.
53786         * modules/mbscspn-tests (Files): Likewise.
53787         * modules/mbsinit-tests (Files): Likewise.
53788         * modules/mbsncasecmp-tests (Files): Likewise.
53789         * modules/mbsnrtowcs-tests (Files): Likewise.
53790         * modules/mbspbrk-tests (Files): Likewise.
53791         * modules/mbspcasecmp-tests (Files): Likewise.
53792         * modules/mbsrchr-tests (Files): Likewise.
53793         * modules/mbsrtowcs-tests (Files): Likewise.
53794         * modules/mbsspn-tests (Files): Likewise.
53795         * modules/mbsstr-tests (Files): Likewise.
53796         * modules/memchr-tests (Files): Likewise.
53797         * modules/memchr2-tests (Files): Likewise.
53798         * modules/memcmp-tests (Files): Likewise.
53799         * modules/memmem-tests (Files): Likewise.
53800         * modules/memrchr-tests (Files): Likewise.
53801         * modules/mkdir-tests (Files): Likewise.
53802         * modules/mkfifo-tests (Files): Likewise.
53803         * modules/mkfifoat-tests (Files): Likewise.
53804         * modules/mknod-tests (Files): Likewise.
53805         * modules/nanosleep-tests (Files): Likewise.
53806         * modules/nl_langinfo-tests (Files): Likewise.
53807         * modules/obstack-printf-tests (Files): Likewise.
53808         * modules/open-tests (Files): Likewise.
53809         * modules/openat-tests (Files): Likewise.
53810         * modules/pipe-filter-gi-tests (Files): Likewise.
53811         * modules/pipe-filter-ii-tests (Files): Likewise.
53812         * modules/pipe2-tests (Files): Likewise.
53813         * modules/popen-safer-tests (Files): Likewise.
53814         * modules/popen-tests (Files): Likewise.
53815         * modules/posixtm-tests (Files): Likewise.
53816         * modules/pread-tests (Files): Likewise.
53817         * modules/printf-frexp-tests (Files): Likewise.
53818         * modules/printf-frexpl-tests (Files): Likewise.
53819         * modules/printf-posix-tests (Files): Likewise.
53820         * modules/priv-set-tests (Files): Likewise.
53821         * modules/quotearg-tests (Files): Likewise.
53822         * modules/random_r-tests (Files): Likewise.
53823         * modules/rawmemchr-tests (Files): Likewise.
53824         * modules/rbtree-list-tests (Files): Likewise.
53825         * modules/rbtree-oset-tests (Files): Likewise.
53826         * modules/rbtreehash-list-tests (Files): Likewise.
53827         * modules/readlink-tests (Files): Likewise.
53828         * modules/remove-tests (Files): Likewise.
53829         * modules/rename-tests (Files): Likewise.
53830         * modules/renameat-tests (Files): Likewise.
53831         * modules/rmdir-tests (Files): Likewise.
53832         * modules/round-tests (Files): Likewise.
53833         * modules/roundf-tests (Files): Likewise.
53834         * modules/roundl-tests (Files): Likewise.
53835         * modules/safe-alloc-tests (Files): Likewise.
53836         * modules/setenv-tests (Files): Likewise.
53837         * modules/sigaction-tests (Files): Likewise.
53838         * modules/signbit-tests (Files): Likewise.
53839         * modules/sleep-tests (Files): Likewise.
53840         * modules/snprintf-posix-tests (Files): Likewise.
53841         * modules/snprintf-tests (Files): Likewise.
53842         * modules/sprintf-posix-tests (Files): Likewise.
53843         * modules/stat-tests (Files): Likewise.
53844         * modules/stat-time-tests (Files): Likewise.
53845         * modules/strcasestr-tests (Files): Likewise.
53846         * modules/strchrnul-tests (Files): Likewise.
53847         * modules/strerror-tests (Files): Likewise.
53848         * modules/striconv-tests (Files): Likewise.
53849         * modules/striconveh-tests (Files): Likewise.
53850         * modules/striconveha-tests (Files): Likewise.
53851         * modules/strsignal-tests (Files): Likewise.
53852         * modules/strstr-tests (Files): Likewise.
53853         * modules/strtod-tests (Files): Likewise.
53854         * modules/strverscmp-tests (Files): Likewise.
53855         * modules/symlink-tests (Files): Likewise.
53856         * modules/symlinkat-tests (Files): Likewise.
53857         * modules/trunc-tests (Files): Likewise.
53858         * modules/truncf-tests (Files): Likewise.
53859         * modules/truncl-tests (Files): Likewise.
53860         * modules/uname-tests (Files): Likewise.
53861         * modules/unicase/cased-tests (Files): Likewise.
53862         * modules/unicase/ignorable-tests (Files): Likewise.
53863         * modules/unicase/locale-language-tests (Files): Likewise.
53864         * modules/unicase/tolower-tests (Files): Likewise.
53865         * modules/unicase/totitle-tests (Files): Likewise.
53866         * modules/unicase/toupper-tests (Files): Likewise.
53867         * modules/unicase/u8-casecmp-tests (Files): Likewise.
53868         * modules/unicase/u8-casecoll-tests (Files): Likewise.
53869         * modules/unicase/u8-casefold-tests (Files): Likewise.
53870         * modules/unicase/u8-is-cased-tests (Files): Likewise.
53871         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
53872         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
53873         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
53874         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
53875         * modules/unicase/u8-tolower-tests (Files): Likewise.
53876         * modules/unicase/u8-totitle-tests (Files): Likewise.
53877         * modules/unicase/u8-toupper-tests (Files): Likewise.
53878         * modules/unicase/u16-casecmp-tests (Files): Likewise.
53879         * modules/unicase/u16-casecoll-tests (Files): Likewise.
53880         * modules/unicase/u16-casefold-tests (Files): Likewise.
53881         * modules/unicase/u16-is-cased-tests (Files): Likewise.
53882         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
53883         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
53884         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
53885         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
53886         * modules/unicase/u16-tolower-tests (Files): Likewise.
53887         * modules/unicase/u16-totitle-tests (Files): Likewise.
53888         * modules/unicase/u16-toupper-tests (Files): Likewise.
53889         * modules/unicase/u32-casecmp-tests (Files): Likewise.
53890         * modules/unicase/u32-casecoll-tests (Files): Likewise.
53891         * modules/unicase/u32-casefold-tests (Files): Likewise.
53892         * modules/unicase/u32-is-cased-tests (Files): Likewise.
53893         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
53894         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
53895         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
53896         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
53897         * modules/unicase/u32-tolower-tests (Files): Likewise.
53898         * modules/unicase/u32-totitle-tests (Files): Likewise.
53899         * modules/unicase/u32-toupper-tests (Files): Likewise.
53900         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
53901         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
53902         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
53903         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
53904         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
53905         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
53906         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
53907         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
53908         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
53909         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
53910         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
53911         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
53912         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
53913         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
53914         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
53915         * modules/unictype/bidicategory-name-tests (Files): Likewise.
53916         * modules/unictype/bidicategory-of-tests (Files): Likewise.
53917         * modules/unictype/bidicategory-test-tests (Files): Likewise.
53918         * modules/unictype/block-list-tests (Files): Likewise.
53919         * modules/unictype/block-of-tests (Files): Likewise.
53920         * modules/unictype/block-test-tests (Files): Likewise.
53921         * modules/unictype/category-C-tests (Files): Likewise.
53922         * modules/unictype/category-Cc-tests (Files): Likewise.
53923         * modules/unictype/category-Cf-tests (Files): Likewise.
53924         * modules/unictype/category-Cn-tests (Files): Likewise.
53925         * modules/unictype/category-Co-tests (Files): Likewise.
53926         * modules/unictype/category-Cs-tests (Files): Likewise.
53927         * modules/unictype/category-L-tests (Files): Likewise.
53928         * modules/unictype/category-Ll-tests (Files): Likewise.
53929         * modules/unictype/category-Lm-tests (Files): Likewise.
53930         * modules/unictype/category-Lo-tests (Files): Likewise.
53931         * modules/unictype/category-Lt-tests (Files): Likewise.
53932         * modules/unictype/category-Lu-tests (Files): Likewise.
53933         * modules/unictype/category-M-tests (Files): Likewise.
53934         * modules/unictype/category-Mc-tests (Files): Likewise.
53935         * modules/unictype/category-Me-tests (Files): Likewise.
53936         * modules/unictype/category-Mn-tests (Files): Likewise.
53937         * modules/unictype/category-N-tests (Files): Likewise.
53938         * modules/unictype/category-Nd-tests (Files): Likewise.
53939         * modules/unictype/category-Nl-tests (Files): Likewise.
53940         * modules/unictype/category-No-tests (Files): Likewise.
53941         * modules/unictype/category-P-tests (Files): Likewise.
53942         * modules/unictype/category-Pc-tests (Files): Likewise.
53943         * modules/unictype/category-Pd-tests (Files): Likewise.
53944         * modules/unictype/category-Pe-tests (Files): Likewise.
53945         * modules/unictype/category-Pf-tests (Files): Likewise.
53946         * modules/unictype/category-Pi-tests (Files): Likewise.
53947         * modules/unictype/category-Po-tests (Files): Likewise.
53948         * modules/unictype/category-Ps-tests (Files): Likewise.
53949         * modules/unictype/category-S-tests (Files): Likewise.
53950         * modules/unictype/category-Sc-tests (Files): Likewise.
53951         * modules/unictype/category-Sk-tests (Files): Likewise.
53952         * modules/unictype/category-Sm-tests (Files): Likewise.
53953         * modules/unictype/category-So-tests (Files): Likewise.
53954         * modules/unictype/category-Z-tests (Files): Likewise.
53955         * modules/unictype/category-Zl-tests (Files): Likewise.
53956         * modules/unictype/category-Zp-tests (Files): Likewise.
53957         * modules/unictype/category-Zs-tests (Files): Likewise.
53958         * modules/unictype/category-and-not-tests (Files): Likewise.
53959         * modules/unictype/category-and-tests (Files): Likewise.
53960         * modules/unictype/category-byname-tests (Files): Likewise.
53961         * modules/unictype/category-name-tests (Files): Likewise.
53962         * modules/unictype/category-none-tests (Files): Likewise.
53963         * modules/unictype/category-of-tests (Files): Likewise.
53964         * modules/unictype/category-or-tests (Files): Likewise.
53965         * modules/unictype/category-test-withtable-tests (Files): Likewise.
53966         * modules/unictype/combining-class-tests (Files): Likewise.
53967         * modules/unictype/ctype-alnum-tests (Files): Likewise.
53968         * modules/unictype/ctype-alpha-tests (Files): Likewise.
53969         * modules/unictype/ctype-blank-tests (Files): Likewise.
53970         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
53971         * modules/unictype/ctype-digit-tests (Files): Likewise.
53972         * modules/unictype/ctype-graph-tests (Files): Likewise.
53973         * modules/unictype/ctype-lower-tests (Files): Likewise.
53974         * modules/unictype/ctype-print-tests (Files): Likewise.
53975         * modules/unictype/ctype-punct-tests (Files): Likewise.
53976         * modules/unictype/ctype-space-tests (Files): Likewise.
53977         * modules/unictype/ctype-upper-tests (Files): Likewise.
53978         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
53979         * modules/unictype/decimal-digit-tests (Files): Likewise.
53980         * modules/unictype/digit-tests (Files): Likewise.
53981         * modules/unictype/mirror-tests (Files): Likewise.
53982         * modules/unictype/numeric-tests (Files): Likewise.
53983         * modules/unictype/property-alphabetic-tests (Files): Likewise.
53984         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
53985         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
53986         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
53987         Likewise.
53988         * modules/unictype/property-bidi-block-separator-tests (Files):
53989         Likewise.
53990         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
53991         Likewise.
53992         * modules/unictype/property-bidi-common-separator-tests (Files):
53993         Likewise.
53994         * modules/unictype/property-bidi-control-tests (Files): Likewise.
53995         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
53996         Likewise.
53997         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
53998         Likewise.
53999         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
54000         Likewise.
54001         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
54002         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
54003         Likewise.
54004         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
54005         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
54006         Likewise.
54007         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
54008         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
54009         * modules/unictype/property-bidi-segment-separator-tests (Files):
54010         Likewise.
54011         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
54012         * modules/unictype/property-byname-tests (Files): Likewise.
54013         * modules/unictype/property-combining-tests (Files): Likewise.
54014         * modules/unictype/property-composite-tests (Files): Likewise.
54015         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
54016         * modules/unictype/property-dash-tests (Files): Likewise.
54017         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
54018         * modules/unictype/property-default-ignorable-code-point-tests (Files):
54019         Likewise.
54020         * modules/unictype/property-deprecated-tests (Files): Likewise.
54021         * modules/unictype/property-diacritic-tests (Files): Likewise.
54022         * modules/unictype/property-extender-tests (Files): Likewise.
54023         * modules/unictype/property-format-control-tests (Files): Likewise.
54024         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
54025         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
54026         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
54027         * modules/unictype/property-hex-digit-tests (Files): Likewise.
54028         * modules/unictype/property-hyphen-tests (Files): Likewise.
54029         * modules/unictype/property-id-continue-tests (Files): Likewise.
54030         * modules/unictype/property-id-start-tests (Files): Likewise.
54031         * modules/unictype/property-ideographic-tests (Files): Likewise.
54032         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
54033         * modules/unictype/property-ids-trinary-operator-tests (Files):
54034         Likewise.
54035         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
54036         * modules/unictype/property-iso-control-tests (Files): Likewise.
54037         * modules/unictype/property-join-control-tests (Files): Likewise.
54038         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
54039         * modules/unictype/property-line-separator-tests (Files): Likewise.
54040         * modules/unictype/property-logical-order-exception-tests (Files):
54041         Likewise.
54042         * modules/unictype/property-lowercase-tests (Files): Likewise.
54043         * modules/unictype/property-math-tests (Files): Likewise.
54044         * modules/unictype/property-non-break-tests (Files): Likewise.
54045         * modules/unictype/property-not-a-character-tests (Files): Likewise.
54046         * modules/unictype/property-numeric-tests (Files): Likewise.
54047         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
54048         * modules/unictype/property-other-default-ignorable-code-point-tests
54049         (Files): Likewise.
54050         * modules/unictype/property-other-grapheme-extend-tests (Files):
54051         Likewise.
54052         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
54053         * modules/unictype/property-other-id-start-tests (Files): Likewise.
54054         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
54055         * modules/unictype/property-other-math-tests (Files): Likewise.
54056         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
54057         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
54058         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
54059         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
54060         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
54061         * modules/unictype/property-private-use-tests (Files): Likewise.
54062         * modules/unictype/property-punctuation-tests (Files): Likewise.
54063         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
54064         * modules/unictype/property-radical-tests (Files): Likewise.
54065         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
54066         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
54067         * modules/unictype/property-space-tests (Files): Likewise.
54068         * modules/unictype/property-terminal-punctuation-tests (Files):
54069         Likewise.
54070         * modules/unictype/property-test-tests (Files): Likewise.
54071         * modules/unictype/property-titlecase-tests (Files): Likewise.
54072         * modules/unictype/property-unassigned-code-value-tests (Files):
54073         Likewise.
54074         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
54075         * modules/unictype/property-uppercase-tests (Files): Likewise.
54076         * modules/unictype/property-variation-selector-tests (Files): Likewise.
54077         * modules/unictype/property-white-space-tests (Files): Likewise.
54078         * modules/unictype/property-xid-continue-tests (Files): Likewise.
54079         * modules/unictype/property-xid-start-tests (Files): Likewise.
54080         * modules/unictype/property-zero-width-tests (Files): Likewise.
54081         * modules/unictype/scripts-tests (Files): Likewise.
54082         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
54083         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
54084         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
54085         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
54086         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
54087         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
54088         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
54089         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
54090         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
54091         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
54092         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
54093         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
54094         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
54095         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
54096         * modules/uninorm/composition-tests (Files): Likewise.
54097         * modules/uninorm/decomposing-form-tests (Files): Likewise.
54098         * modules/uninorm/decomposition-tests (Files): Likewise.
54099         * modules/uninorm/filter-tests (Files): Likewise.
54100         * modules/uninorm/nfc-tests (Files): Likewise.
54101         * modules/uninorm/nfd-tests (Files): Likewise.
54102         * modules/uninorm/nfkc-tests (Files): Likewise.
54103         * modules/uninorm/nfkd-tests (Files): Likewise.
54104         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
54105         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
54106         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
54107         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
54108         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
54109         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
54110         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
54111         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54112         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
54113         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
54114         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
54115         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
54116         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54117         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
54118         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
54119         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
54120         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
54121         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54122         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
54123         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
54124         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
54125         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
54126         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54127         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
54128         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
54129         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
54130         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
54131         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
54132         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
54133         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
54134         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
54135         * modules/uniwidth/u8-width-tests (Files): Likewise.
54136         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
54137         * modules/uniwidth/u16-width-tests (Files): Likewise.
54138         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
54139         * modules/uniwidth/u32-width-tests (Files): Likewise.
54140         * modules/uniwidth/width-tests (Files): Likewise.
54141         * modules/unlink-tests (Files): Likewise.
54142         * modules/unsetenv-tests (Files): Likewise.
54143         * modules/usleep-tests (Files): Likewise.
54144         * modules/utimens-tests (Files): Likewise.
54145         * modules/utimensat-tests (Files): Likewise.
54146         * modules/vasnprintf-posix-tests (Files): Likewise.
54147         * modules/vasnprintf-tests (Files): Likewise.
54148         * modules/vasprintf-posix-tests (Files): Likewise.
54149         * modules/vasprintf-tests (Files): Likewise.
54150         * modules/vdprintf-posix-tests (Files): Likewise.
54151         * modules/vfprintf-posix-tests (Files): Likewise.
54152         * modules/vprintf-posix-tests (Files): Likewise.
54153         * modules/vsnprintf-posix-tests (Files): Likewise.
54154         * modules/vsnprintf-tests (Files): Likewise.
54155         * modules/vsprintf-posix-tests (Files): Likewise.
54156         * modules/wcrtomb-tests (Files): Likewise.
54157         * modules/wcsnrtombs-tests (Files): Likewise.
54158         * modules/wcsrtombs-tests (Files): Likewise.
54159         * modules/wctype-tests (Files): Likewise.
54160         * modules/wcwidth-tests (Files): Likewise.
54161         * modules/xmemdup0-tests (Files): Likewise.
54162         * modules/xprintf-posix-tests (Files): Likewise.
54163         * modules/xvasprintf-tests (Files): Likewise.
54165 2009-12-24  Eric Blake  <ebb9@byu.net>
54167         test-nanosleep: fix typo
54168         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
54169         patch.
54170         Reported by Bruno Haible.
54172 2009-12-24  Bruno Haible  <bruno@clisp.org>
54174         Reduce namespace pollution on glibc systems.
54175         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
54176         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
54177         systems.
54178         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
54179         <getopt.h> on glibc systems.
54180         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
54181         systems.
54182         * lib/fcntl.c: Include <unistd.h> here instead.
54184 2009-12-24  Bruno Haible  <bruno@clisp.org>
54186         * lib/stdlib.in.h (includes): Fix typo in today's commit.
54188 2009-12-24  Eric Blake  <ebb9@byu.net>
54190         tests: add signature checks
54191         * tests/signature.h (SIGNATURE_CHECK): New file.
54192         * modules/atexit-tests (Files): Use it.
54193         * modules/btowc-tests (Files): Likewise.
54194         * modules/canonicalize-lgpl-tests (Files): Likewise.
54195         * modules/ceilf-tests (Files): Likewise.
54196         * modules/ceill-tests (Files): Likewise.
54197         * modules/chown-tests (Files): Likewise.
54198         * modules/dprintf-posix-tests (Files): Likewise.
54199         * modules/dup2-tests (Files): Likewise.
54200         * modules/dup3-tests (Files): Likewise.
54201         * modules/duplocale-tests (Files): Likewise.
54202         * modules/fchdir-tests (Files): Likewise.
54203         * modules/fcntl-tests (Files): Likewise.
54204         * modules/fdopendir-tests (Files): Likewise.
54205         * modules/fflush-tests (Files): Likewise.
54206         * modules/flock-tests (Files): Likewise.
54207         * modules/floorf-tests (Files): Likewise.
54208         * modules/floorl-tests (Files): Likewise.
54209         * modules/fnmatch-tests (Files): Likewise.
54210         * modules/fopen-tests (Files): Likewise.
54211         * modules/fprintf-posix-tests (Files): Likewise.
54212         * modules/freopen-tests (Files): Likewise.
54213         * modules/frexp-nolibm-tests (Files): Likewise.
54214         * modules/frexp-tests (Files): Likewise.
54215         * modules/frexpl-nolibm-tests (Files): Likewise.
54216         * modules/frexpl-tests (Files): Likewise.
54217         * modules/fseek-tests (Files): Likewise.
54218         * modules/fseeko-tests (Files): Likewise.
54219         * modules/fsync-tests (Files): Likewise.
54220         * modules/ftell-tests (Files): Likewise.
54221         * modules/ftello-tests (Files): Likewise.
54222         * modules/futimens-tests (Files): Likewise.
54223         * modules/getaddrinfo-tests (Files): Likewise.
54224         * modules/getcwd-tests (Files): Likewise.
54225         * modules/getdelim-tests (Files): Likewise.
54226         * modules/getdtablesize-tests (Files): Likewise.
54227         * modules/getgroups-tests (Files): Likewise.
54228         * modules/gethostname-tests (Files): Likewise.
54229         * modules/getline-tests (Files): Likewise.
54230         * modules/getopt-posix-tests (Files): Likewise.
54231         * modules/gettimeofday-tests (Files): Likewise.
54232         * modules/glob-tests (Files): Likewise.
54233         * modules/iconv-tests (Files): Likewise.
54234         * modules/inet_ntop-tests (Files): Likewise.
54235         * modules/inet_pton-tests (Files): Likewise.
54236         * modules/isblank-tests (Files): Likewise.
54237         * modules/lchown-tests (Files): Likewise.
54238         * modules/ldexpl-tests (Files): Likewise.
54239         * modules/link-tests (Files): Likewise.
54240         * modules/linkat-tests (Files): Likewise.
54241         * modules/lseek-tests (Files): Likewise.
54242         * modules/lstat-tests (Files): Likewise.
54243         * modules/mbrtowc-tests (Files): Likewise.
54244         * modules/mbsinit-tests (Files): Likewise.
54245         * modules/mbsnrtowcs-tests (Files): Likewise.
54246         * modules/mbsrtowcs-tests (Files): Likewise.
54247         * modules/memchr-tests (Files): Likewise.
54248         * modules/memcmp-tests (Files): Likewise.
54249         * modules/memmem-tests (Files): Likewise.
54250         * modules/memrchr-tests (Files): Likewise.
54251         * modules/mkdir-tests (Files): Likewise.
54252         * modules/mkfifo-tests (Files): Likewise.
54253         * modules/mkfifoat-tests (Files): Likewise.
54254         * modules/mknod-tests (Files): Likewise.
54255         * modules/nanosleep-tests (Files): Likewise.
54256         * modules/nl_langinfo-tests (Files): Likewise.
54257         * modules/obstack-printf-tests (Files): Likewise.
54258         * modules/open-tests (Files): Likewise.
54259         * modules/openat-tests (Files): Likewise.
54260         * modules/perror-tests (Files): Likewise.
54261         * modules/pipe2-tests (Files): Likewise.
54262         * modules/poll-tests (Files): Likewise.
54263         * modules/popen-tests (Files): Likewise.
54264         * modules/posix_spawn-tests (Files): Likewise.
54265         * modules/posix_spawnp-tests (Files): Likewise.
54266         * modules/pread-tests (Files): Likewise.
54267         * modules/printf-posix-tests (Files): Likewise.
54268         * modules/pty-tests (Files): Likewise.
54269         * modules/random_r-tests (Files): Likewise.
54270         * modules/rawmemchr-tests (Files): Likewise.
54271         * modules/readlink-tests (Files): Likewise.
54272         * modules/remove-tests (Files): Likewise.
54273         * modules/rename-tests (Files): Likewise.
54274         * modules/renameat-tests (Files): Likewise.
54275         * modules/rmdir-tests (Files): Likewise.
54276         * modules/round-tests (Files): Likewise.
54277         * modules/roundf-tests (Files): Likewise.
54278         * modules/roundl-tests (Files): Likewise.
54279         * modules/select-tests (Files): Likewise.
54280         * modules/setenv-tests (Files): Likewise.
54281         * modules/sigaction-tests (Files): Likewise.
54282         * modules/sleep-tests (Files): Likewise.
54283         * modules/snprintf-posix-tests (Files): Likewise.
54284         * modules/snprintf-tests (Files): Likewise.
54285         * modules/sprintf-posix-tests (Files): Likewise.
54286         * modules/stat-tests (Files): Likewise.
54287         * modules/strcasestr-tests (Files): Likewise.
54288         * modules/strchrnul-tests (Files): Likewise.
54289         * modules/strerror-tests (Files): Likewise.
54290         * modules/strsignal-tests (Files): Likewise.
54291         * modules/strstr-tests (Files): Likewise.
54292         * modules/strtod-tests (Files): Likewise.
54293         * modules/strverscmp-tests (Files): Likewise.
54294         * modules/symlink-tests (Files): Likewise.
54295         * modules/symlinkat-tests (Files): Likewise.
54296         * modules/times-tests (Files): Likewise.
54297         * modules/trunc-tests (Files): Likewise.
54298         * modules/truncf-tests (Files): Likewise.
54299         * modules/truncl-tests (Files): Likewise.
54300         * modules/tsearch-tests (Files): Likewise.
54301         * modules/uname-tests (Files): Likewise.
54302         * modules/unlink-tests (Files): Likewise.
54303         * modules/unsetenv-tests (Files): Likewise.
54304         * modules/usleep-tests (Files): Likewise.
54305         * modules/utimensat-tests (Files): Likewise.
54306         * modules/vasprintf-tests (Files): Likewise.
54307         * modules/vdprintf-posix-tests (Files): Likewise.
54308         * modules/vfprintf-posix-tests (Files): Likewise.
54309         * modules/vprintf-posix-tests (Files): Likewise.
54310         * modules/vsnprintf-posix-tests (Files): Likewise.
54311         * modules/vsnprintf-tests (Files): Likewise.
54312         * modules/vsprintf-posix-tests (Files): Likewise.
54313         * modules/wcrtomb-tests (Files): Likewise.
54314         * modules/wcsnrtombs-tests (Files): Likewise.
54315         * modules/wcsrtombs-tests (Files): Likewise.
54316         * modules/wcwidth-tests (Files): Likewise.
54317         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
54318         * tests/test-isinf.c (isinf): Likewise.
54319         * tests/test-isnan.c (isnan): Likewise.
54320         * tests/test-signbit.c (signbit): Likewise.
54321         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
54322         declaration, either as macro or with correct signature.
54323         (select): Ensure function under test is declared with correct
54324         signature in correct header.
54325         * tests/test-atexit.c (atexit): Likewise.
54326         * tests/test-btowc.c (btowc): Likewise.
54327         * tests/test-canonicalize-lgpl.c (realpath)
54328         (canonicalize_file_name): Likewise.
54329         * tests/test-ceilf1.c (ceilf): Likewise.
54330         * tests/test-ceill.c (ceill): Likewise.
54331         * tests/test-chown.c (chown): Likewise.
54332         * tests/test-dprintf-posix.c (dprintf): Likewise.
54333         * tests/test-dup2.c (dup2): Likewise.
54334         * tests/test-dup3.c (dup3): Likewise.
54335         * tests/test-duplocale.c (duplocale): Likewise.
54336         * tests/test-fchdir.c (fchdir): Likewise.
54337         * tests/test-fchownat.c (fchownat): Likewise.
54338         * tests/test-fcntl.c (fcntl): Likewise.
54339         * tests/test-fdopendir.c (fdopendir): Likewise.
54340         * tests/test-fflush.c (fflush): Likewise.
54341         * tests/test-flock.c (flock): Likewise.
54342         * tests/test-floorf1.c (floorf): Likewise.
54343         * tests/test-floorl.c (floorl): Likewise.
54344         * tests/test-fnmatch.c (fnmatch): Likewise.
54345         * tests/test-fopen.c (fopen): Likewise.
54346         * tests/test-fprintf-posix.c (fprintf): Likewise.
54347         * tests/test-freopen.c (freopen): Likewise.
54348         * tests/test-frexp.c (frexp): Likewise.
54349         * tests/test-frexpl.c (frexpl): Likewise.
54350         * tests/test-fseek.c (fseek): Likewise.
54351         * tests/test-fseeko.c (fseeko): Likewise.
54352         * tests/test-fstatat.c (fstatat): Likewise.
54353         * tests/test-fsync.c (fsync): Likewise.
54354         * tests/test-ftell.c (ftell): Likewise.
54355         * tests/test-ftello.c (ftello): Likewise.
54356         * tests/test-futimens.c (futimens): Likewise.
54357         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
54358         (gai_strerror): Likewise.
54359         * tests/test-getcwd.c (getcwd): Likewise.
54360         * tests/test-getdelim.c (getdelim): Likewise.
54361         * tests/test-getdtablesize.c (getdtablesize): Likewise.
54362         * tests/test-getgroups.c (getgroups): Likewise.
54363         * tests/test-gethostname.c (gethostname): Likewise.
54364         * tests/test-getline.c (getline): Likewise.
54365         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
54366         Likewise.
54367         * tests/test-gettimeofday.c (gettimeofday): Likewise.
54368         * tests/test-glob.c (glob, globfree): Likewise.
54369         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
54370         * tests/test-inet_ntop.c (inet_ntop): Likewise.
54371         * tests/test-inet_pton.c (inet_pton): Likewise.
54372         * tests/test-isblank.c (isblank): Likewise.
54373         * tests/test-lchown.c (lchown): Likewise.
54374         * tests/test-ldexpl.c (ldexpl): Likewise.
54375         * tests/test-link.c (link): Likewise.
54376         * tests/test-linkat.c (linkat): Likewise.
54377         * tests/test-lseek.c (lseek): Likewise.
54378         * tests/test-lstat.c (lstat): Likewise.
54379         * tests/test-mbrtowc.c (mbrtowc): Likewise.
54380         * tests/test-mbsinit.c (mbsinit): Likewise.
54381         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
54382         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
54383         * tests/test-memchr.c (memchr): Likewise.
54384         * tests/test-memcmp.c (memcmp): Likewise.
54385         * tests/test-memmem.c (memmem): Likewise.
54386         * tests/test-memrchr.c (memrchr): Likewise.
54387         * tests/test-mkdir.c (mkdir): Likewise.
54388         * tests/test-mkdirat.c (mkdirat): Likewise.
54389         * tests/test-mkfifo.c (mkfifo): Likewise.
54390         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
54391         * tests/test-mknod.c (mknod): Likewise.
54392         * tests/test-nanosleep.c (nanosleep): Likewise.
54393         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
54394         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
54395         Likewise.
54396         * tests/test-open.c (open): Likewise.
54397         * tests/test-openat.c (openat): Likewise.
54398         * tests/test-perror.c (perror): Likewise.
54399         * tests/test-pipe2.c (pipe2): Likewise.
54400         * tests/test-poll.c (poll): Likewise.
54401         * tests/test-popen.c (popen, pclose): Likewise.
54402         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
54403         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
54404         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
54405         (posix_spawn_file_actions_destroy)
54406         (posix_spawn_file_actions_addclose)
54407         (posix_spawn_file_actions_addopen)
54408         (posix_spawn_file_actions_adddup2): Likewise.
54409         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
54410         * tests/test-pread.c (pread): Likewise.
54411         * tests/test-printf-posix.c (printf): Likewise.
54412         * tests/test-pty.c (openpty, forkpty): Likewise.
54413         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
54414         (random_r): Likewise.
54415         * tests/test-rawmemchr.c (rawmemchr): Likewise.
54416         * tests/test-readlink.c (readlink): Likewise.
54417         * tests/test-remove.c (remove): Likewise.
54418         * tests/test-rename.c (rename): Likewise.
54419         * tests/test-renameat.c (renameat): Likewise.
54420         * tests/test-rmdir.c (rmdir): Likewise.
54421         * tests/test-round1.c (round): Likewise.
54422         * tests/test-roundf1.c (roundf): Likewise.
54423         * tests/test-roundl.c (roundl): Likewise.
54424         * tests/test-setenv.c (setenv): Likewise.
54425         * tests/test-sigaction.c (sigaction): Likewise.
54426         * tests/test-sleep.c (sleep): Likewise.
54427         * tests/test-snprintf.c (snprintf): Likewise.
54428         * tests/test-sprintf-posix.c (sprintf): Likewise.
54429         * tests/test-stat.c (stat): Likewise.
54430         * tests/test-stpncpy.c (stpncpy): Likewise.
54431         * tests/test-strcasestr.c (strcasestr): Likewise.
54432         * tests/test-strchrnul.c (strchrnul): Likewise.
54433         * tests/test-strerror.c (strerror): Likewise.
54434         * tests/test-strsignal.c (strsignal): Likewise.
54435         * tests/test-strstr.c (strstr): Likewise.
54436         * tests/test-strtod.c (strtod): Likewise.
54437         * tests/test-strverscmp.c (strverscmp): Likewise.
54438         * tests/test-symlink.c (symlink): Likewise.
54439         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
54440         * tests/test-times.c (times): Likewise.
54441         * tests/test-trunc1.c (trunc): Likewise.
54442         * tests/test-truncf1.c (truncf): Likewise.
54443         * tests/test-truncl.c (truncl): Likewise.
54444         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
54445         Likewise.
54446         * tests/test-uname.c (uname): Likewise.
54447         * tests/test-unlink.c (unlink): Likewise.
54448         * tests/test-unlinkat.c (unlinkat): Likewise.
54449         * tests/test-unsetenv.c (unsetenv): Likewise.
54450         * tests/test-usleep.c (usleep): Likewise.
54451         * tests/test-utimensat.c (utimensat): Likewise.
54452         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
54453         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
54454         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
54455         * tests/test-vprintf-posix.c (vprintf): Likewise.
54456         * tests/test-vsnprintf.c (vsnprintf): Likewise.
54457         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
54458         * tests/test-wcrtomb.c (wcrtomb): Likewise.
54459         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
54460         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
54461         * tests/test-wcwidth.c (wcwidth): Likewise.
54463         build: pull in conditional headers during GNULIB_POSIXCHECK
54464         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
54465         definitions from any conditionally-included headers.
54466         * lib/stdlib.in.h (includes): Likewise.
54467         * lib/unistd.in.h (includes): Likewise.
54469 2009-12-24  Bruno Haible  <bruno@clisp.org>
54471         * tests/test-argv-iter.c: Include header file being tested immediately
54472         after config.h.
54473         * tests/test-base64.c: Likewise.
54474         * tests/test-flock.c: Likewise.
54475         * tests/test-fsync.c: Likewise.
54476         * tests/test-getdate.c: Likewise.
54477         * tests/test-getndelim2.c: Likewise.
54478         * tests/test-isfinite.c: Likewise.
54479         * tests/test-isinf.c: Likewise.
54480         * tests/test-strerror.c: Likewise.
54481         * tests/test-strsignal.c: Likewise.
54483 2009-12-23  Eric Blake  <ebb9@byu.net>
54485         unistd: work around cygwin bug
54486         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
54487         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
54488         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
54490 2009-12-23  Bruno Haible  <bruno@clisp.org>
54492         localename: More tests.
54493         * tests/test-localename.c (SIZEOF): New macro.
54494         (categories): New variable.
54495         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
54496         test_locale_name_default): Add test w.r.t. thread locale.
54497         (test_locale_name_thread): New function.
54498         (main): Invoke it.
54500         localename: Make aware of thread locale.
54501         * lib/localename.h (gl_locale_name_thread): New declaration.
54502         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
54503         behaviour with respect to thread locale.
54504         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
54505         <langinfo.h>, glthread/lock.h.
54506         (SIZE_BITS): New macro.
54507         (string_hash): New function.
54508         (struct hash_node): New type.
54509         (HASH_TABLE_SIZE): New macro.
54510         (struniq_hash_table, struniq_lock): New variables.
54511         (struniq): New function.
54512         (gl_locale_name_thread): New function.
54513         (gl_locale_name): Invoke it.
54514         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
54515         * modules/localename (Depends-on): Add lock.
54516         Reported by Mike Gran <spk121@yahoo.com>.
54518 2009-12-23  Eric Blake  <ebb9@byu.net>
54520         va-args: new module
54521         * modules/va-args: New file.
54522         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
54523         * MODULES.html.sh (Core language properties): Mention it.
54525         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
54526         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
54527         named alias for __attribute__((__unused__)).
54528         * lib/chown.c: Update client.
54529         * lib/fchmodat.c: Likewise.
54530         * lib/fts.c: Likewise.
54531         * lib/getdate.y: Likewise.
54532         * lib/getgroups.c: Likewise.
54533         * lib/getopt.c: Likewise.
54534         * lib/getugroups.c: Likewise.
54535         * lib/mkdir.c: Likewise.
54536         * lib/mkfifo.c: Likewise.
54537         * lib/mkfifoat.c: Likewise.
54538         * lib/mknod.c: Likewise.
54539         * lib/mknodat.c: Likewise.
54540         * lib/readlink.c: Likewise.
54541         * lib/se-context.in.h: Likewise.
54542         * lib/se-selinux.in.h: Likewise.
54543         * lib/sockets.c: Likewise.
54544         * lib/symlink.c: Likewise.
54545         * lib/symlinkat.c: Likewise.
54546         * lib/unicodeio.c: Likewise.
54547         * lib/unistr.h: Likewise.
54548         * tests/test-areadlink.c: Likewise.
54549         * tests/test-areadlinkat.c: Likewise.
54550         * tests/test-filenamecat.c: Likewise.
54551         * tests/test-fseeko.c: Likewise.
54552         * tests/test-ftello.c: Likewise.
54553         * tests/test-getdate.c: Likewise.
54554         * tests/test-getgroups.c: Likewise.
54555         * tests/test-gethostname.c: Likewise.
54556         * tests/test-quotearg.c: Likewise.
54557         * tests/test-version-etc.c: Likewise.
54558         * tests/test-xalloc-die.c: Likewise.
54559         * tests/test-xfprintf-posix.c: Likewise.
54560         * tests/test-xprintf-posix.c: Likewise.
54561         * tests/test-xvasprintf.c: Likewise.
54563         tests: avoid compiler warnings
54564         * tests/test-fcntl.c (main): Delete unused parameters.
54565         * tests/test-freopen-safer.c (main): Likewise.
54566         * tests/test-xalloc-die.c (main): Mark unused parameters.
54567         * tests/test-fseeko.c (main): Likewise.
54568         * tests/test-ftello.c (main): Likewise.
54569         * tests/test-nanosleep.c (main): Avoid declaration warning.
54570         * tests/test-sleep.c (main): Likewise.
54571         * tests/test-unsetenv.c (main): Silence warning about string
54572         literal.
54573         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
54575 2009-12-23  Bruno Haible  <bruno@clisp.org>
54577         * tests/test-localename.c (test_locale_name): New function, extracted
54578         from main. Also test mixed situations.
54579         (test_locale_name_posix, test_locale_name_environ,
54580         test_locale_name_default): New functions.
54581         (main): Invoke them all.
54582         * modules/localename-tests (configure.ac): Test for newlocale.
54584 2009-12-23  Bruno Haible  <bruno@clisp.org>
54586         unistd: Ensure getcwd gets declared before being overridden.
54587         * lib/unistd.in.h: Conditionally include <io.h>.
54589 2009-12-22  Bruno Haible  <bruno@clisp.org>
54591         wchar: Diagnose broken combination of glibc and gcc versions and flags.
54592         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
54593         (gl_WCHAR_H): Invoke it.
54594         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
54595         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
54596         Reported by Karl Berry <karl@freefriends.org>.
54598 2009-12-22  Eric Blake  <ebb9@byu.net>
54600         math, unistd: avoid redundant includes
54601         * lib/math.in.h (isnan): No need to re-include <math.h>.
54602         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
54604         getsubopt: work around cygwin bug
54605         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
54606         avoid conflicting with system getsubopt.
54607         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
54608         bug.
54610         getopt: synchronize from glibc
54611         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
54612         parameter order.  Adjust all callers.
54613         (_getopt_internal_r, main): Adjust quoting in error messages.
54614         Drop considerations for outdated POSIX 1003.2 error message.
54615         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
54616         callers.
54617         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
54619         test-getopt: test stderr behavior
54620         * modules/getopt-posix-tests (Depends-on): Add dup2.
54621         * tests/test-getopt.c (ASSERT): Avoid stderr.
54622         (main): Move stderr to a temporary file.
54623         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
54624         Instead, add parameter to inform caller if output occurred.
54625         (test_getopt): Adjust all existing tests to expect silence, and
54626         add new tests of leading ":".
54627         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54628         glibc shortcomings with leading "-:" or "+:" in optstring.
54629         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54630         Likewise.
54631         * doc/posix-functions/getopt.texi (getopt): Likewise.
54633         test-getopt: enhance test
54634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
54635         supports optind=0.
54636         * tests/test-getopt.c (OPTIND_MIN): Move...
54637         * tests/test-getopt.h (OPTIND_MIN): ...here.
54638         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
54639         Require that optind=0 works, since modern BSD supports it in
54640         addition to optreset, and since coreutils expects it.
54641         (test_getopt_long_only): New test.
54642         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54643         glibc shortcomings with 'W;', and enforcement of optind=0.
54644         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54645         Likewise.
54647 2009-12-21  Bruno Haible  <bruno@clisp.org>
54649         localename: Improvements for MacOS X and Cygwin.
54650         * lib/localename.h (gl_locale_name_environ): New declaration.
54651         * lib/localename.c (gl_locale_name_environ): New function, extracted from
54652         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
54653         (gl_locale_name_posix): Invoke it.
54654         (gl_locale_name_default): Add comments. Use Windows native API also on
54655         Cygwin.
54657 2009-12-21  Bruno Haible  <bruno@clisp.org>
54659         Update list of Win32 locale ids.
54660         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
54661         (LANG_SAMI): Renamed from LANG_SAAMI.
54662         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
54663         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
54664         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
54665         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
54666         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
54667         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
54668         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
54669         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
54670         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
54671         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
54672         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
54673         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
54674         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
54675         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
54676         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
54677         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
54678         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
54679         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
54680         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
54681         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
54682         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
54683         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
54684         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
54685         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
54686         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
54687         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
54688         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
54689         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
54690         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
54691         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
54692         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
54693         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
54694         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
54695         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
54696         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
54697         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
54698         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
54699         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
54700         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
54701         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
54702         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
54703         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
54704         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
54705         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
54706         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
54707         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
54708         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
54709         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
54710         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
54711         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
54712         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
54713         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
54714         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
54715         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
54716         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
54717         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
54718         Add more languages and countries for Sami, Sorbian. Add more countries
54719         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
54720         for Pashto. Change country for Syriac, Tswana.
54722 2009-12-21  Eric Blake  <ebb9@byu.net>
54724         test-utimens: avoid spurious failure
54725         * tests/test-chown.h (nap): Factor...
54726         * tests/nap.h: ...into new file.
54727         * tests/test-lchown.h (nap): Avoid duplication.
54728         * tests/test-utimens-common.h (nap): Use shared implementation,
54729         necessary on file systems with 1-second resolution.
54730         * modules/chown-tests (Files): Include new file.
54731         * modules/fdutimensat-tests (Files): Likewise.
54732         * modules/futimens-tests (Files): Likewise.
54733         * modules/lchown-tests (Files): Likewise.
54734         * modules/openat-tests (Files): Likewise.
54735         * modules/utimens-tests (Files): Likewise.
54736         * modules/utimensat-tests (Files): Likewise.
54738 2009-12-19  Eric Blake  <ebb9@byu.net>
54740         futimens, utimensat: work around Linux bug
54741         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
54742         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54743         * lib/utimensat.c (rpl_utimensat): Work around it.
54744         * lib/futimens.c (rpl_futimens): Adjust comment.
54746         utimens: work around Linux ctime bug
54747         * lib/utimens.c (detect_ctime_bug): New helper function.
54748         (update_timespec): Differentiate between workaround needed for
54749         this bug vs. what is needed for systems that lack utimensat.
54750         (fdutimens, lutimens): Work around bug.
54752         utimens: check for ctime update
54753         * tests/test-utimens-common.h (check_ctime): Define.
54754         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
54755         * tests/test-futimens.h (test_futimens): Likewise.
54756         * tests/test-lutimens.h (test_lutimens): Likewise.
54757         * doc/posix-functions/futimens.texi (futimens): Document the bug.
54758         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54760 2009-12-19  Bruno Haible  <bruno@clisp.org>
54762         dprintf-posix: Check against memory leak fixed on 2009-12-15.
54763         * tests/test-dprintf-posix2.sh: New file.
54764         * tests/test-dprintf-posix2.c: New file.
54765         * modules/dprintf-posix-tests (Files): Add them.
54766         (configure.ac): Check for getrlimit and setrlimit.
54767         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
54769 2009-12-19  Bruno Haible  <bruno@clisp.org>
54771         fprintf-posix: Check against memory leak fixed on 2009-12-15.
54772         * tests/test-fprintf-posix3.sh: New file.
54773         * tests/test-fprintf-posix3.c: New file.
54774         * modules/fprintf-posix-tests (Files): Add them.
54775         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
54777 2009-12-19  Eric Blake  <ebb9@byu.net>
54779         dirfd: fix prototype
54780         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
54781         * lib/dirfd.c (dirfd): Likewise.
54783         canonicalize: reduce memory usage
54784         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
54785         allocation to size.
54786         Reported by Solar Designer <solar@openwall.com>.
54788 2009-12-19  Bruno Haible  <bruno@clisp.org>
54790         New module attribute 'Applicability'.
54791         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
54792         * gnulib-tool: New option --extract-applicability.
54793         (func_usage): Document it.
54794         (sed_extract_prog): Recognize it.
54795         (func_get_applicability): New function.
54796         (func_import): Generalize handling of 'link-warning' module.
54797         * modules/link-warning (Applicability): New section.
54798         * modules/arg-nonnull (Applicability): New section.
54799         Repoted by Simon Josefsson <simon@josefsson.org>.
54801 2009-12-19  Bruno Haible  <bruno@clisp.org>
54803         fflush: tweak
54804         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
54805         * lib/fseeko.c (rpl_fseeko): Likewise.
54807 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
54809         * lib/gl_list.h: Fix typo in comment.
54811 2009-12-16  Eric Blake  <ebb9@byu.net>
54813         fcntl: use to simplify other modules
54814         * modules/cloexec (Depends-on): Add fcntl.
54815         * modules/fchdir (Depends-on): Likewise.
54816         * modules/fd-safer-flag (Depends-on): Likewise.
54817         * modules/unistd-safer (Depends-on): Likewise.
54818         * modules/dup3 (configure.ac): Set module indicator.
54819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
54820         missing.
54821         * lib/fchdir.c (_gl_register_dup): Fix comment.
54822         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
54823         * lib/dup-safer.c (dup_safer): Likewise.
54824         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
54825         * lib/dup3.c (dup3): Likewise.
54826         * tests/test-fchdir.c (main): Enhance test.
54827         Fixes a dup_cloexec bug reported by Ondřej Vašík.
54829         fcntl: port portions of fcntl to mingw
54830         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
54831         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
54832         replacement for mingw.
54833         * modules/fcntl (Description): Update.
54834         (Depends-on): Add dup2.
54835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
54836         * modules/fcntl-h (Makefile.am): Substitute it.
54837         * lib/fcntl.in.h (fcntl): Update declaration.
54838         (F_DUPFD, F_GETFD): New macros, when needed.
54839         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
54840         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
54841         * tests/test-fcntl.c (check_flags, main): Enhance test for items
54842         we now guarantee.
54844         fcntl: work around cygwin bug in F_DUPFD
54845         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
54846         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
54847         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
54848         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
54849         * doc/posix-functions/fcntl.texi (fcntl): Document it.
54851         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
54852         * modules/fcntl (Files): List new files.
54853         (configure.ac): Run a test.
54854         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
54855         * lib/fcntl.c (rpl_fcntl): Likewise.
54856         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
54857         (gl_FCNTL_H): Always replace fcntl.h.
54858         * modules/fcntl-h (Makefile.am): Substitute witnesses.
54859         * lib/fcntl.in.h (fcntl): Declare replacement.
54860         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
54861         needed, plus a witness.
54862         * doc/posix-functions/fcntl.texi (fcntl): Document this.
54863         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
54864         * tests/test-fcntl.c: New file.
54865         * modules/fcntl-tests: Likewise.
54867         binary-io: avoid potential compilation warning
54868         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
54869         directives.
54871         fflush: avoid compilation error on NetBSD
54872         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
54873         between off_t and fpos_t, since the latter is sometimes a struct.
54874         * lib/fseeko.c (rpl_fseeko): Likewise.
54875         Reported by Alexander Nasonov <alnsn@yandex.ru>.
54877 2009-12-15  Eric Blake  <ebb9@byu.net>
54879         fcntl-h, stdio, sys_ioctl: fix declarations
54880         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
54881         function must not take arguments.
54882         * lib/sys_ioctl.in.h (ioctl): Likewise.
54883         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
54884         (open): Add a link warning.
54886 2009-12-15  Jim Meyering  <meyering@redhat.com>
54888         areadlink, areadlink-with-size: relax license to LGPLv2+
54889         * modules/areadlink (License): Relax to LGPLv2+.
54890         * modules/areadlink-with-size (License): Likewise.
54892 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
54893             Bruno Haible  <bruno@clisp.org>
54895         *printf: Fix memory leak.
54896         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
54897         * lib/vfprintf.c (vfprintf): Likewise.
54898         * lib/dprintf.c (dprintf): Likewise.
54899         * lib/vdprintf.c (vdprintf): Likewise.
54901 2009-12-14  Eric Blake  <ebb9@byu.net>
54903         accept4: adjust module dependencies
54904         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
54906         utimens: one more try at avoiding compiler warning
54907         * lib/utimens.c (lutimens): Lower scope of result.
54909 2009-12-13  Bruno Haible  <bruno@clisp.org>
54911         Move the malloc checking from module 'list' to new module 'xlist'.
54912         * modules/xlist: New file.
54913         * lib/gl_xlist.h: New file.
54914         * lib/gl_xlist.c: New file.
54915         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
54916         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
54917         gl_list_add_last, gl_list_add_before, gl_list_add_after,
54918         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
54919         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
54920         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
54921         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
54922         gl_sortedlist_nx_add): New declarations.
54923         (struct gl_list_implementation): Rename and change methods accordingly.
54924         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
54925         (gl_list_nx_create): Renamed from gl_list_create.
54926         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54927         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54928         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54929         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54930         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54931         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54932         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54933         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54934         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
54935         gl_list_create_empty.
54936         (gl_list_nx_create): Renamed from gl_list_create.
54937         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54938         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54939         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54940         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54941         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54942         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54943         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54944         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54945         * lib/gl_array_list.c: Don't include xalloc.h.
54946         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
54947         NULL upon out-of-memory.
54948         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
54949         out-of-memory.
54950         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
54951         Change return type to 'int'.
54952         (gl_array_nx_set_at): Renamed from gl_array_set_at.
54953         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54954         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
54955         upon out-of-memory.
54956         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
54957         upon out-of-memory.
54958         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
54959         upon out-of-memory.
54960         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
54961         upon out-of-memory.
54962         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
54963         out-of-memory.
54964         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
54965         Update.
54966         (gl_array_list_implementation): Update.
54967         * lib/gl_carray_list.c: Don't include xalloc.h.
54968         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
54969         Return NULL upon out-of-memory.
54970         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
54971         out-of-memory.
54972         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
54973         Change return type to 'int'.
54974         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
54975         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54976         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
54977         upon out-of-memory.
54978         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
54979         upon out-of-memory.
54980         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
54981         out-of-memory.
54982         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
54983         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
54984         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
54985         Update.
54986         (gl_carray_list_implementation): Update.
54987         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
54988         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
54989         gl_linked_create_empty. Return NULL upon out-of-memory.
54990         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
54991         out-of-memory.
54992         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
54993         Change return type to 'int'. Return -1 upon out-of-memory.
54994         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
54995         out-of-memory.
54996         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
54997         upon out-of-memory.
54998         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
54999         upon out-of-memory.
55000         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
55001         NULL upon out-of-memory.
55002         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
55003         upon out-of-memory.
55004         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
55005         out-of-memory.
55006         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
55007         Update.
55008         * lib/gl_linked_list.c: Don't include xalloc.h.
55009         (gl_linked_list_implementation): Update.
55010         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
55011         (add_to_bucket): Change return type to 'int'.
55012         (gl_linkedhash_list_implementation): Update.
55013         * lib/gl_anytree_list1.h (free_subtree): New function.
55014         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
55015         gl_tree_create_empty. Return NULL upon out-of-memory.
55016         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
55017         Change return type to 'int'. Return -1 upon out-of-memory.
55018         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
55019         out-of-memory.
55020         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
55021         (gl_tree_remove_node): New function, moved here from
55022         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
55023         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
55024         Update.
55025         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
55026         malloc, not xmalloc. Return NULL upon out-of-memory.
55027         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
55028         out-of-memory.
55029         (gl_tree_remove_node_from_tree): New function, extracted from
55030         gl_tree_remove_node.
55031         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
55032         upon out-of-memory.
55033         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
55034         out-of-memory.
55035         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
55036         upon out-of-memory.
55037         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
55038         upon out-of-memory.
55039         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
55040         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
55041         not xmalloc. Return NULL upon out-of-memory.
55042         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
55043         out-of-memory.
55044         (gl_tree_remove_node_from_tree): New function, extracted from
55045         gl_tree_remove_node.
55046         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
55047         upon out-of-memory.
55048         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
55049         out-of-memory.
55050         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
55051         upon out-of-memory.
55052         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
55053         upon out-of-memory.
55054         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
55055         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
55056         gl_anytree_list1.h before gl_anyavltree_list2.h.
55057         (gl_avltree_list_implementation): Update.
55058         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
55059         gl_anytree_list1.h before gl_anyavltree_list2.h.
55060         (gl_rbtree_list_implementation): Update.
55061         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
55062         Change return type to 'int'. Return -1 upon out-of-memory. Use
55063         __builtin_expect.
55064         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
55065         (gl_avltreehash_list_implementation): Update.
55066         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
55067         (gl_rbtreehash_list_implementation): Update.
55068         * modules/array-list (Depends-on): Remove xalloc.
55069         * modules/carray-list (Depends-on): Likewise.
55070         * modules/linked-list (Depends-on): Likewise.
55071         * modules/linkedhash-list (Depends-on): Likewise.
55072         * modules/avltree-list (Depends-on): Likewise.
55073         * modules/rbtree-list (Depends-on): Likewise.
55074         * modules/avltreehash-list (Depends-on): Likewise.
55075         * modules/rbtreehash-list (Depends-on): Likewise.
55077         * modules/xsublist: New file.
55078         * lib/gl_xsublist.h: New file.
55079         * lib/gl_xsublist.c: New file.
55080         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
55081         (gl_sublist_nx_create): New declaration.
55082         * lib/gl_sublist.c: Don't include xalloc.h.
55083         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
55084         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
55085         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
55086         Change return type to 'int'. Return -1 upon out-of-memory.
55087         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
55088         upon out-of-memory.
55089         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
55090         NULL upon out-of-memory.
55091         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
55092         upon out-of-memory.
55093         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
55094         NULL upon out-of-memory.
55095         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
55096         NULL upon out-of-memory.
55097         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
55098         upon out-of-memory.
55099         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
55100         (gl_sublist_list_implementation): Update.
55101         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
55102         upon out-of-memory.
55103         * modules/sublist (Depends-on): Remove xalloc.
55105         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
55106         * tests/test-carray_list.c: Likewise.
55107         * tests/test-linked_list.c: Likewise.
55108         * tests/test-linkedhash_list.c: Likewise.
55109         * tests/test-avltree_list.c: Likewise.
55110         * tests/test-rbtree_list.c: Likewise.
55111         * tests/test-avltreehash_list.c: Likewise.
55112         * tests/test-rbtreehash_list.c: Likewise.
55113         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
55114         * modules/carray-list-tests (Makefile.am): Likewise.
55115         * modules/linked-list-tests (Makefile.am): Likewise.
55116         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55117         * modules/avltree-list-tests (Makefile.am): Likewise.
55118         * modules/rbtree-list-tests (Makefile.am): Likewise.
55119         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55120         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55122         * NEWS: Mention the changes.
55124         * lib/clean-temp.c: Include gl_xlist.h.
55125         * modules/clean-temp (Depends-on): Add xlist.
55127         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
55128         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
55130         * tests/test-array_oset.c: Include gl_xlist.h.
55131         * modules/array-oset-tests (Depends-on): Add xlist.
55133         Reported by José E. Marchesi <jemarch@gnu.org>.
55135 2009-12-13  Bruno Haible  <bruno@clisp.org>
55137         Move the malloc checking from module 'oset' to new module 'xoset'.
55138         * modules/xoset: New file.
55139         * lib/gl_xoset.h: New file.
55140         * lib/gl_xoset.c: New file.
55141         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
55142         declarations.
55143         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
55144         (struct gl_oset_implementation): Rename and change methods accordingly.
55145         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
55146         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
55147         'int'. Mark as __warn_unused_result__.
55148         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
55149         gl_oset_create_empty.
55150         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
55151         'int'.
55152         * lib/gl_array_oset.c: Don't include xalloc.h.
55153         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
55154         malloc, not xmalloc.
55155         (grow): Change return type to 'int'. Don't call xalloc_die.
55156         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
55157         to 'int'.
55158         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
55159         'int'.
55160         (gl_array_oset_implementation): Update.
55161         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
55162         gl_tree_create_empty.
55163         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
55164         'int'.
55165         * lib/gl_avltree_oset.c: Don't include xalloc.h.
55166         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
55167         xmalloc.
55168         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
55169         not xmalloc.
55170         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
55171         xmalloc.
55172         (gl_avltree_oset_implementation): Update.
55173         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
55174         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
55175         xmalloc.
55176         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
55177         not xmalloc.
55178         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
55179         xmalloc.
55180         (gl_rbtree_oset_implementation): Update.
55181         * modules/array-oset (Depends-on): Remove xalloc.
55182         * modules/avltree-oset (Depends-on): Likewise.
55183         * modules/rbtree-oset (Depends-on): Likewise.
55184         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
55185         * tests/test-avltree_oset.c: Likewise.
55186         * tests/test-rbtree_oset.c: Likewise.
55187         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55188         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
55189         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55190         * NEWS: Mention the change.
55192 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
55194         maint.mk: allow a project to override release-prep commands
55195         * top/maint.mk (alpha, beta, stable): Move release-preparatory
55196         commands into a new rule.
55197         (release-prep): New rule.
55198         (release-prep-hook): New overridable variable.
55200 2009-12-13  Bruno Haible  <bruno@clisp.org>
55202         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
55204 2009-12-13  Jim Meyering  <meyering@redhat.com>
55206         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
55207         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
55209 2009-12-12  Bruno Haible  <bruno@clisp.org>
55211         duplocale: Tweak.
55212         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
55214 2009-12-12  Karl Berry  <karl@gnu.org>
55216         * config/srclist.txt (strtoll.c): tab changes, no more sync.
55218 2009-12-12  Bruno Haible  <bruno@clisp.org>
55220         * m4/po.m4: Undo incorrect untabification.
55222 2009-12-12  Bruno Haible  <bruno@clisp.org>
55224         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
55225         * modules/c-strtod (Depends-on): Add locale.
55226         * modules/c-strtold (Depends-on): Likewise.
55228 2009-12-12  Bruno Haible  <bruno@clisp.org>
55230         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
55232 2009-12-11  Eric Blake  <ebb9@byu.net>
55234         setenv: relax requirement in light of POSIX ruling
55235         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
55236         not NULL.
55237         * tests/test-setenv.c (main): Relax test.
55238         * tests/test-unsetenv.c (main): Likewise.
55239         * doc/posix-functions/setenv.texi (setenv): Document this.
55240         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
55242 2009-12-11  Bruno Haible  <bruno@clisp.org>
55244         New module 'fd-safer-flag'.
55245         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
55246         * lib/dup-safer.c (dup_safer_flag): Remove function.
55247         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
55248         * lib/fd-safer.c (fd_safer_flag): Remove function.
55249         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
55250         * modules/cloexec (configure.ac): Drop indicator macro.
55251         * modules/fd-safer-flag: New file.
55252         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
55253         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
55254         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
55256 2009-12-11  Bruno Haible  <bruno@clisp.org>
55258         Tests for module 'nl_langinfo'.
55259         * modules/nl_langinfo-tests: New file.
55260         * tests/test-nl_langinfo.sh: New file.
55261         * tests/test-nl_langinfo.c: New file.
55263         New module 'nl_langinfo'.
55264         * lib/nl_langinfo.c: New file.
55265         * m4/nl_langinfo.m4: New file.
55266         * modules/nl_langinfo: New file.
55267         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
55269 2009-12-11  Bruno Haible  <bruno@clisp.org>
55271         Tests for module 'langinfo'.
55272         * modules/langinfo-tests: New file.
55273         * tests/test-langinfo.c: New file.
55275         New module 'langinfo'.
55276         * lib/langinfo.in.h: New file.
55277         * m4/langinfo_h.m4: New file.
55278         * modules/langinfo: New file.
55279         * doc/posix-headers/langinfo.texi: Mention the new module.
55281 2009-12-11  Bruno Haible  <bruno@clisp.org>
55283         * lib/config.charset: Untabify.
55285 2009-12-11  Bruno Haible  <bruno@clisp.org>
55287         * modules/unistd-safer (configure.ac): Drop indicator macro.
55289 2009-12-11  Bruno Haible  <bruno@clisp.org>
55291         Move pipe2-safer code to its own file.
55292         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
55293         * lib/pipe-safer.c (pipe2_safer): Remove function.
55294         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
55295         (Makefile.am): Add it to lib_SOURCES.
55297 2009-12-10  Bruno Haible  <bruno@clisp.org>
55299         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
55301 2009-12-10  Bruno Haible  <bruno@clisp.org>
55303         Declare which arguments expect non-NULL values, for GCC and clang.
55304         * build-aux/arg-nonnull.h: New file.
55305         * modules/arg-nonnull: New file.
55306         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
55307         (inet_ntop, inet_pton): Use it.
55308         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
55309         (closedir, dirfd, opendir, scandir, alphasort): Use it.
55310         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
55311         (open, openat): Use it.
55312         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
55313         (fnmatch): Use it.
55314         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
55315         (getopt, getopt_long, getopt_long_only): Use it.
55316         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
55317         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
55318         Use it.
55319         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
55320         (iconv_open): Use it.
55321         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
55322         (strtoimax, strtoumax): Use it.
55323         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
55324         (duplocale): Use it.
55325         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
55326         (frexp, frexpl): Use it.
55327         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
55328         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
55329         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
55330         (tsearch, tfind, tdelete, twalk): Use it.
55331         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
55332         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55333         sigpending): Use it.
55334         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
55335         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55336         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55337         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55338         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55339         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55340         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55341         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55342         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55343         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55344         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55345         Use it.
55346         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
55347         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
55348         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
55349         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
55350         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
55351         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
55352         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
55353         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
55354         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
55355         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
55356         strtoull, unsetenv): Use it.
55357         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
55358         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55359         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55360         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
55361         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
55362         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
55363         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
55364         (strcasecmp, strncasecmp): Use it.
55365         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
55366         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
55367         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
55368         rpl_setsockopt): Use it.
55369         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
55370         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
55371         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
55372         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
55373         (gettimeofday): Use it.
55374         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
55375         (times): Use it.
55376         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
55377         (uname): Use it.
55378         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
55379         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
55380         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
55381         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
55382         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
55383         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
55384         unlinkat, write): Use it.
55385         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
55386         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
55387         * lib/argv-iter.h: Include arg-nonnull.h.
55388         (_ATTRIBUTE_NONNULL_): Remove macro.
55389         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
55390         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
55391         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
55392         optimization.
55393         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
55394         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
55395         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
55396         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
55397         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
55398         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
55399         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
55400         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
55401         * modules/arpa_inet (Depends-on): Add arg-nonnull.
55402         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
55403         * modules/dirent (Depends-on): Add arg-nonnull.
55404         (Makefile.am): Insert arg-nonnull.h into dirent.h.
55405         * modules/fcntl-h (Depends-on): Add arg-nonnull.
55406         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
55407         * modules/fnmatch (Depends-on): Add arg-nonnull.
55408         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
55409         * modules/getopt-posix (Depends-on): Add arg-nonnull.
55410         (Makefile.am): Insert arg-nonnull.h into getopt.h.
55411         * modules/glob (Depends-on): Add arg-nonnull.
55412         (Makefile.am): Insert arg-nonnull.h into glob.h.
55413         * modules/iconv_open (Depends-on): Add arg-nonnull.
55414         (Makefile.am): Insert arg-nonnull.h into iconv.h.
55415         * modules/inttypes (Depends-on): Add arg-nonnull.
55416         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
55417         * modules/locale (Depends-on): Add arg-nonnull.
55418         (Makefile.am): Insert arg-nonnull.h into locale.h.
55419         * modules/math (Depends-on): Add arg-nonnull.
55420         (Makefile.am): Insert arg-nonnull.h into math.h.
55421         * modules/netdb (Depends-on): Add arg-nonnull.
55422         (Makefile.am): Insert arg-nonnull.h into netdb.h.
55423         * modules/search (Depends-on): Add arg-nonnull.
55424         (Makefile.am): Insert arg-nonnull.h into search.h.
55425         * modules/signal (Depends-on): Add arg-nonnull.
55426         (Makefile.am): Insert arg-nonnull.h into signal.h.
55427         * modules/spawn (Depends-on): Add arg-nonnull.
55428         (Makefile.am): Insert arg-nonnull.h into spawn.h.
55429         * modules/stdio (Depends-on): Add arg-nonnull.
55430         (Makefile.am): Insert arg-nonnull.h into stdio.h.
55431         * modules/stdlib (Depends-on): Add arg-nonnull.
55432         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
55433         * modules/string (Depends-on): Add arg-nonnull.
55434         (Makefile.am): Insert arg-nonnull.h into string.h.
55435         * modules/strings (Depends-on): Add arg-nonnull.
55436         (Makefile.am): Insert arg-nonnull.h into strings.h.
55437         * modules/sys_socket (Depends-on): Add arg-nonnull.
55438         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
55439         * modules/sys_stat (Depends-on): Add arg-nonnull.
55440         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
55441         * modules/sys_time (Depends-on): Add arg-nonnull.
55442         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
55443         * modules/sys_times (Depends-on): Add arg-nonnull.
55444         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
55445         * modules/sys_utsname (Depends-on): Add arg-nonnull.
55446         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
55447         * modules/time (Depends-on): Add arg-nonnull.
55448         (Makefile.am): Insert arg-nonnull.h into time.h.
55449         * modules/unistd (Depends-on): Add arg-nonnull.
55450         (Makefile.am): Insert arg-nonnull.h into unistd.h.
55451         * modules/wchar (Depends-on): Add arg-nonnull.
55452         (Makefile.am): Insert arg-nonnull.h into wchar.h.
55453         * modules/argv-iter (Depends-on): Add arg-nonnull.
55454         * tests/test-canonicalize.c (null_ptr): New function.
55455         (main): Use it.
55456         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
55457         (main): Use it.
55458         * tests/test-memmem.c (null_ptr): New function.
55459         (main): Use it.
55460         Reported by Jim Meyering.
55462 2009-12-10  Bruno Haible  <bruno@clisp.org>
55464         Use spaces for indentation, not tabs.
55465         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
55466         * m4/*.m4: Untabify.
55467         * build-aux/*.h: Untabify.
55468         * tests/**/*.[hc]: Untabify.
55469         * README: New section "Indent with spaces, not TABs", based on
55470         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
55471         * NEWS: Mention the change.
55473 2009-12-10  Bruno Haible  <bruno@clisp.org>
55475         pty test: Fix link error.
55476         * modules/pty-tests (Makefile.am): Add the default LDADD value to
55477         test_pty_LDADD.
55479 2009-12-07  Simon Josefsson  <simon@josefsson.org>
55481         * modules/pty: New file.
55482         * modules/pty-tests: New file.
55483         * m4/pty.m4: New file.
55484         * tests/test-pty.c: New file.
55485         * doc/glibc-headers/pty.texi: Modified.
55486         * doc/glibc-functions/forkpty.texi: Modified.
55487         * doc/glibc-functions/openpty.texi: Modified.
55489 2009-12-10  Bruno Haible  <bruno@clisp.org>
55491         Avoid syntax error in C++ mode.
55492         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
55494 2009-12-10  Bruno Haible  <bruno@clisp.org>
55496         Use sed with option -e.
55497         * gnulib-tool (func_version, func_emit_copyright_notice,
55498         func_emit_initmacro_end, func_import, func_create_testdir): Pass
55499         option -e to sed.
55500         * modules/link-warning (Makefile.am): Likewise.
55502 2009-12-10  Jim Meyering  <meyering@redhat.com>
55504         mgetgroups: do not write bytes beyond end of malloc'd buffer
55505         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
55506         username, we call getgroups with a one-element-shorter buffer,
55507         but still told it the length was original, max_n_groups.
55509 2009-12-09  Eric Blake  <ebb9@byu.net>
55511         cloexec: relax license
55512         * modules/cloexec (Maintainer): Add myself.
55513         (License): Use LGPL, not GPL.
55515         link-warning: optimize generation
55516         * modules/link-warning (Makefile.am): Reduce process usage.
55518 2009-12-09  Bruno Haible  <bruno@clisp.org>
55520         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
55521         workaround was added on 2009-11-17.
55523 2009-12-09  Jim Meyering  <meyering@redhat.com>
55524             Bruno Haible  <bruno@clisp.org>
55526         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
55527         * modules/link-warning (Makefile.am): Make the comment-removing sed
55528         command more robust in the face of bootstrap-prepended comment lines.
55530 2009-12-09  Bruno Haible  <bruno@clisp.org>
55532         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
55533         most one group.
55535 2009-12-09  Simon Josefsson  <simon@josefsson.org>
55536             Bruno Haible  <bruno@clisp.org>
55538         * build-aux/link-warning.h: Add copyright notice.
55539         * modules/link-warning (Makefile.am): Generate link-warning.h from
55540         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
55541         * NEWS: Mention change in link-warning module.
55542         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
55543         * modules/dirent (Makefile.am): Add dependency to dirent.h.
55544         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
55545         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
55546         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
55547         * modules/math (Makefile.am): Add dependency to math.h.
55548         * modules/search (Makefile.am): Add dependency to search.h.
55549         * modules/signal (Makefile.am): Add dependency to signal.h.
55550         * modules/spawn (Makefile.am): Add dependency to spawn.h.
55551         * modules/stdio (Makefile.am): Add dependency to stdio.h.
55552         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
55553         * modules/string (Makefile.am): Add dependency to string.h.
55554         * modules/strings (Makefile.am): Add dependency to strings.h.
55555         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
55556         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
55557         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
55558         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
55559         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
55560         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
55561         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
55562         * modules/unistd (Makefile.am): Add dependency to unistd.h.
55563         * modules/wchar (Makefile.am): Add dependency to wchar.h.
55565 2009-12-09  Bruno Haible  <bruno@clisp.org>
55567         fchdir: Optimize away rpl_fstat when possible.
55568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
55569         REPLACE_OPEN_DIRECTORY.
55570         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
55572 2009-12-09  Bruno Haible  <bruno@clisp.org>
55574         * lib/fchdir.c: Update comment.
55576 2009-12-09  Bruno Haible  <bruno@clisp.org>
55578         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
55580 2009-12-08  Eric Blake  <ebb9@byu.net>
55582         fchdir: avoid memory leak on re-registration.
55583         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
55585 2009-12-08  Jim Meyering  <meyering@redhat.com>
55587         init.sh: avoid Solaris 10 /bin/sh portability problem
55588         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
55589         sourced script:
55590           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
55591           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
55592           bar
55593         tests/init.sh relied on that, accepting a --set-path=DIR argument,
55594         and two tests used that idiom.
55595         * tests/init.sh: Update suggested usage comments.
55596         (path_prepend_): New function, to be used in place
55597         of the --src-path=DIR option.
55598         (setup_): Move PATH-prepending code into path_prepend_.
55599         * tests/test-pread.sh: Adapt to new usage.
55600         * tests/test-xalloc-die.sh: Likewise.
55602 2009-12-08  Simon Josefsson  <simon@josefsson.org>
55604         * doc/gnulib.texi (Glibc pty.h): Add.
55605         * doc/glibc-functions/forkpty.texi: Add.
55606         * doc/glibc-functions/openpty.texi: Add.
55607         Suggested by Bruno Haible.
55609 2009-12-08  Eric Blake  <ebb9@byu.net>
55611         fchdir: fix logic bugs
55612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
55613         * tests/test-fchdir.c (main): Enhance test.
55614         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
55615         is in use.
55617         dup2: fix logic bugs
55618         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
55619         REPLACE_DUP2 to decide when rpl_dup2 is needed.
55620         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
55621         exists.
55622         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
55624 2009-12-07  Eric Blake  <ebb9@byu.net>
55626         unlink: fix m4 detection
55627         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
55629         unistd-safer: add unit test
55630         * modules/unistd-safer-tests: New file.
55631         * tests/test-dup-safer.c: Likewise.
55632         * tests/test-cloexec.c (setmode): Avoid compiler warning.
55633         * tests/test-dup2.c (setmode): Likewise.
55634         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
55636         cloexec: preserve text vs. binary across dup_cloexec
55637         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
55638         mode.
55639         * modules/dup2-tests (Depends-on): Add binary-io.
55640         * modules/cloexec-tests (Depends-on): Likewise.
55641         * tests/test-dup2.c (setmode, is_mode): New helpers.
55642         (main): Add tests that translation mode is preserved.
55643         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
55644         Reported by Bruno Haible.
55646         mgetgroups: reduce duplicate listings
55647         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
55648         resulting array.
55649         * tests/test-chown.h (test_chown): Simplify client.
55650         * tests/test-lchown.h (test_lchown): Likewise.
55652 2009-12-06  Bruno Haible  <bruno@clisp.org>
55654         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
55655         value.
55657 2009-12-06  Bruno Haible  <bruno@clisp.org>
55659         * lib/progname.c: Include stdio.h, stdlib.h.
55660         (set_program_name): Reject a NULL argument.
55662 2009-12-05  Eric Blake  <ebb9@byu.net>
55664         pipe2-safer: new module
55665         * modules/pipe2-safer: New file.
55666         * lib/unistd-safer.h (pipe2_safer): New prototype.
55667         * lib/unistd--.h (pipe2): New wrapper.
55668         * lib/pipe-safer.c (pipe2_safer): New function.
55669         * modules/pipe (Depends-on): Add pipe2-safer.
55670         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
55672         stdlib-safer: preserve cloexec flag for mkostemp[s]
55673         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
55674         fd_safer_flag.
55676         unistd-safer: allow preservation of cloexec status via flag
55677         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
55678         prototypes.
55679         * lib/dup-safer.c (dup_safer_flag): New function.
55680         * lib/fd-safer.c (fd_safer_flag): Likewise.
55681         * modules/cloexec (configure.ac): Set witness.
55683         test-dup2: enhance test
55684         * modules/dup2-tests (Depends-on): Add cloexec.
55685         * tests/test-dup2.c (main): Enhance test.
55687         cloexec: add dup_cloexec
55688         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
55689         header and comments.
55690         * lib/cloexec.c (set_cloexec_flag): Add comments.
55691         (dup_cloexec): New function, with mingw implementation borrowed
55692         from...
55693         * lib/w32spawn.h (dup_noinherit): ...here.
55694         * modules/execute (Depends-on): Add cloexec.
55695         * modules/pipe (Depends-on): Likewise.
55696         * modules/cloexec (Depends-on): Add dup2.
55697         * modules/cloexec-tests (Files): New file.
55698         * tests/test-cloexec.c: Likewise.
55700         test-xalloc-die: fix test for mingw
55701         * modules/xalloc-die-tests (Files): Add tests/init.sh.
55702         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
55703         directory and .exe suffix off argv[0] output.
55705         test-fseeko: fix test for mingw
55706         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
55707         than undefining fseek, so test will pass on mingw.
55709 2009-12-05  Bruno Haible  <bruno@clisp.org>
55711         * lib/progname.h (set_program_name): Clarify specification.
55712         * lib/progname.c (set_program_name): Likewise.
55713         Reported by Jim Meyering.
55715 2009-12-05  Jim Meyering  <meyering@redhat.com>
55717         maint.mk: backslash-escape parens in default regexp
55718         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
55719         backslash-escape the literal parentheses.
55721         maint.mk: news-date-check: use grep -E
55722         * top/maint.mk (today): Define a Make variable, not a...
55723         (news-date-check): ...shell variable.
55724         (news-date-regexp): Use the Make variable.
55725         Use grep's -E option.  Change the failing diagnostic to mention
55726         the variable, $(news-date-regexp).
55728 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
55730         maintainer-makefile: allow customization of NEWS entry format
55731         * top/maint.mk (news-date-regexp): New overridable variable.
55732         (news-date-check): Use it.
55734 2009-12-04  Eric Blake  <ebb9@byu.net>
55736         mgetgroups: add xgetgroups, and avoid ENOSYS failures
55737         * lib/mgetgroups.h (xgetgroups): New prototype.
55738         * lib/mgetgroups.c (xgetgroups): New wrapper.
55739         (mgetgroups): Handle ENOSYS.
55740         * modules/mgetgroups (Depends-on): Add realloc.
55741         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
55743         mgetgroups: avoid argument promotion issues with -1
55744         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
55745         for invalid gid_t.
55746         * tests/test-chown.h (getegid, test_chown): Likewise.
55747         * tests/test-lchown.h (getegid, test_lchown): Likewise.
55749 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
55751         exclude: Fix header file problems.
55752         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
55754 2009-12-01  Jim Meyering  <meyering@redhat.com>
55756         fts: fts_open: do not let an empty string cause immediate failure
55757         This is required in support of GNU rm, for which the command
55758         "rm A '' B" must process and remove both A and B, in spite of
55759         the empty string argument.
55760         * lib/fts.c (fts_open): Do not let the presence of an empty string
55761         cause fts_open to fail immediately.  Most fts-using tools must be
55762         able to process all arguments, in order, and can be expected to
55763         diagnose such arguments themselves.
55765 2009-11-30  Eric Blake  <ebb9@byu.net>
55767         utimens: fix compilation error
55768         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
55769         Declare variable at right scope.
55771 2009-11-29  Jim Meyering  <meyering@redhat.com>
55773         bootstrap: handle perl-5.11's changed --version output
55774         * build-aux/bootstrap (get_version): Handle perl separately,
55775         since perl-5.11's --version output is different.
55777 2009-11-28  Jim Meyering  <meyering@redhat.com>
55779         userspec: depend on the inttostr module, too
55780         * modules/userspec (Depends-on): Add inttostr.
55782         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
55783         * lib/userspec.c (parse_with_separator): Do not accept a user ID
55784         number of MAXUID when it evaluates to (uid_t) -1.
55785         Likewise for group ID.  Reported by Matt McCutchen in
55786         <http://savannah.gnu.org/bugs/?28113>
55788         userspec: reformat to use spaces, not TABs
55789         * lib/userspec.c: Expand TABs to spaces.
55790         Add Emacs' "indent-tabs-mode: nil" hint.
55792 2009-11-27  Eric Blake  <ebb9@byu.net>
55794         getopt-gnu: flush out another BSD bug
55795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
55796         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
55797         flush out BSD bug.
55798         * tests/test-getopt.h (test_getopt): End lists with NULL.
55799         * tests/test-getopt_long.h (test_getopt_long): Likewise.
55800         (test_getopt_long_posix): Enhance test.
55801         * modules/getopt-posix-tests (Depends-on): Add stdbool.
55802         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
55803         getopt-gnu.
55804         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55805         Likewise.
55807 2009-11-27  Simon Josefsson  <simon@josefsson.org>
55809         * modules/idpriv-droptemp-tests (Notice): Fix text.
55811 2009-11-27  Jim Meyering  <meyering@redhat.com>
55813         test-xalloc-die: avoid spurious failure due to libtool argv difference
55814         In a libtool-enabled project, this test would fail due to a difference
55815         in the emitted program name, e.g.,
55816         -test-xalloc-die: memory exhausted
55817         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
55818         Use program to avoid that.
55819         * modules/xalloc-die-tests (Depends-on): Add progname.
55820         * tests/test-xalloc-die.c: Include progname.h".
55821         (program_name): Remove decl.
55822         (main): Call set_program_name.
55823         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
55825 2009-11-26  Richard Jones  <rjones@redhat.com>
55827         w32sock: leave win32 error in place.
55828         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
55830 2009-11-26  Eric Blake  <ebb9@byu.net>
55832         init.sh: suggest to use skip_ and fail_ functions in comments
55833         * tests/init.sh: Add a sentence.
55835 2009-11-25  Bruno Haible  <bruno@clisp.org>
55837         init.sh: add documentation in comments
55838         * tests/init.sh: Add some developer and user documentation.
55840 2009-11-26  Jim Meyering  <meyering@redhat.com>
55842         init.sh: accommodate even those who specify bogus srcdir manually
55843         * tests/init.sh: Normally, srcdir is guaranteed by automake and
55844         configure-time tests to be sanitized, so that there is no need to
55845         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
55846         (with no double quotes) suffices.  However, since tests may be
55847         invoked manually, and since you may explicitly set srcdir to the
55848         name of a directory containing spaces, do quote its uses here.
55849         * tests/test-pread.sh: Likewise.
55850         Suggested by Bruno Haible.
55852         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
55853         * tests/test-pread.sh: Write no data into the pipe, because
55854         test-pread actually reads none.  This avoids a diagnostic,
55855         "bash: echo: write error: Broken pipe", that arises in the unusual
55856         event something is ignoring SIGPIPE, and might be interpreted
55857         as some sort of failure.  Reported by Bruno Haible.
55859 2009-11-25  Jim Meyering  <meyering@redhat.com>
55861         test-pread: cover failure with ESPIPE and EINVAL
55862         * tests/test-pread.c (main): Test for failure, too.
55863         * tests/test-pread.sh: Invoke with stdin on a pipe.
55864         Suggested by Eric Blake.
55866         pread: improvement and fix
55867         * modules/pread (Depends-on): Depend on lseek, for portability to
55868         e.g., mingw.  Suggested by Eric Blake.
55869         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
55871         unistd.in.h: correct declaration of pread
55872         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
55873         Reported by Richard W.M. Jones.
55875         test-pread.sh: distribute the test script
55876         * modules/pread-tests (Files): Include test-pread.sh.
55878         test-pread.sh: clean up
55879         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
55880         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
55881         That is unnecessary, since it's always ".".
55882         Suggestion from Eric Blake.
55884         test-pread.sh: make executable
55885         * tests/test-pread.sh: Set executable bit.
55886         Reported by Eric Blake.
55888         correct typo in test-pread.sh
55889         * tests/test-pread.sh: Add #! line.
55891         test pread
55892         * tests/test-pread.c: New file.
55893         * tests/test-pread.sh: Likewise.
55894         * modules/pread-tests: Likewise.
55896         pread: new module
55897         * modules/pread: New file.
55898         * lib/unistd.in.h (pread): Define/declare.
55899         * lib/pread.c (pread): New file.
55900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
55901         * modules/unistd (Makefile.am): Substitute witnesses.
55902         * doc/posix-functions/pread.texi (pread): Update.
55903         * MODULES.html.sh: Add pread.
55905 2009-11-25  Jim Meyering  <meyering@redhat.com>
55907         tests/init.sh: new file to be used via most *.sh tests
55908         * tests/init.sh: New file.
55910 2009-11-25  Eric Blake  <ebb9@byu.net>
55912         utimens: work around older Linux failure with symlinks
55913         * lib/utimens.c (lutimensat_works_really): New variable.
55914         (fdutimens, lutimens): Use it to manage kernels that support
55915         nanosecond times on files, but not on symlinks.
55916         Reported by Ondřej Vašík.
55918         utimes: fix configure grammar
55919         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
55921 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
55923         regex: Fix fastmap for multibyte character ranges.
55924         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
55925         characters when a multibyte character range is included.
55927 2009-11-22  Andy Wingo  <wingo@pobox.com>
55929         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
55930         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
55932 2009-11-24  Bruno Haible  <bruno@clisp.org>
55934         doc: Most *_l functions exist in MacOS X 10.5.
55935         * doc/posix-functions/duplocale.texi: Update platforms list.
55936         * doc/posix-functions/freelocale.texi: Likewise.
55937         * doc/posix-functions/newlocale.texi: Likewise.
55938         * doc/posix-functions/uselocale.texi: Likewise.
55939         * doc/posix-functions/isalnum_l.texi: Likewise.
55940         * doc/posix-functions/isalpha_l.texi: Likewise.
55941         * doc/posix-functions/isblank_l.texi: Likewise.
55942         * doc/posix-functions/iscntrl_l.texi: Likewise.
55943         * doc/posix-functions/isdigit_l.texi: Likewise.
55944         * doc/posix-functions/isgraph_l.texi: Likewise.
55945         * doc/posix-functions/islower_l.texi: Likewise.
55946         * doc/posix-functions/isprint_l.texi: Likewise.
55947         * doc/posix-functions/ispunct_l.texi: Likewise.
55948         * doc/posix-functions/isspace_l.texi: Likewise.
55949         * doc/posix-functions/isupper_l.texi: Likewise.
55950         * doc/posix-functions/iswalnum_l.texi: Likewise.
55951         * doc/posix-functions/iswalpha_l.texi: Likewise.
55952         * doc/posix-functions/iswblank_l.texi: Likewise.
55953         * doc/posix-functions/iswcntrl_l.texi: Likewise.
55954         * doc/posix-functions/iswctype_l.texi: Likewise.
55955         * doc/posix-functions/iswdigit_l.texi: Likewise.
55956         * doc/posix-functions/iswgraph_l.texi: Likewise.
55957         * doc/posix-functions/iswlower_l.texi: Likewise.
55958         * doc/posix-functions/iswprint_l.texi: Likewise.
55959         * doc/posix-functions/iswpunct_l.texi: Likewise.
55960         * doc/posix-functions/iswspace_l.texi: Likewise.
55961         * doc/posix-functions/iswupper_l.texi: Likewise.
55962         * doc/posix-functions/iswxdigit_l.texi: Likewise.
55963         * doc/posix-functions/isxdigit_l.texi: Likewise.
55964         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
55965         * doc/posix-functions/strcasecmp_l.texi: Likewise.
55966         * doc/posix-functions/strcoll_l.texi: Likewise.
55967         * doc/posix-functions/strfmon_l.texi: Likewise.
55968         * doc/posix-functions/strftime_l.texi: Likewise.
55969         * doc/posix-functions/strncasecmp_l.texi: Likewise.
55970         * doc/posix-functions/strxfrm_l.texi: Likewise.
55971         * doc/posix-functions/tolower_l.texi: Likewise.
55972         * doc/posix-functions/toupper_l.texi: Likewise.
55973         * doc/posix-functions/towctrans_l.texi: Likewise.
55974         * doc/posix-functions/towlower_l.texi: Likewise.
55975         * doc/posix-functions/towupper_l.texi: Likewise.
55976         * doc/posix-functions/wcscoll_l.texi: Likewise.
55977         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
55978         * doc/posix-functions/wctrans_l.texi: Likewise.
55979         * doc/posix-functions/wctype_l.texi: Likewise.
55980         * doc/glibc-functions/strptime_l.texi: Likewise.
55981         * doc/glibc-functions/strtod_l.texi: Likewise.
55982         * doc/glibc-functions/strtof_l.texi: Likewise.
55983         * doc/glibc-functions/strtol_l.texi: Likewise.
55984         * doc/glibc-functions/strtold_l.texi: Likewise.
55985         * doc/glibc-functions/strtoll_l.texi: Likewise.
55986         * doc/glibc-functions/strtoul_l.texi: Likewise.
55987         * doc/glibc-functions/strtoull_l.texi: Likewise.
55988         * doc/glibc-functions/wcsftime_l.texi: Likewise.
55989         * doc/glibc-functions/wcstod_l.texi: Likewise.
55990         * doc/glibc-functions/wcstof_l.texi: Likewise.
55991         * doc/glibc-functions/wcstol_l.texi: Likewise.
55992         * doc/glibc-functions/wcstold_l.texi: Likewise.
55993         * doc/glibc-functions/wcstoll_l.texi: Likewise.
55994         * doc/glibc-functions/wcstoul_l.texi: Likewise.
55995         * doc/glibc-functions/wcstoull_l.texi: Likewise.
55997 2009-11-24  Bruno Haible  <bruno@clisp.org>
55999         duplocale: Fix logic bug.
56000         * lib/duplocale.c: Don't include <langinfo.h>.
56001         (_NL_LOCALE_NAME): Remove macro.
56002         (rpl_duplocale): Use setlocale instead of nl_langinfo.
56003         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
56005 2009-11-23  Jim Meyering  <meyering@redhat.com>
56007         test-update-copyright: don't hard-code /usr/bin/perl
56008         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
56009         perl to print the current year.  Gilles Espinasse reported that
56010         the replaced use of perl was hard-coded as /usr/bin/perl.
56012 2009-11-23  Bruno Haible  <bruno@clisp.org>
56014         duplocale: Add support for glibc 2.3.x.
56015         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
56017 2009-11-22  Bruno Haible  <bruno@clisp.org>
56019         vasnprintf: Tiny optimization.
56020         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
56021         MacOS X.
56023 2009-11-22  Bruno Haible  <bruno@clisp.org>
56025         Tests for module 'duplocale'.
56026         * modules/duplocale-tests: New file.
56027         * tests/test-duplocale.c: New file.
56029         New module 'duplocale'.
56030         * m4/duplocale.m4: New file.
56031         * lib/locale.in.h (duplocale): New declaration.
56032         * lib/duplocale.c: New file.
56033         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
56034         gl_LOCALE_H_DEFAULTS): New macros.
56035         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
56036         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
56037         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
56038         REPLACE_DUPLOCALE.
56039         * modules/duplocale: New file.
56040         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
56042 2009-11-22  Bruno Haible  <bruno@clisp.org>
56044         * modules/locale-tests (configure.ac): Test for newlocale function.
56045         * tests/test-locale.c: When the system has extended locale functions,
56046         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
56048         locale: Make locale_t available when possible.
56049         * lib/locale.in.h: Include <xlocale.h> when it exists.
56050         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
56051         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
56052         * modules/locale (Depends-on): Add extensions.
56053         (Makefile.am): Also substitute HAVE_XLOCALE_H.
56054         * doc/posix-headers/locale.texi: Document the problem with locale_t.
56056 2009-11-22  Bruno Haible  <bruno@clisp.org>
56058         Add comments.
56059         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
56060         invocation.
56061         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56062         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56063         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56065 2009-11-22  Bruno Haible  <bruno@clisp.org>
56067         error: account for the possibility of freopen (stdout).
56068         * lib/error.c: Include <unistd.h>.
56069         (flush_stdout): New function, extracted from error and error_at_line.
56070         Determine stdout's fd dynamically.
56071         (error, error_at_line): Invoke flush_stdout.
56072         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
56073         * modules/error (Depends-on): Add unistd.
56075 2009-11-22  Bruno Haible  <bruno@clisp.org>
56077         diffseq: Add comment.
56078         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
56080 2009-11-22  Jim Meyering  <meyering@redhat.com>
56082         c-stack: avoid defining an unused static function
56083         * lib/c-stack.c (find_stack_direction): Do not define this function
56084         when it will not be used.
56086         diffseq: avoid spurious gcc warnings
56087         * lib/diffseq.h (IF_LINT2): Define.
56088         (compareseq): Use it to initialize two members of "part".
56089         This avoids two used-uninitialized warnings.
56091 2009-11-21  Jim Meyering  <meyering@redhat.com>
56093         c-stack: avoid "ignoring return value of `write'" warning
56094         * lib/c-stack.c: Include "ignore-value.h".
56095         (die): Explicitly ignore each write return value.
56096         * modules/c-stack (Depends-on): Add ignore-value.
56098 2009-11-21  Bruno Haible  <bruno@clisp.org>
56100         diffseq: reduce scope of variable 'best'.
56101         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
56102         variable, earlier used for two different purposes.
56104 2009-11-21  Jim Meyering  <meyering@redhat.com>
56106         diffseq: remove useless assignment to "best"
56107         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
56108         assignment.  At that point "best" is already guaranteed to be zero.
56110 2009-11-20  Eric Blake  <ebb9@byu.net>
56112         build: mention ftp redirector in release announcements
56113         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
56114         values that used to come from cfg.mk; mention FTP redirect URL.
56115         * build-aux/announce-gen: Mention the mirror list.
56116         Suggested by Karl Berry.
56118         nanosleep: improve port to mingw
56119         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
56120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
56121         LIB_NANOSLEEP, but only when needed.
56122         * modules/select (Link): Document LIBSOCKET.
56123         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
56124         enough.
56126         nanosleep: work around cygwin bug
56127         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
56128         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
56129         bug.
56130         (getnow): Delete, not needed.
56131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
56132         LIB_CLOCK_GETTIME.
56133         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
56134         clock-time, gettime.
56135         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
56136         bug.
56137         * modules/nanosleep-tests: New test.
56138         * tests/test-nanosleep.c: New file.
56140         sleep: work around cygwin bug
56141         * lib/sleep.c (rpl_sleep): Work around the bug.
56142         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
56143         (gl_PREREQ_SLEEP): Delete unused macro.
56144         * modules/sleep (Depends-on): Add verify.
56145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
56146         * modules/unistd (Makefile.am): Substitute witness.
56147         * lib/unistd.in.h (sleep): Update prototype.
56148         * doc/posix-functions/sleep.texi (sleep): Document the bug.
56149         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
56150         * modules/sleep-tests (Depends-on): Check for alarm.
56152 2009-11-20  Jim Meyering  <meyering@redhat.com>
56154         maint.mk: improve sc_prohibit_magic_number_exit
56155         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
56156         so it does not match uses like System.exit(1).
56157         Add comments showing how to correct all offenders.
56159 2009-11-19  Eric Blake  <ebb9@byu.net>
56161         xalloc-die-tests: add missing library
56162         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
56164         test-xvasprintf: silence compiler warnings
56165         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
56166         empty string from gcc.
56168 2009-11-19  Jim Meyering  <meyering@redhat.com>
56170         xfreopen: new module, from coreutils
56171         * modules/xfreopen: New module.
56172         * lib/xfreopen.c: New file.
56173         * lib/xfreopen.h: New file.
56174         * MODULES.html.sh (File stream based Input/Output"): Add it.
56176 2009-11-19  Eric Blake  <ebb9@byu.net>
56178         manywarnings: depend on warnings
56179         * modules/manywarnings (Depends-on): Add warnings.
56181         build: avoid compiler warnings
56182         * lib/select.c (rpl_select): Delete unused variable.
56183         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
56185 2009-11-18  Eric Blake  <ebb9@byu.net>
56187         tests: avoid false negative with --with-packager
56188         * tests/test-version-etc.sh: Discard packager information.
56189         * tests/test-argp-version-etc-1.sh: Likewise.
56190         Reported by Mike Frysinger.
56192         utimens: fix regression on Solaris
56193         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
56194         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
56195         can only change fd timestamps via futimesat.  Instead, use an
56196         additional witness macro to avoid BSD bug.
56197         Reported by Jim Meyering.
56199 2009-11-17  Eric Blake  <ebb9@byu.net>
56201         usleep: use it to simplify tests
56202         * modules/stat-time-tests (Depends-on): Add usleep.
56203         (configure.ac): Drop usleep check.
56204         * modules/chown-tests (Depends-on, configure.ac): Likewise.
56205         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
56206         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
56207         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
56208         * modules/openat-tests (Depends-on, configure.ac): Likewise.
56209         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
56210         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
56211         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
56212         Likewise.
56213         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
56214         * tests/test-lchown.h (nap): Likewise.
56215         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
56216         * tests/test-stat-time.c (nap): Likewise.
56217         * tests/test-utimens-common.h (nap): Update comments.
56219         usleep: new module
56220         * modules/usleep: New file.
56221         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
56222         * lib/usleep.c (usleep): Likewise.
56223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
56224         * modules/unistd (Makefile.am): Substitute witnesses.
56225         * lib/unistd.in.h (usleep): Add declaration.
56226         * doc/pastposix-functions/usleep.texi (usleep): Document this.
56227         * MODULES.html.sh (Date and time): Likewise.
56228         * modules/usleep-tests (Depends-on): New test.
56229         * tests/test-usleep.c: New file.
56231         chown: work around OpenBSD bug
56232         * lib/chown.c (rpl_chown): Work around the bug.
56233         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
56234         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
56235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
56236         * modules/chown (Depends-on): Add stdbool.
56237         * modules/lchown (Depends-on): Likewise.
56238         * doc/posix-functions/chown.texi (chown): Document the bug.
56239         * doc/posix-functions/lchown.texi (lchown): Likewise.
56240         * tests/test-lchown.h (test_chown): Relax test.
56242         mkstemp: avoid conflict with C++ keyword template
56243         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
56244         * lib/mkostemp.c (mkostemp): Likewise.
56245         * lib/mkostemps.c (mkostemps): Likewise.
56246         * lib/mkstemp.c (mkstemp): Likewise.
56247         * lib/mkstemps.c (mkstemps): Likewise.
56249         xalloc-die-tests: optimize
56250         * tests/test-xalloc-die.sh: Reduce number of processes.
56252 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56254         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
56255         patch from ludo@gnu.org (Ludovic Courtès).
56257 2009-11-17  Jim Meyering  <meyering@redhat.com>
56259         version-etc: use proper license string
56260         * modules/version-etc (License): Use LGPL, not LGPLv3+.
56261         * modules/version-etc-fsf: Likewise.
56263 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56265         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
56266         printed to stdout.  Deal with EOL differences.
56268 2009-11-17  Eric Blake  <ebb9@byu.net>
56270         unsetenv: work around Solaris bug
56271         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
56272         * lib/unsetenv.c (rpl_unsetenv): Work around it.
56273         Reported by Jim Meyering.
56275         vasnprintf: avoid compiler warnings
56276         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
56277         variables.
56278         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
56280 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56282         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
56283         settings since xalloc-die is no longer the self test,
56284         xalloc-die.sh is.
56286 2009-11-17  Jim Meyering  <meyering@redhat.com>
56288         test-xalloc-die.sh: make the code agree with the commit log
56289         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
56290         at the end, just in case you happen to have a test-xalloc-die
56291         program in some other PATH directory.
56293         test-xalloc-die.sh: fix a portability bug
56294         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
56295         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
56296         Otherwise, argv[0] (as often seen in diagnostics) would be too
56297         system-dependent, sometimes with, and sometimes without the leading "./".
56299         version-etc-fsf: relax license to LGPLv3+
56300         * modules/version-etc-fsf (License): Relax license.
56302 2009-11-16  Eric Blake  <ebb9@byu.net>
56304         xalloc-die-tests: avoid printing null pointer
56305         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
56306         shell script.
56307         * tests/test-xalloc-die.c (program_name): Declare.
56308         * tests/test-xalloc-die.sh (tmpfiles): New file.
56310         setenv, unsetenv: work around various bugs
56311         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
56312         (setenv) [HAVE_SETENV]: Work around bugs.
56313         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
56314         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
56315         for bugs.
56316         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
56317         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
56318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
56319         * modules/stdlib (Makefile.am): Update substitutions.
56320         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
56321         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
56322         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56323         * modules/setenv-tests: New test.
56324         * modules/unsetenv-tests: Likewise.
56325         * tests/test-setenv.c: New file.
56326         * tests/test-unsetenv.c: Likewise.
56328 2009-11-16  Jim Meyering  <meyering@redhat.com>
56330         version-etc: relax license to LGPLv3+
56331         * modules/version-etc (License): Relax license.
56333         better AC_REQUIRE expanded-before-required-warning avoidance
56334         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
56335         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
56336         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
56337         which is no longer needed.
56339 2009-11-16  Eric Blake  <ebb9@byu.net>
56341         test-freading: clean up temporary file
56342         * tests/test-freading.c (main): Remove file on success, and use
56343         ASSERT more liberally.
56344         Reported by Jim Meyering.
56346 2009-11-16  Jim Meyering  <meyering@redhat.com>
56348         avoid new AC_REQUIRE expanded-before-required warnings
56349         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
56350         merely using it.
56351         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
56352         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
56354 2009-11-15  Simon Josefsson  <simon@josefsson.org>
56356         * tests/test-xalloc-die.c: New file.
56357         * modules/xalloc-die-tests: New file.
56358         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
56359         XFAIL_TESTS so it can be appended by modules.
56361 2009-11-15  Simon Josefsson  <simon@josefsson.org>
56363         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
56364         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
56366 2009-11-14  Eric Blake  <ebb9@byu.net>
56368         fnmatch: avoid compiler warning
56369         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
56370         to silence compiler warning about mismatch signedness in ?:.
56371         Reported by Robert Millan.
56373         intprops: add double-inclusion guard
56374         * lib/intprops.h: Allow idempotent includes.
56375         Suggested by Bruce Korb.
56377         openat: detect Solaris fchownat bug
56378         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
56379         penalizing glibc chownat when only lchownat is broken.
56380         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
56381         trailing slash bugs.
56382         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
56383         * modules/openat-tests (Files): Include more files.
56384         (Depends-on): Add mgetgroups, sleep, stat-time.
56385         (configure.ac): Add additional checks.
56386         (Makefile.am): Build new test.
56387         * tests/test-fchownat.c: New file.
56389         lchown: detect Solaris and FreeBSD bug
56390         * lib/lchown.c (rpl_lchown): Work around bug.
56391         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
56392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56393         * modules/unistd (Makefile.am): Populate it.
56394         * lib/unistd.in.h (lchown): Update declaration.
56395         * doc/posix-functions/lchown.texi (lchown): Document the bug.
56396         * modules/lchown-tests: New file.
56397         * tests/test-lchown.h (test_lchown): Likewise.
56398         * tests/test-lchown.c (main): Likewise.
56400         chown: detect Solaris and FreeBSD bug
56401         * lib/chown.c (rpl_chown): Work around bug.
56402         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
56403         (gl_PREREQ_CHOWN): Delete.
56404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56405         * modules/unistd (Makefile.am): Populate it.
56406         * lib/unistd.in.h (chown): Update declaration.
56407         * lib/lchown.c (chown): Update client.
56408         * modules/lchown (Depends-on): Add lstat.
56409         * doc/posix-functions/chown.texi (chown): Document the bug.
56410         * doc/posix-functions/getgroups.texi (getgroups): Document
56411         getgroups pitfall.
56412         * modules/chown-tests: New file.
56413         * tests/test-chown.h (test_chown): Likewise.
56414         * tests/test-chown.c (main): Likewise.
56416 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
56418         gnulib-tool: correctly detect absence of m4 directories
56419         * gnulib-tool: Avoid extra newline on data passed to wc -l.
56421 2009-11-14  Jim Meyering  <meyering@redhat.com>
56423         maint.mk: Prohibit inclusion of "xalloc.h" without use.
56424         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
56426 2009-11-14  John W. Eaton  <jwe@gnu.org>
56428         strftime.h: wrap function declaration in extern "C" block
56429         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
56431 2009-11-13  Eric Blake  <ebb9@byu.net>
56433         getgroups: avoid compiler warning
56434         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
56436         getgroups: work around FreeBSD bug
56437         * lib/getgroups.c (rpl_getgroups): Work around the bug.
56438         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
56439         * doc/posix-functions/getgroups.texi (getgroups): Document it.
56440         * tests/test-getgroups.c (main): Fix buffer overrun.
56442         getgroups: avoid compilation failure
56443         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
56444         * modules/getgroups (Depends-on): Add stdint.
56446 2009-11-13  Jim Meyering  <meyering@redhat.com>
56448         test-getgroups: avoid compilation failure
56449         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
56451 2009-11-13  Eric Blake  <ebb9@byu.net>
56453         mgetgroups: new module, taken from coreutils
56454         * modules/mgetgroups: New file.
56455         * lib/mgetgroups.h: Likewise.
56456         * lib/mgetgroups.c (mgetgroups): Likewise.
56457         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
56458         * MODULES.html.sh (Users and groups): Mention it.
56460         getgroups: don't expose GETGROUPS_T to user
56461         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
56462         an element at a time if GETGROUPS_T is wrong size.
56463         * lib/getugroups.h (getugroups): Change signature.
56464         * lib/unistd.in.h (getgroups): Likewise.
56465         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
56466         signature needs fixing.
56467         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
56468         AC_TYPE_GETGROUPS.
56469         * modules/group-member (Depends-on): Add getgroups.
56470         * lib/group-member.c (group_info, get_group_info): Use gid_t.
56471         (group_member): Rely on getgroups replacement.
56472         * lib/getugroups.c (getugroups): Use gid_t.
56473         * tests/test-getgroups.c (main): Likewise.
56474         * NEWS: Mention the signature change.
56475         * doc/posix-functions/getgroups.texi (getgroups): Mention the
56476         problem with signature.
56477         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
56478         GETGROUPS_T is still useful for setgroups.
56480         getgroups, getugroups: provide stubs for mingw
56481         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
56482         * lib/getugroups.c (getugroups): Likewise.
56483         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
56484         function.  Modernize replacement scheme.
56485         (gl_PREREQ_GETGROUPS): Delete.
56486         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
56487         * modules/getgroups (configure.ac): Declare witness.
56488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
56489         * modules/unistd (Depends-on): Substitute witness.
56490         * lib/unistd.in.h (getgroups): Declare replacement.
56492         getgroups: avoid calling exit
56493         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
56494         drop xalloc.
56495         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
56496         dependencies.
56497         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
56498         exiting, in the rare case of malloc failure.
56500         getgroups: fix logic error
56501         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
56502         has more than 20 groups.
56503         * modules/getgroups-tests: New test.
56504         * tests/test-getgroups.c: New file.
56506 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56508         * tests/test-base64.c: Improve.
56510 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56512         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
56513         Blake <ebb9@byu.net>.
56515 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56517         * tests/test-xvasprintf.c: Add %s%s related checks.
56519 2009-11-12  Eric Blake  <ebb9@byu.net>
56521         version-etc: match standards.texi style
56522         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
56523         and use <> only for URLs.
56525 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
56527         fts: do not fail on a submount during traversal
56528         * lib/fts.c (fts_build): Read the stat info again after opening
56529         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
56530         Original report at http://bugzilla.redhat.com/501848.
56532 2009-11-12  Jim Meyering  <meyering@redhat.com>
56534         bootstrap: sync from coreutils
56535         * build-aux/bootstrap (bootstrap_epilogue): New function.
56536         Use git_modules_config in one more place.  This make bootstrap's
56537         --gnulib-srcdir option more useful for testing.
56539         bootstrap: generalize autoheader check
56540         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
56541         AC_CONFIG_HEADERS.
56543 2009-11-11  Eric Blake  <ebb9@byu.net>
56545         mkfifoat: use new modules for Solaris and BSD bugs
56546         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
56547         * lib/mkfifoat.c (mknodat): Split...
56548         * lib/mknodat.c (mknodat): ...into new file.
56549         * modules/mkfifoat (Files): Ship new file.
56550         (Depends-on): Add mkfifo, mknod.
56551         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
56552         (Depends-on): Add symlink.
56553         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
56554         redundant with test_mkfifo.h.
56555         (do_mkfifoat, do_mknodat): New helpers.
56557         mknod: new module
56558         * modules/mknod: New file.
56559         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
56560         * lib/mknod.c (mknod): Likewise.
56561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
56562         defaults.
56563         * modules/sys_stat (Makefile.am): Substitute them.
56564         * lib/sys_stat.in.h (mknod): Declare replacement.
56565         * MODULES.html.sh (Support for systems lacking POSIX:2008):
56566         Document it.
56567         * doc/posix-functions/mknod.texi (mknod): Likewise.
56568         * modules/mknod-tests: New test.
56569         * tests/test-mknod.c: Likewise.
56571         mkfifo: new module
56572         * modules/mkfifo: New file.
56573         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
56574         * lib/mkfifo.c (mkfifo): Likewise.
56575         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
56576         defaults.
56577         * modules/sys_stat (Makefile.am): Substitute them.
56578         * lib/sys_stat.in.h (mkfifo): Declare replacement.
56579         * MODULES.html.sh (Support for systems lacking POSIX:2008):
56580         Document it.
56581         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
56582         * modules/mkfifo-tests: New test.
56583         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
56584         from test-mkfifoat.c.
56585         * tests/test-mkfifo.c: New file.
56587         readlink: detect FreeBSD bug
56588         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
56589         slash on symlink.
56590         * doc/posix-functions/readlink.texi (readlink): Document the bug.
56591         * tests/test-readlink.h (test_readlink): Enhance test.
56593         symlink: detect FreeBSD bug
56594         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
56595         slash on symlink.
56596         * doc/posix-functions/symlink.texi (symlink): Document the bug.
56597         * tests/test-symlink.h (test_symlink): Enhance test.
56599 2009-11-10  Eric Blake  <ebb9@byu.net>
56601         link: detect FreeBSD bug
56602         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
56603         symlink.
56604         * doc/posix-functions/link.texi (link): Document the bug.
56605         * tests/test-link.h (test_link): Enhance test.
56606         * tests/test-linkat.c (main): Update caller.
56608         unlink, remove: detect FreeBSD bug
56609         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
56610         slash on symlink.
56611         * doc/posix-functions/unlink.texi (unlink): Document the bug.
56612         * doc/posix-functions/remove.texi (remove): Likewise.
56613         * tests/test-unlink.h (test_unlink): Enhance test.
56614         * tests/test-remove.c (main): Likewise.
56616 2009-11-09  Eric Blake  <ebb9@byu.net>
56618         rename: detect FreeBSD bug
56619         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
56620         slash on symlink.
56621         * modules/renameat-tests (Depends-on): Add filenamecat.
56622         * tests/test-rename.h (test_rename): Allow one more errno.
56623         * tests/test-renameat.c (main): Likewise.
56624         * doc/posix-functions/rename.texi (rename): Document the bug.
56626         open: detect FreeBSD bug
56627         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
56628         symlink.
56629         * doc/posix-functions/open.texi (open): Document the bug.
56630         * doc/posix-functions/utimes.texi (utimes): Likewise.
56631         * tests/test-open.h (test_open): Add parameters, and test symlink
56632         handling.
56633         * tests/test-open.c (main): Adjust caller.
56634         * tests/test-fcntl-safer.c (main): Likewise.
56635         * modules/open-tests (Depends-on): Add stdbool, symlink.
56636         * modules/fcntl-safer-tests (Depends-on): Likewise.
56637         * tests/test-openat.c (main): Add test-open tests.
56639         stat: detect FreeBSD bug
56640         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
56641         symlink.
56642         * doc/posix-functions/stat.texi (stat): Document the bug.
56643         * tests/test-stat.h (test_stat_func): Add argument.
56644         * tests/test-stat.c (main): Adjust caller.
56645         * tests/test-fstatat.c (main): Likewise.
56646         * modules/stat-tests (Depends-on): Add stdbool, symlink.
56647         Reported by Jim Meyering.
56649 2009-11-09  James Youngman  <jay@gnu.org>
56651         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
56652         * lib/strftime.c: Correct placement of #include "ignore-value.h".
56654 2009-11-08  Jim Meyering  <meyering@redhat.com>
56656         utimens: remove invalid futimesat call
56657         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
56658         It used the file descriptor of the target file as the DIR_FD
56659         parameter and NULL as the file name.  That caused failure with
56660         errno == EFAULT on FreeBSD-8.0-rc2
56662 2009-11-07  Eric Blake  <ebb9@byu.net>
56664         fflush, freadseek: use fseeko, not fseek
56665         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
56666         (clear_ungetc_buffer): Avoid potential problems on large files.
56667         * lib/freadseek.c (freadseek): Likewise.
56668         * modules/freadseek (Depends-on): Add fseeko.
56669         * modules/fseek (configure.ac): Set a witness.
56670         * tests/test-fflush.c (main): Use fseeko.
56671         * tests/test-fpurge.c (fseek): Disable link warning.
56672         * tests/test-freadable.c (fseek): Likewise.
56673         * tests/test-freading.c (fseek): Likewise.
56674         * tests/test-fseeko.c (fseek): Likewise.
56675         * tests/test-ftell.c (fseek): Likewise.
56676         * tests/test-ftello.c (fseek): Likewise.
56677         * tests/test-fwritable.c (fseek): Likewise.
56678         * tests/test-fwriting.c (fseek): Likewise.
56680 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56682         * modules/memchr (Depends-on): Drop getpagesize dependency.
56684 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56686         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
56687         Reported by Ludovic Courtès.
56688         * build-aux/pmccabe2html: Improve example usage.
56689         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
56691 2009-11-06  Jim Meyering  <meyering@redhat.com>
56693         do-release-commit-and-tag: New module.
56694         Automate the release-commit and tag process.
56695         * build-aux/do-release-commit-and-tag: New script, from coreutils.
56696         * modules/do-release-commit-and-tag: New file.
56697         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56699 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56701         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
56702         because test-select.c uses inet_pton.
56704 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56706         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
56707         GETADDRINFO_LIB.  Bump serial number.
56708         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
56709         Suggested by Eric Blake <ebb9@byu.net>.
56711 2009-11-05  Eric Blake  <ebb9@byu.net>
56713         strtod: detect darwin bug
56714         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
56715         Reported by Leo Davis.
56717         freopen-safer: new module
56718         * modules/freopen-safer: New module.
56719         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
56720         * lib/freopen-safer.c (freopen_safer): New file.
56721         * lib/stdio-safer.h (freopen_safer): New declaration.
56722         * lib/stdio--.h (freopen): New override.
56723         * MODULES.html.sh (File stream based Input/Output): Mention it.
56724         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
56725         freopen-safer module.
56726         * doc/posix-functions/stderr.texi (stderr): Likewise.
56727         * doc/posix-functions/stdin.texi (stdin): Likewise.
56728         * doc/posix-functions/stdout.texi (stdout): Likewise.
56729         * modules/freopen-safer-tests: New test.
56730         * tests/test-reopen-safer.c: New file.
56732 2009-11-05  Jim Meyering  <meyering@redhat.com>
56734         maint.mk: Prohibit inclusion of "close-stream.h" without use.
56735         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
56737 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56739         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
56741 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56743         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
56745 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56747         Fix link error.
56748         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
56749         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56751 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56753         * tests/test-func.c: Also test value of __func__.
56755 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56757         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
56758         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
56760 2009-11-05  Bruno Haible  <bruno@clisp.org>
56762         Fix link error.
56763         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
56764         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56765         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
56767 2009-11-05  Bruno Haible  <bruno@clisp.org>
56769         Tests for module 'inet_pton'.
56770         * modules/inet_pton-tests: New file.
56771         * tests/test-inet_pton.c: New file.
56773 2009-11-05  Bruno Haible  <bruno@clisp.org>
56775         Tests for module 'inet_ntop'.
56776         * modules/inet_ntop-tests: New file.
56777         * tests/test-inet_ntop.c: New file.
56779 2009-11-04  Eric Blake  <ebb9@byu.net>
56781         stdlib-safer: wrap all mkstemp variants
56782         * modules/mkostemp (configure.ac): Set witness.
56783         * modules/mkostemps (configure.ac): Likewise.
56784         * modules/mkstemps (configure.ac): Likewise.
56785         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
56786         (mkstemps_safer): Wrap more functions.
56787         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
56788         wrapping.
56789         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
56790         (mkstemps_safer): Implement the wrappers.
56792         mkstemps, mkostemps: new modules
56793         * modules/mkostemps: New module.
56794         * modules/mkstemps: Likewise.
56795         * lib/mkostemps.c (mkostemps): New file.
56796         * lib/mkstemps.c (mkstemps): Likewise.
56797         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
56798         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
56799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
56800         * modules/stdlib (Makefile.am): Substitute them.
56801         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
56802         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
56803         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
56804         * doc/gnulib.texi (Glibc stdlib.h): Include them.
56805         * MODULES.html.sh (File system functions): Mention them.
56807         tempname: resync from glibc
56808         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
56809         same values for __GT_FILE as glibc.  Abort even when assertions
56810         are disabled.
56811         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
56812         match its value otherwise.  Allow idempotent inclusion.
56813         * lib/mkdtemp.c (mkdtemp): Adjust caller.
56814         * lib/mkostemp.c (mkostemp): Likewise.
56815         * lib/mkstemp.c (mkstemp): Likewise.
56816         * lib/tmpfile.c (tmpfile): Likewise.
56817         * NEWS: Document this.
56819         utimens: fix use of futimens on older Linux
56820         * lib/utimens.c (fdutimens): Use updated, rather than original,
56821         timespec to avoid bug in older Linux kernel.
56822         Reported by Simon Josefsson.
56824 2009-11-04  Bruno Haible  <bruno@clisp.org>
56826         Make num_processors more flexible and consistent.
56827         * lib/nproc.h (enum nproc_query): New type.
56828         (num_processors): Add a 'query' argument.
56829         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
56830         (num_processors): Add a 'query' argument. Test the value of the
56831         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
56832         mingw, count the number of CPUs available for the current process.
56833         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
56834         Check for sched_getaffinity and sched_getaffinity_np.
56835         * modules/nproc (Depends-on): Add c-ctype, extensions.
56836         * NEWS: Mention the change.
56838 2009-11-03  Bruno Haible  <bruno@clisp.org>
56840         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
56842 2009-11-03  Jim Meyering  <meyering@redhat.com>
56844         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
56845         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
56846         if it is defined.
56848 2009-11-02  Eric Blake  <ebb9@byu.net>
56850         mktime, timegm: share common declaration
56851         * lib/mktime-internal.h: New file.
56852         * lib/mktime.c: Use it rather than open-coding a declaration.
56853         * lib/timegm.c: Likewise.
56854         * modules/mktime (Files): Ship it.
56855         * modules/timegm (Files): Likewise.
56856         Suggested by Bruno Haible.
56858         test-update-copyright: update test to match script changes
56859         * tests/test-update-copyright.sh: Avoid hard-coding perl
56860         location.  Don't update *.bak created by earlier runs.
56862 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56863             Simon Josefsson  <simon@josefsson.org>
56864             Bruno Haible  <bruno@clisp.org>
56866         Fix link error on Solaris 8.
56867         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
56868         also in libnsl. Define also INET_PTON_LIB.
56869         * modules/inet_pton (Link): New section.
56871 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56872             Bruno Haible  <bruno@clisp.org>
56874         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
56875         * modules/inet_ntop (Link): New section.
56876         Reported by Boyan Kasarov <bkasarov@gmail.com>.
56878 2009-11-02  Eric Blake  <ebb9@byu.net>
56880         maint: avoid compiler warnings in m4 macros
56881         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
56882         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
56884 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56886         * m4/pmccabe2html.m4: Remove file.
56887         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
56888         function.  Change maintainer.
56889         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
56890         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
56891         Courtès).
56893 2009-10-31  Eric Blake  <ebb9@byu.net>
56895         fseeko: fix m4 regression
56896         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
56897         regression from 2009-10-27.
56898         Reported by Ralf Wildenhues.
56900 2009-10-31  Jim Meyering  <meyering@redhat.com>
56902         inttostr: aesthetics and improved (compile-time) safety
56903         Define inttype_is_signed rather than inttype_is_unsigned,
56904         since the sole use is via "#if inttype_is_signed".
56905         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
56906         inttype_is_unsigned.
56907         * lib/offtostr.c (inttype_is_signed): Likewise.
56908         * lib/uinttostr.c (inttype_is_signed): Likewise.
56909         * lib/umaxtostr.c (inttype_is_signed): Likewise.
56910         * lib/inttostr.c (inttostr): Use verify to cross-check the
56911         inttype_is_signed value and the signedness of the actual type.
56912         * modules/inttostr (Depends-on): Add verify.
56914 2009-10-30  Eric Blake  <ebb9@byu.net>
56916         build: avoid compiler warnings
56917         * lib/fchmodat.c (lchmod): Mark unused variables.
56918         * lib/getopt.c (_getopt_initialize): Likewise.
56919         * lib/mktime.c (__mktime_internal): Provide prototype.
56920         * lib/inttostr.c (inttostr): Avoid compiler warning even with
56921         older gcc that do not understand #pragma GCC diagnostic.
56922         * lib/uinttostr.c (inttype_is_unsigned): Define.
56923         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
56925 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
56927         stat: fix compilation on AIX
56928         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
56929         only see struct stat64.
56931 2009-10-30  Eric Blake  <ebb9@byu.net>
56933         exclude: make more robust
56934         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
56935         rather than masking a coding bug.
56936         Suggested by Bruno Haible.
56938 2009-10-30  Jim Meyering  <meyering@redhat.com>
56940         perl scripts: remove #!/usr/bin/perl in favor of more portable...
56941         Rather than putting #!/usr/bin/perl on the first line,
56942         start with a variant of what's recommended by "man perlrun" that
56943         invokes the first "perl" program from your shell's search path.
56944         * build-aux/gitlog-to-changelog: Replace #!... as above.
56945         Add a "Local Variables" perl mode setting.
56946         Prompted by a patch from Ludovic Courtès.
56947         Improved by Eric Blake.
56948         * build-aux/useless-if-before-free: Likewise.
56949         * build-aux/announce-gen: Likewise.
56950         * build-aux/update-copyright: Likewise.
56952 2009-10-29  Eric Blake  <ebb9@byu.net>
56954         filenamecat-lgpl: adjust clients
56955         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
56956         filenamecat.
56957         * modules/renameat (Depends-on): Likewise.
56959         filenamecat: split into filenamecat-lgpl
56960         * modules/filenamecat-lgpl: New module.
56961         * modules/filenamecat (Files): Move library-safe files into
56962         filenamecat-lgpl.
56963         (Depends-on): Add filenamecat-lgpl.
56964         (configure.ac): Declare witness.
56965         * lib/filenamecat.h (file_name_concat): Only declare when using
56966         GPL module.
56967         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
56968         Move...
56969         * lib/filenamecat-lgpl.c: ...into new file.
56970         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
56971         (gl_FILE_NAME_CONCAT): Use it.
56972         * MODULES.html.sh (File system functions): Mention new module.
56974         argp: avoid memory leak
56975         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
56976         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
56977         base_name, since the latter malloc()s and can call exit().
56978         Leak introduced 2006-07-03.
56980         dirname-lgpl: adjust clients that don't need full dirname
56981         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
56982         * modules/filenamecat (Depends-on): Likewise.
56983         * modules/linkat (Depends-on): Likewise.
56984         * modules/mkancesdirs (Depends-on): Likewise.
56985         * modules/mkdir (Depends-on): Likewise.
56986         * modules/openat (Depends-on): Likewise.
56987         * modules/savewd (Depends-on): Likewise.
56988         * modules/rename (Depends-on): Likewise.
56989         (License): Relax license.
56990         * modules/mkdir-tests (Depends-on): Drop progname.
56991         (Makefile.am): Delete unneeded LDADD.
56992         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
56994         dirname: split into dirname-lgpl
56995         * modules/dirname-lgpl: New module.
56996         * modules/dirname (Files): Move library-safe files into
56997         dirname-lgpl.
56998         (Depends-on): Add dirname-lgpl.
56999         (configure.ac): Declare witness.
57000         * modules/double-slash-root (License): Relax license.
57001         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
57002         module.
57003         * lib/dirname.c (dir_len, mdir_name): Move...
57004         * lib/dirname-lgpl.c: ...into new file.
57005         * lib/basename.c (last_component, base_len): Move...
57006         * lib/basename-lgpl.c: ...into new file.
57007         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
57008         (gl_DIRNAME): Use it.
57009         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
57010         Mention new module.
57011         * modules/dirname-tests (Depends-on): Add progname.
57012         * tests/test-dirname.c (program_name): Delete.
57014         mkdir: make safe for libraries
57015         * modules/mkdir (Depends-on): Drop xalloc.
57016         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
57017         exit.
57019         tests: avoid some compiler warnings
57020         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
57021         literals.
57022         * tests/test-memchr.c (main): Avoid type mismatch.
57023         * tests/test-arpa_inet.c (main): Avoid unused parameters.
57024         * tests/test-base64.c (main): Likewise.
57025         * tests/test-getdelim.c (main): Likewise.
57026         * tests/test-gethostname.c (main): Likewise.
57027         * tests/test-getline.c (main): Likewise.
57028         * tests/test-netinet_in.c (main): Likewise.
57029         * tests/test-select.c (open_server_socket, main): Likewise.
57030         * tests/test-select-stdin.c (main): Likewise.
57031         * tests/test-sockets.c (main): Likewise.
57032         * tests/test-strsignal.c (main): Likewise.
57033         * tests/test-sys_select.c (main): Likewise.
57034         * tests/test-sys_socket.c (main): Likewise.
57035         * tests/test-u64.c (main): Likewise.
57036         * tests/test-xfprintf-posix.c (main): Likewise.
57037         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
57039         sockets: avoid compiler warning
57040         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
57042         maint: detect usage(1) and other suspicious exits
57043         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
57045 2009-10-29  Jim Meyering  <meyering@redhat.com>
57047         timespec: long-to-int truncation could make timespec_cmp malfunction
57048         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
57049         a multiple of 2^32 nanoseconds as no difference.
57051 2009-10-28  Jim Meyering  <meyering@redhat.com>
57053         fprintftime: wrap macro code argument in "do {...} while(0)"
57054         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
57055         cpy macro must be a statement that can be followed by a semicolon.
57056         Now that the else clause contains a comment and is hence longer
57057         than one line, I require curly braces.  That in turn requires
57058         that we wrap this code block in the standard do...while(0).
57060         fprintftime: remove stray semicolon from previous change
57061         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
57063         fprintftime: avoid a warning about ignored fwrite return value
57064         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
57065         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
57066         that is unsafe.
57067         * modules/fprintftime (Depends-on): Add ignore-value.
57069         exclude: avoid an unwarranted warning
57070         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
57072 2009-10-27  Eric Blake  <ebb9@byu.net>
57074         fseek: avoid compilation failure when fflush is replaced
57075         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
57076         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
57077         module is in use.
57078         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
57079         module is not in use; since REPLACE_FSEEK worked otherwise.
57080         (GNULIB_FTELLO): Likewise for ftell.
57081         Reported by Ian Beckwith and others.
57083 2009-10-27  Bruno Haible  <bruno@clisp.org>
57085         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
57086         Reported by Jim Meyering.
57088 2009-10-27  Jim Meyering  <jim@meyering.net>
57089             Bruno Haible  <bruno@clisp.org>
57091         Avoid warning despite dropping the return value of fwrite.
57092         * lib/unicodeio.c: Include ignore-value.h.
57093         (fwrite_success_callback): Explicitly ignore fwrite's return value.
57094         * modules/unicodeio (Depends-on): Add ignore-value.
57096 2009-10-26  Eric Blake  <ebb9@byu.net>
57098         areadlinkat: fix fallback path
57099         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
57100         pointer and zero.
57102 2009-10-22  Pádraig Brady  <P@draigBrady.com>
57104         Use a better IO block size for modern systems
57105         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
57106         * lib/md2.c: Likewise.
57107         * lib/md4.c: Likewise.
57108         * lib/md5.c: Likewise.
57109         * lib/sha1.c: Likewise.
57110         * lib/sha256.c: Likewise.
57111         * lib/sha512.c: Likewise.
57113 2009-10-22  Eric Blake  <ebb9@byu.net>
57115         tests: avoid several compiler warnings
57116         * tests/test-getcwd.c (main): Avoid buffer underflow.
57117         * tests/test-getdate.c (main): String literals are not safe with
57118         putenv, so use setenv.  Declare unused argument.
57119         * modules/getdate-tests (Depends-on): Add setenv.
57120         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
57121         problems with string literals in char *.
57122         * tests/test-hash.c (main): Avoid shadowing declaration.
57123         (insert_new): Treat string literals as char const *.
57124         * tests/test-getopt.h (test_getopt): Likewise.
57125         (getopt_loop): Alter types to minimize casting elsewhere.
57126         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
57127         (test_getopt_long_posix): Likewise.
57128         (do_getopt_long): Add wrapper to minimize casting.
57129         * tests/test-atexit.c (clear_temp_file): Use void.
57130         * tests/test-areadlink-with-size.c (main): Declare unused
57131         arguments.
57132         * tests/test-areadlink.c (main): Likewise.
57133         * tests/test-areadlinkat-with-size.c (main): Likewise.
57134         * tests/test-areadlinkat.c (main): Likewise.
57135         * tests/test-canonicalize-lgpl.c (main): Likewise.
57136         * tests/test-canonicalize.c (main): Likewise.
57137         * tests/test-dirent-safer.c (main): Likewise.
57138         * tests/test-dirname.c (main): Likewise.
57139         * tests/test-dup2.c (main): Likewise.
57140         * tests/test-fchdir.c (main): Likewise.
57141         * tests/test-fcntl-h.c (main): Likewise.
57142         * tests/test-fcntl-safer.c (main): Likewise.
57143         * tests/test-fdopendir.c (main): Likewise.
57144         * tests/test-fdutimensat.c (main): Likewise.
57145         * tests/test-fflush.c (main): Likewise.
57146         * tests/test-filenamecat.c (main): Likewise.
57147         * tests/test-filevercmp.c (main): Likewise.
57148         * tests/test-fopen-safer.c (main): Likewise.
57149         * tests/test-fopen.c (main): Likewise.
57150         * tests/test-fpending.c (main): Likewise.
57151         * tests/test-fpurge.c (main): Likewise.
57152         * tests/test-freading.c (main): Likewise.
57153         * tests/test-fstatat.c (main): Likewise.
57154         * tests/test-fsync.c (main): Likewise.
57155         * tests/test-futimens.c (main): Likewise.
57156         * tests/test-getndelim2.c (main): Likewise.
57157         * tests/test-gettimeofday.c (main): Likewise.
57158         * tests/test-getopt.c (main): Likewise.
57159         * tests/test-i-ring.c (main): Likewise.
57160         * tests/test-inttypes.c (main): Likewise.
57161         * tests/test-link.c (main): Likewise.
57162         * tests/test-lstat.c (main): Likewise.
57163         * tests/test-math.c (main): Likewise.
57164         * tests/test-md5.c (main): Likewise.
57165         * tests/test-memchr2.c (main): Likewise.
57166         * tests/test-memrchr.c (main): Likewise.
57167         * tests/test-mkdir.c (main): Likewise.
57168         * tests/test-mkdirat.c (main): Likewise.
57169         * tests/test-mkfifoat.c (main): Likewise.
57170         * tests/test-open.c (main): Likewise.
57171         * tests/test-openat-safer.c (main): Likewise.
57172         * tests/test-openat.c (main): Likewise.
57173         * tests/test-quotearg.c (main): Likewise.
57174         * tests/test-rawmemchr.c (main): Likewise.
57175         * tests/test-readlink.c (main): Likewise.
57176         * tests/test-remove.c (main): Likewise.
57177         * tests/test-rename.c (main): Likewise.
57178         * tests/test-renameat.c (main): Likewise.
57179         * tests/test-rmdir.c (main): Likewise.
57180         * tests/test-sha1.c (main): Likewise.
57181         * tests/test-signal.c (main): Likewise.
57182         * tests/test-sigaction.c (main): Likewise.
57183         * tests/test-stat.c (main): Likewise.
57184         * tests/test-stat-time.c (main): Likewise.
57185         * tests/test-stddef.c (main): Likewise.
57186         * tests/test-stdint.c (main): Likewise.
57187         * tests/test-stdio.c (main): Likewise.
57188         * tests/test-stdlib.c (main): Likewise.
57189         * tests/test-strchrnul.c (main): Likewise.
57190         * tests/test-strerror.c (main): Likewise.
57191         * tests/test-string.c (main): Likewise.
57192         * tests/test-strtod.c (main): Likewise.
57193         * tests/test-strverscmp.c (main): Likewise.
57194         * tests/test-symlink.c (main): Likewise.
57195         * tests/test-symlinkat.c (main): Likewise.
57196         * tests/test-sys_stat.c (main): Likewise.
57197         * tests/test-sys_time.c (main): Likewise.
57198         * tests/test-time.c (main): Likewise.
57199         * tests/test-unistd.c (main): Likewise.
57200         * tests/test-unlink.c (main): Likewise.
57201         * tests/test-unlinkat.c (main): Likewise.
57202         * tests/test-utimens.c (main): Likewise.
57203         * tests/test-utimensat.c (main): Likewise.
57204         * tests/test-version-etc.c (main): Likewise.
57205         * tests/test-wchar.c (main): Likewise.
57206         * tests/test-wctype.c (main): Likewise.
57207         * tests/test-xprintf-posix.c (main): Likewise.
57208         * tests/test-posixtm.c (main): Likewise.
57209         (STREQ): Delete unused macro.
57210         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
57211         shadowed variables.
57212         * tests/test-memchr.c (main): Likewise.
57214 2009-10-21  Eric Blake  <ebb9@byu.net>
57216         areadlinkat: avoid failure on older glibc
57217         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
57218         rather than mis-comparing 0 against FUNC_RESULT of char*.
57220 2009-10-21  Bruno Haible  <bruno@clisp.org>
57222         * modules/stpncpy (License): Relicense under LGPLv2+.
57223         Reported by David Lutterkort <lutter@redhat.com>.
57225 2009-10-20  Eric Blake  <ebb9@byu.net>
57227         utimensat: work around Solaris 9 bug
57228         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
57229         has trailing slash bugs.
57230         * tests/test-lutimens.h (test_lutimens): Enhance test.
57231         * tests/test-utimens.h (test_utimens): Likewise.
57232         * doc/posix-functions/utime.texi (utime): Enhance documentation.
57233         * doc/posix-functions/utimes.texi (utimes): Likewise.
57234         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57235         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
57236         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
57237         * doc/posix-functions/futimens.texi (futimens): Likewise.
57239         fdutimensat: new module
57240         * modules/fdutimensat: New file.
57241         * lib/fdutimensat.c (fdutimensat): Likewise.
57242         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
57243         * MODULES.html.sh (File system functions): Mention module.
57244         * modules/fdutimensat-tests: New test.
57245         * tests/test-fdutimensat.c: Likewise.
57247         doc: regenerate INSTALL
57248         * doc/INSTALL: Reflect recent autoconf update.
57249         * doc/INSTALL.ISO: Likewise.
57250         * doc/INSTALL.UTF-8: Likewise.
57252 2009-10-20  Pádraig Brady  <P@draigBrady.com>
57254         acl: warn if ACL support is not detected
57255         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
57257 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
57259         * lib/nproc.h: Add extern "C" block for C++.
57261 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
57262             Bruno Haible  <bruno@clisp.org>
57264         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
57265         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
57266         * doc/posix-functions/isalpha.texi: Likewise.
57267         * doc/posix-functions/isblank.texi: Likewise.
57268         * doc/posix-functions/iscntrl.texi: Likewise.
57269         * doc/posix-functions/isdigit.texi: Likewise.
57270         * doc/posix-functions/isgraph.texi: Likewise.
57271         * doc/posix-functions/islower.texi: Likewise.
57272         * doc/posix-functions/isprint.texi: Likewise.
57273         * doc/posix-functions/ispunct.texi: Likewise.
57274         * doc/posix-functions/isspace.texi: Likewise.
57275         * doc/posix-functions/isupper.texi: Likewise.
57276         * doc/posix-functions/isxdigit.texi: Likewise.
57278 2009-10-18  Bruno Haible  <bruno@clisp.org>
57280         Tests for module 'isblank'.
57281         * modules/isblank-tests: New file.
57282         * tests/test-isblank.c: New file.
57284         New module 'isblank'.
57285         * lib/isblank.c: New file.
57286         * m4/isblank.m4: New file.
57287         * modules/isblank: New file.
57288         * doc/posix-functions/isblank.texi: Mention the new module.
57290 2009-10-18  Bruno Haible  <bruno@clisp.org>
57292         New module 'ctype'.
57293         * lib/ctype.in.h: New file.
57294         * m4/ctype.m4: New file.
57295         * modules/ctype: New file.
57296         * doc/posix-headers/ctype.texi: Mention the new module.
57298 2009-10-18  Jim Meyering  <meyering@redhat.com>
57300         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
57301         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
57302         right after its initialization, rather than farther down.
57303         Keeping these in close proximity makes it easier to ensure
57304         that each such variable is initialized.  E.g.,
57306             LIB_CLOCK_GETTIME=
57307             AC_SUBST([LIB_CLOCK_GETTIME])
57309         This change also increments these serial numbers.
57310         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
57311         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57314 2009-10-18  Bruno Haible  <bruno@clisp.org>
57316         Don't let environment variables perturb build.
57317         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
57318         (gl_PREREQ_GETHRXTIME): ... not here.
57320 2009-10-18  Bruno Haible  <bruno@clisp.org>
57322         Avoid symlink attack in localcharset module.
57323         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
57324         (O_NOFOLLOW): Define fallback.
57325         (get_charset_aliases): Don't open the file if it is a symbolic link.
57326         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
57327         gl_FCNTL_H.
57328         (gl_FCNTL_H): Require it.
57329         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
57330         * modules/localcharset (Files): Add m4/fcntl_h.m4.
57331         Reported by Fergal Glynn <fglynn@veracode.com>.
57333 2009-10-18  Bruno Haible  <bruno@clisp.org>
57335         Implement nproc for mingw.
57336         * lib/nproc.c: Include <windows.h>
57337         (num_processors): On native Windows platforms, try GetSystemInfo.
57339 2009-10-18  Bruno Haible  <bruno@clisp.org>
57341         Implement nproc for IRIX.
57342         * lib/nproc.c: Include <sys/sysmp.h>.
57343         (num_processors): On IRIX systems, try sysmp.
57344         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
57346 2009-10-18  Bruno Haible  <bruno@clisp.org>
57348         Implement nproc for HP-UX.
57349         * lib/nproc.c: Include <sys/pstat.h>
57350         (num_processors): On HP-UX systems, try pstat_getdynamic.
57351         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
57352         pstat_getdynamic.
57354 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
57355             Bruno Haible  <bruno@clisp.org>
57357         Implement nproc for NetBSD, OpenBSD.
57358         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
57359         (ARRAY_SIZE): New macro.
57360         (num_processors): On BSD systems, try sysctl of HW_NCPU.
57361         * m4/nproc.m4: New file.
57362         * modules/nproc (Files): Add m4/nproc.m4.
57363         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
57364         (Makefile.am): Instead, augment lib_SOURCES.
57366 2009-10-18  Bruno Haible  <bruno@clisp.org>
57368         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
57369         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
57370         sys/param.h.
57372 2009-10-16  Eric Blake  <ebb9@byu.net>
57374         utimensat: new module
57375         * modules/utimensat: New file.
57376         * lib/utimensat.c (utimensat): Likewise.
57377         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57378         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
57379         so we can work around Linux bugs.
57380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57381         * modules/sys_stat (Makefile.am): Substitute them.
57382         * lib/sys_stat.in.h (utimensat): Declare it.
57383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57384         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57385         * modules/utimensat-tests: New test.
57386         * tests/test-utimensat.c: Likewise.
57388         utimens: let lutimens work on non-symlinks
57389         * lib/utimens.c (lutimens): Fall back to utimens rather than
57390         failing with ENOSYS, when file is not a symlink.
57391         (utimens): Reduce redirection.
57392         * tests/test-lutimens.h (test_lutimens): Update test to cover
57393         non-symlinks.
57394         * tests/test-utimens.h (test_utimens): Update test to cover
57395         symlinks.
57396         * tests/test-utimens.c (main): Update caller.
57398         utimens: cache whether utimensat syscall works
57399         * lib/utimens.c (utimensat_works_really): New cache variable.
57400         (fdutimens, lutimens): Use it to avoid failing syscall.
57402         test-stat-time, test-utimens: improve portability
57403         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
57404         ext4 on alpha, and for cygwin.
57405         * tests/test-utimens-common.h: New file.
57406         (nap): Factor delays into single function.
57407         * tests/test-lutimens.h (test_lutimens): Use new header.
57408         * tests/test-futimens.h (test_futimens): Likewise.
57409         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
57410         timestamps to occur from same machine, as was done previously for
57411         test_utimens.
57412         * modules/utimens-tests (Files): Ship new file.
57413         * modules/futimens-tests (Files): Likewise.
57414         Reported in part by Jim Meyering.
57416         sys_stat: sort replacement declarations
57417         * lib/sys_stat.in.h: Sort declarations.
57418         * lib/futimens.c (futimens): Fix typo.
57420 2009-10-15  Jim Meyering  <meyering@redhat.com>
57422         don't let environment settings perturb build
57423         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
57424         could cause a configure-time and/or build-time malfunction.
57425         Typically, a configure-time function-in-library test is performed
57426         via code like this:
57428           LIB_VAR=
57429           AC_SUBST([LIB_VAR])
57430           prefix_saved_LIBS=$LIBS
57431             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
57432                        [test "$ac_cv_search_FUNC" = "none required" ||
57433                         LIB_VAR=$ac_cv_search_FUNC])
57434           LIBS=$prefix_saved_LIBS
57436         However, in each of the files affected by this change, the LIB_VAR=
57437         initialization was omitted.  Thus, when set in the environment, its
57438         value would propagate into generated Makefiles when FUNC is not found
57439         in LIB_NAME.
57440         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
57441         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57444 2009-10-14  Eric Blake  <ebb9@byu.net>
57446         fchdir: avoid infinite recursion in mingw
57447         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
57448         recursing.
57450         test-stat-time: port to mingw
57451         * tests/test-stat-time.c (force_unlink): Return a value.
57452         (test_ctime) [W32]: Fix compilation error.
57453         (nap): Don't call usleep with too large an argument.  Use
57454         force_unlink.
57455         * doc/pastposix-functions/usleep.texi (usleep): Document the
57456         portability issue.
57458 2009-10-13  Jim Meyering  <meyering@redhat.com>
57460         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
57461         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
57462         * modules/pipe-filter-ii: Likewise.
57463         * modules/sys_socket-tests: Likewise.
57464         * modules/tsearch-tests: Likewise.
57465         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
57466         (check): Depend on it.
57468 2009-10-12  Eric Blake  <ebb9@byu.net>
57470         utimens-tests: port to NFS file systems
57471         * tests/test-utimens.h (test_utimens): Refactor utimecmp
57472         comparisons to avoid spurious failures from timestamp drift
57473         between NFS machines.
57475 2009-10-12  Eric Blake  <ebb9@byu.net>
57477         stat-time-tests: minor cleanups
57478         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
57479         * tests/test-stat-time.c (nap): Separate assignment from call.
57480         Suggested by Paolo Bonzini and Bruno Haible.
57482         sys_stat: guarantee struct timespec
57483         * lib/sys_stat.in.h (includes): Always include <time.h>
57484         * modules/sys_stat (Depends-on): Add time.
57485         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
57486         mode_t permission values.
57487         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
57488         get at subsecond timestamps.
57490 2009-10-10  Eric Blake  <ebb9@byu.net>
57492         futimens: new module
57493         * modules/futimens: New file.
57494         * lib/futimens.c (futimens): Likewise.
57495         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
57496         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
57497         we can work around Linux bugs.
57498         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57499         * modules/sys_stat (Makefile.am): Substitute them.
57500         * lib/sys_stat.in.h (futimens): Declare it.
57501         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57502         * doc/posix-functions/futimens.texi (futimens): Likewise.
57503         * modules/futimens-tests: New test.
57504         * tests/test-futimens.c: Likewise.
57506         utimens: introduce fdutimens
57507         * lib/utimens.h (fdutimens): New prototype.
57508         * lib/utimens.c (gl_futimens): Move guts...
57509         (fdutimens): ...to new interface.
57510         * tests/test-utimens.c (do_fdutimens): Use it.
57512         utimens: add UTIME_NOW and UTIME_OMIT support
57513         * lib/utimens.c (validate_timespec, update_timespec): New helper
57514         functions.
57515         (gl_futimens, lutimens): Use them.
57516         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
57517         stdbool, sys_stat.
57518         (Link): Mention resulting library dependency.
57519         * modules/utimecmp (Link): Likewise.
57520         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
57521         (Makefile.am): Pick up library dependency.
57522         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
57523         definition.
57524         * tests/test-sys_stat.c: Test the definitions.
57525         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
57526         * NEWS: Document library dependency.
57528         utimecmp: support symlink timestamps
57529         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
57530         hashing when possible.  Use pathconf when available.
57531         (SYSCALL_RESOLUTION): Recognize tighter resolution.
57532         * modules/utimecmp (Depends-on): Add lstat.
57534         utimens: add lutimens interface
57535         * lib/utimens.c (lutimens): New function.
57536         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
57537         * lib/utimens.h (lutimens): Declare new interface.
57538         * tests/test-utimens.c (main): Enhance test.
57539         * tests/test-lutimens.h (test_lutimens): New file.
57540         * modules/utimens-tests (Files): Distribute it.
57541         (Depends-on): Add symlink.
57542         (configure.ac): Check for usleep.
57544         utimens: validate futimens usage
57545         * lib/utimens.c (gl_futimens): Require valid fd up front, using
57546         fewer syscalls on failure later on.  Avoid compiler warning on
57547         mingw.
57548         * modules/utimens (Depends-on): Add dup2.
57550         utimens: add test
57551         * modules/utimens-tests: New test.
57552         * tests/test-utimens.h: New file.
57553         * tests/test-futimens.h: Likewise.
57554         * tests/test-utimens.c: Likewise.
57556         doc: mention timestamp portability issues
57557         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
57558         instead.
57559         * doc/posix-functions/utime.texi (utime): Likewise.
57560         * doc/posix-functions/utimes.texi (utimes): Likewise.
57561         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
57562         instead.
57563         * doc/posix-functions/futimens.texi (futimens): Mention utimens
57564         module.
57565         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57566         Mention weakness with symlink timestamps.
57567         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
57568         to utimensat/futimens instead.
57569         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
57571         test-dup2: enhance test
57572         * tests/test-dup2.c (main): Also check AT_FDCWD.
57574         test-stat-time: avoid more spurious failures
57575         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
57576         xfs; and avoid race if the two timestamps cross quantization edge.
57578         relocatable: prefer 'file system' over 'filesystem'
57579         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
57580         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
57581         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
57582         * doc/relocatable.texi (Enabling Relocatability): Likewise.
57583         * lib/relocatable.c (compute_curr_prefix): Likewise.
57585 2009-10-10  Jim Meyering  <meyering@redhat.com>
57587         stat-time-tests: check for the usleep function
57588         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
57590 2009-10-10  Bruno Haible  <bruno@clisp.org>
57592         * modules/xnanosleep: Put the Link section after the Include section.
57594 2009-10-09  Eric Blake  <ebb9@byu.net>
57596         dup2: work around FreeBSD 6.1 bug
57597         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
57598         * doc/posix-functions/dup2.texi (dup2): Document it.
57599         Reported by Nelson H. F. Beebe and Jim Meyering.
57601         test-stat-time: port to buggy NFS clients
57602         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
57603         (test_ctime): Also skip test if mtime and ctime are skewed.
57605         maint: prefer 'file system' over 'filesystem'
57606         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
57607         * doc/posix-functions/lstat.texi (lstat): Likewise.
57608         * lib/file-has-acl.c (file_has_acl): Likewise.
57609         * lib/fwriteerror.c [TEST]: Likewise.
57610         * tests/test-areadlink.h (test_areadlink): Likewise.
57611         * tests/test-areadlinkat-with-size.c (main): Likewise.
57612         * tests/test-areadlinkat.c (main): Likewise.
57613         * tests/test-canonicalize-lgpl.c (main): Likewise.
57614         * tests/test-canonicalize.c (main): Likewise.
57615         * tests/test-fstatat.c (main): Likewise.
57616         * tests/test-linkat.c (main): Likewise.
57617         * tests/test-lstat.h (test_lstat_func): Likewise.
57618         * tests/test-mkdir.h (test_mkdir): Likewise.
57619         * tests/test-readlink.h (test_readlink): Likewise.
57620         * tests/test-remove.c (main): Likewise.
57621         * tests/test-rename.h (test_rename): Likewise.
57622         * tests/test-renameat.c (main): Likewise.
57623         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57624         * tests/test-symlink.h (test_symlink): Likewise.
57625         * tests/test-symlinkat.c (main): Likewise.
57626         * tests/test-unlink.h (test_unlink_func): Likewise.
57627         * tests/test-unlinkat.c (main): Likewise.
57629         maint: make realtime library usage explicit
57630         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
57631         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
57632         * modules/settime (Link): Likewise.
57633         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
57635         test-stat-time: speed up execution
57636         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
57637         warning on mingw.
57638         (nap): New helper function.
57639         (prepare_test): Use it to reduce sleep time.
57640         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
57641         execution.
57642         * modules/stat-time-tests (configure.ac): Check for usleep.
57644 2009-10-09  Jim Meyering  <meyering@redhat.com>
57646         selinux-h: always use getfilecon wrappers
57647         * lib/getfilecon.c: New file.
57648         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
57649         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
57650         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
57651         (fgetfilecon): Provide a stub.
57652         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
57653         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
57654         file unconditionally.
57655         When <selinux/selinux.h> is found, arrange to use wrappers.
57656         * modules/selinux-h (Files): Add getfilecon.c.
57657         (Makefile.am): Substitute include-next-related bits
57658         into the now-always-generated selinux/selinux.h file.
57659         * doc/glibc-functions/lgetfilecon.texi: New file.
57660         * doc/glibc-functions/fgetfilecon.texi: New file.
57661         * doc/glibc-functions/getfilecon.texi: New file.
57662         * doc/glibc-functions/getfilecon-desc.texi: New file.
57663         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
57664         which to pull in the new files.
57665         * MODULES.html.sh (Misc): Add selinux-h.
57667 2009-10-08  Jim Meyering  <meyering@redhat.com>
57669         unistd: fix comment typo
57670         * lib/unistd.in.h (euidaccess): Fix a comment typo.
57672 2009-10-08  Eric Blake  <ebb9@byu.net>
57674         areadlink: use SIZE_MAX consistently
57675         * modules/areadlink (Depends-on): Add stdint.
57676         * modules/areadlink-with-size (Depends-on): Likewise.
57677         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
57678         gives NULL; drop sys/types, since unistd gives size_t; and add
57679         stdint for SIZE_MAX.
57680         (SIZE_MAX): Rely on headers.
57681         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
57682         and add stdint.
57683         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
57684         (SIZE_MAX): Likewise.
57685         (INITIAL_BUF_SIZE): Turn into enum.
57686         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
57688 2009-10-08  Jim Meyering  <meyering@redhat.com>
57690         areadlinkat: avoid compilation failure
57691         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
57692         Fix typo in comment.
57694 2009-10-07  Eric Blake  <ebb9@byu.net>
57696         areadlinkat-with-size: new module
57697         * modules/areadlinkat-with-size: New module.
57698         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
57699         * lib/areadlink.h (areadlinkat): Declare it.
57700         * MODULES.html.sh (File system functions): Mention it.
57701         * modules/areadlinkat-with-size-tests: New test.
57702         * tests/test-areadlinkat-with-size.c: New file.
57704         xreadlinkat: new module
57705         * modules/xreadlinkat: New module.
57706         * lib/xreadlinkat.c (xreadlinkat): New file.
57707         * lib/xreadlink.h (xreadlinkat): Declare it.
57708         * MODULES.html.sh (File system functions): Mention it.
57710         areadlinkat: new module
57711         * lib/at-func.c (FUNC_FAIL): New define.
57712         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
57713         * modules/areadlinkat: New module.
57714         * lib/linkat.c (areadlinkat): Move...
57715         * lib/areadlinkat.c (areadlinkat): ...to new file.
57716         * lib/areadlink.h (areadlinkat): Declare it.
57717         * modules/linkat (Depends-on): Add areadlinkat.
57718         * MODULES.html.sh (File system functions): Mention it.
57719         * modules/areadlinkat-tests: New test.
57720         * tests/test-areadlinkat.c: New file.
57722         areadlink, areadlink-with-size: add tests
57723         * modules/areadlink-tests: New test.
57724         * modules/areadlink-with-size-tests: Likewise.
57725         * tests/test-areadlink.h: New file.
57726         * tests/test-areadlink.c: Likewise.
57727         * tests/test-areadlink-with-size.c: Likewise.
57729         maint: minor cleanups
57730         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
57731         _UNUSED_PARAMETER_ instead.
57732         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
57733         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
57734         * modules/linkat-tests (Files): Distribute test-link.h.
57736         openat, utimens: whitespace cleanup
57737         * lib/openat.c: Prefer space throughout, rather than mix of 8
57738         spaces vs. tabs.
57739         * lib/at-func.c: Likewise.
57740         * lib/utimens.c: Likewise.
57742         openat: avoid using wrong fd
57743         * lib/openat.c (openat_permissive): Reject user's fd if saving the
57744         working directory chooses same fd.
57745         * lib/at-func.c (AT_FUNC_NAME): Likewise.
57747         mkdir, mkdirat: fix cygwin 1.5.x bug
57748         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
57749         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
57750         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
57751         bug.
57752         (gl_PREREQ_MKDIR): Delete unused macro.
57753         * modules/mkdir (Files): Track file rename.
57754         (configure.ac): Update macro name.
57755         * modules/openat (Depends-on): Add mkdir.
57756         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
57758         mkdir, mkdirat: add tests
57759         * modules/mkdir-tests: New test.
57760         * tests/test-mkdir.h: New file.
57761         * tests/test-mkdir.c: Likewise.
57762         * tests/test-mkdirat.c: Likewise.
57763         * modules/openat-tests (Files): Add new files.
57764         (Makefile.am): Run new test.
57766 2009-10-06  Eric Blake  <ebb9@byu.net>
57768         doc: tweak *at function documentation
57769         * doc/posix-functions/faccessat.texi (faccessat): Mention
57770         known issue with replacement.
57771         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
57772         * doc/posix-functions/linkat.texi (linkat): Likewise.
57773         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
57774         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
57775         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57776         * doc/posix-functions/renameat.texi (renameat): Likewise.
57777         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57779         openat: fix GNU/Hurd bug in unlinkat
57780         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
57781         broken.
57782         * doc/posix-functions/unlink.texi (unlink): Document this.
57783         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
57785         fdopendir: fix GNU/Hurd bug
57786         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
57787         allowing non-directory fds.
57788         * lib/fdopendir.c (rpl_fdopendir): Work around it.
57789         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
57790         * modules/dirent (Makefile.am): Substitute it.
57791         * lib/dirent.in.h (fdopendir): Declare replacement.
57792         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
57793         * tests/test-fdopendir.c (main): Test something other than
57794         /dev/null, since on Hurd that behaves like a directory.
57796         test-symlink: port to GNU/Hurd
57797         * tests/test-symlink.h (test_symlink): Relax expected errno.
57799         doc: tweak more cygwin information
57800         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
57801         now compatible with glibc.
57802         * doc/posix-functions/getopt.texi (getopt): Likewise.
57804         getopt-gnu: add another test
57805         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
57806         guarantee behavior relied on by m4.
57807         * tests/test-getopt.c (main): Use it.
57808         * modules/getopt-posix-tests (Depends-on): Add setenv.
57809         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
57811         getopt: fix compilation on darwin
57812         * lib/getopt.in.h (includes): Leave breadcrumbs during system
57813         include.
57814         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
57815         Reported by Ludovic Courtès.
57817 2009-10-06  Bruno Haible  <bruno@clisp.org>
57819         * modules/size_max (Description): Discourage its use.
57820         Reported by Simon Josefsson.
57822 2009-10-06  Jim Meyering  <meyering@redhat.com>
57824         linkat: avoid compilation failure
57825         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
57827 2009-10-05  Eric Blake  <ebb9@byu.net>
57829         linkat: support Linux 2.6.17
57830         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
57831         linkat on Linux, but allow cache variable override.
57832         * lib/linkat.c (rpl_linkat): Define override.
57833         * modules/linkat (Depends-on): Add symlinkat.
57834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
57835         * modules/unistd (Makefile.am): Substitute it.
57836         * lib/unistd.in.h (linkat): Declare replacement.
57837         Reported by Pádraig Brady.
57839         quotearg: port test to systems with C.UTF-8 locale
57840         * tests/test-quotearg.c (struct result_strings): Add another
57841         member, differentiating between C.ASCII and C.UTF-8 handling.
57842         (compare_strings): Add parameter.
57843         (main): Adjust all callers.
57845         getopt: avoid clash with FreeBSD _getopt_internal
57846         * lib/getopt.in.h (_getopt_internal): Override the name.
57847         * lib/getopt_int.h (includes): Pick up any overrides.
57848         Reported by Reuben Thomas.
57850         hash: allow C89 compilation
57851         * lib/hash.c (check_tuning): Move declaration before statement.
57852         Reported by Reuben Thomas.
57854 2009-10-05  Karl Berry  <karl@gnu.org>
57856         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
57858 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
57859             Bruno Haible  <bruno@clisp.org>
57861         * lib/uname.c (uname): Use a table-driven algorithm to compute
57862         Windows NT versions.
57864 2009-10-04  Bruno Haible  <bruno@clisp.org>
57866         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
57867         program_invocation_short_name.
57868         * modules/progname (configure.ac): Test for presence of
57869         program_invocation_short_name.
57870         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
57872 2009-10-04  Bruno Haible  <bruno@clisp.org>
57874         * lib/progname.c (set_program_name): Fix comment.
57875         Reported by Jim Meyering.
57877 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57878             Bruno Haible  <bruno@clisp.org>
57880         * lib/uname.c: Include <string.h>.
57881         (uname): Do only one call to GetVersionEx in the common case.
57883 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57884             Bruno Haible  <bruno@clisp.org>
57886         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
57887         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
57888         (uname): Add support for Windows CE and various non-x86 CPU types.
57890 2009-10-03  Bruno Haible  <bruno@clisp.org>
57892         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
57893         invocation to tests/configure.ac.
57894         Reported by Ian Beckwith <ianb@erislabs.net>.
57896 2009-10-02  Eric Blake  <ebb9@byu.net>
57898         fchdir: avoid compiler warning
57899         * lib/fchdir.c (canonicalize_file_name)
57900         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
57902         test-open: support mingw errno values
57903         * tests/test-open.h (test_open): Relax test.
57904         * tests/test-fopen.h (test_fopen): Likewise.
57905         * tests/test-openat-safer.c (main): Likewise.
57907         open: fix opening directory on mingw
57908         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
57910         test-open: on GNU/Hurd, /dev/null is a directory
57911         * tests/test-fopen.h (main): Rename...
57912         (test_fopen): ...to this.  Use a guaranteed non-directory when
57913         confirming open behavior on trailing slash.
57914         * tests/test-openat-safer.c (main): Likewise.
57915         * tests/test-open.h (main): Likewise....
57916         (test_open): ...to this.
57917         * tests/test-fopen.c (main): Adjust caller.
57918         * tests/test-fopen-safer.c (main): Likewise.
57919         * tests/test-open.c (main): Likewise.
57920         * tests/test-fcntl-safer.c (main): Likewise.
57921         Reported by Samuel Thibault.
57923         rename, fchdir: don't ignore chdir failure
57924         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
57925         * lib/rename.c (rpl_rename) [W32]: Likewise.
57926         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
57927         an empty destination directory if source cannot be renamed,
57928         although there is still possibility for failure.
57929         * doc/posix-functions/rename.texi (rename): Document the race.
57930         Reported by Jim Meyering.
57932         maint: cleanup whitespace in recent commits
57933         * lib/rename.c (rpl_rename): Remove tabs.
57934         * tests/test-link.h (test_link): Likewise.
57935         * lib/fchdir.c (get_name): Likewise.
57936         Reported by Jim Meyering.
57938 2009-10-02  Ben Pfaff  <blp@gnu.org>
57940         relocatable-prog-wrapper: Add missing dependency on
57941         double-slash-root.
57942         * modules/relocatable-prog-wrapper: Add dependency.
57943         Reported by Ian Beckwith <ianb@erislabs.net>.
57945 2009-10-02  Eric Blake  <ebb9@byu.net>
57947         renameat: fix Solaris bugs
57948         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
57949         needed fixing.
57950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
57951         * modules/stdio (Makefile.am): Substitute it.
57952         * lib/stdio.in.h (renameat): Declare replacement.
57953         * lib/renameat.c (rpl_renameat): Implement fix.
57955         renameat: new module
57956         * modules/renameat: New file.
57957         * lib/renameat.c (renameat): Likewise.
57958         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
57959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
57960         * modules/stdio (Makefile.am): Substitute them.
57961         * lib/stdio.in.h (renameat): Declare it.
57962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57963         * doc/posix-functions/renameat.texi (renameat): Likewise.
57964         * modules/renameat-tests: New test.
57965         * tests/test-renameat.c: Likewise.
57967         rename: fix mingw bugs
57968         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
57969         directory overwrite bugs.
57971         rename: fix another cygwin 1.5 bug
57972         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
57973         checks.
57974         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
57975         unnecessary cygwin workarounds.  Also work around bug with moving
57976         full directory onto an empty one.
57977         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
57979         rename-dest-slash: merge into rename module
57980         * modules/rename-dest-slash (Status): Mark obsolete.
57981         (Depends-on): Add rename.
57982         (Files): Let rename do it all.
57983         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
57984         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
57985         * m4/rename-dest-slash.m4: ...so this file can be deleted.
57986         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
57987         * lib/rename.c (rpl_rename): Update comments.
57989         rename: fix cygwin 1.5.x bugs
57990         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
57991         * lib/rename.c (rpl_rename): Work around them.
57992         * modules/rename (Depends-on): Add same-inode.
57994         rename: fix Solaris 10 bug
57995         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57996         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
57997         was the only bug.
57999         rename: fix Solaris 9 bug
58000         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
58001         on non-directory.  Avoid calling exit.
58002         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
58003         strdup.
58004         * modules/rename-tests (Depends-on): Drop lstat.
58005         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
58006         (gl_PREREQ_RENAME): Delete unused macro.
58008         rename-dest-slash: fix NetBSD bug
58009         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
58010         links.
58011         * modules/rename-dest-slash (Depends-on): Add same-inode.
58013         rename-tests: new test, exposes several platform bugs
58014         * modules/rename-tests: New file.
58015         * tests/test-rename.h: Likewise.
58016         * tests/test-rename.c: Likewise.
58017         * doc/posix-functions/rename.texi (rename): Improve documentation,
58018         including bugs that will eventually be fixed in gnulib.
58020 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
58022         * lib/uname.c: Include <stdlib.h>
58023         (uname): Assume version info is available.
58025 2009-10-02  Jim Meyering  <meyering@redhat.com>
58027         gnu-web-doc-update: correct --help output
58028         * build-aux/gnu-web-doc-update: Make --help output relevant.
58030         gnu-web-doc-update: add standard options
58031         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
58033         gnu-web-doc-update: New module.
58034         Use this script to automatically update the on-line web documentation
58035         for your GNU project at http://www.gnu.org/software/$pkg/manual/
58036         * modules/gnu-web-doc-update: New file, from coreutils.
58037         * build-aux/gnu-web-doc-update: New script.
58039 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
58041         link: LoadLibrary is not needed.
58042         * lib/link.c: Use GetModuleHandle.
58044 2009-10-01  Eric Blake  <ebb9@byu.net>
58046         getopt: bump serial number
58047         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
58048         change.
58050         tests: tighten link, rmdir, and remove tests
58051         * tests/test-link.h (includes): No need to use <config.h> here.
58052         Clean up if directory hard link was created, otherwise test for
58053         trailing '.'.
58054         * tests/test-linkat.c (main): Simplify.
58055         * tests/test-remove.c (main): Enhance test for trailing '.'.
58056         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58058 2009-10-01  Jim Meyering  <meyering@redhat.com>
58060         maint.mk: requiring "make major" was annoying, for a "minor" release.
58061         What is intended is "stable", to contrast with alpha and beta,
58062         so require "make stable", not "make major".
58063         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
58064         (get_tool_versions): Likewise.
58065         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
58067 2009-09-30  Ben Pfaff  <blp@gnu.org>
58069         Fix broken build of replacement for Windows tmpfile().
58070         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
58071         flags argument added along with the 'mkostemp' module.
58073 2009-09-28  Bruno Haible  <bruno@clisp.org>
58075         Avoid identifier clash with POSIX function 'remove' defined as a macro.
58076         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
58077         to 'remove_elt'.
58078         (gl_list_remove): Update.
58079         * lib/gl_list.c (gl_list_remove): Update.
58080         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
58081         to 'remove_elt'.
58082         (gl_oset_remove): Update.
58083         * lib/gl_list.c (gl_oset_remove): Update.
58084         Reported by Eric Blake.
58086 2009-09-28  Eric Blake  <ebb9@byu.net>
58088         doc: mention yet more cygwin 1.7 status
58089         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
58090         cygwin.
58091         * doc/glibc-functions/execvpe.texi (execvpe): New file.
58092         * doc/gnulib.texi (Glibc unistd.h): Mention it.
58094         argp: fix test failure
58095         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
58096         that are not upper-case.  Pass correct range to tolower.
58098 2009-09-27  Jim Meyering  <meyering@redhat.com>
58100         test-yesno: work around sparc-dash here-document infelicity
58101         Without this change, the literal \177 byte in a here document
58102         would make dash 0.5.5.1-3 access uninitialized memory.
58103         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
58104         Instead, use a marker, "@", and filter through tr to create the desired
58105         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
58107 2009-09-27  Bruno Haible  <bruno@clisp.org>
58109         Disable untested support for new flavours of ACLs on AIX.
58110         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
58111         progress.
58112         * lib/set-mode-acl.c (qset_acl): Likewise.
58114 2008-12-07  Bruno Haible  <bruno@clisp.org>
58116         Add support for new flavours of ACLs on AIX. (Untested.)
58117         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
58118         (file_has_acl): Add support for newer AIX.
58119         * lib/set-mode-acl.c (qset_acl): Likewise.
58120         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
58121         Rainer Tammer <tammer@tammer.net>.
58123 2009-09-26  Eric Blake  <ebb9@byu.net>
58125         argp: fix compilation of getopt
58126         * lib/getopt.in.h (includes): Use different guard than glibc.
58127         Reported by Sergey Poznyakoff.
58129         doc: mention more cygwin 1.7 status
58130         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
58131         bug.
58132         * doc/posix-functions/execl.texi (execl): Likewise.
58133         * doc/posix-functions/execle.texi (execle): Likewise.
58134         * doc/posix-functions/execlp.texi (execlp): Likewise.
58135         * doc/posix-functions/execv.texi (execv): Likewise.
58136         * doc/posix-functions/execve.texi (execve): Likewise.
58137         * doc/posix-functions/execvp.texi (execvp): Likewise.
58138         * doc/glibc-functions/canonicalize_file_name.texi
58139         (canonicalize_file_name): Cygwin 1.7 now provides this.
58140         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
58141         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
58142         on AT_SYMLINK_NOFOLLOW.
58144 2009-09-24  Eric Blake  <ebb9@byu.net>
58146         test-linkat: make test more robust
58147         * tests/test-linkat.c (main): Avoid collision with EEXIST.
58149         getopt: fix inclusion guards for cygwin
58150         * modules/getopt-posix (Depends-on): Add include-next.
58151         (Makefile.am): Substitute more items in replacement header.
58152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
58153         <getopt.h>.
58154         * lib/getopt.in.h (includes): Use split inclusion guard, and
58155         prefer <getopt.h> over include <unistd.h> when one is present.
58156         (option): Also override name of 'struct option'.
58158         same-inode: revert prior change; it is not yet ready
58159         * NEWS: Undo mention of this change.
58160         * lib/same-inode.h (same-inode.h): Undo tri-state change.
58161         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
58162         * lib/cycle-check.c (cycle_check): Likewise.
58163         * lib/same.c (same_name): Likewise.
58164         * lib/at-func2.c (at_func2): Likewise.
58166 2009-09-23  Eric Blake  <ebb9@byu.net>
58168         linkat: new module
58169         * modules/linkat: New file.
58170         * lib/at-func2.c (at_func2): Likewise.
58171         * lib/linkat.c (linkat): Likewise.
58172         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58173         * lib/openat-priv.h (at_func2): Add declaration.
58174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58175         * modules/unistd (Makefile.am): Substitute them.
58176         * lib/unistd.in.h (linkat): Declare it.
58177         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58178         * doc/posix-functions/linkat.texi (linkat): Likewise.
58179         * doc/posix-functions/link.texi (link): Tweak wording.
58180         * tests/test-link.c (main): Move guts...
58181         * tests/test-link.h (test_link): ...into new file.
58182         * modules/linkat-tests: New test.
58183         * tests/test-linkat.c: Likewise.
58184         * modules/link-tests (Files): Ship new file.
58185         (Depends-on): Add stdbool.
58187         dirname: add library-safe mdir_name
58188         * lib/dirname.h (mdir_name): New prototype.
58189         * lib/dirname.c (dir_name): Move guts...
58190         (mdir_name): ...to new function that avoids xalloc_die.
58192         fchdir: another mingw fix
58193         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
58194         * lib/fchdir.c (get_name): New helper method; skips canonicalize
58195         on mingw (where it has not yet been ported), and make it optional
58196         elsewhere.
58197         (_gl_register_fd): Use it.
58199         same-inode: make SAME_INODE tri-state, to port to mingw
58200         * NEWS: Mention this change.
58201         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
58202         st_ino always being 0.
58203         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
58204         * lib/cycle-check.c (cycle_check): Likewise.
58205         * lib/same.c (same_name): Likewise.
58207         lstat: avoid mingw compilation error
58208         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
58209         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
58210         lstat ourselves.
58211         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
58212         was adequate.
58213         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
58214         the checks for lstat.
58215         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
58217         link: fix test failure on Solaris 9
58218         * lib/link.c (rpl_link): Don't assume link will catch bogus
58219         trailing slash on source.
58221         test-symlinkat: enhance test
58222         * tests/test-readlink.c (main): Move guts...
58223         * tests/test-readlink.h (test_readlink): ...into new file.
58224         * tests/test-symlink.c (main): Move guts...
58225         * tests/test-symlink.h (test_symlink): ...into new file.
58226         * tests/test-symlinkat.c (main): Use new files for further
58227         coverage.
58228         (do_symlink, do_readlink): New helper functions.
58229         * modules/symlink-tests (Files): Ship new file.
58230         (Depends-on): Add stdbool.
58231         * modules/readlink-tests (Files): Ship new file.
58232         (Depends-on): Add stdbool.
58233         * modules/symlinkat-tests (Files): Use new files.
58235 2009-09-23  Eric Blake  <ebb9@byu.net>
58237         readlink: document portability issue with symlink length
58238         * doc/posix-functions/lstat.texi (lstat): Mention that some file
58239         systems have bogus st_size on symlinks, and mention the
58240         areadlink-with-size module.
58241         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
58242         * doc/posix-functions/readlink.texi (readlink): Mention the
58243         areadlink module, and ERANGE failure.
58244         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58245         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
58247         readlink: fix Solaris 9 bug with trailing slash
58248         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
58249         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
58250         * doc/posix-functions/readlink.texi (readlink): Document this.
58251         * modules/readlink-tests: New test.
58252         * tests/test-readlink.c: Likewise.
58254         readlink: fix cygwin 1.5.x bug with return type
58255         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
58256         * lib/unistd.in.h (readlink): Use ssize_t.
58257         * lib/readlink.c (readlink): Likewise.
58258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58259         * modules/unistd (Makefile.am): Substitute it.
58260         * lib/unistd.in.h (readlink): Declare replacement.
58261         * doc/posix-functions/readlink.texi (readlink): Document this.
58263         symlink: use throughout gnulib
58264         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
58265         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
58266         symlink is not used.
58267         * modules/symlinkat (Depends-on): Add symlink.
58268         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
58269         * modules/canonicalize-tests (Depends-on): Likewise.
58270         * modules/lstat-tests (Depends-on): Likewise.
58271         * modules/openat-tests (Depends-on): Likewise.
58272         * modules/remove-tests (Depends-on): Likewise.
58273         * modules/rmdir-tests (Depends-on): Likewise.
58274         * modules/unlink-tests (Depends-on): Likewise.
58275         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
58276         * tests/test-canonicalize.c (symlink): Likewise.
58277         * tests/test-fstatat.c (symlink): Likewise.
58278         * tests/test-lstat.c (symlink): Likewise.
58279         * tests/test-remove.c (symlink): Likewise.
58280         * tests/test-rmdir.c (symlink): Likewise.
58281         * tests/test-unlink.c (symlink): Likewise.
58282         * tests/test-unlinkat.c (symlink): Likewise.
58284         symlink: new module, for Solaris 9 bug
58285         * modules/symlink: New file.
58286         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58287         * lib/symlink.c: Likewise.
58288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
58289         * modules/unistd (Makefile.am): Substitute them.
58290         * lib/unistd.in.h (symlink): Declare replacement.
58291         * MODULES.html.sh (File system functions): Mention it.
58292         * doc/posix-functions/symlink.texi (symlink): Likewise.
58293         * modules/symlink-tests: New test.
58294         * tests/test-symlink.c: Likewise.
58296 2009-09-23  Bruno Haible  <bruno@clisp.org>
58298         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
58299         when needed.
58300         Test case: gnulib-tool --import --with-tests atexit inttypes.
58301         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
58303 2009-09-23  Bruno Haible  <bruno@clisp.org>
58305         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
58306         subcommand, not in a subshell.
58308 2009-09-22  Eric Blake  <ebb9@byu.net>
58310         unistd: sort replacement declarations
58311         * lib/unistd.in.h: Sort declarations.
58313         open, openat: minor optimization
58314         * lib/open.c (open): If open succeeded, len is non-zero.
58315         * lib/openat.c (rpl_openat): Likewise.
58317         link-follow: ensure correct result
58318         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
58319         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
58320         distinguish between possible failures.
58322 2009-09-21  Eric Blake  <ebb9@byu.net>
58324         fts: avoid compiler warning
58325         * lib/fts.c (dirent_inode_sort_may_be_useful)
58326         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
58328 2009-09-19  Bruno Haible  <bruno@clisp.org>
58330         * lib/progreloc.c (canonicalize_file_name): New declaration.
58332 2009-09-19  Eric Blake  <ebb9@byu.net>
58334         link: fix quoting
58335         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
58337         openat: fix openat bugs on Solaris 9
58338         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
58339         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
58340         * modules/openat (Depends-on): Add open.
58341         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
58342         * modules/fcntl-h (Makefile.am): Substitute it.
58343         * lib/fcntl.in.h (openat): Declare replacement.
58344         * doc/posix-functions/openat.texi (openat): Document this.
58346         openat: move fstatat and unlinkat into correct files
58347         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
58348         compiled.
58349         * lib/openat.c (fstatat, unlinkat): Move...
58350         * lib/fstatat.c (fstatat): ...into correct files.
58351         * lib/unlinkat.c (unlinkat): Likewise.
58353         openat: fix unlinkat bugs on Solaris 9
58354         * lib/unlinkat.c (unlinkat): New file.
58355         * modules/openat (Depends-on): Add unlink.
58356         (Files): Distribute it.
58357         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
58358         trailing slash behavior is broken.
58359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58360         * modules/unistd (Makefile.am): Substitute it.
58361         * lib/unistd.in.h (unlinkat): Declare replacement.
58362         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
58364         openat: fix fstatat bugs on Solaris 9
58365         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
58366         stat.
58367         * doc/posix-functions/fstatat.texi (fstatat): Document this.
58369         test-unlinkat: enhance test, to expose Solaris 9 bug
58370         * tests/test-unlink.c (main): Factor guts...
58371         * tests/test-unlink.h (test_rmdir_func): ...into new file.
58372         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
58373         * tests/test-rmdir.c (main): Adjust caller.
58374         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
58375         (unlinker): New helper function.
58376         (rmdirat): Enhance check.
58377         * modules/rmdir-tests (Depends-on): Add stdbool.
58378         * modules/unlink-tests (Depends-on): Likewise.
58379         (Files): Add test-unlink.h.
58380         * modules/openat-tests (Files): Likewise.
58381         (Depends-on): Add unlinkdir.
58383         test-fstatat: new test, to expose Solaris 9 bugs
58384         * tests/test-stat.c (main): Factor guts...
58385         * tests/test-stat.h (test_stat_func): ...into new file.
58386         * tests/test-lstat.c (main): Factor guts...
58387         * tests/test-lstat.h (test_lstat_func): ...into new file.
58388         * tests/test-fstatat.c: New file.
58389         * modules/stat-tests (Files): Add test-stat.h.
58390         * modules/lstat-tests (Files): Add test-lstat.h.
58391         (Depends-on): Add stdbool.
58392         * modules/openat-tests (Depends-on): Add pathmax.
58393         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
58394         (Makefile.am): Run new test.
58396         remove: new module, for mingw and Solaris 9 bugs
58397         * modules/remove: New file.
58398         * lib/remove.c: Likewise.
58399         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
58400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
58401         * modules/stdio (Makefile.am): Use them.
58402         * lib/stdio.in.h (remove): Declare replacement.
58403         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58404         * doc/posix-functions/remove.texi (remove): Likewise.
58405         * modules/remove-tests: New test.
58406         * tests/test-remove.c: Likewise.
58408         unlink: new module, for Solaris 9 bug
58409         * modules/unlink: New file.
58410         * lib/unlink.c: Likewise.
58411         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58413         * modules/unistd (Makefile.am): Use them.
58414         * lib/unistd.in.h (stat): Declare replacement.
58415         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58416         * doc/posix-functions/unlink.texi (unlink): Likewise.
58417         * modules/unlink-tests: New test.
58418         * tests/test-unlink.c: Likewise.
58420         lstat: fix Solaris 9 bug
58421         * lib/lstat.c (lstat): Also check for trailing slash on
58422         non-symlink, non-directories.  Use stat module to simplify logic.
58423         * doc/posix-functions/lstat.texi (lstat): Document it.
58424         * modules/lstat-tests (Depends-on): Add errno, same-inode.
58425         (configure.ac): Check for symlink.
58426         * tests/test-lstat.c (main): Add more tests.
58428         stat: add as dependency to other modules
58429         * modules/chown (Depends-on): Add stat.
58430         * modules/euidaccess (Depends-on): Likewise.
58431         * modules/fchdir (Depends-on): Likewise.
58432         * modules/isdir (Depends-on): Likewise.
58433         * modules/link (Depends-on): Likewise.
58434         * modules/lstat (Depends-on): Likewise.
58435         * modules/mkdir-p (Depends-on): Likewise.
58436         * modules/modechange (Depends-on): Likewise.
58437         * modules/open (Depends-on): Likewise.
58438         * modules/readlink (Depends-on): Likewise.
58439         * modules/same (Depends-on): Likewise.
58441         stat: fix Solaris 9 bug
58442         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
58443         slash.
58444         * lib/stat.c (rpl_stat): Work around it.
58445         * doc/posix-functions/stat.texi (stat): Update documentation.
58447         stat: new module, for mingw bug
58448         * modules/stat: New file.
58449         * lib/stat.c: Likewise.
58450         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58451         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58452         * modules/sys_stat (Makefile.am): Use them.
58453         * lib/sys_stat.in.h (stat): Declare replacement.
58454         * lib/openat.c (fstatat): Deal with lstat and stat being function
58455         macros.
58456         * modules/openat (Depends-on): Add inline.
58457         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58458         * doc/posix-functions/stat.texi (stat): Likewise.
58459         * modules/stat-tests: New test.
58460         * tests/test-stat.c: Likewise.
58462 2009-09-19  Jim Meyering  <meyering@redhat.com>
58464         syntax-check: detect unnecessary inclusion of canonicalize.h
58465         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
58467 2009-09-19  Eric Blake  <ebb9@byu.net>
58469         canonicalize-lgpl: adjust clients to use correct header
58470         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
58471         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
58472         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
58473         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
58474         * lib/progreloc.c (includes): Likewise.
58476 2009-09-19  Jim Meyering  <meyering@redhat.com>
58478         test-posixtm.c: correct a comment
58479         * tests/test-posixtm.c: Correct first-line comment.
58480         Spotted by Eric Blake.
58482 2009-09-16  Jim Meyering  <meyering@redhat.com>
58484         posixtm-tests: make T const-correct; add a test case
58485         * tests/test-posixtm.c (T): Declare const.
58486         Add a test for -(2^31+1).
58487         Remove useless can-succeed-only-in-2002 test.
58489         posixtm-tests: adjust the sole failing test
58490         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
58491         expected output matches what mktime now produces.  Cross-checked via
58492         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
58494         posixtm: move #ifdef'd tests into a new module
58495         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
58496         * tests/test-posixtm.c: ... this new file.
58497         * modules/posixtm-tests: New module.
58499 2009-09-19  Eric Blake  <ebb9@byu.net>
58501         openat: simplify use of at-func.c
58502         * lib/at-func.c (includes): Include prerequisites here, to
58503         simplify requirements on client files.
58504         * lib/openat-priv.h: Add double-inclusion guard.
58505         * lib/faccessat.c (includes): Simplify.
58506         * lib/fchmodat.c (includes): Likewise.
58507         * lib/fchownat.c (includes): Likewise.
58508         * lib/mkdirat.c (includes): Likewise.
58509         * lib/mkfifoat.c (includes): Likewise.
58510         * lib/symlinkat.c (includes): Likewise.
58512         openat: allow return of fd 0
58513         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
58514         * modules/save-cwd (Depends-on): Replace fcntl-safer with
58515         unistd-safer.
58516         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
58517         <fcntl.h>; this module does not leak fds.
58518         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
58519         must be allowed to return 0, leaving openat_safer to add the
58520         safety.
58521         (openat_permissive): Avoid writing to just-opened fd 2 if
58522         restoring the current directory fails.
58523         * lib/openat-die.c (openat_restore_fail): Add comment.
58524         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
58525         (save_cwd): Guarantee safe fd, but without use of open_safer.
58526         * tests/test-openat.c: New test.
58527         * modules/openat-tests (Files, Makefile.am): Distribute and build
58528         new file.
58530         relocatable-prog-wrapper: fix build
58531         * modules/relocatable-prog-wrapper (Files): Update name of
58532         canonicalize m4 file, broken on 2009-09-17.
58533         Reported by emad hajjar <aleppos@hotmail.com>.
58535 2009-09-19  Bruno Haible  <bruno@clisp.org>
58537         * lib/safe-alloc.h: Use the standard header with GPL copyright.
58538         * lib/safe-alloc.c: Likewise.
58539         Reported by Ian Beckwith <ianb@erislabs.net>.
58541 2009-09-18  Bruno Haible  <bruno@clisp.org>
58543         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
58544         Reported by <erobles@sensacd.com.mx>.
58546 2009-09-17  Eric Blake  <ebb9@byu.net>
58548         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
58549         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
58550         slashes when checking if last component is missing.
58551         * tests/test-canonicalize.c (main): Test this.
58553         canonicalize, canonicalize-lgpl: honor // if distinct from /
58554         * modules/canonicalize (Files): Add double-slash-root.m4.
58555         * modules/canonicalize-lgpl (Files): Likewise.
58556         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
58557         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
58558         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
58559         fallback definition.
58560         (canonicalize_filename_mode): Use it to protect //.
58561         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
58562         (__realpath): Likewise.
58563         * tests/test-canonicalize.c (main): Test this.
58564         * tests/test-canonicalize-lgpl.c (main): Likewise.
58565         * modules/canonicalize-tests (Depends-on): Add same-inode.
58566         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
58568         canonicalize-lgpl: fix glibc bug with trailing slash
58569         * m4/canonicalize-lgpl.m4: Move contents...
58570         * m4/canonicalize.m4: ...here.
58571         (gl_CANONICALIZE_LGPL): Factor realpath check...
58572         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
58573         glibc 2.3.5 bug, fixed 2005-04-27.
58574         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
58575         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
58576         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
58577         * modules/canonicalize-lgpl (Files): Manage file rename.
58578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58579         * modules/stdlib (Makefile.am): Substitute witness.
58580         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
58581         is needed.
58582         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
58583         replacement is required.
58584         * lib/canonicalize.c (canonicalize_file_name): Likewise.
58585         * doc/glibc-functions/canonicalize_file_name.texi
58586         (canonicalize_file_name): Document this.
58587         * doc/posix-functions/realpath.texi (realpath): Likewise.
58589         canonicalize-lgpl: reject non-directory with trailing slash
58590         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
58591         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
58592         catches failures in glibc 2.3.5.
58593         * tests/test-canonicalize.c (main): Likewise.
58595         canonicalize-lgpl: use native realpath if it works
58596         * lib/canonicalize-lgpl.c (realpath): Guard with
58597         FUNC_REALPATH_WORKS.
58598         * lib/stdlib.in.h (realpath): Make declaration optional based on
58599         HAVE_REALPATH.
58600         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
58601         native realpath works.
58602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58603         * modules/stdlib (Makefile.am): Substitute witness.
58605         canonicalize, canonicalize-lgpl: use <stdlib.h>
58606         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
58607         (Include): Mention <stdlib.h>.
58608         (configure.ac): Mention functions we provide.
58609         * modules/canonicalize (configure.ac): Likewise.
58610         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
58611         realpath if canonicalize_file_name is missing.
58612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
58613         * modules/stdlib (Makefile.am): Substitute witnesses.
58614         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
58615         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
58616         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
58617         * NEWS: Document this.
58618         * doc/glibc-functions/canonicalize_file_name.texi
58619         (canonicalize_file_name): Likewise.
58620         * doc/posix-functions/realpath.texi (realpath): Likewise.
58621         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
58623         test-canonicalize: consolidate into single C program
58624         * tests/test-canonicalize.sh: Delete; move setup into...
58625         * tests/test-canonicalize.c (main): ...the program, making it
58626         easier to run in debugger.  Add some tests.
58627         * modules/canonicalize-tests (Files): Remove unused file.
58628         (Depends-on): Add progname.
58629         (configure.ac, Makefile.am): Simplify.
58631         test-canonicalize-lgpl: consolidate into single C program
58632         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
58633         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
58634         easier to run in debugger.  Add some tests.
58635         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
58636         (configure.ac, Makefile.am): Simplify.
58638         canonicalize: avoid resolvepath
58639         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
58640         unnecessary checks.
58641         * lib/canonicalize.c (includes): Simplify.
58642         (canonicalize_file_name): Drop resolvepath implementation.
58643         * modules/canonicalize (Depends-on): Drop filenamecat.
58645         canonicalize: don't lose errno
58646         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
58647         over calls to free.
58649         canonicalize: simplify errno handling
58650         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
58651         assignment.
58653         canonicalize, canonicalize-lgpl: update module dependencies
58654         * modules/canonicalize (Depends-on): Add extensions, lstat,
58655         pathmax, stdlib.
58656         (Files): Drop pathmax.h.
58657         (configure.ac): Adjust macro name.
58658         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
58659         lstat, stdlib, sys_stat.
58660         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
58661         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
58662         extensions.
58663         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
58664         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
58665         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
58666         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
58667         declaration, if available.
58668         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
58669         we can rely on the readlink module.
58670         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
58671         (includes): Use <unistd.h> unconditionally.
58673 2009-09-17  Eric Blake  <ebb9@byu.net>
58675         maint: make Include sections of modules consistent
58676         * modules/alloca: Use only header name; no need to list #include.
58677         * modules/alloca-opt: Likewise.
58678         * modules/arpa_inet: Likewise.
58679         * modules/canon-host: Likewise.
58680         * modules/configmake: Likewise.
58681         * modules/dirent: Likewise.
58682         * modules/eealloc: Likewise.
58683         * modules/environ: Likewise.
58684         * modules/fchdir: Likewise.
58685         * modules/fcntl: Likewise.
58686         * modules/fcntl-h: Likewise.
58687         * modules/gethrxtime: Likewise.
58688         * modules/gettime: Likewise.
58689         * modules/ignore-value: Likewise.
58690         * modules/inet_ntop: Likewise.
58691         * modules/inet_pton: Likewise.
58692         * modules/inttypes: Likewise.
58693         * modules/isnand-nolibm: Likewise.
58694         * modules/isnanf-nolibm: Likewise.
58695         * modules/mbchar: Likewise.
58696         * modules/mbfile: Likewise.
58697         * modules/mbiter: Likewise.
58698         * modules/mbuiter: Likewise.
58699         * modules/netdb: Likewise.
58700         * modules/netinet_in: Likewise.
58701         * modules/nproc: Likewise.
58702         * modules/pagealign_alloc: Likewise.
58703         * modules/poll: Likewise.
58704         * modules/printf-frexp: Likewise.
58705         * modules/pthread: Likewise.
58706         * modules/putenv: Likewise.
58707         * modules/random_r: Likewise.
58708         * modules/relocatable-prog: Likewise.
58709         * modules/search: Likewise.
58710         * modules/select: Likewise.
58711         * modules/selinux-h: Likewise.
58712         * modules/settime: Likewise.
58713         * modules/signal: Likewise.
58714         * modules/size_max: Likewise.
58715         * modules/socklen: Likewise.
58716         * modules/ssize_t: Likewise.
58717         * modules/stdarg: Likewise.
58718         * modules/stdbool: Likewise.
58719         * modules/stddef: Likewise.
58720         * modules/stdint: Likewise.
58721         * modules/stdio: Likewise.
58722         * modules/stdlib: Likewise.
58723         * modules/string: Likewise.
58724         * modules/strings: Likewise.
58725         * modules/sys_file: Likewise.
58726         * modules/sys_ioctl: Likewise.
58727         * modules/sys_select: Likewise.
58728         * modules/sys_socket: Likewise.
58729         * modules/sys_stat: Likewise.
58730         * modules/sys_time: Likewise.
58731         * modules/sys_times: Likewise.
58732         * modules/sys_utsname: Likewise.
58733         * modules/sys_wait: Likewise.
58734         * modules/sysexits: Likewise.
58735         * modules/time: Likewise.
58736         * modules/times: Likewise.
58737         * modules/tmpfile: Likewise.
58738         * modules/trim: Likewise.
58739         * modules/unistd: Likewise.
58740         * modules/wchar: Likewise.
58741         * modules/wctype: Likewise.
58743 2009-09-17  Bruno Haible  <bruno@clisp.org>
58745         Make getdate.y compile on QNX and NetBSD 5 / i386.
58746         * m4/getdate.m4 (gl_GETDATE): Conditionally define
58747         TIME_T_FITS_IN_LONG_INT.
58748         * lib/getdate.y (long_time_t): New type.
58749         (relative_time): Change type of 'seconds' field to long_time_t.
58750         (get_date): Update types of local variables. Check against overflow
58751         during conversion from long_time_t to time_t.
58752         Reported by Matt Kraai <kraai@ftbfs.org>
58753         and Hasso Tepper <hasso@netbsd.org>.
58755 2009-09-17  Bruno Haible  <bruno@clisp.org>
58757         * modules/COPYING: Update copyright years.
58758         * modules/README: Likeiwse.
58759         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
58760         Reported by Ian Beckwith <ianb@erislabs.net>.
58762 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
58764         * users.txt: Update references for gnuit package.
58766 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
58768         * m4/getdelim.m4: Fix typo in copyright line.
58770 2009-09-17  Bruno Haible  <bruno@clisp.org>
58772         * lib/atoll.c: Use the standard header with GPL copyright.
58773         * lib/argz.in.h: Likewise.
58774         * lib/glob.c: Likewise.
58775         * lib/glob-libc.h: Likewise.
58776         * lib/random_r.c: Likewise.
58777         * lib/siglist.h: Likewise.
58778         * lib/strsignal.c: Likewise.
58779         Reported by Ian Beckwith <ianb@erislabs.net>.
58781 2009-09-17  Eric Blake  <ebb9@byu.net>
58783         rmdir: ensure correct dependency order
58784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
58786 2009-09-17  Bruno Haible  <bruno@clisp.org>
58788         Disable assertion that fails on NetBSD 5 / i386.
58789         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
58790         Reported by Sam Steingold <sds@gnu.org>
58791         and Hasso Tepper <hasso@netbsd.org>.
58793 2009-09-16  Eric Blake  <ebb9@byu.net>
58795         unlinkdir: port to mingw
58796         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
58797         on which no one can unlink a directory.
58799         stdlib: sort witness names
58800         * modules/stdlib (Makefile.am): Sort replacements.
58801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58802         * lib/stdlib.in.h: Likewise.
58804         parse-duration-tests: avoid link failure
58805         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
58806         LIBINTL.
58807         Reported by Tom G. Christensen.
58809         openat-tests: ensure unlinkat behaves like rmdir
58810         * tests/test-rmdir.c (main): Factor guts...
58811         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
58812         * modules/rmdir-tests (Files): Ship new file.
58813         * modules/openat-tests: New test.
58814         * tests/test-unlinkat.c: Likewise.
58816         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
58817         * modules/rmdir-errno (Status, Notice): Now obsolete.
58819         rmdir: work around cygwin 1.5.x and mingw bugs
58820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
58821         * lib/rmdir.c (rmdir): Work around it.
58822         * modules/rmdir (Status, Notice): No longer obsolete.
58823         (Files): Add dos.m4.
58824         (Depends-on): Add unistd.
58825         (configure.ac): Set witnesses.
58826         (License): Relax to LGPLv2+.
58827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
58828         * modules/unistd (Makefile.am): Substitute witnesses.
58829         * lib/unistd.in.h (rmdir): Declare replacement.
58830         * doc/posix-functions/rmdir.texi (rmdir): Document this.
58831         * modules/rmdir-tests: New tests.
58832         * tests/test-rmdir.c: Likewise.
58834 2009-09-15  Eric Blake  <ebb9@byu.net>
58836         fchdir: improve use of replacement functions
58837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
58838         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
58839         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
58840         REPLACE_CLOSEDIR.
58841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
58842         * modules/sys_stat (Makefile.am): Substitute correct witness.
58843         * modules/dirent (Makefile.am): Likewise.
58844         * modules/unistd (Makefile.am): Likewise.
58845         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
58846         * lib/unistd.in.h (dup): Likewise.
58847         * lib/sys_stat.in.h (fstat): Likewise.
58849         maint: ignore gnulib-tool temp files
58850         * .gitignore: Ignore files created during gnulib-tool --test.
58852 2009-09-13  Jim Meyering  <meyering@redhat.com>
58854         posixtm: don't reject a time that specify "60" as the number of seconds
58855         * lib/posixtm.c (posixtime): The code to reject invalid dates
58856         would also reject a time specified with the .60 suffix.
58857         But POSIX allows that, in order to accommodate leap seconds.
58858         So don't reject it.
58859         (main): Adjust tests accordingly.
58860         * modules/posixtm (Depends-on): Add stpcpy.
58862 2009-09-11  Jim Meyering  <meyering@redhat.com>
58864         announce-gen: include [$release_type] in emitted Subject:
58865         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
58866         e.g., [stable] in the emitted Subject: line.
58868 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58870         Remove obsolete macros from several modules.
58871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
58872         obsolete Autoconf macros with their modern counterparts.
58873         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
58874         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
58875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
58876         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58877         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
58878         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58880         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58881         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58882         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
58883         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
58884         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
58885         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
58886         * m4/sockets.m4 (gl_SOCKETS): Likewise.
58887         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
58888         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
58889         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58890         * m4/time_r.m4 (gl_TIME_R): Likewise.
58891         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58892         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
58893         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58895         Fix copyright header in build-aux scripts.
58896         * build-aux/git-version-gen: Fix copyright header to match GPLv3
58897         recommendation.
58898         * build-aux/ncftpput-ftp: Likewise.
58899         * build-aux/update-copyright: Likewise.
58901 2009-09-09  Eric Blake  <ebb9@byu.net>
58903         test-link: allow Linux choice of errno
58904         * tests/test-link.c (main): Relax test for alternate error.
58906         strndup: fix improper m4 caching
58907         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
58908         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
58909         (gl_PREREQ_STRNDUP): Delete.
58910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
58911         * modules/string (Makefile.am): Substitute it.
58912         * lib/string.in.h (strndup): Modernize prototype.
58914         getcwd: port to mingw
58915         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
58916         different from the POSIX assumptions made throughout the getcwd
58917         module; fortunately, the mingw getcwd does not need replacement.
58918         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
58919         * modules/getcwd-tests: New test.
58920         * tests/test-getcwd.c: Likewise.
58922         link: fix platform bugs
58923         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
58924         * lib/link.c (link): Work around them.  Fix related mingw bug.
58925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
58926         * modules/unistd (Makefile.am): Substitute it.
58927         * lib/unistd.in.h (link): Declare replacement.
58928         * doc/posix-functions/link.texi (link): Document this.
58929         * modules/link (Depends-on): Add strdup-posix, sys_stat.
58931         test-link: consolidate into single C program, test more cases
58932         * tests/test-link.sh: Delete.
58933         * tests/test-link.c: Test more error conditions.  Exposes bugs on
58934         at least Cygwin and Solaris.
58935         * modules/link-tests (Files): Remove unused file.
58936         (Depends-on): Add errno, sys_stat.
58937         (Makefile.am): Simplify.
58939 2009-09-08  Bruno Haible  <bruno@clisp.org>
58941         Work around towlower, towupper bug on mingw.
58942         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
58943         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
58944         * doc/posix-functions/towlower.texi: Mention the mingw bug.
58945         * doc/posix-functions/towupper.texi: Likewise.
58946         Reported by Eric Blake.
58948 2009-09-08  Jim Meyering  <meyering@redhat.com>
58950         build: don't try to run autoheader if we don't use it
58951         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
58952         is not used in configure.ac.
58954 2009-09-08  Eric Blake  <ebb9@byu.net>
58956         euidaccess: fix compilation error
58957         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
58959         rawmemchr: relax license
58960         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
58961         okay.
58962         Reported by Jim Meyering.
58964         mkfifoat: new module
58965         * modules/mkfifoat: New file.
58966         * lib/mkfifoat.c: Likewise.
58967         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
58968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58969         * modules/sys_stat (Makefile.am): Use them.
58970         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
58971         * MODULES.html.sh (File system functions): Mention module.
58972         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
58973         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
58974         * modules/mkfifoat-tests: New test.
58975         * tests/test-mkfifoat.c: Likewise.
58977         strchrnul: relax license
58978         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
58979         okay.
58980         Reported by Jim Meyering.
58982 2009-09-08  Eric Blake  <ebb9@byu.net>
58984         fstatat: fix compilation on Solaris
58985         * lib/fstatat.c (includes): Add fcntl.h.
58986         Reported by Pádraig Brady.
58988 2009-09-07  Eric Blake  <ebb9@byu.net>
58990         rename: modernize replacement
58991         * modules/rename (Depends-on): Add stdio.
58992         (configure.ac): Declare witness.
58993         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
58994         stdio take care of replacement.
58995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58996         * modules/stdio (Makefile.am): Substitute them.
58997         * lib/stdio.in.h (rename): Declare replacement.
58998         * lib/rename.c (includes): Allow cross-compilation to non-windows
58999         machines.
59000         * doc/posix-functions/rename.texi (rename): Improve
59001         documentation.
59003         stdio: sort witness names
59004         * modules/stdio (Makefile.am): Sort replacements.
59005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59006         * lib/stdio.in.h: Likewise.
59008         getcwd: minor cleanups
59009         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
59010         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
59012         openat: provide more convenience names
59013         * modules/faccessat (configure.ac): Add C witness.
59014         * lib/unistd.in.h (readlinkat): Fix typo.
59015         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
59016         convenience wrappers.
59017         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
59018         wrappers in syntax checks.
59020 2009-09-06  Eric Blake  <ebb9@byu.net>
59022         doc: fix comments in recent patches
59023         * lib/faccessat.c: Mention correct function.
59024         * lib/fchmodat.c: Likewise.
59025         * lib/fchownat.c: Likewise.
59026         * lib/symlinkat.c: Likewise.
59027         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
59028         constants.
59030         faccessat, symlinkat: continue cleanup of previous patch
59031         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
59032         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
59033         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
59034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
59035         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
59036         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
59037         set.
59039 2009-09-06  Bruno Haible  <bruno@clisp.org>
59041         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
59042         (fstatat): Declare if GNULIB_FSTATAT is set.
59043         (mkdirat): Declare if GNULIB_MKDIRAT is set.
59044         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
59045         (unlinkat): Declare if GNULIB_UNLINKAT is set.
59046         * modules/fcntl-h (Files): Remove m4/openat.m4.
59047         * modules/sys_stat (Files): Remove m4/openat.m4.
59048         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
59049         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
59050         * modules/unistd (Files): Remove m4/openat.m4.
59051         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
59052         GNULIB_OPENAT.
59053         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
59054         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
59055         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
59056         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
59057         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
59058         gl_OPENAT_DEFAULTS.
59059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
59060         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
59061         Don't require gl_OPENAT_DEFAULTS.
59062         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
59063         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
59064         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
59065         (gl_OPENAT_DEFAULTS): Remove macro.
59067 2009-09-06  Bruno Haible  <bruno@clisp.org>
59069         * modules/openat (configure.ac): Remove unneeded witness.
59071 2009-09-06  Bruno Haible  <bruno@clisp.org>
59073         Set errno to ENOSYS when a function is entirely unsupported.
59074         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
59075         EOPNOTSUPP.
59076         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
59077         * modules/chown (Depends-on): Remove errno.
59079 2009-09-06  Bruno Haible  <bruno@clisp.org>
59081         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
59083 2009-09-06  Bruno Haible  <bruno@clisp.org>
59085         * lib/sys_stat.in.h: Fix preprocessor command indentation.
59087 2009-09-06  Ben Pfaff  <blp@gnu.org>
59088             Bruno Haible  <bruno@clisp.org>
59090         Work around a glibc bug in strtok_r.
59091         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
59092         Undefine if UNDEFINE_STRTOK_R is set.
59093         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
59094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59095         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
59096         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
59097         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
59098         UNDEFINE_STRTOK_R.
59099         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
59101 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
59103         exclude: minor fix
59104         * lib/exclude.c: Include wctype.h
59106 2009-09-06  Akim Demaille  <demaille@gostai.com>
59108         bootstrap: improve error message
59109         * build-aux/bootstrap (find_tool): Upon failure, report the list
59110         of candidates.
59111         Honor the initial value of the envvar.
59113 2009-09-05  Eric Blake  <ebb9@byu.net>
59115         symlinkat: new module
59116         * modules/symlinkat: New file.
59117         * lib/symlinkat.c: Likewise.
59118         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
59119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59120         * modules/unistd (Makefile.am): Use them.
59121         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
59122         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
59123         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
59124         * MODULES.html.sh (File system functions): Mention module.
59125         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59126         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59127         * modules/symlinkat-tests: New test.
59128         * tests/test-symlinkat.c: Likewise.
59130         test-openat-safer: add more checks
59131         * tests/test-openat-safer.c (main): Check more code paths.
59133 2009-09-05  Jim Meyering  <meyering@redhat.com>
59135         syntax-check: detect unnecessary inclusion of openat.h
59136         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
59138 2009-09-05  Bruno Haible  <bruno@clisp.org>
59140         Support towlower, towupper.
59141         * doc/posix-functions/towlower.texi: Mention module wctype.
59142         * doc/posix-functions/towupper.texi: Likewise.
59143         * lib/wctype.in.h (towlower, towupper): New functions.
59144         * tests/test-wctype.c: Include stdio.h, stdlib.h.
59145         (ASSERT): New macro.
59146         (e): New variable.
59147         (main): Test also towlower, towupper. Test WEOF argument.
59148         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
59150 2009-09-05  Bruno Haible  <bruno@clisp.org>
59152         Fix conversion behaviour when the input is invalid.
59153         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
59154         mark occurring in first pass of indirect conversion.
59155         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
59156         input.
59157         Found by clang's static analyzer.
59159 2009-09-05  Bruno Haible  <bruno@clisp.org>
59161         * tests/test-striconveh.c (main): Test indirect conversion on platforms
59162         where direct conversion is possible.
59164 2009-09-04  Eric Blake  <ebb9@byu.net>
59166         openat: fail with ENOENT on empty name
59167         * lib/openat-proc.c (openat_proc_name): Special-case the empty
59168         buffer.
59170         link-follow: fix logic bug in prior patch
59171         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
59172         reversed sense of yes and no in prior patch.  Avoid confusing
59173         compilation failure with desired semantics.
59175         link-follow: accommodate mingw and cross-compilation
59176         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
59177         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
59178         cross-compilation results to -1, to make linkat easier to
59179         implement when cross-compiling.  Trivially support mingw.
59180         * modules/link-follow (configure.ac): Call new name.
59181         * NEWS: Mention this.
59183 2009-09-03  Eric Blake  <ebb9@byu.net>
59185         faccessat: compile replacement
59186         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
59187         needed.
59189         fts: fix compilation error
59190         * lib/fts.c (includes): Re-add "openat.h", for
59191         openat_needs_fchdir.
59193         faccessat: new module
59194         * modules/faccessat: New file.
59195         * lib/faccessat.c: Likewise.
59196         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
59197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59198         * modules/unistd (Makefile.am): Use it.
59199         * lib/unistd.in.h (faccessat): Declare it.
59200         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
59201         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
59202         * MODULES.html.sh (File system functions): Mention it.
59203         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
59204         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
59206         euidaccess: prefer POSIX over non-standard implementation
59207         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
59208         * lib/euidaccess.c (euidaccess): Use it if available.
59210         openat: make template easier to use
59211         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
59212         AT_FUNC_F2 to be undefined.
59213         (VALIDATE_FLAG): New macro; use it to reject bad flags.
59214         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
59215         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
59216         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
59217         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
59218         Likewise.
59219         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
59220         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
59221         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
59222         Likewise.
59224         openat: declare in POSIX headers
59225         * NEWS: Mention this.
59226         * modules/openat (configure.ac): Declare witnesses.
59227         (Depends-on): Add fcntl-h, sys_stat, unistd.
59228         (Include): Mention correct headers.
59229         * modules/fcntl-h (Depends-on): Add link-warning.
59230         (Files): Add openat.m4.
59231         (Makefile.am): Substitute witnesses.
59232         * modules/sys_stat (Files, Makefile.am): Likewise.
59233         * modules/unistd (Files, Makefile.am): Likewise.
59234         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
59235         (gl_OPENAT_DEFAULTS): New macro.
59236         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
59237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
59238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
59239         (SYS_STAT_H): Remove unused variable.
59240         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
59241         * lib/fcntl--.h (includes): Remove unneeded header.
59242         * lib/openat-safer.c (includes): Likewise.
59243         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
59244         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
59245         appropriate headers.
59246         (__OPENAT_PREFIX): Delete.
59247         * lib/fcntl.in.h (openat): Provide declaration.
59248         (AT_FDCWD): Fix Solaris bug.
59249         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
59250         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
59251         * lib/fchmodat.c (includes):  Adjust to find declaration.
59252         * lib/fchownat.c (includes): Likewise.
59253         * lib/mkdirat.c (includes): Likewise.
59254         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
59255         still visible.
59257 2009-09-02  Eric Blake  <ebb9@byu.net>
59259         errno: use consistently
59260         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
59261         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
59262         * lib/canonicalize.c (ELOOP): Likewise.
59263         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
59264         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
59265         * lib/lchown.c (EOPNOTSUPP): Likewise.
59266         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
59267         * lib/savewd.c (ESTALE): Likewise.
59268         * lib/settime.c (ENOSYS): Likewise.
59269         * lib/utimens.c (ENOSYS): Likewise.
59270         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
59271         * lib/chdir-safer.c (ELOOP): Likewise.
59272         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
59273         * modules/c-stack (Depends-on): Add errno.
59274         * modules/canonicalize (Depends-on): Likewise.
59275         * modules/chdir-safer (Depends-on): Likewise.
59276         * modules/fdopendir (Depends-on): Likewise.
59277         * modules/inet_ntop (Depends-on): Likewise.
59278         * modules/inet_pton (Depends-on): Likewise.
59279         * modules/lchown (Depends-on): Likewise.
59280         * modules/openat (Depends-on): Likewise.
59281         * modules/savewd (Depends-on): Likewise.
59282         * modules/settime (Depends-on): Likewise.
59283         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
59285         fts: avoid leaking fds
59286         * modules/fts (Depends-on): Add cloexec.
59287         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
59288         flag.
59290         fts: make directory fds more robust
59291         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
59292         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
59294         backupfile, chdir-long, fts, savedir: make safer
59295         * lib/backupfile.c (includes): Use "dirent--.h", since
59296         numbered_backup can write to stderr during readdir.
59297         * lib/savedir.c (includes): Likewise.
59298         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
59299         emulation can write to stderr on failure.
59300         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
59301         * lib/getcwd.c: Document why opendir_safer is unused.
59302         * lib/glob.c: Likewise.
59303         * lib/scandir.c: Likewise.
59304         * lib/openat-proc.c: Likewise, for open_safer.
59305         * modules/backupfile (Depends-on): Add dirent-safer.
59306         * modules/savedir (Depends-on): Likewise.
59307         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
59308         * modules/chdir-long (Depends-on): Add openat-safer.
59310         openat-safer: new module
59311         * modules/openat-safer: New file.
59312         * lib/openat-safer.c: Likewise.
59313         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
59314         * lib/fcntl-safer.h (openat_safer): Declare.
59315         * lib/fcntl--.h (openat): Override.
59316         * MODULES.html.sh (File descriptor based I/O): Mention it.
59317         * lib/openat.h: Add double-inclusion guards.
59318         * lib/openat.c (includes): Only include "fcntl-safer.h", not
59319         "fcntl--.h", so we can implement openat.
59320         * modules/openat-safer-tests: New test.
59321         * tests/test-openat-safer.c: New file.
59323         dirent-safer: new module
59324         * modules/dirent-safer: New file.
59325         * lib/dirent--.h: Likewise.
59326         * lib/dirent-safer.h: Likewise.
59327         * lib/opendir-safer.c: Likewise.
59328         * m4/dirent-safer.m4: Likewise.
59329         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
59330         * modules/dirent-safer-tests: New test.
59331         * tests/test-dirent-safer.c: New file.
59332         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
59334         fdopendir: optimize on mingw
59335         * lib/unistd.in.h (_gl_directory_name): New prototype.
59336         * lib/fchdir.c (_gl_directory_name): Implement it.
59337         (fchdir): Use it to simplify implementation.
59338         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
59339         fchdir, when available, to avoid calling [f]chdir().
59341         fdopendir: split into its own module
59342         * lib/openat.c (fdopendir): Move...
59343         * lib/fdopendir.c: ...into new file.
59344         * modules/fdopendir: New module.
59345         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
59346         * modules/openat (Depends-on): Add fdopendir.
59347         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
59348         fdopendir here.
59349         * modules/savedir (Depends-on): Only need fdopendir, not full
59350         openat.
59351         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
59352         * lib/openat.h (fdopendir): Drop prototype.
59353         * lib/dirent.in.h (fdopendir): Provide prototype.
59354         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
59355         * modules/dirent (Makefile.am): Substitute them.
59356         * MODULES.html.sh (File system functions): Mention it.
59357         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
59358         * modules/fdopendir-tests: New file.
59359         * tests/test-fdopendir.c: Likewise.
59361         fchdir: use more consistent macro convention
59362         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
59363         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
59364         REPLACE_FCHDIR, rather than relying on config.h macros.
59365         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
59366         inside a single make-time REPLACE_FCHDIR block, rather than using
59367         the config.h FCHDIR_REPLACEMENT.
59368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
59369         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
59370         Manage fstat replacement.
59371         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
59372         REPLACE_FCHDIR.
59373         * modules/sys_stat (Files): Add m4/unistd_h.m4.
59374         (Makefile.am): Substitute REPLACE_FCHDIR.
59375         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
59376         FCHDIR_REPLACEMENT.
59377         * lib/dup-safer.c (dup_safer): Likewise.
59378         * lib/dup2.c (rpl_dup2): Likewise.
59379         * lib/dup3.c (rpl_dup3): Likewise.
59380         * lib/open.c (rpl_open): Likewise.
59382         fchdir: simplify error handling, and support dup3
59383         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
59384         stdbool, malloc-posix, realloc-posix.
59385         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
59386         (ensure_dirs_slot): Return false on allocation failure.
59387         (rpl_dup2): Delete.
59388         (_gl_register_dup): New function.
59389         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
59390         (_gl_register_fd): Close fd on allocation failure.
59391         * lib/fcntl.in.h (_gl_register_fd): Update signature.
59392         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
59393         prototype.
59394         (rpl_dup2_fchdir): Delete prototype.
59395         * lib/open.c (open): Update caller.
59396         * lib/dup2.c (dup2): Track fchdir metadata.
59397         * lib/dup3.c (dup3): Likewise.
59398         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
59399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
59401 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59403         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
59404         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
59405         don't pass arguments to AC_OUTPUT.
59407 2009-09-02  Bruno Haible  <bruno@clisp.org>
59409         * modules/mkdtemp (License): Relicense under LGPLv2+.
59410         Reported by Paolo Bonzini.
59412 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59414         Replace uses of obsolete autoconf macros in Jim's modules.
59415         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
59416         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
59417         can evoke a warning from autoconf when run with -Wobsolete
59418         enabled.  They were declared obsolete for good reasons (see
59419         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
59420         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
59421         should not continue using the deprecated macros.
59422         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
59423         obsolete Autoconf macros with modern counterparts.
59424         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59425         * m4/dos.m4 (gl_AC_DOS): Likewise.
59426         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
59427         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59428         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
59429         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
59430         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
59431         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
59432         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
59433         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
59434         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59435         Likewise.
59436         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59437         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59438         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
59439         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
59440         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59441         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59443 2009-09-01  Eric Blake  <ebb9@byu.net>
59445         fchdir: fix off-by-one bug in previous patch
59446         * lib/fchdir.c (rpl_fstat): Use correct bounds.
59447         (_gl_unregister_fd): Delete useless if.
59449 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
59451         maint.mk: sort the list of syntax-check rules
59452         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
59453         easier to get a sense of progress when the rules are run sequentially
59454         and take a long time.
59456 2009-09-01  Simon Josefsson  <simon@josefsson.org>
59458         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
59459         * modules/netinet_in: Likewise.
59460         * modules/sys_file: Likewise.
59461         * modules/sys_ioctl: Likewise.
59462         * modules/sys_select: Likewise.
59463         * modules/sys_socket: Likewise.
59464         * modules/sys_stat: Likewise.
59465         * modules/sys_time: Likewise.
59466         * modules/sys_times: Likewise.
59467         * modules/sys_utsname: Likewise.
59468         * modules/sys_wait: Likewise.
59470 2009-09-01  Jim Meyering  <meyering@redhat.com>
59472         fts: help ensure that return values are not ignored
59473         * lib/fts_.h (__GNUC_PREREQ): Define.
59474         (__attribute_warn_unused_result__): Define.
59475         (fts_children, fts_close, fts_open, fts_read): Declare with
59476         __attribute_warn_unused_result__.
59478         fts: fts_close now fails also when closing a dir file descriptor fails
59479         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
59480         and propagate to caller, along with errno.
59482         announce-gen: correct formatting in --help output
59483         * build-aux/announce-gen (usage): Move the one-line description in
59484         --help output "up", to where it belongs, just after Usage:.
59486 2009-08-31  Eric Blake  <ebb9@byu.net>
59488         fchdir: port to mingw
59489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
59490         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
59491         opened, then use a substitute.
59492         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
59493         replacement.
59494         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
59495         (_gl_register_fd): No need to check stat if open already filters
59496         all directories.
59497         (fchdir): Fix error condition to match POSIX.
59498         * modules/fchdir (Depends-on): Add sys_stat.
59499         * doc/posix-functions/open.texi (open): Document the limitation.
59500         * modules/fchdir-tests: New file.
59501         * tests/test-fchdir.c: Likewise.
59503         canonicalize: allow cross-testing from cygwin to mingw
59504         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
59505         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
59506         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
59507         Likewise.
59508         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
59509         target does not support symlinks.
59510         * tests/test-canonicalize-lgpl.sh: Likewise.
59512         chown: avoid compilation warning on mingw
59513         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
59514         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
59515         mingw.
59516         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
59517         * modules/chown (Depends-on): Add errno.
59519 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59521         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
59522         command.
59524 2009-08-31  Jim Meyering  <meyering@redhat.com>
59526         canonicalize: remove useless initialization
59527         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
59528         initialization of local, "end".
59530 2009-08-30  Bruno Haible  <bruno@clisp.org>
59532         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
59533         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
59534         ENOSYS.
59536 2009-08-30  Bruno Haible  <bruno@clisp.org>
59538         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
59539         /usr/xpg4/bin/tr when it exists.
59540         * tests/test-pipe-filter-gi1.sh: Likewise.
59542 2009-08-30  Bruno Haible  <bruno@clisp.org>
59544         Work around deficient /usr/bin/id program on Solaris.
59545         * tests/test-file-has-acl.sh (ID): New variable.
59546         * tests/test-set-mode-acl.sh (ID): Likewise.
59547         * tests/test-copy-acl.sh (ID): Likewise.
59548         * tests/test-copy-file.sh (ID): Likewise.
59550 2009-08-30  Bruno Haible  <bruno@clisp.org>
59552         New module 'xstriconveh'.
59553         * lib/xstriconveh.h: New file.
59554         * lib/xstriconveh.c: New file.
59555         * modules/xstriconveh: New file.
59557 2009-08-30  Bruno Haible  <bruno@clisp.org>
59559         Make it easier to use mem_cd_iconveh.
59560         * lib/striconveh.h (iconveh_t): New type.
59561         (iconveh_open, iconveh_close): New declarations.
59562         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
59563         with a single 'const iconveh_t *' argument.
59564         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
59565         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
59566         with a single 'const iconveh_t *' argument.
59567         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
59568         * tests/test-striconveh.c (main): Update.
59569         * NEWS: Mention the change.
59571 2009-08-30  Bruno Haible  <bruno@clisp.org>
59573         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
59574         problem.
59576 2009-08-30  Bruno Haible  <bruno@clisp.org>
59578         Work around iconv_open problem on Solaris.
59579         * lib/iconv_open-solaris.gperf: New file.
59580         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
59581         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
59582         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
59583         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
59584         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
59585         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
59587 2009-08-29  Jim Meyering  <meyering@redhat.com>
59589         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
59590         * top/maint.mk (cvs-check): Remove target; it was just an alias
59591         to the better-named vc-diff-check.
59592         (maintainer-distcheck): Remove rule.  It was used only from
59593         the (alpha/beta/major) target, and all of its commands but one
59594         were coreutils-specific.
59595         (vc-dist): Remove rule.
59596         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
59597         Run vc-diff-check, not vc-dist.
59598         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
59600 2009-08-27  Bruno Haible  <bruno@clisp.org>
59602         * tests/test-bitrotate.c (main): Remove test that uses a shift count
59603         of 0.
59605 2009-08-27  Bruno Haible  <bruno@clisp.org>
59607         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
59608         compilers.
59609         * doc/func.texi: Document the SunPRO C bug.
59611 2009-08-27  Bruno Haible  <bruno@clisp.org>
59613         Fix link error on Solaris.
59614         * tests/test-parse-duration.c (xstrdup): Remove function.
59616 2009-08-26  Pádraig Brady  <P@draigbrady.com>
59618         ignore-value: handle pointer types, too
59619         * lib/ignore-value.h (__attribute__): Remove definition.
59620         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
59621         of a more concise and more-often effective "(void) i" statement.
59622         (ignore_ptr): New function to suppress warnings from functions that
59623         return pointers, and to make it explicit that one function doesn't
59624         handle all cases.
59626 2009-08-25  Bruno Haible  <bruno@clisp.org>
59628         dup2: work around a Linux bug.
59629         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
59630         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
59631         * doc/posix-functions/dup2.texi: Mention the Linux bug.
59632         Reported by Simon Josefsson.
59634 2009-08-25  Jim Meyering  <meyering@redhat.com>
59636         libguestfs uses gnulib
59637         * users.txt: Add libguestfs.
59639 2009-08-24  Eric Blake  <ebb9@byu.net>
59641         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
59642         * lib/pipe2.c (includes): Add binary-io.h.
59643         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
59645 2009-08-24  Bruno Haible  <bruno@clisp.org>
59647         Tolerate declared but missing accept4 syscall.
59648         * lib/accept4.c (accept4): Invoke original accept4 function first, if
59649         available.
59650         * lib/sys_socket.in.h (accept4): If the function is already present,
59651         override it.
59652         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
59653         * modules/accept4 (Makefile.am): Compile accept4.c always.
59654         Reported by Paolo Bonzini and Eric Blake.
59656 2009-08-23  Bruno Haible  <bruno@clisp.org>
59658         New module 'accept4'.
59659         * lib/sys_socket.in.h (accept4): New declaration.
59660         * lib/accept4.c: New file.
59661         * m4/accept4.m4: New file.
59662         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59663         GNULIB_ACCEPT4, HAVE_ACCEPT4.
59664         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
59665         HAVE_ACCEPT4.
59666         * modules/accept4: New file.
59667         * doc/glibc-functions/accept4.texi: Mention the new module.
59669 2009-08-24  Jim Meyering  <meyering@redhat.com>
59671         progname: also set global program_invocation_name, when possible
59672         Before this change, a libtool-enabled program that calls glibc's
59673         error function would report the program name as
59674         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
59675         * modules/progname (configure.ac): Check for a declaration of
59676         program_invocation_name.
59677         * lib/progname.c:  Include <errno.h>.
59678         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
59679         Set program_invocation_name.
59681 2009-08-23  Bruno Haible  <bruno@clisp.org>
59683         * lib/dup3.c: Include <string.h>.
59685 2009-08-23  Bruno Haible  <bruno@clisp.org>
59687         * lib/dup3.c (dup3): Test only once whether the system actually exists.
59688         * lib/pipe2.c (pipe2): Likewise.
59689         Suggested by Eric Blake.
59691 2009-08-23  Bruno Haible  <bruno@clisp.org>
59693         Tolerate declared but missing dup3 syscall.
59694         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
59695         * lib/unistd.in.h (dup3): If the function is already present,
59696         override it.
59697         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
59698         * modules/dup3 (Makefile.am): Compile dup3.c always.
59699         Reported by Paolo Bonzini.
59701 2009-08-23  Bruno Haible  <bruno@clisp.org>
59703         Tolerate declared but missing pipe2 syscall.
59704         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
59705         available.
59706         * lib/unistd.in.h (pipe2): If the function is already present,
59707         override it.
59708         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
59709         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
59710         Reported by Paolo Bonzini.
59712 2009-08-23  Bruno Haible  <bruno@clisp.org>
59714         * lib/pipe2.c (pipe2): Move #ifs inside function.
59716 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59718         quotearg: document limitations of quote_these_too
59719         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
59720         those limitations are created.
59721         * lib/quotearg.h (set_char_quoting): Document that digits and
59722         letters that are special after backslash are not permitted.
59723         (quotearg_char): Cross-reference set_char_quoting documentation.
59725 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
59727         quotearg: implement custom_quoting_style
59728         * lib/quotearg.c: (struct quoting_options): Add left_quote and
59729         right_quote fields.
59730         (set_custom_quoting): New public function.
59731         (quotearg_buffer_restyled): Add left_quote and right_quote
59732         arguments, handle them very much like locale quoting, and update
59733         all uses.
59734         (quotearg_n_custom): New public function.
59735         (quotearg_n_custom_mem): New public function.
59736         (quotearg_custom): New public function.
59737         (quotearg_custom_mem): New public function.
59738         * lib/quotearg.h: Prototype and document new public functions.
59739         (enum quoting_style): For escape_quoting_style and
59740         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
59741         ignored even though they're otherwise like c_quoting_style.
59742         Add custom_quoting_style member and document with comparison to
59743         clocale_quoting_style.
59744         * tests/test-quotearg.c (custom_quotes): New array.
59745         (custom_results): New array.
59746         (main): Extend to test custom quoting.
59748 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59750         quotearg: fix right quote escaping when it's in quote_these_too
59751         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
59752         quote, be sure to prepend only one backslash.
59753         * tests/test-quotearg.c (use_quote_double_quotes): New function.
59754         (main): Test it.
59756 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59758         quotearg-tests: test escaping of embedded locale quotes
59759         * tests/test-quotearg.c (struct result_strings): Add member for
59760         new input.
59761         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
59762         (inputs): Add new input.
59763         (results_g): Add expected results.
59764         (flag_results): Likewise.
59765         (locale_results): Likewise.
59766         (compare_strings): Check those.
59768 2009-08-23  Bruno Haible  <bruno@clisp.org>
59770         Tests for module 'dup3'.
59771         * modules/dup3-tests: New file.
59772         * tests/test-dup3.c: New file.
59774         New module 'dup3'.
59775         * lib/unistd.in.h (dup3): New declaration.
59776         * lib/dup3.c: New file.
59777         * m4/dup3.m4: New file.
59778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
59779         HAVE_DUP3.
59780         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
59781         * modules/dup3: New file.
59782         * doc/glibc-functions/dup3.texi: Mention the new module.
59784 2009-08-23  Bruno Haible  <bruno@clisp.org>
59786         Tweak the dup2 test.
59787         * tests/test-dup2.c (main): Create the test file empty. Verify that an
59788         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
59789         the test file is still empty. Fix argument order of lseek.
59791 2009-08-23  Bruno Haible  <bruno@clisp.org>
59793         Avoid test link errors when the modules getopt-gnu, gettext are used.
59794         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
59795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59797 2009-08-23  Bruno Haible  <bruno@clisp.org>
59799         Fix getdtablesize() on mingw.
59800         * lib/getdtablesize.c (getdtablesize): Implement differently.
59801         * lib/unistd.in.h (getdtablesize): Improve comment.
59803 2009-08-23  Bruno Haible  <bruno@clisp.org>
59805         New module 'mkostemp'.
59806         Based on Ulrich Drepper's 2007-08-10 change in glibc.
59807         * lib/stdlib.in.h (mksotemp): New declaration.
59808         * lib/mkostemp.c: New file, from glibc with modifications.
59809         * lib/tempname.h (GT_FILE): Remove outdated comment.
59810         (gen_tempname): Add flags argument.
59811         * lib/tempname.c (__GT_BIGFILE): Remove macro.
59812         (__GT_FILE): Map to 1.
59813         (small_open, large_open): Remove macros.
59814         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
59815         * lib/mkstemp.c (mkstemp): Update.
59816         * lib/mkdtemp.c (mkdtemp): Likewise.
59817         * m4/mkostemp.m4: New file.
59818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
59819         HAVE_MKOSTEMP.
59820         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
59821         HAVE_MKOSTEMP.
59822         * modules/mkostemp: New file, based on modules/mkstemp.
59823         * doc/glibc-functions/mkostemp.texi: Mention the new module.
59824         * NEWS: Mention the change.
59826 2009-08-23  Bruno Haible  <bruno@clisp.org>
59828         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
59829         Reported by Eric Blake.
59831 2009-08-23  Bruno Haible  <bruno@clisp.org>
59833         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
59834         Reported by Eric Blake.
59836 2009-08-23  Bruno Haible  <bruno@clisp.org>
59838         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
59839         * modules/pipe2 (Depends-on): Likewise.
59841 2009-08-23  Eric Blake  <ebb9@byu.net>
59843         fcntl-h: add O_TTY_INIT support
59844         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
59845         * tests/test-fcntl-h.c (o): Test it.
59846         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59848         fcntl-h: rename from fcntl, in preparation for fcntl(2)
59849         * modules/fcntl: Move <fcntl.h> header replacement...
59850         * modules/fcntl-h: ...to new name, so as not to collide with
59851         like-named function.
59852         * tests/test-fcntl.c: Rename...
59853         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
59854         * modules/fcntl-tests: Rename...
59855         * modules/fcntl-h-tests: ...to this.  Update test file name.
59856         * modules/chdir-long (Depends-on): Update clients.
59857         * modules/chdir-safer (Depends-on): Likewise.
59858         * modules/fcntl-safer (Depends-on): Likewise.
59859         * modules/fts (Depends-on): Likewise.
59860         * modules/mkancesdirs (Depends-on): Likewise.
59861         * modules/mkdir-p (Depends-on): Likewise.
59862         * modules/open (Depends-on): Likewise.
59863         * modules/savewd (Depends-on): Likewise.
59864         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
59865         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59867 2009-08-22  Bruno Haible  <bruno@clisp.org>
59869         * modules/binary-io (License): Relicense under LGPL.
59870         * modules/pipe2 (License): Likewise.
59872 2009-08-22  Bruno Haible  <bruno@clisp.org>
59874         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
59875         return value.
59876         * lib/pipe-filter-gi.c (filter_init): Likewise.
59877         Reported by Eric Blake.
59879 2009-08-22  Bruno Haible  <bruno@clisp.org>
59881         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
59882         * modules/pipe (Depends-on): Add pipe2.
59884 2009-08-22  Bruno Haible  <bruno@clisp.org>
59886         Tests for module 'pipe2'.
59887         * modules/pipe2-tests: New file.
59888         * tests/test-pipe2.c: New file.
59890         New module 'pipe2'.
59891         * lib/unistd.in.h (pipe2): New declaration.
59892         * lib/pipe2.c: New file.
59893         * m4/pipe2.m4: New file.
59894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
59895         HAVE_PIPE2.
59896         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
59897         * modules/pipe2: New file.
59898         * doc/glibc-functions/pipe2.texi: Mention the new module.
59900 2009-08-22  Bruno Haible  <bruno@clisp.org>
59902         Reference some new glibc functions.
59903         * doc/glibc-functions/accept4.texi: New file.
59904         * doc/glibc-functions/dup3.texi: New file.
59905         * doc/glibc-functions/mkostemp.texi: New file.
59906         * doc/glibc-functions/pipe2.texi: New file.
59907         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
59908         (Glibc sys/socket.h): Refer to accept4.
59909         (Glibc unistd.h): Refer to dup3, pipe2.
59910         Reported by Eric Blake.
59912 2009-08-22  Jim Meyering  <meyering@redhat.com>
59913             Bruno Haible  <bruno@clisp.org>
59915         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
59916         This makes it so packages using automake-1.11's silent-rules option
59917         can print e.g., a single "GEN    configmake.h" line, rather than
59918         the 30+ statements that perform the job.  If you want to see the
59919         actual commands, you can still run "make V=1".
59920         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
59921         so that make output is abbreviated when those variables are defined
59922         appropriately.
59923         * modules/argz: Likewise.
59924         * modules/arpa_inet: Likewise.
59925         * modules/byteswap: Likewise.
59926         * modules/configmake: Likewise.
59927         * modules/dirent: Likewise.
59928         * modules/errno: Likewise.
59929         * modules/fcntl: Likewise.
59930         * modules/float: Likewise.
59931         * modules/fnmatch: Likewise.
59932         * modules/getopt-posix: Likewise.
59933         * modules/glob: Likewise.
59934         * modules/iconv_open: Likewise.
59935         * modules/inttypes: Likewise.
59936         * modules/localcharset: Likewise.
59937         * modules/locale: Likewise.
59938         * modules/math: Likewise.
59939         * modules/netdb: Likewise.
59940         * modules/netinet_in: Likewise.
59941         * modules/poll: Likewise.
59942         * modules/posix_spawnp-tests: Likewise.
59943         * modules/sched: Likewise.
59944         * modules/search: Likewise.
59945         * modules/selinux-h: Likewise.
59946         * modules/signal: Likewise.
59947         * modules/spawn: Likewise.
59948         * modules/stdarg: Likewise.
59949         * modules/stdbool: Likewise.
59950         * modules/stddef: Likewise.
59951         * modules/stdint: Likewise.
59952         * modules/stdio: Likewise.
59953         * modules/stdlib: Likewise.
59954         * modules/string: Likewise.
59955         * modules/strings: Likewise.
59956         * modules/sys_file: Likewise.
59957         * modules/sys_ioctl: Likewise.
59958         * modules/sys_select: Likewise.
59959         * modules/sys_socket: Likewise.
59960         * modules/sys_stat: Likewise.
59961         * modules/sys_time: Likewise.
59962         * modules/sys_times: Likewise.
59963         * modules/sys_utsname: Likewise.
59964         * modules/sys_wait: Likewise.
59965         * modules/sysexits: Likewise.
59966         * modules/time: Likewise.
59967         * modules/unistd: Likewise.
59968         * modules/wchar: Likewise.
59969         * modules/wctype: Likewise.
59971 2009-08-22  Jim Meyering  <meyering@redhat.com>
59973         announce-gen: detect write failure
59974         * build-aux/announce-gen: Add Coda at end.
59975         Remove equivalent-but-more-verbose block at top.
59977 2009-08-19  Akim Demaille  <demaille@gostai.com>
59979         bootstrap: --help to stdout.
59980         * bootstrap (usage): Don't send --help to stderr.
59981         Use a here doc instead of a long string.
59983 2009-08-21  Eric Blake  <ebb9@byu.net>
59985         test-popen-safer: split from test-popen
59986         * tests/test-popen.c (main): Move...
59987         * tests/test-popen.h: ...into new file.
59988         * tests/test-popen-safer2.c: New file.
59989         * modules/popen-tests (Files): Add test-popen.h.
59990         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
59991         Suggested by Bruno Haible.
59993         test-fcntl-safer: split from test-open
59994         * tests/test-open.c (main): Move...
59995         * tests/test-open.h: ...into new file.
59996         * tests/test-fcntl-safer.c: New file.
59997         * modules/open-tests (Files): Add test-open.h.
59998         * modules/fcntl-safer-tests: New file.
59999         Suggested by Bruno Haible.
60001         test-fopen-safer: split from test-fopen
60002         * tests/test-fopen.c (main): Move...
60003         * tests/test-fopen.h: ...into new file.
60004         * tests/test-fopen-safer.c: New file.
60005         * modules/fopen-tests (Files): Add test-fopen.h.
60006         * modules/fopen-safer-tests: New file.
60007         Suggested by Bruno Haible.
60009 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
60011         popen-safer: test O_CLOEXEC at run-time.
60012         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
60014 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
60016         fcntl: move more flags to the header
60017         * lib/cloexec.c: Do not define FD_CLOEXEC here.
60018         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
60019         * lib/fcntl.in.h: Do both things here.
60021 2009-08-21  Jim Meyering  <meyering@redhat.com>
60023         consistently remove $@-t before redirecting to it
60024         * modules/argz: Remove $@-t and $@ before redirecting to the former.
60025         * modules/alloca-opt: Likewise.
60026         * modules/byteswap: Likewise.
60027         * modules/fnmatch: Likewise.
60028         * modules/getopt-posix: Likewise.
60029         * modules/glob: Likewise.
60030         * modules/poll: Likewise.
60031         * modules/posix_spawnp-tests: Likewise.
60032         * modules/sys_socket: Likewise.
60033         * modules/sysexits: Likewise.
60035 2009-08-21  Eric Blake  <ebb9@byu.net>
60037         popen: simplify access to original popen
60038         * lib/popen.c (rpl_popen): No need to worry about popen being a
60039         macro.
60040         Reported by Bruno Haible.
60042 2009-08-20  Eric Blake  <ebb9@byu.net>
60044         build: avoid some compiler warnings
60045         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
60046         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
60047         type.
60048         (new_exclude_segment, excluded_file_pattern_p)
60049         (excluded_file_name_p): Reduce scope.
60050         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
60051         old-style declaration.
60053 2009-08-20  Simon Josefsson  <simon@josefsson.org>
60055         * tests/test-exclude1.sh: Handle Windows EOL.
60056         * tests/test-exclude2.sh: Likewise.
60057         * tests/test-exclude3.sh: Likewise.
60058         * tests/test-exclude4.sh: Likewise.
60059         * tests/test-exclude5.sh: Likewise.
60060         * tests/test-exclude6.sh: Likewise.
60061         * tests/test-exclude7.sh: Likewise.
60063 2009-08-19  Akim Demaille  <demaille@gostai.com>
60065         bootstrap: find sha1sum when named gsha1sum.
60066         * bootstrap (find_tool): New.
60067         ($SHA1SUM): New.
60068         Use it.
60070 2009-08-20  Jim Meyering  <meyering@redhat.com>
60072         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
60073         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
60074         expression that converts "." in a file name to "\." in the resulting
60075         regexp.  Start with a dummy statement, so that prior shell variable
60076         definitions are expanded portably.  Reported by Simon Josefsson.
60078 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
60080         Fix polling for writeability of a screen buffer.
60081         * lib/poll.c: Distinguish input and screen buffers for the
60082         Win32 implementation.
60083         * lib/select.c: Likewise.
60085 2009-08-19  Eric Blake  <ebb9@byu.net>
60087         popen-safer: prevent popen from clobbering std descriptors
60088         * modules/popen-safer: New file.
60089         * lib/popen-safer.c: Likewise.
60090         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
60091         * lib/stdio--.h (popen): Provide override.
60092         * lib/stdio-safer.h (popen_safer): Provide declaration.
60093         * tests/test-popen.c (includes): Partially test this.
60094         * modules/popen-safer-tests: New file, for more tests.
60095         * tests/test-popen-safer.c: Likewise.
60096         * MODULES.html.sh (file stream based Input/Output): Mention it.
60098         tests: test some of the *-safer modules
60099         * modules/fopen-safer (Depends-on): Add fopen.
60100         * modules/fcntl-safer (Depends-on): Add fcntl.
60101         * modules/stdlib-safer (Depends-on): Add stdlib.
60102         (configure.ac): Set indicator.
60103         * modules/unistd-safer (configure.ac): Likewise.
60104         * modules/tmpfile-safer (configure.ac): Likewise.
60105         (Depends-on): Add tmpfile.
60106         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
60107         active.
60108         * tests/test-fopen.c (includes): Test safer versions when they are
60109         in use.
60110         * tests/test-open.c (includes): Likewise.
60112         popen: fix cygwin 1.5 bug when stdin closed
60113         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
60114         * modules/popen: New file.
60115         * modules/popen-tests: Likewise.
60116         * tests/test-popen.c: Likewise.
60117         * m4/popen.m4: Likewise.
60118         * lib/popen.c: Likewise.
60119         * lib/stdio.in.h (popen): New declaration.
60120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
60121         * modules/stdio (Makefile.am): Likewise.
60122         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
60124 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
60126         maint.mk: give full control over update-copyright exclusions
60127         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
60128         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
60129         (update-copyright): Don't force inclusion of top-level
60130         ChangeLog.  Don't force exclusion of all COPYING files, but make
60131         them the default exclusion instead.
60133 2009-08-16  Bruno Haible  <bruno@clisp.org>
60135         Fix test failures on Solaris 10.
60136         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
60137         tests when Solaris iconv() is used.
60138         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60139         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60140         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60141         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60142         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60144 2009-08-16  Bruno Haible  <bruno@clisp.org>
60146         Fix test failures on Solaris 10.
60147         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
60148         'tr' program and pass it as first argument.
60149         * tests/test-pipe-filter-gi1.sh: Likewise.
60150         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
60151         program as first argument.
60152         * tests/test-pipe-filter-gi1.c (main): Likewise.
60154 2009-08-16  Eric Blake  <ebb9@byu.net>
60156         fpurge: fix previous commits
60157         * modules/fpurge (Makefile.am): Make replacement conditional,
60158         partially reverting 2007-04-29 change; missed in previous
60159         attempt.
60160         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
60161         is missing.
60163 2009-08-16  Bruno Haible  <bruno@clisp.org>
60165         Clarify fpurge's effect on the file position.
60166         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
60167         * tests/test-fpurge.c (main): Make a second pass for checking the file
60168         position.
60170 2009-08-16  Bruno Haible  <bruno@clisp.org>
60172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
60173         declaration of fpurge is missing.
60174         * tests/test-fpurge.c (main): Check that the file has not more contents
60175         than expected. Close the file before removing it.
60177 2009-08-15  Eric Blake  <ebb9@byu.net>
60179         fpurge: don't wrap working cygwin implementation
60180         * lib/fpurge.c (fpurge): Fix comment typo.
60181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
60182         1.7 to avoid replacement.
60183         * tests/test-fpurge.c (main): Enhance test.
60185 2009-08-15  Eric Blake  <ebb9@byu.net>
60186         and Jim Meyering  <meyering@redhat.com>
60188         test-update-copyright: skip if perl is insufficient
60189         * tests/test-update-copyright.sh: Failure to run maintainer tool
60190         should not cause testsuite failure on cygwin 1.5.
60192 2009-08-14  Eric Blake  <ebb9@byu.net>
60194         doc: mention more functions added in cygwin 1.7.0
60195         * doc/posix-headers/limits.texi (limits.h): Update for recent
60196         cygwin additions.
60197         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
60198         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
60199         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
60200         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
60201         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
60203 2009-08-14  Eric Blake  <ebb9@byu.net>
60205         maint.mk: simplify update-copyright rule
60206         * top/maint.mk (update-copyright-local): Delete, and document how
60207         to do it in cfg.mk instead.
60208         (update-copyright-exclude-regexp): Delete, and document how to do
60209         it in .x-update-copyright instead.
60210         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
60211         exclude ChangeLog.
60213 2009-08-14  Bruno Haible  <bruno@clisp.org>
60215         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
60217 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60219         maint.mk: support update-copyright-env
60220         * top/maint.mk (update-copyright-env): Define place-holder.
60221         (update-copyright): Expand $(update-copyright-env) before
60222         invoking update-copyright.
60224 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60226         update-copyright: implement forced reformatting
60227         * build-aux/update-copyright: Implement and document
60228         UPDATE_COPYRIGHT_FORCE.
60229         * tests/test-update-copyright.sh: Test it.
60231 2009-08-14  Eric Blake  <ebb9@byu.net>
60232         and Bruno Haible  <bruno@clisp.org>
60234         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
60235         * tests/test-locale.c: Revert previous patch related to NULL.
60236         * tests/test-stdio.c: Likewise.
60237         * tests/test-stdlib.c: Likewise.
60238         * tests/test-string.c: Likewise.
60239         * tests/test-unistd.c: Likewise.
60240         * modules/time-tests (Depends-on): Add verify.
60241         * modules/wchar-tests (Depends-on): Likewise.
60242         * tests/test-time.c: Test for NULL compliance.
60243         * tests/test-wchar.c: Likewise.
60244         * modules/locale (Depends-on): Add stddef.
60245         * modules/stdio (Depends-on): Likewise.
60246         * modules/stdlib (Depends-on): Likewise.
60247         * modules/string (Depends-on): Likewise.
60248         * modules/time (Depends-on): Likewise.
60249         * modules/unistd (Depends-on): Likewise.
60250         * modules/wchar (Depends-on): Likewise.
60251         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
60252         * lib/stdlib.in.h (includes): Likewise.
60253         * lib/string.in.h (includes): Likewise.
60254         * lib/time.in.h (includes): Likewise.
60255         * lib/unistd.in.h (includes): Likewise.
60256         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
60257         replaced.
60258         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60259         * m4/stddef_h.m4: New file.
60260         * modules/stddef: Likewise.
60261         * lib/stddef.in.h: Likewise.
60262         * modules/stddef-tests: Likewise.
60263         * tests/test-stddef.c: Likewise.
60264         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
60265         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
60266         * doc/posix-headers/locale.texi (locale.h): Likewise.
60267         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
60268         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60269         * doc/posix-headers/string.texi (string.h): Likewise.
60270         * doc/posix-headers/time.texi (time.h): Likewise.
60271         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
60272         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
60274 2009-08-14  Eric Blake  <ebb9@byu.net>
60276         doc: improve git diff of texinfo files
60277         * .gitattributes: Add rule for *.texi files, with hint on how to
60278         use it.
60279         Copied from m4, and based on a report by Bruno Haible.
60281 2009-08-14  Bruno Haible  <bruno@clisp.org>
60283         Disable multithread support by default on Cygwin 1.5.x for real.
60284         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
60286 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60288         update-copyright: much ado about intervals
60289         * build-aux/update-copyright: Implement and document
60290         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
60291         of copyright year intervals.
60292         Also, document UPDATE_COPYRIGHT_YEAR.
60293         * tests/test-update-copyright.sh: Test it.
60295         update-copyright: convert 2-digit to 4-digit years
60296         * build-aux/update-copyright: Implement and document.
60297         * tests/test-update-copyright.sh: Update.
60299 2009-08-14  Jim Meyering  <meyering@redhat.com>
60301         test-exclude: avoid coreutils "make check" failure
60302         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
60303         just as in test-argmatch.c.
60305 2009-08-13  Eric Blake  <ebb9@byu.net>
60307         test-dup2: fix bad assumption
60308         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
60309         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
60311         test-version-etc: fix CRLF portability issue
60312         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
60313         recognize \r.
60314         * tests/test-argp-version-etc-1.sh: Likewise.
60316         getopt: update client modules
60317         * modules/argp (Depends-on): Use getopt-gnu.
60318         * modules/git-merge-changelog (Depends-on): Likewise.
60319         * modules/long-options (Depends-on): Likewise.
60320         * modules/xstrtol (Depends-on): Likewise.
60322 2009-08-13  Simon Josefsson  <simon@josefsson.org>
60324         * tests/test-version-etc.sh: Don't fail on different
60325         project/version.  Don't fail on CRLF differences.  Rewrite to use
60326         multiple -e instead of multiple sed forks, suggested by Eric Blake
60327         <ebb9@byu.net>.
60328         * tests/test-argp-version-etc-1.sh: Likewise.
60330 2009-08-13  Simon Josefsson  <simon@josefsson.org>
60332         * tests/test-version-etc.sh: Don't fail on different
60333         project/version.
60335 2009-08-12  Bruno Haible  <bruno@clisp.org>
60337         Tests for modules 'getopt-posix', 'getopt-gnu'.
60338         * modules/getopt-posix-tests: New file.
60339         * tests/test-getopt.c: New file.
60340         * tests/test-getopt.h: New file.
60341         * tests/test-getopt_long.h: New file.
60343         New modules 'getopt-posix', 'getopt-gnu'.
60344         * modules/getopt-gnu: New file, renamed from modules/getopt.
60345         * modules/getopt-posix: New file.
60346         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
60347         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
60348         (gl_GETOPT): Remove macro.
60349         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
60350         Disable the test against BSD systems that declare optreset. Test
60351         against mingw bug. Test against lack of support of optional arguments
60352         on many platforms.
60353         * doc/glibc-headers/getopt.texi: Update module name and list of
60354         relevant platforms.
60355         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
60356         'getopt-gnu' and more portability problems.
60357         * NEWS: Mention the changes.
60359 2009-08-12  Bruno Haible  <bruno@clisp.org>
60361         Ensure that optarg etc. get declared by <unistd.h>.
60362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
60363         AC_USE_SYSTEM_EXTENSIONS.
60364         * modules/getopt (Depends-on): Add 'extensions'.
60366 2009-08-12  Bruno Haible  <bruno@clisp.org>
60368         Avoid test link errors.
60369         * modules/pipe-filter-ii-tests (Makefile.am): Define
60370         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
60371         * modules/pipe-filter-gi-tests (Makefile.am): Define
60372         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
60373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60375 2009-08-12  Bruno Haible  <bruno@clisp.org>
60377         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
60378         gl_GETOPT_SUBSTITUTE before.
60379         (gl_GETOPT): Use it.
60380         * m4/argp.m4 (gl_ARGP): Update.
60381         Reported by Sergey Poznyakoff.
60383         * m4/getopt.m4: Reorder macros.
60384         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
60385         (gl_GETOPT_SUBSTITUTE): Remove macro.
60387 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60389         Minor improvement in gitlog-to-changelog
60391         * build-aux/gitlog-to-changelog: New option `--format' makes
60392         output format string configurable.
60394 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60396         Optimize exclude: use hash tables for non-wildcard patterns.
60398         * lib/exclude.c: Include hash.h and mbuiter.h
60399         (struct exclude_pattern, exclude_segment): New data types.
60400         (struct exclude): Rewrite.
60401         (fnmatch_pattern_has_wildcards): New function.
60402         (new_exclude_segment, free_exclude_segment): New functions.
60403         (excluded_file_pattern_p, excluded_file_name_p): New functions.
60404         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
60405         * lib/exclude.h (is_fnmatch_pattern): New prototype.
60406         * modules/exclude: Depend on hash and mbuiter.
60408         * modules/exclude-tests: New file.
60409         * tests/test-exclude.c: New file.
60410         * tests/test-exclude1.sh: New file.
60411         * tests/test-exclude2.sh: New file.
60412         * tests/test-exclude3.sh: New file.
60413         * tests/test-exclude4.sh: New file.
60414         * tests/test-exclude5.sh: New file.
60415         * tests/test-exclude6.sh: New file.
60416         * tests/test-exclude7.sh: New file.
60418 2009-08-12  Bruno Haible  <bruno@clisp.org>
60420         Ensure that getopt() gets declared by <unistd.h>.
60421         * lib/unistd.in.h: Conditionally include getopt.h.
60422         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
60423         Set GNULIB_UNISTD_H_GETOPT.
60424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60425         GNULIB_UNISTD_H_GETOPT.
60426         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
60428 2009-08-12  Bruno Haible  <bruno@clisp.org>
60430         Clarify logic.
60431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
60432         gl_replace_getopt instead of GETOPT_H.
60434 2009-08-12  Bruno Haible  <bruno@clisp.org>
60436         * m4/getopt.m4: Add comments.
60438 2009-08-12  Bruno Haible  <bruno@clisp.org>
60440         Disable multithread support by default on Cygwin 1.5.x.
60441         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
60442         set gl_use_threads=no if not specified otherwise.
60444 2009-08-11  Bruno Haible  <bruno@clisp.org>
60446         Avoid compilation error on NetBSD 5.0.
60447         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
60448         * tests/test-stdio.c: Likewise.
60449         * tests/test-stdlib.c: Likewise.
60450         * tests/test-string.c: Likewise.
60451         * tests/test-unistd.c: Likewise.
60452         Reported by Greg Troxel <gdt@ir.bbn.com>
60453         at <https://savannah.gnu.org/support/?106973>.
60455 2009-08-11  Bruno Haible  <bruno@clisp.org>
60457         * modules/dup2-tests (Depends-on): Remove close.
60459         Undo 2009-07-19 commit.
60460         * modules/acl-tests (Depends-on): Remove close.
60461         * modules/binary-io-tests (Depends-on): Likewise.
60462         * modules/closein-tests (Depends-on): Likewise.
60463         * modules/flock-tests (Depends-on): Likewise.
60464         * modules/fsync-tests (Depends-on): Likewise.
60465         * modules/lseek-tests (Depends-on): Likewise.
60466         * modules/pipe-tests (Depends-on): Likewise.
60467         * modules/posix_spawn-tests (Depends-on): Likewise.
60468         * modules/posix_spawnp-tests (Depends-on): Likewise.
60469         * modules/stat-time-tests (Depends-on): Likewise.
60470         * modules/yesno-tests (Depends-on): Likewise.
60472 2009-08-10  Bruno Haible  <bruno@clisp.org>
60474         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
60476 2009-08-10  Bruno Haible  <bruno@clisp.org>
60478         Fix a gcc warning.
60479         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
60481 2009-08-10  Bruno Haible  <bruno@clisp.org>
60483         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
60484         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
60485         not only the first time.
60486         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
60487         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
60488         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
60489         is 1, not only the first time.
60491 2009-08-10  Bruno Haible  <bruno@clisp.org>
60493         Make it possible to use module 'gethostname' without module 'close'.
60494         * lib/unistd.in.h (close): Evoke a link error only if
60495         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
60496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60497         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60498         * modules/unistd (Makefile.am): Substitute
60499         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60500         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
60501         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
60502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
60503         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60504         * modules/sys_ioctl (Makefile.am): Substitute
60505         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60506         * modules/socket (configure.ac): On native Windows, set
60507         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
60508         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60509         Reported by Sam Steingold <sds@gnu.org>.
60511 2009-08-10  Bruno Haible  <bruno@clisp.org>
60513         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
60514         * modules/ioctl (configure.ac): Likewise.
60516 2009-08-10  Bruno Haible  <bruno@clisp.org>
60518         Avoid collision between gnulib wrapper and libintl wrapper.
60519         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
60520         already defined in intl/printf.c.
60521         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
60522         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
60524 2009-08-09  Bruno Haible  <bruno@clisp.org>
60526         Make <sys/select.h> really self-contained, also on Solaris 10.
60527         * lib/sys_select.in.h: Include <string.h>.
60528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
60529         Solaris 10 problem.
60530         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
60531         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
60532         Reported by Jim Meyering.
60534 2009-08-09  Bruno Haible  <bruno@clisp.org>
60536         Avoid warnings from 'aclocal' that are due to a use of macro name
60537         AM_XGETTEXT_OPTION that is not defined in automake.
60538         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
60539         automake.
60540         * modules/error (configure.ac): Likewise.
60541         * modules/propername (configure.ac): Likewise.
60542         * modules/vasprintf (configure.ac): Likewise.
60543         * modules/verror (configure.ac): Likewise.
60544         * modules/xprintf (configure.ac): Likewise.
60545         * modules/xvasprintf (configure.ac): Likewise.
60547 2009-08-08  Bruno Haible  <bruno@clisp.org>
60549         Avoid compilation error in C++ mode.
60550         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
60551         Reported by Sam Steingold <sds@gnu.org>.
60553 2009-08-08  Bruno Haible  <bruno@clisp.org>
60555         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
60556         for the various Unix platforms.
60557         * doc/posix-headers/limits.texi: Update platforms list regarding
60558         HOST_NAME_MAX.
60559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60561 2009-08-07  Jim Meyering  <meyering@redhat.com>
60563         selinux-at: fix typo in a comment
60564         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
60565         Spotted by Paolo Bonzini.
60567         selinux-at: remove redundant m4 code, add documentation
60568         * modules/selinux-at (configure.ac): Remove redundant code.
60569         LIB_SELINUX is already set via the dependent module, selinux-h.
60570         (Include): Add quotes around selinux-at.h.
60571         * lib/selinux-at.h: Add documentation.
60572         Reported by Bruno Haible in
60573         http://marc.info/?l=gnulib-bug&m=124958988300749
60575 2009-08-07  Bruno Haible  <bruno@clisp.org>
60577         Avoid link error on MacOS X 10.3 and 10.4.
60578         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
60579         on non-ELF systems.
60580         * lib/argp-pv.c (argp_program_version): Likewise.
60581         Reported by Simon Josefsson.
60583 2009-08-07  Simon Josefsson  <simon@josefsson.org>
60585         * tests/test-version-etc.sh: Use $EXEEXT.
60587 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
60589         update-copyright: update documentation to point to maint.mk
60590         * build-aux/update-copyright: Here.
60592 2009-08-06  Jim Meyering  <meyering@redhat.com>
60594         maint.mk: support update-copyright-local
60595         * top/maint.mk (update-copyright-local): Define place-holder.
60596         (update-copyright): Depend on $(update-copyright-local).
60598 2009-08-06  Jim Meyering  <meyering@redhat.com>
60600         selinux-at: new module
60601         Initially written for coreutils, this module will soon be
60602         used by findutils, too.
60603         * MODULES.html.sh [Misc]: Add selinux-at.
60604         * lib/selinux-at.h: New file, from coreutils.
60605         * lib/selinux-at.c: Likewise.
60606         * modules/selinux-at: Likewise.
60607         (License): Change from LGPL to GPL, since it depends
60608         on the GPL'd openat module.
60610         doc: update README
60611         * README: Remove references to cogito.
60612         Remove cvs-repo-updating instructions from 2007.
60613         Don't imply that CVS is better if you have limited disk space.
60615 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60617         update-copyright: support C-style comments
60618         * build-aux/update-copyright: Implement and document.
60619         * tests/test-update-copyright.sh: Test.
60621 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60623         update-copyright: support omitted "(C)"
60624         * build-aux/update-copyright: Implement and document.  Also,
60625         allow variable whitespace before "(C)".
60626         * tests/test-update-copyright.sh: Test.
60628 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60630         update-copyright: don't trip on non-FSF copyright statements
60631         * build-aux/update-copyright: Fix so that the first correctly
60632         formatted FSF copyright statement is recognized no matter what
60633         appears before it.  Update documentation.
60634         * tests/test-update-copyright.sh: Test that.
60636 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60638         update-copyright: clean up code a little
60639         * build-aux/update-copyright: Append "_re" to the name of any
60640         variable holding a regular expression.
60641         Replace "old" and "new" with "stmt" in variable names.
60642         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
60643         handled correctly.
60644         Format code more consistently.
60646 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60648         update-copyright-tests: improve portability
60649         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
60650         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
60652 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
60654         update-copyright: support @copyright{} and &copy;
60655         * build-aux/update-copyright: Implement and document.
60656         * tests/test-update-copyright.sh: Test.
60658 2009-08-04  Jim Meyering  <meyering@redhat.com>
60660         update-copyright-tests: correctly test EOL=\r\n handling
60661         * tests/test-update-copyright.sh: Put \r at the end of some lines
60662         for the dos-eol tests.  Based on a patch by Joel E. Denny.
60664         maint.mk: make update-copyright exclusion list more configurable
60665         * top/maint.mk (update-copyright): Default to excluding COPYING,
60666         but allow an override, in case someone does want to update that file.
60668         maint.mk: don't update copyright date in COPYING
60669         * top/maint.mk (update-copyright): Exclude COPYING.
60671         maint.mk: add a copyright-updating rule
60672         * top/maint.mk (update-copyright): New rule.
60673         Derived from coreutils/Makefile.am.
60675         update-copyright: rename some variables
60676         * build-aux/update-copyright: Rename a few variables for clarity.
60677         Tweak syntax.  List Joel E. Denny as coauthor.
60679 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
60681         update-copyright: fix bug for 2-digit last year and add tests
60682         * build-aux/update-copyright: Fix bug.
60683         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
60684         specified.
60685         * modules/update-copyright-tests: New
60686         * tests/test-update-copyright.sh: New.
60688 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60690         update-copyright: handle leading tabs in line prefix
60691         * build-aux/update-copyright: Count leading tabs as 8 spaces
60692         when computing margin.  This helps with the formatting of
60693         ChangeLogs, for example.
60694         Fix documentation a little.
60696 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60698         update-copyright: support EOL=\r\n
60699         * build-aux/update-copyright: Implement that.
60701 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60703         update-copyright: automatically format copyright statements
60704         * build-aux/update-copyright: Implement that.
60705         Also, be a little more predictable and safer by always failing
60706         when the full copyright format is not perfectly recognized as an
60707         unbroken whole.  Discussed at
60708         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
60709         Rewrite documentation.
60711 2009-08-03  Bruno Haible  <bruno@clisp.org>
60713         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
60715 2009-08-02  Bruno Haible  <bruno@clisp.org>
60717         Tests for module 'uname'.
60718         * modules/uname-tests: New file.
60719         * tests/test-uname.c: New file.
60721         New module 'uname'.
60722         * lib/uname.c: New file.
60723         * m4/uname.m4: New file.
60724         * modules/uname: New file.
60725         * doc/posix-functions/uname.texi: Mention the new module.
60727 2009-08-02  Bruno Haible  <bruno@clisp.org>
60729         Tests for module 'sys_utsname'.
60730         * modules/sys_utsname-tests: New file.
60731         * tests/test-sys_utsname.c: New file.
60733         New module 'sys_utsname'.
60734         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
60735         * m4/sys_utsname_h.m4: New file.
60736         * modules/sys_utsname: New file.
60737         * doc/posix-headers/sys_utsname.texi: Mention the new module.
60739 2009-08-02  Bruno Haible  <bruno@clisp.org>
60741         Implicitly initialize the sockets library.
60742         * lib/gethostname.c: Include sockets.h.
60743         (rpl_gethostname): Invoke gl_sockets_startup.
60744         * lib/socket.c: Include sockets.h.
60745         (rpl_socket): Invoke gl_sockets_startup.
60746         * modules/gethostname (Depends-on): Add sockets.
60747         * modules/socket (Depends-on): Likewise.
60748         * tests/test-poll.c: Don't include sockets.h.
60749         (main): Don't invoke gl_sockets_startup.
60750         * tests/test-select.c: Don't include sockets.h.
60751         (main): Don't invoke gl_sockets_startup.
60753 2009-08-02  Bruno Haible  <bruno@clisp.org>
60755         Allow multiple calls to gl_sockets_startup.
60756         * lib/sockets.c (initialized_sockets_version): New variable.
60757         (gl_sockets_startup): Do nothing if already called for this or a higher
60758         version.
60759         (gl_sockets_cleanup): Reset initialized_sockets_version.
60761 2009-08-03  Simon Josefsson  <simon@josefsson.org>
60763         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
60764         different project/version.
60766 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
60767             Bruno Haible  <bruno@clisp.org>
60769         Tests for module 'pipe-filter-gi'.
60770         * modules/pipe-filter-gi-tests: New file.
60771         * tests/test-pipe-filter-gi1.sh: New file.
60772         * tests/test-pipe-filter-gi1.c: New file.
60773         * tests/test-pipe-filter-gi2.sh: New file.
60774         * tests/test-pipe-filter-gi2-main.c: New file.
60775         * tests/test-pipe-filter-gi2-child.c: New file.
60777         New module 'pipe-filter-gi'.
60778         * lib/pipe-filter-gi.c: New file.
60779         * modules/pipe-filter-gi: New file.
60781 2009-08-02  Bruno Haible  <bruno@clisp.org>
60782             Paolo Bonzini  <bonzini@gnu.org>
60784         Tests for module 'pipe-filter-ii'.
60785         * modules/pipe-filter-ii-tests: New file.
60786         * tests/test-pipe-filter-ii1.sh: New file.
60787         * tests/test-pipe-filter-ii1.c: New file.
60788         * tests/test-pipe-filter-ii2.sh: New file.
60789         * tests/test-pipe-filter-ii2-main.c: New file.
60790         * tests/test-pipe-filter-ii2-child.c: New file.
60792         New module 'pipe-filter-ii'.
60793         * lib/pipe-filter.h: New file.
60794         * lib/pipe-filter-ii.c: New file.
60795         * lib/pipe-filter-aux.h: New file.
60796         * modules/pipe-filter-ii: New file.
60798 2009-08-02  Simon Josefsson  <simon@josefsson.org>
60800         * lib/gc-libgcrypt.c: Change copyright to FSF.
60801         * lib/gc-gnulib.c: Likewise.
60803 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
60805         * lib/gethostname.c: Include limits.h.
60807 2009-08-02  Simon Josefsson  <simon@josefsson.org>
60808             Bruno Haible  <bruno@clisp.org>
60810         Ensure HOST_NAME_MAX as part of the gethostname module.
60811         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
60812         define also HOST_NAME_MAX.
60813         * tests/test-gethostname.c: Include <limits.h>.
60814         (main): Check also HOST_NAME_MAX.
60815         * doc/posix-headers/limits.texi: Document the mingw problem.
60817 2009-08-02  Bruno Haible  <bruno@clisp.org>
60819         * lib/gethostname.c (gethostname): Fix handling of large len argument.
60820         Add comments.
60822 2009-03-31  Simon Josefsson  <simon@josefsson.org>
60824         * lib/gethostname.c: Add Windows wrapper.
60825         * m4/gethostname.m4: Look for gethostname in -lws2_32.
60826         * modules/gethostname: Depend on sys_socket & errno, for also
60827         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
60828         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
60830 2009-07-31  Jim Meyering  <meyering@redhat.com>
60832         getloadavg: fix symbol name in comment
60833         * lib/getloadavg.c: Correct a typo I introduced when adding
60834         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
60835         Matt Kraai spotted the problem.
60837 2009-07-29  Matt Kraai  <mkraai@beckman.com>
60839         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
60840         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
60841         code also if ! defined N_NAME_POINTER.
60842         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
60843         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
60844         but the n_name member is a 12-byte array.
60846 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
60848         update-copyright: generalize comment handling
60849         * build-aux/update-copyright: Handle copyright statements
60850         within more comment styles.
60851         Document usage.
60852         Report any file with an external copyright holder or parse failure.
60854 2009-07-29  Jim Meyering  <meyering@redhat.com>
60856         mktime: correct setting of REPLACE_MKTIME
60857         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
60859         update-copyright: new module
60860         * modules/update-copyright: New file.
60861         * build-aux/update-copyright: New file.
60862         * MODULES.html.sh (maint+release support): Add update-copyright.
60864 2009-07-27  Bruno Haible  <bruno@clisp.org>
60866         Fix compilation error when <ctime> is used and mktime is replaced.
60867         * lib/time.in.h (mktime): New declaration.
60868         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
60869         REPLACE_MKTIME instead of defining mktime in config.h.
60870         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
60871         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
60872         Reported by Ross McFarland <rwmcfa1@neces.com>.
60874 2009-07-27  Bruno Haible  <bruno@clisp.org>
60876         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
60877         Reported by Matt Kraai <mkraai@beckman.com>.
60879 2009-07-25  Jim Meyering  <meyering@redhat.com>
60881         maint.mk: avoid warnings about missing files
60882         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
60883         diagnostic when .prev-version does not exist.
60884         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
60885         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
60886         nonexistent cfg.mk.
60887         Suggestions from Simon Josefsson.
60889 2009-07-25  Bruno Haible  <bruno@clisp.org>
60891         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
60892         defined as macros. Needed on QNX 6.4.1.
60893         Reported by Matt Kraai <mkraai@beckman.com>.
60895 2009-07-23  Jim Meyering  <meyering@redhat.com>
60897         maint.mk: invoke "make dist" with a working value of XZ_OPT
60898         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
60900 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
60902         Make fseeko.c compile on QNX.
60903         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
60905 2009-07-22  Peter Simons  <simons@cryp.to>
60907         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
60908         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
60909         * lib/md4.h: Likewise.
60910         * lib/md5.h: Likewise.
60911         * lib/sha1.h: Likewise.
60912         * lib/sha256.h: Likewise.
60913         * lib/sha512.h: Likewise.
60915         tests-sha1: don't assign literal string to 'char *' variable
60916         * tests/test-sha1.c (main): Declare locals with "const" to match
60917         attributes of the right hand side.
60919 2009-07-21  Eric Blake  <ebb9@byu.net>
60921         dup2: fix more mingw problems
60922         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
60923         fd to itself.
60924         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60925         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
60926         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
60927         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
60928         care of mingw bugs.
60930 2009-07-21  Jim Meyering  <meyering@redhat.com>
60932         vc-list-files: avoid failure when /bin/sh is dash
60933         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
60934         On some Debian based systems, /bin/sh is a symlink to dash, and running
60935         this command would omit the "/" following each 'tests' prefix:
60936           dash -x build-aux/vc-list-files -C . tests
60937         That is because bash and dash work differently:
60938           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
60939           bash ok
60940           dash odd
60942 2009-07-21  Eric Blake  <ebb9@byu.net>
60944         dup2-tests: test previous patch
60945         * modules/dup2-tests: New file.
60946         * tests/test-dup2.c: Likewise.
60947         * tests/test-open.c (main): Avoid unspecified behavior.
60948         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
60949         test.
60951         dup2: work around mingw and cygwin 1.5 bug
60952         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
60953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60954         * modules/unistd (Makefile.am): Substitute it.
60955         * lib/unistd.in.h (dup2): Declare the replacement.
60956         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
60957         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
60958         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
60959         * modules/execute (Depends-on): Add dup2.
60960         * modules/fseterr (Depends-on): Likewise.
60961         * modules/pipe (Depends-on): Likewise.
60962         * modules/posix_spawn-internal (Depends-on): Likewise.
60964 2009-07-21  Bruno Haible  <bruno@clisp.org>
60966         * modules/.gitattributes: New file.
60968 2009-07-20  Bruno Haible  <bruno@clisp.org>
60970         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
60971         (main): Use it.
60973 2009-07-20  Eric Blake  <ebb9@byu.net>
60975         test-pipe: make a bit more robust.
60976         * tests/test-pipe.c (myerr): Allow error messages regardless of
60977         what we do to stderr.
60978         (test_pipe): Rearrange to avoid deadlock.
60979         (child_main): Try a larger read, to ensure we avoided deadlock.
60980         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
60981         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
60982         if misused.
60984 2009-07-19  Jim Meyering  <meyering@redhat.com>
60986         fts: avoid false-positive cycle-detection
60987         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
60988         for each new command line argument.
60990 2009-07-19  Bruno Haible  <bruno@clisp.org>
60992         Fix build error on mingw with the modules sys_select and unistd.
60993         * modules/acl-tests (Depends-on): Add close.
60994         * modules/binary-io-tests (Depends-on): Likewise.
60995         * modules/closein-tests (Depends-on): Likewise.
60996         * modules/flock-tests (Depends-on): Likewise.
60997         * modules/fsync-tests (Depends-on): Likewise.
60998         * modules/lseek-tests (Depends-on): Likewise.
60999         * modules/pipe-tests (Depends-on): Likewise.
61000         * modules/posix_spawn-tests (Depends-on): Likewise.
61001         * modules/posix_spawnp-tests (Depends-on): Likewise.
61002         * modules/stat-time-tests (Depends-on): Likewise.
61003         * modules/yesno-tests (Depends-on): Likewise.
61005 2009-07-19  Bruno Haible  <bruno@clisp.org>
61007         Unify conditionals.
61008         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
61009         macros, not at the compiler macros.
61010         * lib/pipe.c: Likewise.
61011         * lib/execute.c: Likewise.
61012         * lib/spawni.c: Likewise.
61014 2009-07-19  Bruno Haible  <bruno@clisp.org>
61016         Fix handling of closed stdin/stdout/stderr on mingw.
61017         * lib/w32spawn.h: Include unistd.h.
61018         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
61019         file descriptor with O_NOINHERIT flag.
61020         (fd_safer_noinherit): New function, based on fd-safer.c.
61021         (dup_safer_noinherit): New function, based on dup-safer.c.
61022         (undup_safer_noinherit): New function.
61023         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
61024         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
61025         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
61026         instead of fd_safer.
61027         * tests/test-pipe.c: Include <windows.h>.
61028         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
61029         result.
61031         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
61032         from main.
61033         (test_pipe): Pass an extra argument for disambiguation.
61034         (main): Invoke parent_main or child_main.
61036         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
61037         consistently.
61039 2009-07-18  Eric Blake  <ebb9@byu.net>
61041         test-pipe: fix mingw build
61042         * tests/test-pipe.c (main): Avoid fcntl on mingw.
61044 2009-07-18  Bruno Haible  <bruno@clisp.org>
61046         * modules/pipe-tests (Makefile.am): Fix typo.
61048 2009-07-18  Eric Blake  <ebb9@byu.net>
61050         error: fix mingw build
61051         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
61052         Reported by Bruno Haible.
61054         error: avoid undefined use of stdout
61055         * lib/error.c (error, error_at_line): Check that fd 1 is open
61056         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
61057         is handling faults and the close_stdout module wants to report the
61058         detection of closed stdout as an error.
61060 2009-07-17  Eric Blake  <ebb9@byu.net>
61062         pipe: be robust in face of closed fds
61063         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
61064         should cause child to misbehave.
61065         * modules/pipe-tests: New module.
61066         * tests/test-pipe.c: New file.
61067         * tests/test-pipe.sh: New file.
61068         Reported by Akim Demaille.
61070 2009-07-14  Bruno Haible  <bruno@clisp.org>
61072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
61073         Reported by anonymous kc.
61075 2009-07-07  Jim Meyering  <meyering@redhat.com>
61077         maint.mk: don't look for translatable strings in *.m4 or *.mk
61078         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
61079         when searching for translatable strings.
61081 2009-07-05  Jim Meyering  <meyering@redhat.com>
61083         remove superfluous parentheses in STREQ definition
61084         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
61085         * lib/getugroups.c (STREQ): Likewise.
61086         * lib/fnmatch.c (STREQ): Likewise.
61087         Spotted by Bruno Haible.
61089 2009-07-04  Jim Meyering  <meyering@redhat.com>
61091         argv-iter: new module
61092         * MODULES.html.sh: Add argv-iter.
61093         * lib/argv-iter.c, lib/argv-iter.h: New files.
61094         * modules/argv-iter: New file.
61095         * modules/argv-iter-tests: New file.
61096         * tests/test-argv-iter.c: Test it.
61098 2009-07-04  Bruno Haible  <bruno@clisp.org>
61100         Fix assertion.
61101         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
61102         contains more exact copies of a given entry than file2, leave the extra
61103         copies unpaired rather than aborting.
61104         Reported by Eric Blake.
61106 2009-07-02  Bruno Haible  <bruno@clisp.org>
61108         Speedup git-merge-changelog for git cherry-pick.
61109         * lib/git-merge-changelog.c (struct entries_mapping): New type.
61110         (entries_mapping_get): New function, extracted from compute_mapping.
61111         (entries_mapping_reverse_get): New function.
61112         (compute_mapping): Add a 'full' argument. Return the result in a
61113         'struct entries_mapping'.
61114         (main): Update. Access the mappings through entries_mapping_get.
61115         Reported by Eric Blake.
61117 2009-07-02  Bruno Haible  <bruno@clisp.org>
61119         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
61120         best_i.
61122 2009-07-02  Bruno Haible  <bruno@clisp.org>
61124         Speed up approximate search for matching ChangeLog entries.
61125         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
61126         argument. Call fstrcmp_bounded instead of fstrcmp.
61127         (compute_mapping, try_split_merged_entry, main): Update callers.
61129 2009-07-02  Bruno Haible  <bruno@clisp.org>
61131         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
61133 2009-06-30  Bruno Haible  <bruno@clisp.org>
61135         Reduce the number of uc_is_cased calls.
61136         * lib/unicase.h (casing_suffix_context_t): Add
61137         'first_char_except_ignorable' field.
61138         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
61139         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
61140         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
61141         Update initializer.
61142         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
61143         case-ignorable characters.
61144         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
61145         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
61146         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
61147         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
61148         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
61150 2009-06-30  Bruno Haible  <bruno@clisp.org>
61152         Tests for module 'unicase/ignorable'.
61153         * modules/unicase/ignorable-tests: New file.
61154         * tests/unicase/test-ignorable.c: New file, generated by
61155         gen-uni-tables.
61157         Tests for module 'unicase/cased'.
61158         * modules/unicase/cased-tests: New file.
61159         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
61160         * tests/unicase/test-predicate-part1.h: New file, derived from
61161         tests/unictype/test-predicate-part1.h.
61162         * tests/unicase/test-predicate-part2.h: New file, same as
61163         tests/unictype/test-predicate-part2.h.
61165         Fix evaluation of "Before C" condition of FINAL_SIGMA.
61166         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
61167         (output_casing_properties): New function.
61168         (main): Call it.
61169         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
61170         * lib/unicase/cased.c: Include unictype/bitmap.h.
61171         (uc_is_cased): Define through a bitmap lookup.
61172         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
61173         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
61174         (uc_is_case_ignorable): Define through a bitmap lookup.
61175         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
61176         lib/unictype/bitmap.h.
61177         (Depends-on): Add inline. Clean up.
61178         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
61179         lib/unictype/bitmap.h.
61180         (Depends-on): Add inline. Clean up.
61181         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
61182         recognition.
61183         * tests/unicase/test-u16-tolower.c (main): Likewise.
61184         * tests/unicase/test-u32-tolower.c (main): Likewise.
61186 2009-06-30  Bruno Haible  <bruno@clisp.org>
61188         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
61189         * lib/unicase/u16-casemap.c: Likewise.
61190         * lib/unicase/u32-casemap.c: Likewise.
61192 2009-06-29  Bruno Haible  <bruno@clisp.org>
61194         Define u32_casefold as a wrapper around u32_ct_casefold.
61195         * lib/unicase/u32-casefold.c: Update.
61196         * modules/unicase/u32-casefold (Depends-on): Add
61197         unicase/u32-ct-casefold, unicase/empty-prefix-context,
61198         unicase/empty-suffix-context. Clean up.
61200         Define u16_casefold as a wrapper around u16_ct_casefold.
61201         * lib/unicase/u16-casefold.c: Update.
61202         * modules/unicase/u16-casefold (Depends-on): Add
61203         unicase/u16-ct-casefold, unicase/empty-prefix-context,
61204         unicase/empty-suffix-context. Clean up.
61206         Define u8_casefold as a wrapper around u8_ct_casefold.
61207         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
61208         * lib/unicase/u8-casefold.c: Update.
61209         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
61210         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61212         Define u32_totitle as a wrapper around u32_ct_totitle.
61213         * lib/unicase/u32-totitle.c: Update.
61214         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
61215         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61217         Define u16_totitle as a wrapper around u16_ct_totitle.
61218         * lib/unicase/u16-totitle.c: Update.
61219         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
61220         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61222         Define u8_totitle as a wrapper around u8_ct_totitle.
61223         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
61224         functions.
61225         (FUNC): Delegate to U_CT_TOTITLE.
61226         * lib/unicase/u8-totitle.c: Update.
61227         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
61228         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61230         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
61231         invocation.
61232         * modules/unicase/u32-tolower (Depends-on): Add
61233         unicase/empty-prefix-context, unicase/empty-suffix-context.
61235         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
61236         invocation.
61237         * modules/unicase/u16-tolower (Depends-on): Add
61238         unicase/empty-prefix-context, unicase/empty-suffix-context.
61240         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
61241         * modules/unicase/u8-tolower (Depends-on): Add
61242         unicase/empty-prefix-context, unicase/empty-suffix-context.
61244         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
61245         invocation.
61246         * modules/unicase/u32-toupper (Depends-on): Add
61247         unicase/empty-prefix-context, unicase/empty-suffix-context.
61249         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
61250         invocation.
61251         * modules/unicase/u16-toupper (Depends-on): Add
61252         unicase/empty-prefix-context, unicase/empty-suffix-context.
61254         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
61255         * modules/unicase/u8-toupper (Depends-on): Add
61256         unicase/empty-prefix-context, unicase/empty-suffix-context.
61258         New module 'unicase/u32-ct-casefold'.
61259         * lib/unicase/u32-ct-casefold.c: New file.
61260         * modules/unicase/u32-ct-casefold: New file.
61262         New module 'unicase/u16-ct-casefold'.
61263         * lib/unicase/u16-ct-casefold.c: New file.
61264         * modules/unicase/u16-ct-casefold: New file.
61266         New module 'unicase/u8-ct-casefold'.
61267         * lib/unicase/u8-ct-casefold.c: New file.
61268         * lib/unicase/u-ct-casefold.h: New file, derived from
61269         lib/unicase/u-casefold.h.
61270         * modules/unicase/u8-ct-casefold: New file.
61272         New module 'unicase/u32-ct-totitle'.
61273         * lib/unicase/u32-ct-totitle.c: New file.
61274         * modules/unicase/u32-ct-totitle: New file.
61276         New module 'unicase/u16-ct-totitle'.
61277         * lib/unicase/u16-ct-totitle.c: New file.
61278         * modules/unicase/u16-ct-totitle: New file.
61280         New module 'unicase/u8-ct-totitle'.
61281         * lib/unicase/u8-ct-totitle.c: New file.
61282         * lib/unicase/u-ct-totitle.h: New file, derived from
61283         lib/unicase/u-totitle.h.
61284         * modules/unicase/u8-ct-totitle: New file.
61286         New module 'unicase/u32-ct-tolower'.
61287         * lib/unicase/u32-ct-tolower.c: New file.
61288         * modules/unicase/u32-ct-tolower: New file.
61290         New module 'unicase/u16-ct-tolower'.
61291         * lib/unicase/u16-ct-tolower.c: New file.
61292         * modules/unicase/u16-ct-tolower: New file.
61294         New module 'unicase/u8-ct-tolower'.
61295         * lib/unicase/u8-ct-tolower.c: New file.
61296         * modules/unicase/u8-ct-tolower: New file.
61298         New module 'unicase/u32-ct-toupper'.
61299         * lib/unicase/u32-ct-toupper.c: New file.
61300         * modules/unicase/u32-ct-toupper: New file.
61302         New module 'unicase/u16-ct-toupper'.
61303         * lib/unicase/u16-ct-toupper.c: New file.
61304         * modules/unicase/u16-ct-toupper: New file.
61306         New module 'unicase/u8-ct-toupper'.
61307         * lib/unicase/u8-ct-toupper.c: New file.
61308         * modules/unicase/u8-ct-toupper: New file.
61310         Add context arguments to u*_casemap functions.
61311         * lib/unicase/unicasemap.h: Include unicase.h.
61312         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
61313         suffix_context arguments.
61314         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
61315         functions.
61316         (FUNC): Add prefix_context and suffix_context arguments. Use
61317         uc_is_cased and uc_is_case_ignorable.
61318         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
61319         * lib/unicase/u16-casemap.c: Likewise.
61320         * lib/unicase/u32-casemap.c: Likewise.
61321         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
61322         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61323         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
61324         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61325         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
61326         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61328         New module 'unicase/u32-suffix-context'.
61329         * lib/unicase/u32-suffix-context.c: New file.
61330         * modules/unicase/u32-suffix-context: New file.
61332         New module 'unicase/u16-suffix-context'.
61333         * lib/unicase/u16-suffix-context.c: New file.
61334         * modules/unicase/u16-suffix-context: New file.
61336         New module 'unicase/u8-suffix-context'.
61337         * lib/unicase/u8-suffix-context.c: New file.
61338         * lib/unicase/u-suffix-context.h: New file.
61339         * modules/unicase/u8-suffix-context: New file.
61341         New module 'unicase/empty-suffix-context'.
61342         * lib/unicase/empty-suffix-context.c: New file.
61343         * modules/unicase/empty-suffix-context: New file.
61345         New module 'unicase/u32-prefix-context'.
61346         * lib/unicase/u32-prefix-context.c: New file.
61347         * modules/unicase/u32-prefix-context: New file.
61349         New module 'unicase/u16-prefix-context'.
61350         * lib/unicase/u16-prefix-context.c: New file.
61351         * modules/unicase/u16-prefix-context: New file.
61353         New module 'unicase/u8-prefix-context'.
61354         * lib/unicase/u8-prefix-context.c: New file.
61355         * lib/unicase/u-prefix-context.h: New file.
61356         * lib/unicase/context.h: New file.
61357         * modules/unicase/u8-prefix-context: New file.
61359         New module 'unicase/empty-prefix-context'.
61360         * lib/unicase/empty-prefix-context.c: New file.
61361         * modules/unicase/empty-prefix-context: New file.
61363         New module 'unicase/ignorable'.
61364         * lib/unicase/ignorable.c: New file.
61365         * modules/unicase/ignorable: New file.
61367         New module 'unicase/cased'.
61368         * lib/unicase/caseprop.h: New file.
61369         * lib/unicase/cased.c: New file.
61370         * modules/unicase/cased: New file.
61372         New functions for case mapping of substrings.
61373         * lib/unicase.h (casing_prefix_context_t): New type.
61374         (unicase_empty_prefix_context): New variable.
61375         (u8_casing_prefix_context, u16_casing_prefix_context,
61376         u32_casing_prefix_context, u8_casing_prefixes_context,
61377         u16_casing_prefixes_context, u32_casing_prefixes_context): New
61378         declarations.
61379         (casing_suffix_context_t): New type.
61380         (unicase_empty_suffix_context): New variable.
61381         (u8_casing_suffix_context, u16_casing_suffix_context,
61382         u32_casing_suffix_context, u8_casing_suffixes_context,
61383         u16_casing_suffixes_context, u32_casing_suffixes_context,
61384         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
61385         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
61386         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
61387         declarations.
61389 2009-06-28  Jim Meyering  <meyering@redhat.com>
61391         boostrap: indent only with spaces
61392         * build-aux/bootstrap: Indent only with spaces, never TABs.
61394         bootstrap: split long lines
61395         * build-aux/bootstrap: Keep line length < 80.
61397         bootstrap: sync from coreutils
61398         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
61399         just as autoreconf does.  Verify a list of prerequisite
61400         package-name,version-number pairs if defined in bootstrap.conf.
61401         Refer to README-prereq, if prerequisites are not satisfied.
61403 2009-06-27  Eric Blake  <ebb9@byu.net>
61405         tests: add test for bogus NULL definition
61406         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
61407         * tests/test-stdlib.c: Likewise.
61408         * tests/test-string.c: Likewise.
61409         * tests/test-locale.c: Likewise.
61410         * tests/test-unistd.c: Likewise.
61411         * modules/stdio-tests (Depends-on): Add verify.
61412         * modules/stdlib-tests (Depends-on): Likewise.
61413         * modules/string-tests (Depends-on): Likewise.
61414         * modules/locale-tests (Depends-on): Likewise.
61415         * modules/unistd-tests (Depends-on): Likewise.
61417 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
61419         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
61420         self-explaining comment.
61421         * m4/selinux-selinux-h: Update serial.
61422         (gl_LIBSELINUX): New macro, adding a warning for missing development
61423         packages to code extracted from...
61424         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
61425         Add warning for missing development packages here, too.
61427 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
61429         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
61431 2009-06-25  Eric Blake  <ebb9@byu.net>
61433         version-etc: fix regression
61434         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
61435         gcc.
61436         (version_etc): Use it, to catch bugs with trailing NULL.
61437         * lib/version-etc.c (version_etc_arn): Delete unused argument.
61438         (version_etc_va): Fix logic bug.
61439         * modules/version-etc-tests: Add test.
61440         * tests/test-version-etc.c: New file.
61441         * tests/test-version-etc.sh: Likewise.
61443 2009-06-25  Sam Steingold  <sds@gnu.org>
61445         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
61446         mbtowc declaration.
61448 2009-06-25  Eric Blake  <ebb9@byu.net>
61450         fpurge: migrate into <stdio.h>
61451         * lib/fpurge.h: Delete...
61452         * lib/stdio.in.h (fpurge): ...and declare here, instead.
61453         * lib/fpurge.c (fpurge): Change declaring header.
61454         * modules/fpurge (Files): Drop deleted file.
61455         (Depends-on): Add stdio.
61456         (configure.ac): Set witness.
61457         * modules/stdio (Makefile.am): Support fpurge macros.
61458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61459         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
61460         * lib/fflush.c: Update client.
61461         * tests/test-fpurge.c: Likewise.
61462         * NEWS: Mention the change.
61464 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61466         * lib/argp-version-etc.c (program_authors): Add const
61467         qualifier.
61468         * lib/version-etc.c: Fix typos in the comments.
61469         * modules/argp-version-etc: Depends on version-etc.
61471 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61473         argp-version-etc: new module.
61475         * lib/argp-version-etc.c: New file.
61476         * lib/argp-version-etc.h: New file.
61477         * modules/argp-version-etc: New file.
61478         * modules/argp-version-etc-tests: New file.
61479         * tests/test-argp-version-etc.c: New test.
61480         * tests/test-argp-version-etc-1.sh: New test.
61482 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61484         Provide additional interfaces and documentation for version-etc
61485         module.
61487         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
61488         interfaces.
61489         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
61490         prototypes.
61492 2009-06-24  Bruno Haible  <bruno@clisp.org>
61494         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
61495         HAVE_LIB${NAME} macro.
61496         Reported by Sam Steingold <sds@gnu.org>.
61498 2009-06-23  Simon Josefsson  <simon@josefsson.org>
61500         * modules/hash-tests (test_hash_LDADD): Link to libintl when
61501         needed.
61503 2009-06-21  Bruno Haible  <bruno@clisp.org>
61505         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
61506         work.
61507         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
61508         together with LIB${NAME}, LTLIB${NAME}.
61509         Reported by Sam Steingold <sds@gnu.org>.
61511 2009-06-20  Jim Meyering  <meyering@redhat.com>
61513         tests: make sc_require_test_exit_idiom more generic
61514         * top/maint.mk (Exit_witness_file): New overridable variable.
61515         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
61516         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
61518 2009-06-19  Jim Meyering  <meyering@redhat.com>
61520         hash: reverse order of src/dst parameters in an internal interface
61521         * lib/hash.c (transfer_entries): Reverse order of parameters to
61522         put DST before SRC.  Adjust callers.
61524         tests: test-hash: avoid wholesale duplication
61525         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
61526         Instead, use a loop and add a single conditional.
61528         tests: test-hash: allow seed selection via a command line argument
61529         * tests/test-hash.c (get_seed): New function.
61530         (main): Use it.
61532 2009-06-19  Eric Blake  <ebb9@byu.net>
61534         hash: avoid memory leak on allocation failure
61535         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
61536         failure.  Factor repeated algorithm...
61537         (transfer_entries): ...into new helper routine.
61538         (hash_delete): React to hash_rehash return value.
61540         hash: reduce memory pressure in hash_rehash no-op case
61541         * lib/hash.c (next_prime): Avoid overflow.
61542         (hash_initialize): Factor bucket size computation...
61543         (compute_bucket_size): ...into new helper function.
61544         (hash_rehash): Use new function and open coding to reduce memory
61545         pressure, and avoid a memory leak in USE_OBSTACK code.
61546         Reported by Jim Meyering.
61548 2009-06-18  Eric Blake  <ebb9@byu.net>
61550         hash: make rotation more obvious
61551         * modules/hash (Depends-on): Add bitrotate and stdint.
61552         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
61553         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
61554         (SIZE_MAX): Rely on headers for definition.
61555         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
61556         (raw_hasher): Use rotr_sz.
61557         Suggested by Jim Meyering.
61559         hash: fix memory leak in last patch
61560         * lib/hash.c (hash_rehash): Avoid memory leak.
61562         hash: avoid no-op rehashing
61563         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
61565         hash: provide default callback functions
61566         * lib/hash.c (raw_hasher, raw_comparator): New functions.
61567         (hash_initialize): Use them as defaults.
61568         * tests/test-hash.c (main): Test this.
61570         hash: minor optimization
61571         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
61572         when possible.
61573         (hash_initialize): Document this promise.
61574         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
61575         * tests/test-hash.c (hash_compare_strings): Test this.
61577 2009-06-18  Bruno Haible  <bruno@clisp.org>
61579         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
61580         going to be replaced anyway.
61582 2009-06-18  Bruno Haible  <bruno@clisp.org>
61584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
61585         in one place.
61586         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
61587         be replaced anyway.
61589 2009-06-18  Eric Blake  <ebb9@byu.net>
61591         hash: check for resize before insertion
61592         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
61593         threshold before insertion, so that a pathological hash_rehash
61594         that fills every bucket can still trigger another rehash.
61596 2009-06-18  Jim Meyering  <meyering@redhat.com>
61598         hash-tests: add a loop around the small tests
61599         * tests/test-hash.c (main): Repeat small tests with selected
61600         small initial table sizes.
61602 2009-06-17  Eric Blake  <ebb9@byu.net>
61604         hash: minor cleanups
61605         * lib/hash.h (hash_entry): Make opaque, by moving...
61606         * lib/hash.c (hash_entry): ...here.
61607         (hash_insert): Clarify restrictions on what can be inserted.
61608         (hash_get_next): Clarify when it is safe to remove an element
61609         during traversal.
61610         (check_tuning): Skip verification when tuning is known safe.
61611         (hash_initialize): Clarify restrictions on tuning.
61613 2009-06-17  Jim Meyering  <jim@meyering.net>
61614         and Eric Blake  <ebb9@byu.net>
61616         hash-tests: new module
61617         * modules/hash-tests: New file.
61618         * tests/test-hash.c: New file.
61620 2009-06-17  Eric Blake  <ebb9@byu.net>
61622         strstr-simple: document new module
61623         * MODULES.html.sh: Document new module.
61625         strstr, strcasestr: replace on platforms with broken memchr
61626         * modules/strstr: Split into...
61627         * modules/strstr-simple: ...new module that does not care about
61628         performance, but does care about glibc bug.
61629         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
61630         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
61631         if platform memchr is broken, per Debian bug 521737.
61632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
61633         memchr.
61634         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
61635         * doc/posix-functions/strstr.texi (strstr): Document the fix.
61636         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61637         * modules/mountlist (Depends-on): Add strstr-simple.
61638         * modules/gen-uni-tables (Depends-on): Likewise.
61639         * modules/argz (Depends-on): Add strstr.
61641 2009-06-17  Bruno Haible  <bruno@clisp.org>
61643         * modules/posix_spawn-internal (Depends-on): Add errno.
61645 2009-06-17  Bruno Haible  <bruno@clisp.org>
61647         Define missing ESTALE on Interix 3.5.
61648         * lib/errno.in.h (ESTALE): Assign a value if missing.
61649         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
61650         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
61651         missing.
61652         * doc/posix-headers/errno.texi: Mention the Interix bug.
61653         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
61655 2009-06-15  Eric Blake  <ebb9@byu.net>
61657         memchr, memchr2: add valgrind exception
61658         * lib/memchr.valgrind: New file.
61659         * lib/memchr2.valgrind: New file.
61660         * modules/memchr (Files): Distribute valgrind file.
61661         * modules/memchr2 (Files): Likewise.
61663         docs: memchr is no longer obsolete
61664         * MODULES.html.sh: Move memchr from obsolete to string.h section.
61665         * lib/string.in.h (memchr): Simplify logic.
61667 2009-06-14  Jim Meyering  <meyering@redhat.com>
61669         link-follow: fix the "checking..." message to not mention trailing slash
61670         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
61671         never considered trailing slashes.
61673 2009-06-14  Bruno Haible  <bruno@clisp.org>
61675         * m4/memchr.m4: Mention also the bug on IA-64.
61676         * doc/posix-functions/memchr.texi: Likewise.
61678 2009-06-12  Eric Blake  <ebb9@byu.net>
61680         memchr: detect broken x86_64 and alpha implementations
61681         * modules/memchr-tests (Depends-on): Move mmap detection...
61682         * modules/memchr (Depends-on): ...here.
61683         (configure.ac): Set indicator.
61684         * lib/string.in.h (memchr): Declare replacement.
61685         * modules/string (Makefile.am): Trigger replacement.
61686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61687         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
61688         bugs.
61689         * doc/posix-functions/memchr.texi (memchr): Document the bug.
61690         * modules/getpagesize (License): Relax license.
61692 2009-06-11  Bruno Haible  <bruno@clisp.org>
61694         * lib/idpriv.h: Add more references.
61696 2009-06-08  Bruno Haible  <bruno@clisp.org>
61698         Tests for module 'idpriv-droptemp'.
61699         * modules/idpriv-droptemp-tests: New file.
61700         * tests/test-idpriv-droptemp.sh: New file.
61701         * tests/test-idpriv-droptemp.su.sh: New file.
61702         * tests/test-idpriv-droptemp.c: New file.
61704         New module 'idpriv-droptemp'.
61705         * lib/idpriv-droptemp.c: New file.
61706         * modules/idpriv-droptemp: New file.
61708 2009-06-08  Bruno Haible  <bruno@clisp.org>
61710         Tests for module 'idpriv-drop'.
61711         * modules/idpriv-drop-tests: New file.
61712         * tests/test-idpriv-drop.sh: New file.
61713         * tests/test-idpriv-drop.su.sh: New file.
61714         * tests/test-idpriv-drop.c: New file.
61716         New module 'idpriv-drop'.
61717         * lib/idpriv.h: New file.
61718         * lib-idpriv-drop.c: New file.
61719         * m4/idpriv.m4: New file.
61720         * modules/idpriv-drop: New file.
61722 2009-06-08  Bruno Haible  <bruno@clisp.org>
61724         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
61725         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61726         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61727         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61728         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61729         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61730         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61732 2009-06-08  Eric Blake  <ebb9@byu.net>
61734         test-strstr: use memory fence, when possible
61735         * tests/test-strstr.c (main): Use memory fence, in order to be
61736         more likely to trigger Debian bug 521737.
61737         * modules/strstr-tests (Files): Pull in additional files.
61739         memchr: no longer obsolete, for wider field testing
61740         * modules/memchr (Status, Notice): Delete, this module is no
61741         longer obsolete.
61742         * modules/vasnprintf (Depends-on): Add memchr.
61744 2009-06-07  Jim Meyering  <meyering@redhat.com>
61746         hash: declare some functions with the warn_unused_result attribute
61747         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
61749 2009-06-07  Bruno Haible  <bruno@clisp.org>
61751         * tests/test-alignof.c: Don't test int64_t if it does not exist.
61752         Reported by Eric Blake.
61754 2009-06-06  Eric Blake  <ebb9@byu.net>
61756         test-alignof: fix typo with long double
61757         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
61758         compiler error.
61760 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
61762         Escape non-texinfo { and }s.
61763         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
61764         markup error.
61766 2009-06-04  Jim Meyering  <meyering@redhat.com>
61768         gitlog-to-changelog: don't infloop on an empty commit log
61769         * build-aux/gitlog-to-changelog: Warn about an empty log message.
61770         Reported by Boris Petersen <transacid@centerim.org>.
61772 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
61774         version-etc: extend for packagers
61775         Add three new configure options, intended for packagers:
61776           --with-packager="packager name"
61777           --with-packager-version="packager-specific version"
61778           --with-packager-bug-reports="packager bug reporting"
61779         An example with coreutils:
61780           $ ./configure \
61781             --with-packager=Gentoo \
61782             --with-packager-bug-report=http://bugs.gentoo.org/ \
61783             --with-packager-version="patchset 1.6"
61784           $ ./src/ls --version | head -n2
61785           ls (GNU coreutils) 7.1-dirty
61786           Packaged by Gentoo (patchset 1.6)
61787         Note that the bug reporting info via --help doesn't show up because
61788         coreutils uses its own custom emit_bug_reporting_address() implementation
61789         in src/system.h.  If it didn't, it'd look like:
61790           $ ./src/ls --help | tail -n4
61791           Report bugs to <bug-coreutils@gnu.org>.
61792           Report Gentoo bugs to <http://bugs.gentoo.org/>.
61793           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
61794           General help using GNU software: <http://www.gnu.org/gethelp/>.
61795         * lib/version-etc.c: Print new information, if provided.
61796         * m4/version-etc.m4: New file.
61797         * modules/version-etc (Files): Add m4/version-etc.m4.
61798         (configure.ac): Add gl_VERSION_ETC.
61800 2009-05-31  Bruno Haible  <bruno@clisp.org>
61802         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
61803         and 'int64_t'.
61804         * modules/alignof-tests (Dependencies): Add stdint.
61805         Reported by Eric Blake.
61807 2009-05-31  Bruno Haible  <bruno@clisp.org>
61809         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
61810         restriction due to compiler bugs.
61811         Reported by Eric Blake.
61813 2009-05-31  Simon Josefsson  <simon@josefsson.org>
61814             Bruno Haible  <bruno@clisp.org>
61816         Fix test-alignof failure.
61817         * lib/alignof.h (alignof_slot): New macro.
61818         (alignof_type): New macro, with the same semantics as the previous
61819         'alignof'.
61820         (alignof): Alias to alignof_slot.
61821         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
61822         check that the results are usable as constant expressions.
61824 2009-05-31  Bruno Haible  <bruno@clisp.org>
61826         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
61827         * tests/test-memchr.c (main): Check that memchr does not read past the
61828         first occurrence of the byte.
61829         * tests/test-strstr.c (main): Update comment.
61830         Suggested by Eric Blake.
61832 2009-05-30  Bruno Haible  <bruno@clisp.org>
61834         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
61835         detail how to use dumpbin.
61836         Reported by David Byron <dbyron@dbyron.com>.
61838 2009-06-02  Simon Josefsson  <simon@josefsson.org>
61840         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
61842 2009-06-02  Simon Josefsson  <simon@josefsson.org>
61844         * m4/manywarnings.m4: Add GCC 4.4 warnings.
61846 2009-05-28  Bruno Haible  <bruno@clisp.org>
61848         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
61849         build-aux/ files.
61851 2009-05-28  Simon Josefsson  <simon@josefsson.org>
61853         * gnulib-tool (func_import): Transform license on build-aux/ files too.
61855 2009-05-27  Simon Josefsson  <simon@josefsson.org>
61857         * gnulib-tool (sed_transform_main_lib_file)
61858         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
61859         regexps.
61861 2009-05-26  Simon Josefsson  <simon@josefsson.org>
61863         * tests/test-strstr.c: Add another self-test.
61864         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
61865         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
61867 2009-05-23  Bruno Haible  <bruno@clisp.org>
61869         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
61870         change.
61872 2009-05-21  Bruno Haible  <bruno@clisp.org>
61874         Simplify use of mode_t varargs.
61875         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
61876         uses 'mode_t' or 'int'.
61877         * lib/openat.c (openat): Likewise.
61878         * lib/open-safer.c (open_safer): Likewise.
61879         * m4/mode_t.m4: New file.
61880         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
61881         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
61882         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
61883         * modules/open (Files): Add m4/mode_t.m4.
61884         * modules/openat (Files): Likewise.
61885         * modules/fcntl-safer (Files): Likewise.
61886         Suggested by Eric Blake.
61888 2009-05-21  Pádraig Brady  <P@draigbrady.com>
61890         * doc/glibc-functions/fallocate.texi: New file.
61891         * doc/gnulib.texi: Include it.
61893 2009-05-21  Eric Blake  <ebb9@byu.net>
61894             Bruno Haible  <bruno@clisp.org>
61896         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
61897         invocations.
61898         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61900 2009-05-21  Eric Blake  <ebb9@byu.net>
61901             Bruno Haible  <bruno@clisp.org>
61903         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
61904         include_next. Fix of 2008-11-20 commit.
61905         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
61906         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
61907         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
61908         NEXT_MATH_H.
61909         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
61910         instead of NEXT_MATH_H.
61912 2009-05-21  Bruno Haible  <bruno@clisp.org>
61914         Avoid redefinition warnings for SIZE_MAX.
61915         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
61916         Reported by Simon Josefsson.
61918 2009-05-21  Bruno Haible  <bruno@clisp.org>
61920         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
61921         AC_CACHE_VAL.
61923 2009-05-20  Bruno Haible  <bruno@clisp.org>
61925         Make zeroptr.h work on mingw.
61926         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
61927         mprotect.
61928         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
61929         * modules/memchr2-tests (configure.ac): Likewise.
61930         * modules/memcmp-tests (configure.ac): Likewise.
61931         * modules/memmem-tests (configure.ac): Likewise.
61932         * modules/memrchr-tests (configure.ac): Likewise.
61933         Reported by Simon Josefsson.
61935 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61937         * tests/test-glob.c: Include string.h for strcmp prototype.
61939 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61941         * modules/getdelim (Depends-on): Add explicit stdint, although it
61942         was implicitly already pulled in via realloc-posix.
61943         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
61945 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61947         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
61948         G. Christensen" <tgc@jupiterrise.com>.
61949         * m4/sys_socket_h.m4: Check for sa_family_t.
61950         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
61951         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
61952         * tests/test-sys_socket.c: Check that sa_family_t works.
61954 2009-05-18  Eric Blake  <ebb9@byu.net>
61956         maint.mk: allow gnulib_dir in VPATH build
61957         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
61959 2009-05-15  Jim Meyering  <meyering@redhat.com>
61961         maint.mk: Give gnulib_dir a default definition.
61962         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
61963         Thus, most packages no longer need to specify this variable in cfg.mk
61965 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
61967         rename.m4: fix typos that would make non-mingw cross-configure fail
61968         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
61970 2009-05-13  Eric Blake  <ebb9@byu.net>
61972         mmap-anon: avoid out-of-order autoconf expansion
61973         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
61974         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
61975         * modules/memchr-tests (Depends-on): Add extensions.
61976         * modules/memchr2-tests (Depends-on): Add extensions.
61977         * modules/memcmp-tests (Depends-on): Add extensions.
61978         * modules/memmem-tests (Depends-on): Add extensions.
61979         * modules/memrchr-tests (Depends-on): Add extensions.
61981 2009-05-13  Bruno Haible  <bruno@clisp.org>
61983         Make some tests ISO C 99 compliant.
61984         * tests/zerosize-ptr.h: New file.
61985         * tests/test-memchr.c: Include zerosize-ptr.h.
61986         (main): Use a zero-size object pointer instead of NULL.
61987         * tests/test-memchr2.c: Include zerosize-ptr.h.
61988         (main): Use a zero-size object pointer instead of NULL.
61989         * tests/test-memcmp.c: Include zerosize-ptr.h.
61990         (main): Use a zero-size object pointer instead of NULL.
61991         * tests/test-memmem.c: Include zerosize-ptr.h.
61992         (main): Use a zero-size object pointer instead of NULL.
61993         * tests/test-memrchr.c: Include zerosize-ptr.h.
61994         (main): Use a zero-size object pointer instead of NULL.
61995         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
61996         m4/mmap-anon.m4.
61997         (Depends-on): Add getpagesize.
61998         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61999         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
62000         m4/mmap-anon.m4.
62001         (Depends-on): Add getpagesize.
62002         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62003         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
62004         m4/mmap-anon.m4.
62005         (Depends-on): Add getpagesize.
62006         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62007         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
62008         m4/mmap-anon.m4.
62009         (Depends-on): Add getpagesize.
62010         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62011         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
62012         m4/mmap-anon.m4.
62013         (Depends-on): Add getpagesize.
62014         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62016 2009-05-12  Bruno Haible  <bruno@clisp.org>
62018         Tests for module 'alignof'.
62019         * modules/alignof-tests: New file.
62020         * tests/test-alignof.c: New file.
62022 2009-05-12  Bruno Haible  <bruno@clisp.org>
62024         Fix alignof macro.
62025         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
62026         vendor compilers that are always correct.
62028 2009-05-12  Bruno Haible  <bruno@clisp.org>
62030         Make the MAP_ANONYMOUS detection work on HP-UX 11.
62031         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
62032         not whether its fully works.
62034 2009-05-12  Bruno Haible  <bruno@clisp.org>
62036         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
62038 2009-05-12  Jim Meyering  <meyering@redhat.com>
62040         * top/maint.mk: Adjust backslash alignment.
62042 2009-05-11  Simon Josefsson  <simon@josefsson.org>
62044         * top/maint.mk: Make $(srcdir)/build-aux configurable.
62046 2009-05-11  Eric Blake  <ebb9@byu.net>
62048         argp: avoid undefined behavior
62049         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
62050         macros.
62052 2009-05-08  Simon Josefsson  <simon@josefsson.org>
62054         * tests/test-vc-list-files-git.sh: Do git config of user.email and
62055         user.name to prevent git commit from complaining.
62057 2009-05-10  Bruno Haible  <bruno@clisp.org>
62059         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
62060         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
62061         it rewrites every file name only once.
62062         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
62064 2009-05-08  Bruno Haible  <bruno@clisp.org>
62066         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
62067         instead of 'max'.
62069 2009-05-08  Simon Josefsson  <simon@josefsson.org>
62071         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
62072         sockaddr_storage test.
62074 2009-05-07  Simon Josefsson  <simon@josefsson.org>
62076         * modules/sys_socket (Makefile.am): Substitute
62077         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
62078         * m4/sys_socket_h.m4: Check for sockaddr_storage.
62079         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
62080         * tests/test-sys_socket.c: Check sockaddr_storage.
62082 2009-05-08  Bruno Haible  <bruno@clisp.org>
62084         New module 'alignof'.
62085         * lib/alignof.h: New file.
62086         * modules/alignof: New file.
62088 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
62089             Bruno Haible  <bruno@clisp.org>
62091         Fix test-file-has-acl on FreeBSD.
62092         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
62093         mask is implicitly added.
62094         * tests/test-file-has-acl.c: Include <signal.h>.
62095         (main): Terminate the test after 5 seconds.
62096         * modules/acl-tests (configure.ac): Check for alarm function.
62098 2009-05-04  Bruno Haible  <bruno@clisp.org>
62100         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
62101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
62102         * modules/errno (configure.ac): Drop AC_REQUIRE.
62103         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
62104         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
62106 2009-05-04  Simon Josefsson  <simon@josefsson.org>
62108         * modules/glob-tests: New module.
62109         * tests/test-glob.c: Add.
62111 2009-05-04  Simon Josefsson  <simon@josefsson.org>
62113         * modules/fnmatch-tests: New module.
62114         * tests/test-fnmatch.c: Add.
62116 2009-05-04  Eric Blake  <ebb9@byu.net>
62118         maint: make the new no-submodule-changes rule VPATH-safe
62119         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
62121 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
62122             Bruno Haible  <bruno@clisp.org>
62124         acl: Fix infinite loop on FreeBSD.
62125         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
62126         of return value from acl_get_entry.
62127         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
62128         Likewise.
62130 2009-05-03  Bruno Haible  <bruno@clisp.org>
62132         * lib/acl-internal.h (acl_entries): Clarify return value.
62133         * lib/acl_entries.c (acl_entries): Likewise.
62135 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
62137         Bug fix in acl module.
62138         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
62140 2009-05-03  Bruno Haible  <bruno@clisp.org>
62142         Create gperf-generated file in the source dir, not in the build dir.
62143         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
62144         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
62145         * modules/unicase/locale-language (unicase/locale-languages.h):
62146         Likewise.
62147         * modules/unicase/special-casing (unicase/special-casing-table.h):
62148         Likewise.
62149         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
62150         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
62151         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
62152         Reported by Ralf Wildenhues.
62154 2009-05-03  Bruno Haible  <bruno@clisp.org>
62156         * modules/fnmatch (Description, configure.ac): Taken from
62157         fnmatch-posix.
62158         * modules/fnmatch-posix: Turn into a symbolic reference to the
62159         'fnmatch' module, and deprecate.
62160         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
62162 2009-05-03  Bruno Haible  <bruno@clisp.org>
62164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
62165         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
62166         Reported by Ralf Wildenhues.
62168 2009-05-04  Simon Josefsson  <simon@josefsson.org>
62170         * m4/fnmatch.m4: Fix fnmatch re-define.
62172 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
62174         priv-set: new module and tests; adapt write-any-file
62175         * lib/priv-set.c: New file.
62176         * lib/priv-set.h: New file.
62177         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
62178         * lib/write-any-file.c: Simplify by using priv-set module.
62179         * m4/priv-set.m4: New file.
62180         * modules/priv-set: New file.
62181         * modules/unlinkdir: Add dependency on priv-set module.
62182         * modules/write-any-file: Likewise.
62184         Tests for module 'priv-set'.
62185         * modules/priv-set-tests: New file.
62186         * tests/test-priv-set.c: New file.
62188 2009-05-03  Jim Meyering  <meyering@redhat.com>
62189             Bruno Haible  <bruno@clisp.org>
62191         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
62192         use the converted UTF-8 variant of the name instead.
62194 2009-05-03  Jim Meyering  <meyering@redhat.com>
62196         tests: tighten some getdate tests
62197         * tests/test-getdate.c (main): Tighten tests: require equality,
62198         not just greater than.  Set TZ envvar to UTC0.
62200 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
62202         getdate: correctly interpret "next monday" when run on a Monday
62203         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
62204         that e.g., "next tues" (when run on a tuesday) results in a date
62205         that is one week in the future, and not today's date.
62206         I.e., add a week when the wday is the same as the current one.
62207         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
62208         and earlier by Martin Bernreuther and Jan Minář.
62209         * tests/test-getdate.c (main): Check that "next DAY" is always in
62210         the future and that "last DAY" is always in the past.
62212 2009-05-02  Jim Meyering  <meyering@redhat.com>
62214         build: ensure that a release build fails when a submodule is unclean
62215         * top/maint.mk (no-submodule-changes): New rule.
62216         (alpha beta major): Depend on it.
62218 2009-05-02  Bruno Haible  <bruno@clisp.org>
62220         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
62221         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
62222         shell variable gl_fnmatch_required to detect which variant is
62223         requested.
62224         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
62225         gl_FUNC_FNMATCH_POSIX.
62226         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
62227         exclude fnmatch-posix.
62229 2009-05-02  Bruno Haible  <bruno@clisp.org>
62231         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
62232         * modules/mbsrtowcs (License): Change to LGPLv2+.
62233         * modules/strnlen1 (License): Likewise.
62234         Reported by Simon Josefsson.
62236 2009-05-02  Bruno Haible  <bruno@clisp.org>
62238         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
62239         "cross".
62240         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
62241         gnulib-tool was called with option --source-base=lib.
62243 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62245         Use automake *-local hooks without commands, for extensibility.
62246         * modules/localcharset (Makefile.am): Rename install-exec-local
62247         rule to install-exec-localcharset, and make it a prerequisite of
62248         install-exec-local.  Likewise, rename the uninstall-local rule to
62249         uninstall-localcharset, and make it a prerequisite of the former.
62251 2009-05-01  Bruno Haible  <bruno@clisp.org>
62253         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
62254         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
62255         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
62256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
62257         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
62258         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
62259         m4/locale-zh.m4, m4/codeset.m4.
62261         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
62262         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
62263         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
62264         m4/locale-zh.m4.
62266         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
62267         REPLACE_WCRTOMB if mbstate_t must be replaced.
62268         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
62269         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
62271 2009-05-01  Bruno Haible  <bruno@clisp.org>
62273         Avoid compiler warnings when redefining macros defined by <libintl.h>.
62274         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
62275         dngettext, dcngettext, textdomain, bindtextdomain,
62276         bind_textdomain_codeset): Undefine before redefining.
62278 2009-04-30  Bruno Haible  <bruno@clisp.org>
62280         Fix bug introduced on 2009-04-25.
62281         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
62282         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
62283         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
62284         is defined.
62285         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
62286         is defined.
62287         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
62288         is defined.
62289         Reported by Elbert_Pol <elbert.pol@gmail.com>.
62291 2009-04-28  Bruno Haible  <bruno@clisp.org>
62293         Comment tweaks.
62294         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
62295         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
62296         * lib/unicase.h (u*_casexfrm): Likewise.
62297         Reported by Paolo Bonzini.
62299 2009-04-28  Bruno Haible  <bruno@clisp.org>
62301         Fix a compilation error.
62302         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
62303         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
62304         Reported by Jim Meyering.
62306 2009-04-27  Bruno Haible  <bruno@clisp.org>
62308         New module 'libunistring'.
62309         * modules/libunistring: New file.
62310         * m4/libunistring.m4: New file.
62311         * MODULES.html.sh (Unicode string functions): Add it.
62313 2009-04-27  Eric Blake  <ebb9@byu.net>
62315         maint.mk: allow package-specific header to provide <config.h>
62316         * top/maint.mk (sc_require_config_h): New variable.
62317         (sc_require_config_h, sc_require_config_h_first): Use it.
62319 2009-04-27  Simon Josefsson  <simon@josefsson.org>
62321         * top/maint.mk (sc_avoid_if_before_free): Except
62322         useless-if-before-free script.
62324 2009-04-27  Eric Blake  <ebb9@byu.net>
62326         maintainer-makefile: depend on all required helper scripts
62327         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
62328         useless-if-before-free.
62329         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
62330         version, rather than assuming gnulib checkout is available.
62331         Reported by Simen Josefsson.
62333 2009-04-26  Bruno Haible  <bruno@clisp.org>
62335         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
62336         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
62337         "../" or "..".
62339 2009-04-26  Bruno Haible  <bruno@clisp.org>
62341         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
62342         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
62343         AC_LIB_HAVE_LINKFLAGS.
62345 2009-04-26  Bruno Haible  <bruno@clisp.org>
62347         Simplify calling convention of u*_conv_from_encoding.
62348         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
62349         u32_conv_from_encoding): Expect a resultbuf argument and return the
62350         result directly as a pointer.
62351         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
62352         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
62353         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
62354         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
62355         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
62356         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
62357         Update.
62358         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
62359         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
62360         * lib/vasnprintf.c (VASNPRINTF): Update.
62361         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
62362         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
62363         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
62364         * NEWS: Mention the change.
62366 2009-04-26  Bruno Haible  <bruno@clisp.org>
62368         Simplify calling convention of u*_conv_to_encoding.
62369         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62370         u32_conv_to_encoding): Expect a resultbuf argument and return the
62371         result directly as a pointer.
62372         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
62373         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
62374         freeing scaled_offsets if mem_iconveha failed.
62375         * lib/unicase/u-casexfrm.h (FUNC): Update.
62376         * lib/uninorm/u-normxfrm.h (FUNC): Update.
62377         * lib/vasnprintf.c (VASNPRINTF): Update.
62378         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
62379         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
62380         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
62381         * NEWS: Mention the change.
62383 2009-04-26  Bruno Haible  <bruno@clisp.org>
62385         Avoid test failures on AIX and OSF/1.
62386         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
62387         malloc(0).
62388         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
62389         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
62390         Likewise.
62391         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
62392         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
62393         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
62394         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
62395         * doc/posix-functions/malloc.texi: Document the portability problem
62396         related to malloc(0).
62398 2009-04-26  Bruno Haible  <bruno@clisp.org>
62400         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
62401         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
62402         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
62404 2009-04-25  Bruno Haible  <bruno@clisp.org>
62406         Avoid link error when creating a namespace clean library.
62407         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
62408         as macro with arguments if already defined as an alias.
62409         * lib/signbitf.c (gl_signbitf): Don't undefine.
62410         * lib/signbitd.c (gl_signbitd): Don't undefine.
62411         * lib/signbitl.c (gl_signbitl): Don't undefine.
62413 2009-04-25  Jim Meyering  <meyering@redhat.com>
62415         vc-list-files: fix another quoting bug
62416         * build-aux/vc-list-files: Avoid sed backslash expansion
62417         of pathological directory names.
62419 2009-04-25  Eric Blake  <ebb9@byu.net>
62421         vc-list-files: fix shell quoting error
62422         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
62423         timestamp.
62425 2009-04-25  Jim Meyering  <meyering@redhat.com>
62427         vc-list-files: restore lost functionality with subdir argument
62428         * build-aux/vc-list-files: When given a non-"." sub-directory
62429         argument, substitute the $dir/ prefix back onto each resulting name.
62430         Otherwise, coreutils' root_tests check would fail.
62432 2009-04-24  Eric Blake  <ebb9@byu.net>
62434         vc-list-files: ignore git symlinks
62435         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
62436         than ls-files, to ignore git symlinks.
62438         maint.mk: import improvements from m4
62439         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
62440         (move_if_change): Delete unused macro.
62441         (news-date-check, vc-diff-check): Support VPATH builds.
62442         (announcement): Likewise.  Split --bootstrap-tools list...
62443         (boostrap-tools): ...into separate list, which can be overridden
62444         in cfg.mk.
62445         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
62446         requiring dependency on useless-if-before-free module.
62447         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
62448         Support VPATH builds.
62450 2009-04-24  Jim Meyering  <meyering@redhat.com>
62452         maint.mk: remove coreutils-specific rules and variables
62453         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
62454         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
62455         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
62457         maint.mk: remove obsolete rule
62458         * top/maint.mk (rel-check): Remove rule.
62459         (WGET, WGETFLAGS): Remove now-unused variables.
62461 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62463         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
62464         consistency.
62466         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
62467         '$(PATH_SEPARATOR)' instead of ':'.
62469 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62471         * lib/getopt1.c (main): Use 'const' for static array.
62473 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62475         * top/maint.mk: Sync with coreutils.
62476         * NEWS: Explain incompatibilities.
62478 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62479             Bruno Haible  <bruno@clisp.org>
62481         Fix cross-compilation results.
62482         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
62483         statement, as third argument of AC_TRY_RUN.
62484         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62485         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62486         Likewise.
62487         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62488         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62489         Likewise.
62490         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62491         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
62492         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
62494 2009-04-20  Bruno Haible  <bruno@clisp.org>
62496         Avoid test failure on mingw.
62497         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
62499 2009-04-20  Bruno Haible  <bruno@clisp.org>
62501         Avoid compilation error on mingw.
62502         * modules/localename-tests (Depends-on): Add locale.
62504 2009-04-19  Bruno Haible  <bruno@clisp.org>
62506         Support for building a shared library on Windows platforms.
62507         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
62508         (main): Test the presence of UNINORM_NFC here.
62509         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
62510         (main): Test the presence of UNINORM_NFD here.
62511         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
62512         (main): Test the presence of UNINORM_NFKC here.
62513         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
62514         (main): Test the presence of UNINORM_NFKD here.
62516 2009-04-19  Bruno Haible  <bruno@clisp.org>
62518         Avoid a compiler warning.
62519         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
62520         Change type of variable 'sequence'.
62522 2009-04-19  Bruno Haible  <bruno@clisp.org>
62524         * modules/configmake (Makefile.am): When the contents of configmake.h
62525         does not change, arrange to preserve its modification time.
62527 2009-04-17  Simon Josefsson  <simon@josefsson.org>
62529         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
62530         gettext domain.
62532 2009-04-16  Jim Meyering  <meyering@redhat.com>
62534         useless-if-before-free: improve conversion code
62535         * build-aux/useless-if-before-free: Adjust code-in-comment to match
62536         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
62538 2009-04-14  Bruno Haible  <bruno@clisp.org>
62540         * modules/fcntl (Depends-on): Add extensions.
62541         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
62543 2009-04-12  Ben Pfaff  <blp@gnu.org>
62545         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
62546         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
62548 2009-03-20  Ben Pfaff  <blp@gnu.org>
62550         Make rename replace existing destinations on Windows.
62551         * m4/rename.m4: Add test for Mingw.
62552         * lib/rename.c: Add rename replacement that uses MoveFileEx with
62553         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
62554         * doc/posix-functions/rename.texi: Document.
62556 2009-04-10  Bruno Haible  <bruno@clisp.org>
62558         New include file "iconveh.h".
62559         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
62560         * lib/striconveh.h: Include it.
62561         (enum iconv_ilseq_handler): Remove definition.
62562         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
62563         striconveh.h.
62564         * lib/striconveha.c: Include striconveh.h.
62565         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
62566         * modules/striconveh (Files): Add lib/iconveh.h.
62567         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
62568         lib/striconveh.h.
62570 2009-04-10  Bruno Haible  <bruno@clisp.org>
62572         * lib/uniconv.h: Update comment.
62574 2009-04-10  Bruno Haible  <bruno@clisp.org>
62576         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
62577         always.
62578         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62579         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62580         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62581         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
62582         "unistring-notinline.h", so that the function gets defined always.
62583         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62584         * lib/unistr/u8-uctomb.c: Likewise.
62585         * lib/unistr/u16-mbtouc.c: Likewise.
62586         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62587         * lib/unistr/u16-uctomb.c: Likewise.
62588         * lib/unistr/u32-mbtouc.c: Likewise.
62589         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62590         * lib/unistr/u32-uctomb.c: Likewise.
62592 2009-04-10  Bruno Haible  <bruno@clisp.org>
62594         Mark 'utime' obsolete.
62595         * modules/utime (Status, Notice): New sections.
62596         Suggested by Jim Meyering.
62598         Fix cross-compile guess for utime test.
62599         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
62600         autoconf.
62601         * doc/posix-functions/utime.texi: Give more precisions.
62602         Reported by Jan <ipif@ymail.com>.
62604 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
62606         filevercmp: correct today's change
62607         * lib/filevercmp.c: Also handle coreutils' test inputs.
62608         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
62610         Fix regression in 'filevercmp' module. Thanks Sven Joachim
62611         for reporting it.
62612         * lib/filevercmp.c: Special handle for "", "." and "..".
62613         * tests/test-filevercmp.c: Enlarge the set suite.
62615 2009-04-07  Jim Meyering  <meyering@redhat.com>
62617         useless-if-before-free: show how to remove braced useless free, too
62618         * build-aux/useless-if-before-free: still only in a comment, though.
62620 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
62622         maint.mk: import changes to syntax-check macros from coreutils
62623         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
62624         Use them in the relevant macros.
62626 2009-04-06  Bruno Haible  <bruno@clisp.org>
62628         Fix unportable use of bit-fields.
62629         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
62630         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
62631         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
62633 2009-04-06  Bruno Haible  <bruno@clisp.org>
62635         Avoid test failures on AIX and OSF/1.
62636         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
62637         that malloc(0) = NULL.
62638         * tests/unicase/test-u8-tolower.c (check): Likewise.
62639         * tests/unicase/test-u8-totitle.c (check): Likewise.
62640         * tests/unicase/test-u8-toupper.c (check): Likewise.
62641         * tests/unicase/test-u16-casefold.c (check): Likewise.
62642         * tests/unicase/test-u16-tolower.c (check): Likewise.
62643         * tests/unicase/test-u16-totitle.c (check): Likewise.
62644         * tests/unicase/test-u16-toupper.c (check): Likewise.
62645         * tests/unicase/test-u32-casefold.c (check): Likewise.
62646         * tests/unicase/test-u32-tolower.c (check): Likewise.
62647         * tests/unicase/test-u32-totitle.c (check): Likewise.
62648         * tests/unicase/test-u32-toupper.c (check): Likewise.
62649         * tests/uninorm/test-u8-nfc.c (check): Likewise.
62650         * tests/uninorm/test-u8-nfd.c (check): Likewise.
62651         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
62652         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
62653         * tests/uninorm/test-u16-nfc.c (check): Likewise.
62654         * tests/uninorm/test-u16-nfd.c (check): Likewise.
62655         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
62656         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
62657         * tests/uninorm/test-u32-nfc.c (check): Likewise.
62658         * tests/uninorm/test-u32-nfd.c (check): Likewise.
62659         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
62660         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
62662 2009-04-05  Bruno Haible  <bruno@clisp.org>
62664         Work around an autoconf limitation.
62665         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
62666         comment line if it would be longer than 3 KB.
62668 2009-04-05  Bruno Haible  <bruno@clisp.org>
62670         Avoid test failure with libiconv-1.13.
62671         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
62672         of the expected test results.
62674 2009-04-05  Bruno Haible  <bruno@clisp.org>
62676         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
62677         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
62678         that it should be installed.
62680 2009-04-05  Bruno Haible  <bruno@clisp.org>
62682         * gnulib-tool: New option --copy-file.
62683         (func_usage): Document it.
62684         (func_dest_tmpfilename): Moved out of func_import.
62685         (func_add_file, func_update_file): New functions, extracted from
62686         func_import.
62687         (func_import): Update.
62689 2009-04-05  Karl Berry  <karl@gnu.org>
62691         * README: prominently mention gnulib-tool.
62692         Rearrange sections so getting the code is near the top.
62694 2009-04-05  Bruno Haible  <bruno@clisp.org>
62696         * lib/unicase.h: Mention u*_cmp2.
62697         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
62698         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
62699         * lib/unicase/ulc-casecmp.c: Likewise.
62700         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
62701         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
62702         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
62703         unistr/u8-cmp.
62704         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
62705         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
62706         unistr/u16-cmp.
62707         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
62708         unistr/u32-cmp.
62710         * lib/uninorm.h: Mention u*_cmp2.
62711         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
62712         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
62713         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
62714         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
62715         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
62716         unistr/u8-cmp.
62717         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
62718         unistr/u16-cmp.
62719         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
62720         unistr/u32-cmp.
62722         New module 'unistr/u32-cmp2'.
62723         * lib/unistr/u32-cmp2.c: New file.
62724         * modules/unistr/u32-cmp2: New file.
62726         New module 'unistr/u16-cmp2'.
62727         * lib/unistr/u16-cmp2.c: New file.
62728         * modules/unistr/u16-cmp2: New file.
62730         New module 'unistr/u8-cmp2'.
62731         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
62732         * lib/unistr/u8-cmp2.c: New file.
62733         * lib/unistr/u-cmp2.h: New file.
62734         * modules/unistr/u8-cmp2: New file.
62736 2009-04-05  Bruno Haible  <bruno@clisp.org>
62738         * lib/unictype.h (uc_property_is_valid): New macro.
62739         * tests/unictype/test-pr_byname.c (main): Use it.
62741         * lib/unistr.h: Doc fixes.
62742         * lib/uniconv.h: Doc fixes.
62743         * lib/unictype.h: Doc fixes.
62745 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
62747         Port coreutils 7.2 to Solaris 8.
62749         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
62750         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
62751         for Solaris 8.  This is a bit of a hack, as it means it's the
62752         caller's responsibility to add -lnsl if needed, but most likely it
62753         won't be needed since only getaddrinfo uses this and getaddrinfo
62754         isn't needed on Solaris 8.
62756         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
62757         problem to Solaris 8 encountered with coreutils 7.2, which
62758         resulted in a message "fnmatch.c:292: warning: passing argument 4
62759         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
62760         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
62762 2009-04-03  Simon Josefsson  <simon@josefsson.org>
62764         * m4/ld-version-script.m4: Add FIXME comment.
62766 2009-04-02  Simon Josefsson  <simon@josefsson.org>
62768         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
62769         SOVERSION variable.
62771 2009-04-02  Bruno Haible  <bruno@clisp.org>
62773         * Makefile (info, html, dvi, pdf): Combine the rules.
62774         Suggested by Jim Meyering.
62776 2009-04-01  Bruno Haible  <bruno@clisp.org>
62778         * Makefile (info, html, dvi, pdf): New targets.
62779         Reported by Reuben Thomas <rrt@sc3d.org>.
62781 2009-04-01  Bruno Haible  <bruno@clisp.org>
62783         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
62784         can be put into PATH.
62785         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
62787 2009-04-01  Bruno Haible  <bruno@clisp.org>
62789         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
62791 2009-04-01  Bruno Haible  <bruno@clisp.org>
62793         Rename module 'visibility'.
62794         * modules/lib-symbol-visibility: Renamed from modules/visibility.
62795         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
62796         * doc/gnulib.texi: Update.
62797         * MODULES.html.sh (Misc): Update.
62798         * NEWS: Mention the change.
62800 2009-04-01  Simon Josefsson  <simon@josefsson.org>
62802         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
62803         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
62804         Eric Blake <ebb9@byu.net> for review.
62805         * MODULES.html.sh: Add lib-msvc-compat.
62806         * doc/gnulib.texi: Link to new section.
62807         * m4/ld-output-def.m4: New file.
62808         * doc/ld-output-def.texi: New file.
62810 2009-04-01  Simon Josefsson  <simon@josefsson.org>
62812         Rename ld-version-script to lib-symbol-versions.  Suggested by
62813         Bruno Haible <bruno@clisp.org>.
62814         * modules/ld-version-script: Renamed to lib-symbol-versions.
62815         * doc/ld-version-script.texi: Fix module name.
62816         * MODULES.html.sh: Add lib-symbol-versions.
62818 2009-03-31  Simon Josefsson  <simon@josefsson.org>
62820         * modules/u64-tests: New file.
62821         * tests/test-u64.c: New file.
62823 2009-03-04  Simon Josefsson  <simon@josefsson.org>
62825         * MODULES.html.sh: Mention u64.
62826         * modules/u64: New module.
62827         * modules/crypto/sha512: Depend on u64 module instead of providing
62828         u64.h.
62830 2009-03-27  Eric Blake  <ebb9@byu.net>
62832         test-strerror: make debugging EAI_SYSTEM easier
62833         * modules/getaddrinfo-tests (Depends-on): Add strerror.
62834         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
62835         failure was EAI_SYSTEM.
62837 2009-03-25  Bruno Haible  <bruno@clisp.org>
62839         Fix a problem with --enable-relocatable on Solaris 7.
62840         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
62841         since 2008-02-24.
62843 2009-03-25  Eric Blake  <ebb9@byu.net>
62845         test-sockets: avoid gcc warning
62846         * tests/test-sockets.c (main): Silence compiler warning.
62848 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62850         New modules nproc, pthread, contributed by Glen Lenker.
62852         * MODULES.html.sh: Add pthread, nproc.
62853         * lib/nproc.c: New file.
62854         * lib/nproc.h: New file.
62855         * lib/pthread.in.h: New file.
62856         * m4/pthread.m4: New file.
62857         * modules/nproc: New file.
62858         * modules/pthread: New file.
62860 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62862         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
62863         New variable.
62865 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
62867         filevercmp: handle simple~ and numbered.~3~ backup suffixes
62868         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
62869         * tests/test-filevercmp.c: Add tests for backup suffixes.
62871 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62873         * modules/stdlib (Depends-on): Add stdint, needed when defining
62874         struct random_data on, for example, HP-UX 10.20.  Reported by
62875         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62877 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62879         * lib/readline.c (readline): Call fflush on stdout after printing
62880         prompt.
62882 2009-03-20  Bruno Haible  <bruno@clisp.org>
62884         Remove dependency from 'close' module to -lws2_32 on native Windows.
62885         * lib/close-hook.h: New file.
62886         * lib/close-hook.c: New file.
62887         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
62888         w32sock.h.
62889         (_gl_close_fd_maybe_socket): Remove function.
62890         (rpl_close): Invoke execute_all_close_hooks instead of
62891         _gl_close_fd_maybe_socket.
62892         * lib/sockets.c: Include close-hook.h, w32sock.h.
62893         (close_fd_maybe_socket): New function, essentially from lib/close.c.
62894         (close_sockets_hook): New variable.
62895         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
62896         (gl_sockets_cleanup): Unregister it.
62897         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
62898         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
62899         * modules/close-hook: New file.
62900         * modules/close (Files): Remove lib/w32sock.h.
62901         (Depends-on): Add close-hook.
62902         (Link): Remove section.
62903         * modules/sockets (Files): Add lib/w32sock.h.
62904         (Depends-on): Add close-hook.
62905         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
62906         invocation.
62907         * NEWS: Mention that LIB_CLOSE is gone.
62909 2009-03-23  Eric Blake  <ebb9@byu.net>
62911         signal-tests: test previous patch
62912         * tests/test-signal.c: New file.
62913         * modules/signal-tests: Likewise.
62915         signal.h: always support 'volatile sig_atomic_t'
62916         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
62917         (gl_SIGNAL_H_DEFAULTS): Add a default.
62918         * modules/signal (Makefile.am): Substitute if needed.
62919         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
62920         users can blindly add volatile.
62921         * doc/posix-headers/signal.texi (signal.h): Document it.
62922         Reported by Matthew Woehlke.
62924 2009-03-23  Jim Meyering  <meyering@redhat.com>
62926         pathmax: PATH_MAX: use pathconf only when available
62927         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
62928         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
62929         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
62930         This avoids a link failure in a PSP cross-compilation environment
62931         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
62933         * lib/vasnprintf.c (divide): Fix typo in comment.
62935 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62937         * gnulib-tool (func_filter_filelist): Fix comment.
62939 2009-03-20  Bruno Haible  <bruno@clisp.org>
62941         Make sockets.h self-contained.
62942         * lib/sockets.c: Include sockets.h first.
62943         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
62945 2009-03-19  Eric Blake  <ebb9@byu.net>
62947         doc: mention more functions added in cygwin 1.7.0
62948         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
62949         addition.
62950         * doc/posix-functions/log2f.texi: Likewise.
62952 2009-03-19  Jim Meyering  <meyering@redhat.com>
62954         fsusage: avoid syntax error due to statement-before-declaration
62955         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
62956         after all declarations.  Reported by Matthew Woehlke in
62957         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
62959 2009-03-18  Eric Blake  <ebb9@byu.net>
62961         build-aux/compile: sync from automake
62962         * build-aux/compile: New file, from automake.
62963         * config/srclist.txt: Mention build-aux/compile.
62965 2009-03-17  Bruno Haible  <bruno@clisp.org>
62967         * lib/git-merge-changelog.c: Fix typo in comment.
62968         Reported by Reuben Thomas <rrt@sc3d.org>.
62970 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
62972         * m4/regex.m4: update and improve help for
62973         --without-included-regex.
62975 2009-03-17  Simon Josefsson  <simon@josefsson.org>
62977         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
62978         failure on missing include files.
62980 2009-03-17  Eric Blake  <ebb9@byu.net>
62982         doc: mention more functions added in cygwin 1.7.0
62983         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
62984         addition.
62985         * doc/posix-functions/fwscanf.texi: Likewise.
62986         * doc/posix-functions/swprintf.texi: Likewise.
62987         * doc/posix-functions/swscanf.texi: Likewise.
62988         * doc/posix-functions/vfwprintf.texi: Likewise.
62989         * doc/posix-functions/vfwscanf.texi: Likewise.
62990         * doc/posix-functions/vswprintf.texi: Likewise.
62991         * doc/posix-functions/vswscanf.texi: Likewise.
62992         * doc/posix-functions/vwprintf.texi: Likewise.
62993         * doc/posix-functions/vwscanf.texi: Likewise.
62994         * doc/posix-functions/wcscasecmp.texi: Likewise.
62995         * doc/posix-functions/wcsdup.texi: Likewise.
62996         * doc/posix-functions/wcsftime.texi: Likewise.
62997         * doc/posix-functions/wcsncasecmp.texi: Likewise.
62998         * doc/posix-functions/wprintf.texi: Likewise.
62999         * doc/posix-functions/wscanf.texi: Likewise.
63000         * doc/glibc-functions/gethostbyname2.texi: Likewise.
63002 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63004         maint.mk: really add $(AM_MAKEFLAGS)
63005         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
63006         was inadvertently omitted in the last commit.
63007         Spotted by Bruno Haible.
63009         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
63010         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
63011         $(AM_MAKEFLAGS)' rather than plain `make'.
63013         gnulib-tool: execute $MAKE not make
63014         * gnulib-tool: Default $MAKE to 'make'.
63015         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
63016         than make.  Initialize $MAKE in the do-autobuild script.
63018         gnulib-tool: use $MAKE not make in generated files
63019         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
63020         make, in generated files.  Initialize $MAKE in the do-autobuild
63021         script.
63023         * top/GNUmakefile (_have-git-version-gen): Fix typo.
63025         GNUmakefile: disable parallelism only for multiple, recursive targets
63026         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
63027         additions in the Makefile.
63028         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
63029         by Automake.
63030         (.NOTPARALLEL): Only disable parallel builds if multiple targets
63031         are listed on the command line and at least one of them is
63032         listed in $(ALL_RECURSIVE_TARGETS).
63034 2009-03-14  Bruno Haible  <bruno@clisp.org>
63036         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
63037         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
63038         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
63039         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
63040         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
63041         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
63042         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
63043         unistr/u8-uctomb.
63044         * modules/unistr/u8-strchr (Depends-on): Likewise.
63045         * modules/unistr/u8-strrchr (Depends-on): Likewise.
63046         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
63047         unistr/u16-uctomb.
63048         * modules/unistr/u16-strchr (Depends-on): Likewise.
63049         * modules/unistr/u16-strrchr (Depends-on): Likewise.
63051 2009-03-12  Bruno Haible  <bruno@clisp.org>
63053         Work around select() bug on Interix 3.5.
63054         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
63055         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
63056         * m4/select.m4: New file.
63057         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
63058         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
63059         * modules/select (Files): Add m4/select.m4.
63060         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
63061         * modules/nanosleep (Depends-on): Add select.
63062         * modules/poll (Depends-on): Likewise.
63063         * doc/posix-functions/select.texi: Mention the Interix bug.
63064         Reported by Markus Duft <mduft@gentoo.org>.
63066         * lib/select.c: Renamed from lib/winsock-select.c.
63067         * modules/select (Files): Add lib/select.c, remove
63068         lib/winsock-select.c.
63069         (configure.ac): Update.
63071 2009-03-12  Jim Meyering  <meyering@redhat.com>
63073         avoid gcc warnings about unused macro definitions
63074         * lib/readtokens.c (STREQ): Remove unused definition.
63075         * lib/xmalloc.c (SIZE_MAX): Likewise.
63076         * lib/openat-die.c (N_): Likewise.
63077         * lib/mountlist.c (SIZE_MAX): Remove definition.
63078         Instead, include <stdint.h>.
63079         * lib/readutmp.c: Likewise.
63080         * modules/readutmp (Depends-on): Add stdint.
63081         * modules/mountlist (Depends-on): Add stdint.
63082         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
63084 2009-03-10  Bruno Haible  <bruno@clisp.org>
63086         Tests for module 'mbmemcasecoll'.
63087         * modules/mbmemcasecoll-tests: New file.
63088         * tests/test-mbmemcasecoll1.sh: New file.
63089         * tests/test-mbmemcasecoll2.sh: New file.
63090         * tests/test-mbmemcasecoll3.sh: New file.
63091         * tests/test-mbmemcasecoll.c: New file.
63093         New module 'mbmemcasecoll'.
63094         * lib/mbmemcasecoll.h: New file.
63095         * lib/mbmemcasecoll.c: New file.
63096         * modules/mbmemcasecoll: New file.
63098         * tests/test-mbmemcasecmp.h: New file, extracted from
63099         tests/test-mbmemcasecmp.c.
63100         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
63101         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
63102         (main): Update.
63103         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
63105 2009-03-09  Bruno Haible  <bruno@clisp.org>
63107         Tests for module 'mbmemcasecmp'.
63108         * modules/mbmemcasecmp-tests: New file.
63109         * tests/test-mbmemcasecmp1.sh: New file.
63110         * tests/test-mbmemcasecmp2.sh: New file.
63111         * tests/test-mbmemcasecmp3.sh: New file.
63112         * tests/test-mbmemcasecmp.c: New file.
63114         New module 'mbmemcasecmp'.
63115         * lib/mbmemcasecmp.h: New file.
63116         * lib/mbmemcasecmp.c: New file.
63117         * modules/mbmemcasecmp: New file.
63119 2009-03-09  Bruno Haible  <bruno@clisp.org>
63121         Tests for module 'unicase/ulc-casecoll'.
63122         * modules/unicase/ulc-casecoll-tests: New file.
63123         * tests/unicase/test-ulc-casecoll1.sh: New file.
63124         * tests/unicase/test-ulc-casecoll2.sh: New file.
63125         * tests/unicase/test-ulc-casecoll.c: New file.
63127         New module 'unicase/ulc-casecoll'.
63128         * lib/unicase.h (ulc_casecoll): New declaration.
63129         * lib/unicase/ulc-casecoll.c: New file.
63130         * modules/unicase/ulc-casecoll: New file.
63132         New module 'unicase/ulc-casexfrm'.
63133         * lib/unicase.h (ulc_casexfrm): New declaration.
63134         * lib/unicase/ulc-casexfrm.c: New file.
63135         * modules/unicase/ulc-casexfrm: New file.
63137 2009-03-09  Bruno Haible  <bruno@clisp.org>
63139         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
63140         invocations.
63142         * m4/mbscasecmp.m4: Remove file.
63143         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
63144         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
63146         * m4/mbscasestr.m4: Remove file.
63147         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
63148         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
63150         * m4/mbschr.m4: Remove file.
63151         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
63152         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
63154         * m4/mbscspn.m4: Remove file.
63155         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
63156         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
63158         * m4/mbslen.m4: Remove file.
63159         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
63160         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
63162         * m4/mbsncasecmp.m4: Remove file.
63163         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
63164         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
63166         * m4/mbsnlen.m4: Remove file.
63167         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
63168         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
63170         * m4/mbspbrk.m4: Remove file.
63171         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
63172         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
63174         * m4/mbspcasecmp.m4: Remove file.
63175         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
63176         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
63178         * m4/mbsrchr.m4: Remove file.
63179         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
63180         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
63182         * m4/mbssep.m4: Remove file.
63183         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
63184         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
63186         * m4/mbsspn.m4: Remove file.
63187         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
63188         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
63190         * m4/mbsstr.m4: Remove file.
63191         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
63192         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
63194         * m4/mbstok_r.m4: Remove file.
63195         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
63196         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
63198         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
63200         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
63201         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
63203         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
63205 2009-03-08  Bruno Haible  <bruno@clisp.org>
63207         Tests for module 'unicase/ulc-casecmp'.
63208         * modules/unicase/ulc-casecmp-tests: New file.
63209         * tests/unicase/test-ulc-casecmp1.sh: New file.
63210         * tests/unicase/test-ulc-casecmp2.sh: New file.
63211         * tests/unicase/test-ulc-casecmp.c: New file.
63213         New module 'unicase/ulc-casecmp'.
63214         * lib/unicase.h (ulc_casecmp): New declaration.
63215         * lib/unicase/ulc-casecmp.c: New file.
63216         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
63217         'const SRC_UNIT *'.
63218         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
63219         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
63220         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
63221         * modules/unicase/ulc-casecmp: New file.
63223         Tests for module 'unicase/u32-is-cased'.
63224         * modules/unicase/u32-is-cased-tests: New file.
63225         * tests/unicase/test-u32-is-cased.c: New file.
63227         Tests for module 'unicase/u16-is-cased'.
63228         * modules/unicase/u16-is-cased-tests: New file.
63229         * tests/unicase/test-u16-is-cased.c: New file.
63231         Tests for module 'unicase/u8-is-cased'.
63232         * modules/unicase/u8-is-cased-tests: New file.
63233         * tests/unicase/test-u8-is-cased.c: New file.
63234         * tests/unicase/test-is-cased.h: New file.
63236         New module 'unicase/u32-is-cased'.
63237         * lib/unicase/u32-is-cased.c: New file.
63238         * modules/unicase/u32-is-cased: New file.
63240         New module 'unicase/u16-is-cased'.
63241         * lib/unicase/u16-is-cased.c: New file.
63242         * modules/unicase/u16-is-cased: New file.
63244         New module 'unicase/u8-is-cased'.
63245         * lib/unicase/u8-is-cased.c: New file.
63246         * lib/unicase/u-is-cased.h: New file.
63247         * modules/unicase/u8-is-cased: New file.
63249         Tests for module 'unicase/u32-is-casefolded'.
63250         * modules/unicase/u32-is-casefolded-tests: New file.
63251         * tests/unicase/test-u32-is-casefolded.c: New file.
63253         Tests for module 'unicase/u16-is-casefolded'.
63254         * modules/unicase/u16-is-casefolded-tests: New file.
63255         * tests/unicase/test-u16-is-casefolded.c: New file.
63257         Tests for module 'unicase/u8-is-casefolded'.
63258         * modules/unicase/u8-is-casefolded-tests: New file.
63259         * tests/unicase/test-u8-is-casefolded.c: New file.
63260         * tests/unicase/test-is-casefolded.h: New file.
63262         New module 'unicase/u32-is-casefolded'.
63263         * lib/unicase/u32-is-casefolded.c: New file.
63264         * modules/unicase/u32-is-casefolded: New file.
63266         New module 'unicase/u16-is-casefolded'.
63267         * lib/unicase/u16-is-casefolded.c: New file.
63268         * modules/unicase/u16-is-casefolded: New file.
63270         New module 'unicase/u8-is-casefolded'.
63271         * lib/unicase/u8-is-casefolded.c: New file.
63272         * modules/unicase/u8-is-casefolded: New file.
63274         Tests for module 'unicase/u32-is-titlecase'.
63275         * modules/unicase/u32-is-titlecase-tests: New file.
63276         * tests/unicase/test-u32-is-titlecase.c: New file.
63278         Tests for module 'unicase/u16-is-titlecase'.
63279         * modules/unicase/u16-is-titlecase-tests: New file.
63280         * tests/unicase/test-u16-is-titlecase.c: New file.
63282         Tests for module 'unicase/u8-is-titlecase'.
63283         * modules/unicase/u8-is-titlecase-tests: New file.
63284         * tests/unicase/test-u8-is-titlecase.c: New file.
63285         * tests/unicase/test-is-titlecase.h: New file.
63287         New module 'unicase/u32-is-titlecase'.
63288         * lib/unicase/u32-is-titlecase.c: New file.
63289         * modules/unicase/u32-is-titlecase: New file.
63291         New module 'unicase/u16-is-titlecase'.
63292         * lib/unicase/u16-is-titlecase.c: New file.
63293         * modules/unicase/u16-is-titlecase: New file.
63295         New module 'unicase/u8-is-titlecase'.
63296         * lib/unicase/u8-is-titlecase.c: New file.
63297         * modules/unicase/u8-is-titlecase: New file.
63299         Tests for module 'unicase/u32-is-lowercase'.
63300         * modules/unicase/u32-is-lowercase-tests: New file.
63301         * tests/unicase/test-u32-is-lowercase.c: New file.
63303         Tests for module 'unicase/u16-is-lowercase'.
63304         * modules/unicase/u16-is-lowercase-tests: New file.
63305         * tests/unicase/test-u16-is-lowercase.c: New file.
63307         Tests for module 'unicase/u8-is-lowercase'.
63308         * modules/unicase/u8-is-lowercase-tests: New file.
63309         * tests/unicase/test-u8-is-lowercase.c: New file.
63310         * tests/unicase/test-is-lowercase.h: New file.
63312         New module 'unicase/u32-is-lowercase'.
63313         * lib/unicase/u32-is-lowercase.c: New file.
63314         * modules/unicase/u32-is-lowercase: New file.
63316         New module 'unicase/u16-is-lowercase'.
63317         * lib/unicase/u16-is-lowercase.c: New file.
63318         * modules/unicase/u16-is-lowercase: New file.
63320         New module 'unicase/u8-is-lowercase'.
63321         * lib/unicase/u8-is-lowercase.c: New file.
63322         * modules/unicase/u8-is-lowercase: New file.
63324         Tests for module 'unicase/u32-is-uppercase'.
63325         * modules/unicase/u32-is-uppercase-tests: New file.
63326         * tests/unicase/test-u32-is-uppercase.c: New file.
63328         Tests for module 'unicase/u16-is-uppercase'.
63329         * modules/unicase/u16-is-uppercase-tests: New file.
63330         * tests/unicase/test-u16-is-uppercase.c: New file.
63332         Tests for module 'unicase/u8-is-uppercase'.
63333         * modules/unicase/u8-is-uppercase-tests: New file.
63334         * tests/unicase/test-u8-is-uppercase.c: New file.
63335         * tests/unicase/test-is-uppercase.h: New file.
63337         New module 'unicase/u32-is-uppercase'.
63338         * lib/unicase/u32-is-uppercase.c: New file.
63339         * modules/unicase/u32-is-uppercase: New file.
63341         New module 'unicase/u16-is-uppercase'.
63342         * lib/unicase/u16-is-uppercase.c: New file.
63343         * modules/unicase/u16-is-uppercase: New file.
63345         New module 'unicase/u8-is-uppercase'.
63346         * lib/unicase/u8-is-uppercase.c: New file.
63347         * modules/unicase/u8-is-uppercase: New file.
63349         New module 'unicase/u32-is-invariant'.
63350         * lib/unicase/u32-is-invariant.c: New file.
63351         * modules/unicase/u32-is-invariant: New file.
63353         New module 'unicase/u16-is-invariant'.
63354         * lib/unicase/u16-is-invariant.c: New file.
63355         * modules/unicase/u16-is-invariant: New file.
63357         New module 'unicase/u8-is-invariant'.
63358         * lib/unicase/u8-is-invariant.c: New file.
63359         * lib/unicase/invariant.h: New file.
63360         * lib/unicase/u-is-invariant.h: New file.
63361         * modules/unicase/u8-is-invariant: New file.
63363         Tests for module 'unicase/u32-casecoll'.
63364         * modules/unicase/u32-casecoll-tests: New file.
63365         * tests/unicase/test-u32-casecoll.c: New file.
63367         Tests for module 'unicase/u16-casecoll'.
63368         * modules/unicase/u16-casecoll-tests: New file.
63369         * tests/unicase/test-u16-casecoll.c: New file.
63371         Tests for module 'unicase/u8-casecoll'.
63372         * modules/unicase/u8-casecoll-tests: New file.
63373         * tests/unicase/test-u8-casecoll.c: New file.
63375         New module 'unicase/u32-casecoll'.
63376         * lib/unicase/u32-casecoll.c: New file.
63377         * modules/unicase/u32-casecoll: New file.
63379         New module 'unicase/u16-casecoll'.
63380         * lib/unicase/u16-casecoll.c: New file.
63381         * modules/unicase/u16-casecoll: New file.
63383         New module 'unicase/u8-casecoll'.
63384         * lib/unicase/u8-casecoll.c: New file.
63385         * lib/unicase/u-casecoll.h: New file.
63386         * modules/unicase/u8-casecoll: New file.
63388         New module 'unicase/u32-casexfrm'.
63389         * lib/unicase/u32-casexfrm.c: New file.
63390         * modules/unicase/u32-casexfrm: New file.
63392         New module 'unicase/u16-casexfrm'.
63393         * lib/unicase/u16-casexfrm.c: New file.
63394         * modules/unicase/u16-casexfrm: New file.
63396         New module 'unicase/u8-casexfrm'.
63397         * lib/unicase/u8-casexfrm.c: New file.
63398         * lib/unicase/u-casexfrm.h: New file.
63399         * modules/unicase/u8-casexfrm: New file.
63401         Tests for module 'unicase/u32-casecmp'.
63402         * modules/unicase/u32-casecmp-tests: New file.
63403         * tests/unicase/test-u32-casecmp.c: New file.
63405         Tests for module 'unicase/u16-casecmp'.
63406         * modules/unicase/u16-casecmp-tests: New file.
63407         * tests/unicase/test-u16-casecmp.c: New file.
63409         Tests for module 'unicase/u8-casecmp'.
63410         * modules/unicase/u8-casecmp-tests: New file.
63411         * tests/unicase/test-u8-casecmp.c: New file.
63412         * tests/unicase/test-casecmp.h: New file.
63414         New module 'unicase/u32-casecmp'.
63415         * lib/unicase/u32-casecmp.c: New file.
63416         * modules/unicase/u32-casecmp: New file.
63418         New module 'unicase/u16-casecmp'.
63419         * lib/unicase/u16-casecmp.c: New file.
63420         * modules/unicase/u16-casecmp: New file.
63422         New module 'unicase/u8-casecmp'.
63423         * lib/unicase/u8-casecmp.c: New file.
63424         * lib/unicase/u-casecmp.h: New file.
63425         * modules/unicase/u8-casecmp: New file.
63427         Tests for module 'unicase/u32-casefold'.
63428         * modules/unicase/u32-casefold-tests: New file.
63429         * tests/unicase/test-u32-casefold.c: New file.
63431         Tests for module 'unicase/u16-casefold'.
63432         * modules/unicase/u16-casefold-tests: New file.
63433         * tests/unicase/test-u16-casefold.c: New file.
63435         Tests for module 'unicase/u8-casefold'.
63436         * modules/unicase/u8-casefold-tests: New file.
63437         * tests/unicase/test-u8-casefold.c: New file.
63439         New module 'unicase/u32-casefold'.
63440         * lib/unicase/u32-casefold.c: New file.
63441         * modules/unicase/u32-casefold: New file.
63443         New module 'unicase/u16-casefold'.
63444         * lib/unicase/u16-casefold.c: New file.
63445         * modules/unicase/u16-casefold: New file.
63447         New module 'unicase/u8-casefold'.
63448         * lib/unicase/u8-casefold.c: New file.
63449         * lib/unicase/u-casefold.h: New file.
63450         * modules/unicase/u8-casefold: New file.
63452         New module 'unicase/tocasefold'.
63453         * lib/unicase/casefold.h: New file.
63454         * lib/unicase/tocasefold.c: New file.
63455         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
63456         * modules/unicase/tocasefold: New file.
63458         Tests for module 'unicase/u32-totitle'.
63459         * modules/unicase/u32-totitle-tests: New file.
63460         * tests/unicase/test-u32-totitle.c: New file.
63462         Tests for module 'unicase/u16-totitle'.
63463         * modules/unicase/u16-totitle-tests: New file.
63464         * tests/unicase/test-u16-totitle.c: New file.
63466         Tests for module 'unicase/u8-totitle'.
63467         * modules/unicase/u8-totitle-tests: New file.
63468         * tests/unicase/test-u8-totitle.c: New file.
63470         New module 'unicase/u32-totitle'.
63471         * lib/unicase/u32-totitle.c: New file.
63472         * modules/unicase/u32-totitle: New file.
63474         New module 'unicase/u16-totitle'.
63475         * lib/unicase/u16-totitle.c: New file.
63476         * modules/unicase/u16-totitle: New file.
63478         New module 'unicase/u8-totitle'.
63479         * lib/unicase/u8-totitle.c: New file.
63480         * lib/unicase/u-totitle.h: New file.
63481         * modules/unicase/u8-totitle: New file.
63483         Tests for module 'unicase/u32-tolower'.
63484         * modules/unicase/u32-tolower-tests: New file.
63485         * tests/unicase/test-u32-tolower.c: New file.
63487         Tests for module 'unicase/u16-tolower'.
63488         * modules/unicase/u16-tolower-tests: New file.
63489         * tests/unicase/test-u16-tolower.c: New file.
63491         Tests for module 'unicase/u8-tolower'.
63492         * modules/unicase/u8-tolower-tests: New file.
63493         * tests/unicase/test-u8-tolower.c: New file.
63495         New module 'unicase/u32-tolower'.
63496         * lib/unicase/u32-tolower.c: New file.
63497         * modules/unicase/u32-tolower: New file.
63499         New module 'unicase/u16-tolower'.
63500         * lib/unicase/u16-tolower.c: New file.
63501         * modules/unicase/u16-tolower: New file.
63503         New module 'unicase/u8-tolower'.
63504         * lib/unicase/u8-tolower.c: New file.
63505         * modules/unicase/u8-tolower: New file.
63507         Tests for module 'unicase/u32-toupper'.
63508         * modules/unicase/u32-toupper-tests: New file.
63509         * tests/unicase/test-u32-toupper.c: New file.
63511         Tests for module 'unicase/u16-toupper'.
63512         * modules/unicase/u16-toupper-tests: New file.
63513         * tests/unicase/test-u16-toupper.c: New file.
63515         Tests for module 'unicase/u8-toupper'.
63516         * modules/unicase/u8-toupper-tests: New file.
63517         * tests/unicase/test-u8-toupper.c: New file.
63519         New module 'unicase/u32-toupper'.
63520         * lib/unicase/u32-toupper.c: New file.
63521         * modules/unicase/u32-toupper: New file.
63523         New module 'unicase/u16-toupper'.
63524         * lib/unicase/u16-toupper.c: New file.
63525         * modules/unicase/u16-toupper: New file.
63527         New module 'unicase/u8-toupper'.
63528         * lib/unicase/u8-toupper.c: New file.
63529         * modules/unicase/u8-toupper: New file.
63531         New module 'unicase/u32-casemap'.
63532         * lib/unicase/u32-casemap.c: New file.
63533         * modules/unicase/u32-casemap: New file.
63535         New module 'unicase/u16-casemap'.
63536         * lib/unicase/u16-casemap.c: New file.
63537         * modules/unicase/u16-casemap: New file.
63539         New module 'unicase/u8-casemap'.
63540         * lib/unicase/unicasemap.h: New file.
63541         * lib/unicase/u8-casemap.c: New file.
63542         * lib/unicase/u-casemap.h: New file.
63543         * modules/unicase/u8-casemap: New file.
63545         New module 'unicase/special-casing'.
63546         * lib/unicase/special-casing.h: New file.
63547         * lib/unicase/special-casing.c: New file.
63548         * lib/unicase/special-casing-table.gperf: New file, generated by
63549         gen-uni-tables.c.
63550         * modules/unicase/special-casing: New file.
63552         Tests for module 'unicase/locale-language'.
63553         * modules/unicase/locale-language-tests: New file.
63554         * tests/unicase/test-locale-language.sh: New file.
63555         * tests/unicase/test-locale-language.c: New file.
63557         New module 'unicase/locale-language'.
63558         * lib/unicase/locale-language.c: New file.
63559         * lib/unicase/locale-languages.gperf: New file.
63560         * modules/unicase/locale-language: New file.
63562         Generate more tables for case conversion and case folding.
63563         * lib/gen-uni-tables.c (SCC_*): New enum items.
63564         (struct special_casing_rule): New type.
63565         (casing_rules, num_casing_rules, allocated_casing_rules): New
63566         variables.
63567         (add_casing_rule, fill_casing_rules): New functions.
63568         (struct casefold_rule): New type.
63569         (casefolding_rules, num_casefolding_rules,
63570         allocated_casefolding_rules): New variables.
63571         (fill_casefolding_rules): New function.
63572         (unicode_casefold): New variable.
63573         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
63574         sort_casing_rules, output_casing_rules): New functions.
63575         (main): Accept to more arguments: SpecialCasing.txt and
63576         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
63577         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
63578         Output mapping for casefolding.
63580         * lib/unicase.h: Include stdbool.h, uninorm.h.
63581         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
63582         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
63583         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
63584         arguments.
63585         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
63586         resultp arguments.
63587         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
63588         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
63589         resultp arguments.
63590         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
63591         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
63592         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
63593         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
63594         declarations.
63595         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
63597 2009-03-08  Bruno Haible  <bruno@clisp.org>
63599         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
63600         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
63601         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
63602         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
63604 2009-03-07  Bruno Haible  <bruno@clisp.org>
63606         Adjust u*_normcmp, u*_normcoll API.
63607         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
63608         u16_normcoll, u32_normcoll): Change failure conventions.
63609         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
63610         errno and return -1.
63611         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
63613 2009-03-07  Bruno Haible  <bruno@clisp.org>
63615         Tests for module 'uninorm/u32-normcoll'.
63616         * modules/uninorm/u32-normcoll-tests: New file.
63617         * tests/uninorm/test-u32-normcoll.c: New file.
63619         Tests for module 'uninorm/u16-normcoll'.
63620         * modules/uninorm/u16-normcoll-tests: New file.
63621         * tests/uninorm/test-u16-normcoll.c: New file.
63623         Tests for module 'uninorm/u8-normcoll'.
63624         * modules/uninorm/u8-normcoll-tests: New file.
63625         * tests/uninorm/test-u8-normcoll.c: New file.
63627 2009-03-07  Bruno Haible  <bruno@clisp.org>
63629         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
63630         tests/uninorm/test-u32-normcmp.c.
63631         * tests/uninorm/test-u32-normcmp.c: Include it.
63632         (test_nonascii): New function, extracted from main. Add some more
63633         tests.
63634         (main): Invoke test_ascii and test_nonascii.
63635         * modules/uninorm/u32-normcmp-tests (Files): Add
63636         tests/uninorm/test-u32-normcmp.h.
63637         (Depends-on): Remove uninorm/u32-normcmp.
63639         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
63640         tests/uninorm/test-u16-normcmp.c.
63641         * tests/uninorm/test-u16-normcmp.c: Include it.
63642         (test_nonascii): New function, extracted from main. Add some more
63643         tests.
63644         (main): Invoke test_ascii and test_nonascii.
63645         * modules/uninorm/u16-normcmp-tests (Files): Add
63646         tests/uninorm/test-u16-normcmp.h.
63647         (Depends-on): Remove uninorm/u16-normcmp.
63649         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
63650         tests/uninorm/test-u8-normcmp.c.
63651         * tests/uninorm/test-u8-normcmp.c: Include it.
63652         (test_nonascii): New function, extracted from main. Add some more
63653         tests.
63654         (main): Invoke test_ascii and test_nonascii.
63655         * modules/uninorm/u8-normcmp-tests (Files): Add
63656         tests/uninorm/test-u8-normcmp.h.
63657         (Depends-on): Remove uninorm/u8-normcmp.
63659 2009-03-07  Bruno Haible  <bruno@clisp.org>
63661         New module 'uninorm/u32-normcoll'.
63662         * lib/uninorm/u32-normcoll.c: New file.
63663         * modules/uninorm/u32-normcoll: New file.
63665         New module 'uninorm/u16-normcoll'.
63666         * lib/uninorm/u16-normcoll.c: New file.
63667         * modules/uninorm/u16-normcoll: New file.
63669         New module 'uninorm/u8-normcoll'.
63670         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
63671         declarations.
63672         * lib/uninorm/u8-normcoll.c: New file.
63673         * lib/uninorm/u-normcoll.h: New file.
63674         * modules/uninorm/u8-normcoll: New file.
63676         New module 'uninorm/u32-normxfrm'.
63677         * lib/uninorm/u32-normxfrm.c: New file.
63678         * modules/uninorm/u32-normxfrm: New file.
63680         New module 'uninorm/u16-normxfrm'.
63681         * lib/uninorm/u16-normxfrm.c: New file.
63682         * modules/uninorm/u16-normxfrm: New file.
63684         New module 'uninorm/u8-normxfrm'.
63685         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
63686         declarations.
63687         * lib/uninorm/u8-normxfrm.c: New file.
63688         * lib/uninorm/u-normxfrm.h: New file.
63689         * modules/uninorm/u8-normxfrm: New file.
63691 2009-03-07  Bruno Haible  <bruno@clisp.org>
63693         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
63694         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
63695         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
63697 2009-03-07  Bruno Haible  <bruno@clisp.org>
63699         New module 'memxfrm'.
63700         * lib/memxfrm.h: New file.
63701         * lib/memxfrm.c: New file.
63702         * modules/memxfrm: New file.
63704 2009-03-07  Bruno Haible  <bruno@clisp.org>
63706         New module 'memcmp2'.
63707         * lib/memcmp2.h: New file.
63708         * lib/memcmp2.c: New file.
63709         * modules/memcmp2: New file.
63711 2009-03-07  Bruno Haible  <bruno@clisp.org>
63713         Tests for module 'uninorm/decomposing-form'.
63714         * modules/uninorm/decomposing-form-tests: New file.
63715         * tests/uninorm/test-decomposing-form.c: New file.
63717         New module 'uninorm/decomposing-form'.
63718         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
63719         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
63720         Add 'decomposing_variant' field.
63721         * lib/uninorm/decomposing-form.c: New file.
63722         * lib/uninorm/nfc.c (uninorm_nfc): Update.
63723         * lib/uninorm/nfd.c (uninorm_nfd): Update.
63724         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
63725         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
63726         * modules/uninorm/decomposing-form: New file.
63727         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
63728         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
63730 2009-03-07  Bruno Haible  <bruno@clisp.org>
63732         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
63733         strings.
63735 2009-03-06  Bruno Haible  <bruno@clisp.org>
63737         Tests for module 'uninorm/u32-normcmp'.
63738         * tests/uninorm/test-u32-normcmp.c: New file.
63739         * modules/uninorm/u32-normcmp-tests: New file.
63741         Tests for module 'uninorm/u16-normcmp'.
63742         * tests/uninorm/test-u16-normcmp.c: New file.
63743         * modules/uninorm/u16-normcmp-tests: New file.
63745         Tests for module 'uninorm/u8-normcmp'.
63746         * tests/uninorm/test-u8-normcmp.c: New file.
63747         * modules/uninorm/u8-normcmp-tests: New file.
63749         New module 'uninorm/u32-normcmp'.
63750         * lib/uninorm/u32-normcmp.c: New file.
63751         * modules/uninorm/u32-normcmp: New file.
63753         New module 'uninorm/u16-normcmp'.
63754         * lib/uninorm/u16-normcmp.c: New file.
63755         * modules/uninorm/u16-normcmp: New file.
63757         New module 'uninorm/u8-normcmp'.
63758         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
63759         declarations.
63760         * lib/uninorm/u8-normcmp.c: New file.
63761         * lib/uninorm/u-normcmp.h: New file.
63762         * modules/uninorm/u8-normcmp: New file.
63764 2009-03-06  Bruno Haible  <bruno@clisp.org>
63766         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
63767         Reported by Eric Blake.
63769 2009-03-06  Eric Blake  <ebb9@byu.net>
63770             Bruno Haible  <bruno@clisp.org>
63772         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
63773         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
63774         condition.
63775         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
63776         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
63777         condition.
63778         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
63780 2009-03-06  Eric Blake  <ebb9@byu.net>
63782         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
63783         to avoid compiler warnings.
63784         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
63786 2009-03-05  Bruno Haible  <bruno@clisp.org>
63788         * tests/test-ftell.c (main): Disable test beyond end of file on
63789         FreeMiNT.
63790         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63792 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
63794         * lib/filevercmp.c: Move hidden files up in ordering.
63795         * tests/test-filevercmp.c: Add tests for hidden files.
63797 2009-03-04  Bruno Haible  <bruno@clisp.org>
63799         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
63800         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
63801         AM_CFLAGS.
63802         Reported by Simon Josefsson.
63804 2009-03-03  Bruno Haible  <bruno@clisp.org>
63806         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
63807         Reported by Simon Josefsson.
63809         * doc/ld-version-script.texi: Update node reference.
63811 2009-03-03  Bruno Haible  <bruno@clisp.org>
63813         * modules/visibility (License): Change to 'unlimited'.
63814         Suggested by Simon Josefsson.
63816 2009-03-03  Jim Meyering  <meyering@redhat.com>
63818         unlinkdir: cannot_unlink_dir may modify process state
63819         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
63820         it's neither thread-safe nor appropriate for use in a library.
63822 2009-03-03  Eric Blake  <ebb9@byu.net>
63824         test-closein: silence test under Darwin
63825         * tests/test-closein.sh: Ignore stderr from cat, since we don't
63826         care if it dies from EPIPE or EBADF.
63828 2009-03-03  Bruno Haible  <bruno@clisp.org>
63830         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
63831         earlier.
63832         * doc/visibility.texi: Fix @node and @section.
63834 2009-03-03  Simon Josefsson  <simon@josefsson.org>
63836         * doc/gnulib.texi: Link to sections for ld version script and
63837         visibility.
63838         * doc/visibility.texi: Add @node and @section.
63839         * modules/ld-version-script: New module.
63840         * m4/ld-version-script.m4: New file.
63841         * doc/ld-version-script.texi: New file.
63843 2009-03-02  David Lutterkort  <lutter@redhat.com>
63845         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
63846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63848 2009-03-02  Bruno Haible  <bruno@clisp.org>
63850         * doc/visibility.texi: Mention libtool's -export-symbols option.
63852 2009-03-02  Jim Meyering  <meyering@redhat.com>
63854         announce-gen: new option: --no-print-checksums
63855         * build-aux/announce-gen (usage): Describe it.
63856         (print_checksums): Print a newline here, not in the [*] footnote.
63857         (main): Honor it.
63859 2009-03-01  Bruno Haible  <bruno@clisp.org>
63861         Use socklen_t in the native Windows replacements prototypes.
63862         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
63863         instead of 'int'.
63864         * lib/getsockopt.c (rpl_getsockopt): Likewise.
63865         * lib/setsockopt.c (rpl_setsockopt): Likewise.
63866         * modules/getsockopt (Depends-on): Add socklen.
63867         * modules/setsockopt (Depends-on): Add socklen.
63869 2009-03-01  Bruno Haible  <bruno@clisp.org>
63871         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
63872         least 4.2.
63874 2009-03-01  Eric Blake  <ebb9@byu.net>
63875             Bruno Haible  <bruno@clisp.org>
63877         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
63878         error messages.
63879         * lib/wait-process.c (wait_subprocess): Omit error message about
63880         deadly signal sent to the child of termsigp != NULL.
63882 2009-03-01  Eric Blake  <ebb9@byu.net>
63884         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
63886 2009-03-01  Bruno Haible  <bruno@clisp.org>
63888         Avoid a gcc warning.
63889         * tests/test-sched.c (b): Make global.
63890         Reported by Eric Blake.
63892 2009-01-19  Martin Lambers  <marlam@marlam.de>
63894         Provide POSIX semantics for socket timeout options on W32.
63895         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
63896         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
63897         * modules/setsockopt: Depend on sys_time module for struct timeval.
63898         * modules/getsockopt: Depend on sys_time module for struct timeval.
63900 2009-03-01  Simon Josefsson  <simon@josefsson.org>
63902         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
63903         __USE_GNU, for consistency with netdb.in.h.
63904         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63906 2009-03-01  Bruno Haible  <bruno@clisp.org>
63908         More support for FreeMiNT.
63909         * lib/fseeko.c (rpl_fseeko): Complete last commit.
63910         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63912 2009-03-01  Bruno Haible  <bruno@clisp.org>
63914         More support for FreeMiNT.
63915         * lib/fpurge.c (fpurge): Correct last commit.
63916         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63918 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63920         Fix unportable awk script in vc-list-files.
63921         * build-aux/vc-list-files: In the replacement awk script, use
63922         substr with a second argument of 1, not zero.
63923         Report by Simon Josefsson.
63925 2009-02-28  Bruno Haible  <bruno@clisp.org>
63927         More support for FreeMiNT.
63928         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
63929         to FreeMiNT today.
63930         * lib/fwriting.c (fwriting): Likewise.
63931         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
63933 2009-02-28  Bruno Haible  <bruno@clisp.org>
63935         * tests/test-freadseek.c (main): Disable test beyond end of file on
63936         FreeMiNT.
63937         * tests/test-ftello.c (main): Likewise.
63938         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63940 2009-02-28  Bruno Haible  <bruno@clisp.org>
63942         Add tentative support for FreeMiNT.
63943         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
63944         * lib/fpurge.c (fpurge): Likewise.
63945         * lib/freadable.c (freadable): Likewise.
63946         * lib/freading.c (freading): Likewise.
63947         * lib/freadptr.c (freadptr): Likewise.
63948         * lib/freadseek.c (freadptrinc): Likewise.
63949         * lib/fseeko.c (rpl_fseeko): Likewise.
63950         * lib/fseterr.c (fseterr): Likewise.
63951         * lib/fwritable.c (fwritable): Likewise.
63952         * lib/fwriting.c (fwriting): Likewise.
63953         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
63954         Hourihane.
63955         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63957 2009-02-28  Bruno Haible  <bruno@clisp.org>
63959         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
63960         SIGCHLD.
63961         Reported by Jim Meyering.
63963 2009-02-28  Bruno Haible  <bruno@clisp.org>
63965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
63966         Mention the results of these tests on various platforms.
63967         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
63968         order.
63969         * doc/posix-functions/printf.texi: Likewise.
63970         * doc/posix-functions/snprintf.texi: Likewise.
63971         * doc/posix-functions/sprintf.texi: Likewise.
63972         * doc/posix-functions/vfprintf.texi: Likewise.
63973         * doc/posix-functions/vprintf.texi: Likewise.
63974         * doc/posix-functions/vsnprintf.texi: Likewise.
63975         * doc/posix-functions/vsprintf.texi: Likewise.
63976         * doc/glibc-functions/obstack_printf.texi: Likewise.
63977         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63979 2009-02-28  Bruno Haible  <bruno@clisp.org>
63981         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
63982         Reported by Loïc Minier <lool@dooz.org>.
63984 2009-02-27  Bruno Haible  <bruno@clisp.org>
63986         * gnulib-tool (func_import): Make the sed expression used to create the
63987         sed script for updating the .gitignore file POSIX compliant.
63988         Reported by Eric Blake.
63990 2009-02-27  Bruno Haible  <bruno@clisp.org>
63992         * gnulib-tool (sed): Don't alias as "sed --posix".
63993         Reported by Eric Blake.
63995 2009-02-27  Bruno Haible  <bruno@clisp.org>
63997         Avoid test link errors.
63998         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
63999         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
64000         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
64001         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
64002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64004 2009-02-27  Bruno Haible  <bruno@clisp.org>
64006         Avoid spurious "(cached)" in configure output.
64007         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
64008         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
64009         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64010         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64011         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64012         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
64013         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64014         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64015         Reported by Eric Blake.
64017 2009-02-27  Eric Blake  <ebb9@byu.net>
64019         printf: fix regression in previous patch
64020         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
64022 2009-02-27  Bruno Haible  <bruno@clisp.org>
64024         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
64025         value.
64026         * lib/stdint.in.h: Likewise.
64027         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
64029 2009-02-27  Eric Blake  <ebb9@byu.net>
64031         doc: mention more functions added in cygwin 1.7.0
64032         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
64033         addition.
64034         * doc/posix-functions/open_wmemstream.texi: Likewise.
64035         * doc/posix-functions/wcsnlen.texi: Likewise.
64036         * doc/posix-functions/wcsnrtombs.texi: Likewise.
64037         * doc/posix-functions/wcstod.texi: Likewise.
64038         * doc/posix-functions/wcstof.texi: Likewise.
64039         * doc/posix-functions/wcstoimax.texi: Likewise.
64040         * doc/posix-functions/wcstok.texi: Likewise.
64041         * doc/posix-functions/wcstoumax.texi: Likewise.
64043         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
64044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
64045         * doc/posix-functions/fprintf.texi: Update.
64046         * doc/posix-functions/printf.texi: Update.
64047         * doc/posix-functions/snprintf.texi: Update.
64048         * doc/posix-functions/sprintf.texi: Update.
64049         * doc/posix-functions/vfprintf.texi: Update.
64050         * doc/posix-functions/vprintf.texi: Update.
64051         * doc/posix-functions/vsnprintf.texi: Update.
64052         * doc/posix-functions/vsprintf.texi: Update.
64053         * doc/glibc-functions/obstack_printf.texi: Update.
64054         * doc/glibc-functions/obstack_vprintf.texi: Update.
64056 2009-02-26  Eric Blake  <ebb9@byu.net>
64058         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
64059         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
64060         compilation bug by using runtime conversion.
64061         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
64062         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
64063         * modules/ceill-tests (Files): Use nan.h.
64064         * modules/floorl-tests (Files): Likewise.
64065         * modules/frexpl-tests (Files): Likewise.
64066         * modules/isnanl-tests (Files): Likewise.
64067         * modules/ldexpl-tests (Files): Likewise.
64068         * modules/roundl-tests (Files): Likewise.
64069         * modules/truncl-tests (Files): Likewise.
64070         * tests/test-ceill.c (main): Use a working NaN.
64071         * tests/test-floorl.c (main): Likewise.
64072         * tests/test-frexpl.c (main): Likewise.
64073         * tests/test-isnan.c (test_long_double): Likewise.
64074         * tests/test-isnanl.h (main): Likewise.
64075         * tests/test-ldexpl.h (main): Likewise.
64076         * tests/test-roundl.h (main): Likewise.
64077         * tests/test-truncl.h (main): Likewise.
64078         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
64080 2009-02-26  Eric Blake  <ebb9@byu.net>
64081             Bruno Haible  <bruno@clisp.org>
64083         Work around a *printf bug with %ls on Solaris.
64084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
64085         precision is specified, sprintf stops converting the wide string
64086         argument when the number of bytes that have been produced by this
64087         conversion equals or exceeds the precision.
64088         * doc/posix-functions/fprintf.texi: Update.
64089         * doc/posix-functions/printf.texi: Update.
64090         * doc/posix-functions/snprintf.texi: Update.
64091         * doc/posix-functions/sprintf.texi: Update.
64092         * doc/posix-functions/vfprintf.texi: Update.
64093         * doc/posix-functions/vprintf.texi: Update.
64094         * doc/posix-functions/vsnprintf.texi: Update.
64095         * doc/posix-functions/vsprintf.texi: Update.
64096         * doc/glibc-functions/obstack_printf.texi: Update.
64097         * doc/glibc-functions/obstack_vprintf.texi: Update.
64099 2009-02-26  Eric Blake  <ebb9@byu.net>
64101         stdlib: favor compiler check of random.h
64102         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
64103         to avoid an ObjC random.h installed by Swarm.
64105 2009-02-26  Bruno Haible  <bruno@clisp.org>
64107         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
64108         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
64109         Reported by Gary V. Vaughan <gary@gnu.org>.
64111 2009-02-26  Bruno Haible  <bruno@clisp.org>
64113         Fix *printf behaviour regarding the %ls directive.
64114         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
64115         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
64116         NEED_PRINTF_DIRECTIVE_LS.
64117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
64118         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64120         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
64121         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
64122         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
64123         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
64124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64128         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
64129         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64131         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64132         * doc/posix-functions/fprintf.texi: Update.
64133         * doc/posix-functions/printf.texi: Update.
64134         * doc/posix-functions/snprintf.texi: Update.
64135         * doc/posix-functions/sprintf.texi: Update.
64136         * doc/posix-functions/vfprintf.texi: Update.
64137         * doc/posix-functions/vprintf.texi: Update.
64138         * doc/posix-functions/vsnprintf.texi: Update.
64139         * doc/posix-functions/vsprintf.texi: Update.
64140         * doc/glibc-functions/obstack_printf.texi: Update.
64141         * doc/glibc-functions/obstack_vprintf.texi: Update.
64142         Reported by Eric Blake.
64144 2009-02-25  Bruno Haible  <bruno@clisp.org>
64146         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
64147         with known value.
64148         Reported by Gary V. Vaughan <gary@gnu.org>.
64150 2009-02-25  Bruno Haible  <bruno@clisp.org>
64152         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
64153         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
64154         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
64155         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
64156         Reported by Gary V. Vaughan <gary@gnu.org>.
64158 2009-02-25  Bruno Haible  <bruno@clisp.org>
64160         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
64161         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
64162         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
64163         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
64164         Reported by Gary V. Vaughan <gary@gnu.org>.
64166 2009-02-25  Eric Blake  <ebb9@byu.net>
64168         tests: skip fseek/ftell tests if ungetc is broken
64169         * m4/ungetc.m4: New file.
64170         * modules/fseek-tests: Split test, so ungetc dependency is
64171         separate from rest of test.
64172         * modules/fseeko-tests: Likewise.
64173         * modules/ftell-tests: Likewise.
64174         * modules/ftello-tests: Likewise.
64175         * tests/test-fseek.c (main): Isolate ungetc dependency.
64176         * tests/test-fseeko.c (main): Likewise.
64177         * tests/test-ftell.c (main): Likewise.
64178         * tests/test-ftello.c (main): Likewise.
64179         * tests/test-fseek2.sh: New file.
64180         * tests/test-fseeko2.sh: Likewise.
64181         * tests/test-ftell2.sh: Likewise.
64182         * tests/test-ftello2.sh: Likewise.
64184 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
64186         test-getaddrinfo: fix usage of skip return code 77
64187         * tests/test-gettaddrinfo.c: Return skip code 77 only
64188         for first occurrence of skip (4x77 is not 77)
64190 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
64192         strtod: avoid C99 decl-after-statement
64193         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
64195 2009-02-24  Eric Blake  <ebb9@byu.net>
64197         strtod: detect HP-UX 11.31 bug
64198         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
64199         Reported by Gary V. Vaughan.
64201 2009-02-23  Bruno Haible  <bruno@clisp.org>
64203         Fix invalid read past end of memory block.
64204         * lib/vasnprintf.c (DCHAR_SET): Define.
64205         (local_wcslen): Define only when needed.
64206         (local_strnlen, local_wcsnlen): New functions.
64207         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
64208         directives that involve a conversion ourselves.
64209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
64210         wcsnlen, mbrtowc, wcrtomb.
64211         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
64212         * tests/test-vasprintf-posix.c (test_function): Likewise.
64213         * tests/test-snprintf-posix.h (test_function): Likewise.
64214         * tests/test-sprintf-posix.h (test_function): Likewise.
64215         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64217 2009-02-22  Bruno Haible  <bruno@clisp.org>
64219         Implement new clarified decomposition of Hangul syllables.
64220         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
64221         of type LTV, return only a pairwise decomposition.
64222         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
64223         Likewise.
64224         * tests/uninorm/test-decomposition.c (main): Updated expected result.
64225         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
64226         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
64228 2009-02-22  Bruno Haible  <bruno@clisp.org>
64230         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
64231         zero-length results and shrink excess allocated memory.
64232         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
64233         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
64234         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
64235         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
64236         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
64237         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
64238         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
64239         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
64240         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
64241         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
64242         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
64243         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
64245 2009-02-21  Bruno Haible  <bruno@clisp.org>
64247         * doc/gnulib.texi: Include safe-alloc.texi earlier.
64248         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
64249         spaces after a period. Put a space between a macro name and its
64250         argument list. Trivial rewordings.
64251         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
64252         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
64253         (main): Return 0 explicitly.
64255 2009-02-21  Bruno Haible  <bruno@clisp.org>
64257         Tests for module 'uninorm/filter'.
64258         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
64259         * modules/uninorm/filter-tests: New file.
64261         New module 'uninorm/filter'.
64262         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
64263         uninorm_filter_flush, uninorm_filter_free): New declarations.
64264         * lib/uninorm/uninorm-filter.c: New file.
64265         * modules/uninorm/filter: New file.
64267 2009-02-21  Bruno Haible  <bruno@clisp.org>
64269         Tests for module 'uninorm/nfkc'.
64270         * tests/uninorm/test-nfkc.c: New file.
64271         * tests/uninorm/test-u8-nfkc.c: New file.
64272         * tests/uninorm/test-u16-nfkc.c: New file.
64273         * tests/uninorm/test-u32-nfkc.c: New file.
64274         * tests/uninorm/test-u32-nfkc-big.sh: New file.
64275         * tests/uninorm/test-u32-nfkc-big.c: New file.
64276         * modules/uninorm/nfkc-tests: New file.
64278         New module 'uninorm/nfkc'.
64279         * lib/uninorm/nfkc.c: New file.
64280         * modules/uninorm/nfkc: New file.
64282         Tests for module 'uninorm/nfkd'.
64283         * tests/uninorm/test-nfkd.c: New file.
64284         * tests/uninorm/test-u8-nfkd.c: New file.
64285         * tests/uninorm/test-u16-nfkd.c: New file.
64286         * tests/uninorm/test-u32-nfkd.c: New file.
64287         * tests/uninorm/test-u32-nfkd-big.sh: New file.
64288         * tests/uninorm/test-u32-nfkd-big.c: New file.
64289         * modules/uninorm/nfkd-tests: New file.
64291         New module 'uninorm/nfkd'.
64292         * lib/uninorm/nfkd.c: New file.
64293         * modules/uninorm/nfkd: New file.
64295         Tests for module 'uninorm/nfc'.
64296         * tests/uninorm/test-nfc.c: New file.
64297         * tests/uninorm/test-u8-nfc.c: New file.
64298         * tests/uninorm/test-u16-nfc.c: New file.
64299         * tests/uninorm/test-u32-nfc.c: New file.
64300         * tests/uninorm/test-u32-nfc-big.sh: New file.
64301         * tests/uninorm/test-u32-nfc-big.c: New file.
64302         * modules/uninorm/nfc-tests: New file.
64304         New module 'uninorm/nfc'.
64305         * lib/uninorm/nfc.c: New file.
64306         * modules/uninorm/nfc: New file.
64308         Tests for module 'uninorm/nfd'.
64309         * tests/uninorm/test-nfd.c: New file.
64310         * tests/uninorm/test-u8-nfd.c: New file.
64311         * tests/uninorm/test-u16-nfd.c: New file.
64312         * tests/uninorm/test-u32-nfd.c: New file.
64313         * tests/uninorm/test-u32-nfd-big.sh: New file.
64314         * tests/uninorm/test-u32-nfd-big.c: New file.
64315         * tests/uninorm/test-u32-normalize-big.h: New file.
64316         * tests/uninorm/test-u32-normalize-big.c: New file.
64317         * tests/uninorm/NormalizationTest.txt: New file, created from
64318         Unicode 5.1.0 NormalizationTest.txt.
64319         * modules/uninorm/nfd-tests: New file.
64321         New module 'uninorm/nfd'.
64322         * lib/uninorm/nfd.c: New file.
64323         * modules/uninorm/nfd: New file.
64325         New module 'uninorm/u32-normalize'.
64326         * lib/uninorm/u32-normalize.c: New file.
64327         * modules/uninorm/u32-normalize: New file.
64329         New module 'uninorm/u16-normalize'.
64330         * lib/uninorm/u16-normalize.c: New file.
64331         * modules/uninorm/u16-normalize: New file.
64333         New module 'uninorm/u8-normalize'.
64334         * lib/uninorm/u8-normalize.c: New file.
64335         * lib/uninorm/normalize-internal.h: New file.
64336         * lib/uninorm/u-normalize-internal.h: New file.
64337         * modules/uninorm/u8-normalize: New file.
64339         New module 'uninorm/decompose-internal'.
64340         * lib/uninorm/decompose-internal.c: New file.
64341         * modules/uninorm/decompose-internal: New file.
64343         Tests for module 'uninorm/composition'.
64344         * tests/uninorm/test-composition.c: New file.
64345         * modules/uninorm/composition-tests: New file.
64347         New module 'uninorm/composition'.
64348         * lib/uninorm/composition.c: New file.
64349         * lib/uninorm/composition-table.gperf: New file, generated by
64350         gen-uni-tables.
64351         * modules/uninorm/composition: New file.
64353         Tests for module 'uninorm/compat-decomposition'.
64354         * tests/uninorm/test-compat-decomposition.c: New file.
64355         * modules/uninorm/compat-decomposition-tests: New file.
64357         New module 'uninorm/compat-decomposition'.
64358         * lib/uninorm/decompose-internal.h: New file.
64359         * lib/uninorm/compat-decomposition.c: New file.
64360         * modules/uninorm/compat-decomposition: New file.
64362         Tests for module 'uninorm/canonical-decomposition'.
64363         * tests/uninorm/test-canonical-decomposition.c: New file.
64364         * modules/uninorm/canonical-decomposition-tests: New file.
64366         New module 'uninorm/canonical-decomposition'.
64367         * lib/uninorm/canonical-decomposition.c: New file.
64368         * modules/uninorm/canonical-decomposition: New file.
64370         Tests for module 'uninorm/decomposition'.
64371         * tests/uninorm/test-decomposition.c: New file.
64372         * modules/uninorm/decomposition-tests: New file.
64374         New module 'uninorm/decomposition'.
64375         * lib/uninorm/decomposition.c: New file.
64376         * modules/uninorm/decomposition: New file.
64378         New module 'uninorm/decomposition-table'.
64379         * lib/uninorm/decomposition-table.h: New file.
64380         * lib/uninorm/decomposition-table.c: New file.
64381         * lib/uninorm/decomposition-table1.h: New file, generated by
64382         gen-uni-tables.
64383         * lib/uninorm/decomposition-table2.h: New file, generated by
64384         gen-uni-tables.
64385         * modules/uninorm/decomposition-table: New file.
64387         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
64388         (UC_DECOMP_*): New enumeration items.
64389         (get_decomposition): New function.
64390         (struct decomp_table): New type.
64391         (output_decomposition, output_decomposition_tables): New functions.
64392         (unicode_composition_exclusions): New variable.
64393         (fill_composition_exclusions, debug_output_composition_tables): New
64394         functions.
64395         (main): Accept one more argument. Invoke fill_composition_exclusions.
64396         Output decomposition and composition tables.
64398         New module 'uninorm/base'.
64399         * lib/uninorm.h: New file.
64400         * lib/unictype.h: Update comment.
64401         * modules/uninorm/base: New file.
64403 2009-02-21  David Lutterkort  <lutter@redhat.com>
64405         Tests for module 'safe-alloc'.
64406         * tests/test-safe-alloc.c: New file.
64407         * modules/safe-alloc-tests: New file.
64409         New module 'safe-alloc'.
64410         * lib/safe-alloc.h: New file.
64411         * lib/safe-alloc.c: New file.
64412         * m4/safe-alloc.m4: New file.
64413         * modules/safe-alloc: New file.
64414         * doc/safe-alloc.texi: New file.
64415         * doc/gnulib.texi: Include it.
64416         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64417         safe-alloc.
64419 2009-02-18  Bruno Haible  <bruno@clisp.org>
64421         Fix link error on non-glibc systems.
64422         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
64423         variable.
64424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64426 2009-02-18  Jim Meyering  <meyering@redhat.com>
64428         fts: avoid used-uninitialized error due to recent change
64429         * lib/fts.c (fts_read): Guard uses of the new member,
64430         parent->fts_n_dirs_remaining, since it's not relevant for
64431         the parent of a directory specified on the command-line.
64433 2009-02-17  James Youngman  <jay@gnu.org>
64434             Bruno Haible  <bruno@clisp.org>
64436         * m4/include_next.m4: Reformulate comment.
64438 2009-02-16  Jim Meyering  <meyering@redhat.com>
64440         fts: add #if guards so that the fts_lgpl module still builds
64441         * lib/fts.c: Guard just-added hash-table-using parts with
64442         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
64443         Reported by Simon Josefsson.
64445 2009-02-15  Bruno Haible  <bruno@clisp.org>
64447         * modules/array-mergesort-tests: New file.
64448         * tests/test-array-mergesort.c: New file.
64450         New module 'array-mergesort'.
64451         * modules/array-mergesort: New file.
64452         * lib/array-mergesort.h: New file.
64454 2009-02-15  Bruno Haible  <bruno@clisp.org>
64456         Fix 2009-02-07 commit.
64457         * lib/gen-uni-tables.c (output_predicate, output_category,
64458         output_combclass, output_bidi_category, output_decimal_digit,
64459         output_digit, output_numeric, output_mirror, output_scripts,
64460         output_ident_category, output_simple_mapping): Fix format directives.
64461         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
64463 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
64465         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
64466         fixes are available from IBM.
64468 2009-02-13  Jim Meyering  <meyering@redhat.com>
64470         fts: arrange not to stat non-directories in more cases
64471         This makes GNU find (when it doesn't need to stat each file)
64472         *much* more efficient at traversing reiserfs file systems.
64473         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
64474         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
64475         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
64476         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
64477         (leaf_optimization_applies): New function.
64478         (LCO_hash, LCO_compare): New helper functions.
64479         (link_count_optimize_ok): New function.
64480         (fts_stat): Initialize new member (if dir).
64481         (fts_read): Decrement parent's fts_n_dirs_remaining count if
64482         we've just stat'ed a directory.  Skip the stat call when possible.
64483         ---
64484         Note this AFS-related exchange:
64485         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
64486         and note find's pioctl call in find/fstype.c.
64487         But that is necessary only if you want to enable the
64488         optimization for AFS, and for now, I don't.
64490         fts: move a function definition "up" (no semantic change)
64491         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
64492         "up" to precede upcoming use of a related function.
64494 2009-02-11  Jim Meyering  <meyering@redhat.com>
64496         fts: correct internal computation of nlinks (optimization-related)
64497         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
64498         whether the current entry is a directory, so don't test it.
64500 2009-02-10  Bruno Haible  <bruno@clisp.org>
64502         Tests for module 'uniwbrk/ulc-wordbreaks'.
64503         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
64504         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
64505         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
64507         Tests for module 'uniwbrk/u32-wordbreaks'.
64508         * modules/uniwbrk/u32-wordbreaks-tests: New file.
64509         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
64511         Tests for module 'uniwbrk/u16-wordbreaks'.
64512         * modules/uniwbrk/u16-wordbreaks-tests: New file.
64513         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
64515         Tests for module 'uniwbrk/u8-wordbreaks'.
64516         * modules/uniwbrk/u8-wordbreaks-tests: New file.
64517         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
64519 2009-02-10  Bruno Haible  <bruno@clisp.org>
64521         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
64522         property.
64523         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
64524         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
64525         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
64527 2009-02-10  Simon Josefsson  <simon@josefsson.org>
64529         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
64530         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
64532 2009-02-10  Bruno Haible  <bruno@clisp.org>
64534         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
64535         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
64536         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
64537         * lib/unilbrk/u8-possible-linebreaks.c: Update.
64538         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
64539         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
64541 2009-02-09  Simon Josefsson  <simon@josefsson.org>
64543         * lib/sockets.h (gl_fd_to_handle): New function.
64545         * tests/test-sockets.c: Call gl_fd_to_handle.
64547 2009-02-09  Bruno Haible  <bruno@clisp.org>
64549         * doc/havelib.texi: Document the conventions on bi-arch systems.
64551 2009-02-08  Bruno Haible  <bruno@clisp.org>
64553         Document the AC_LIB_LINKFLAGS macro.
64554         * doc/havelib.texi: New file, mostly written on 2005-05-24.
64555         * doc/gnulib.texi: Include it.
64557 2009-02-08  Bruno Haible  <bruno@clisp.org>
64559         Fix wrong order of sections, compared to TOC.
64560         * doc/gnulib.texi: Include relocatable-maint.texi after the
64561         "Regular expressions" node, not before.
64563 2009-02-08  Bruno Haible  <bruno@clisp.org>
64565         Tests for module 'unicase/totitle'.
64566         * modules/unicase/totitle-tests: New file.
64568         Tests for module 'unicase/tolower'.
64569         * modules/unicase/tolower-tests: New file.
64571         Tests for module 'unicase/toupper'.
64572         * modules/unicase/toupper-tests: New file.
64573         * tests/unicase/test-mapping-part1.h: New file.
64574         * tests/unicase/test-mapping-part2.h: New file.
64576         New module 'unicase/totitle'.
64577         * modules/unicase/totitle: New file.
64578         * lib/unicase/totitle.c: New file.
64580         New module 'unicase/tolower'.
64581         * modules/unicase/tolower: New file.
64582         * lib/unicase/tolower.c: New file.
64584         New module 'unicase/toupper'.
64585         * modules/unicase/toupper: New file.
64586         * lib/unicase/toupper.c: New file.
64587         * lib/unicase/simple-mapping.h: New file.
64589         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
64590         (mapping_table): New structure.
64591         (output_simple_mapping): New function.
64592         (main): Invoke output_simple_mapping_test and output_simple_mapping.
64593         * modules/gen-uni-tables (Description): Update.
64594         * lib/unicase/toupper.h: New file, automatically generated by
64595         gen-uni-tables.
64596         * lib/unicase/tolower.h: New file, automatically generated by
64597         gen-uni-tables.
64598         * lib/unicase/totitle.h: New file, automatically generated by
64599         gen-uni-tables.
64600         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
64601         gen-uni-tables.
64602         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
64603         gen-uni-tables.
64604         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
64605         gen-uni-tables.
64607         New module 'unicase/base'.
64608         * modules/unicase/base: New file.
64609         * lib/unicase.h: New file.
64611 2009-02-08  Bruno Haible  <bruno@clisp.org>
64613         New module 'uniwbrk/ulc-wordbreaks'.
64614         * modules/uniwbrk/ulc-wordbreaks: New file.
64615         * lib/uniwbrk/ulc-wordbreaks.c: New file.
64617         New module 'uniwbrk/u32-wordbreaks'.
64618         * modules/uniwbrk/u32-wordbreaks: New file.
64619         * lib/uniwbrk/u32-wordbreaks.c: New file.
64621         New module 'uniwbrk/u16-wordbreaks'.
64622         * modules/uniwbrk/u16-wordbreaks: New file.
64623         * lib/uniwbrk/u16-wordbreaks.c: New file.
64625         New module 'uniwbrk/u8-wordbreaks'.
64626         * modules/uniwbrk/u8-wordbreaks: New file.
64627         * lib/uniwbrk/u8-wordbreaks.c: New file.
64628         * lib/uniwbrk/u-wordbreaks.h: New file.
64630         New module 'uniwbrk/table'.
64631         * modules/uniwbrk/table: New file.
64632         * lib/uniwbrk/wbrktable.h: New file.
64633         * lib/uniwbrk/wbrktable.c: New file.
64635         New module 'uniwbrk/wordbreak-property'.
64636         * modules/uniwbrk/wordbreak-property: New file.
64637         * lib/uniwbrk/wordbreak-property.c: New file.
64639         * lib/gen-uni-tables.c (WBP_*): New enum items.
64640         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
64641         (unicode_org_wbp): New variable.
64642         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
64643         New functions.
64644         (wbp_table): New structure.
64645         (output_wbp, output_wbrk_tables): New functions.
64646         (main): Accept additional argument. Invoke fill_org_wbp,
64647         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
64648         output_wbrk_tables.
64649         * modules/gen-uni-tables (Description): Update.
64650         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
64651         gen-uni-tables.
64653         New module 'uniwbrk/base'.
64654         * modules/uniwbrk/base: New file.
64655         * lib/uniwbrk.h: New file.
64657 2009-02-08  Bruno Haible  <bruno@clisp.org>
64659         Update to Unicode 5.1.0.
64660         * lib/gen-uni-tables.c (is_property_alphabetic): Include
64661         U+2185..U+2188.
64662         (is_property_default_ignorable_code_point): Don't include characters
64663         of category Cc or Cs and not-a-characters.
64664         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
64665         U+0D79, U+109E, U+109F, U+A60C.
64666         * lib/unictype/bidi_of.h: Regenerated.
64667         * lib/unictype/blocks.h: Regenerated.
64668         * lib/unictype/categ_C.h: Regenerated.
64669         * lib/unictype/categ_Cf.h: Regenerated.
64670         * lib/unictype/categ_Cn.h: Regenerated.
64671         * lib/unictype/categ_L.h: Regenerated.
64672         * lib/unictype/categ_Ll.h: Regenerated.
64673         * lib/unictype/categ_Lm.h: Regenerated.
64674         * lib/unictype/categ_Lo.h: Regenerated.
64675         * lib/unictype/categ_Lu.h: Regenerated.
64676         * lib/unictype/categ_M.h: Regenerated.
64677         * lib/unictype/categ_Mc.h: Regenerated.
64678         * lib/unictype/categ_Me.h: Regenerated.
64679         * lib/unictype/categ_Mn.h: Regenerated.
64680         * lib/unictype/categ_N.h: Regenerated.
64681         * lib/unictype/categ_Nd.h: Regenerated.
64682         * lib/unictype/categ_Nl.h: Regenerated.
64683         * lib/unictype/categ_No.h: Regenerated.
64684         * lib/unictype/categ_P.h: Regenerated.
64685         * lib/unictype/categ_Pd.h: Regenerated.
64686         * lib/unictype/categ_Pe.h: Regenerated.
64687         * lib/unictype/categ_Pf.h: Regenerated.
64688         * lib/unictype/categ_Pi.h: Regenerated.
64689         * lib/unictype/categ_Po.h: Regenerated.
64690         * lib/unictype/categ_Ps.h: Regenerated.
64691         * lib/unictype/categ_S.h: Regenerated.
64692         * lib/unictype/categ_Sk.h: Regenerated.
64693         * lib/unictype/categ_Sm.h: Regenerated.
64694         * lib/unictype/categ_So.h: Regenerated.
64695         * lib/unictype/categ_of.h: Regenerated.
64696         * lib/unictype/combining.h: Regenerated.
64697         * lib/unictype/ctype_alnum.h: Regenerated.
64698         * lib/unictype/ctype_alpha.h: Regenerated.
64699         * lib/unictype/ctype_graph.h: Regenerated.
64700         * lib/unictype/ctype_lower.h: Regenerated.
64701         * lib/unictype/ctype_print.h: Regenerated.
64702         * lib/unictype/ctype_punct.h: Regenerated.
64703         * lib/unictype/ctype_upper.h: Regenerated.
64704         * lib/unictype/decdigit.h: Regenerated.
64705         * lib/unictype/digit.h: Regenerated.
64706         * lib/unictype/mirror.h: Regenerated.
64707         * lib/unictype/numeric.h: Regenerated.
64708         * lib/unictype/pr_alphabetic.h: Regenerated.
64709         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
64710         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
64711         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
64712         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
64713         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
64714         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
64715         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
64716         * lib/unictype/pr_combining.h: Regenerated.
64717         * lib/unictype/pr_dash.h: Regenerated.
64718         * lib/unictype/pr_decimal_digit.h: Regenerated.
64719         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
64720         * lib/unictype/pr_deprecated.h: Regenerated.
64721         * lib/unictype/pr_diacritic.h: Regenerated.
64722         * lib/unictype/pr_extender.h: Regenerated.
64723         * lib/unictype/pr_format_control.h: Regenerated.
64724         * lib/unictype/pr_grapheme_base.h: Regenerated.
64725         * lib/unictype/pr_grapheme_extend.h: Regenerated.
64726         * lib/unictype/pr_grapheme_link.h: Regenerated.
64727         * lib/unictype/pr_id_continue.h: Regenerated.
64728         * lib/unictype/pr_id_start.h: Regenerated.
64729         * lib/unictype/pr_ideographic.h: Regenerated.
64730         * lib/unictype/pr_ignorable_control.h: Regenerated.
64731         * lib/unictype/pr_lowercase.h: Regenerated.
64732         * lib/unictype/pr_math.h: Regenerated.
64733         * lib/unictype/pr_numeric.h: Regenerated.
64734         * lib/unictype/pr_other_alphabetic.h: Regenerated.
64735         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
64736         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
64737         * lib/unictype/pr_other_id_continue.h: Regenerated.
64738         * lib/unictype/pr_other_lowercase.h: Regenerated.
64739         * lib/unictype/pr_other_math.h: Regenerated.
64740         * lib/unictype/pr_punctuation.h: Regenerated.
64741         * lib/unictype/pr_sentence_terminal.h: Regenerated.
64742         * lib/unictype/pr_soft_dotted.h: Regenerated.
64743         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
64744         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
64745         * lib/unictype/pr_unified_ideograph.h: Regenerated.
64746         * lib/unictype/pr_uppercase.h: Regenerated.
64747         * lib/unictype/pr_xid_continue.h: Regenerated.
64748         * lib/unictype/pr_xid_start.h: Regenerated.
64749         * lib/unictype/pr_zero_width.h: Regenerated.
64750         * lib/unictype/scripts.h: Regenerated.
64751         * lib/unictype/scripts_byname.gperf: Regenerated.
64752         * lib/unictype/sy_java_ident.h: Regenerated.
64753         * lib/unilbrk/lbrkprop1.h: Regenerated.
64754         * lib/unilbrk/lbrkprop2.h: Regenerated.
64755         * tests/unictype/test-categ_C.c: Regenerated.
64756         * tests/unictype/test-categ_Cf.c: Regenerated.
64757         * tests/unictype/test-categ_Cn.c: Regenerated.
64758         * tests/unictype/test-categ_L.c: Regenerated.
64759         * tests/unictype/test-categ_Ll.c: Regenerated.
64760         * tests/unictype/test-categ_Lm.c: Regenerated.
64761         * tests/unictype/test-categ_Lo.c: Regenerated.
64762         * tests/unictype/test-categ_Lu.c: Regenerated.
64763         * tests/unictype/test-categ_M.c: Regenerated.
64764         * tests/unictype/test-categ_Mc.c: Regenerated.
64765         * tests/unictype/test-categ_Me.c: Regenerated.
64766         * tests/unictype/test-categ_Mn.c: Regenerated.
64767         * tests/unictype/test-categ_N.c: Regenerated.
64768         * tests/unictype/test-categ_Nd.c: Regenerated.
64769         * tests/unictype/test-categ_Nl.c: Regenerated.
64770         * tests/unictype/test-categ_No.c: Regenerated.
64771         * tests/unictype/test-categ_P.c: Regenerated.
64772         * tests/unictype/test-categ_Pd.c: Regenerated.
64773         * tests/unictype/test-categ_Pe.c: Regenerated.
64774         * tests/unictype/test-categ_Pf.c: Regenerated.
64775         * tests/unictype/test-categ_Pi.c: Regenerated.
64776         * tests/unictype/test-categ_Po.c: Regenerated.
64777         * tests/unictype/test-categ_Ps.c: Regenerated.
64778         * tests/unictype/test-categ_S.c: Regenerated.
64779         * tests/unictype/test-categ_Sk.c: Regenerated.
64780         * tests/unictype/test-categ_Sm.c: Regenerated.
64781         * tests/unictype/test-categ_So.c: Regenerated.
64782         * tests/unictype/test-ctype_alnum.c: Regenerated.
64783         * tests/unictype/test-ctype_alpha.c: Regenerated.
64784         * tests/unictype/test-ctype_graph.c: Regenerated.
64785         * tests/unictype/test-ctype_lower.c: Regenerated.
64786         * tests/unictype/test-ctype_print.c: Regenerated.
64787         * tests/unictype/test-ctype_punct.c: Regenerated.
64788         * tests/unictype/test-ctype_upper.c: Regenerated.
64789         * tests/unictype/test-decdigit.h: Regenerated.
64790         * tests/unictype/test-digit.h: Regenerated.
64791         * tests/unictype/test-numeric.h: Regenerated.
64792         * tests/unictype/test-pr_alphabetic.c: Regenerated.
64793         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
64794         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
64795         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
64796         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
64797         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
64798         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
64799         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
64800         * tests/unictype/test-pr_combining.c: Regenerated.
64801         * tests/unictype/test-pr_dash.c: Regenerated.
64802         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
64803         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
64804         * tests/unictype/test-pr_deprecated.c: Regenerated.
64805         * tests/unictype/test-pr_diacritic.c: Regenerated.
64806         * tests/unictype/test-pr_extender.c: Regenerated.
64807         * tests/unictype/test-pr_format_control.c: Regenerated.
64808         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
64809         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
64810         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
64811         * tests/unictype/test-pr_id_continue.c: Regenerated.
64812         * tests/unictype/test-pr_id_start.c: Regenerated.
64813         * tests/unictype/test-pr_ideographic.c: Regenerated.
64814         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
64815         * tests/unictype/test-pr_lowercase.c: Regenerated.
64816         * tests/unictype/test-pr_math.c: Regenerated.
64817         * tests/unictype/test-pr_numeric.c: Regenerated.
64818         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
64819         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
64820         Regenerated.
64821         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
64822         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
64823         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
64824         * tests/unictype/test-pr_other_math.c: Regenerated.
64825         * tests/unictype/test-pr_punctuation.c: Regenerated.
64826         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
64827         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
64828         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
64829         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
64830         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
64831         * tests/unictype/test-pr_uppercase.c: Regenerated.
64832         * tests/unictype/test-pr_xid_continue.c: Regenerated.
64833         * tests/unictype/test-pr_xid_start.c: Regenerated.
64834         * tests/unictype/test-pr_zero_width.c: Regenerated.
64836         Update to Unicode 5.1.0.
64837         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
64838         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
64839         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
64840         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
64841         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
64842         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
64843         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
64844         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
64845         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
64846         (nonspacing_table_ind): Update.
64847         * tests/uniwidth/test-uc_width2.sh: Update expected result.
64849         Update to Unicode 5.1.0.
64850         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
64851         code transform.
64852         * lib/uniname/uniname.c (unicode_character_name,
64853         unicode_name_character): Add the range 0x1Fxxx to the code transform.
64854         * lib/uniname/uninames.h: Regenerated.
64855         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
64857 2009-02-07  Bruno Haible  <bruno@clisp.org>
64859         Merge gen-ctype and gen-lbrk into a single program.
64860         * lib/gen-uni-tables.c: New file, incorporating
64861         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
64862         Add directory prefixes to the names of the generated files.
64863         * lib/unictype/gen-ctype.c: Remove file.
64864         * lib/unilbrk/gen-lbrk.c: Remove file.
64865         * modules/gen-uni-tables: New file.
64866         * modules/unictype/gen-ctype: Remove file.
64867         * modules/unilbrk/gen-lbrk: Remove file.
64869 2009-02-07  Bruno Haible  <bruno@clisp.org>
64871         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
64873         New module 'unistr/u32-strcoll'.
64874         * modules/unistr/u32-strcoll: New file.
64875         * lib/unistr/u32-strcoll.c: New file.
64877         New module 'unistr/u16-strcoll'.
64878         * modules/unistr/u16-strcoll: New file.
64879         * lib/unistr/u16-strcoll.c: New file.
64881         New module 'unistr/u8-strcoll'.
64882         * modules/unistr/u8-strcoll: New file.
64883         * lib/unistr/u8-strcoll.c: New file.
64884         * lib/unistr/u-strcoll.h: New file.
64886 2009-02-07  Bruno Haible  <bruno@clisp.org>
64888         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
64889         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64890         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64891         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
64892         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
64893         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
64895 2009-02-07  Bruno Haible  <bruno@clisp.org>
64897         Make 64-bit clean.
64898         * lib/unictype/gen-ctype.c (output_predicate, output_category,
64899         output_combclass, output_bidi_category, output_decimal_digit,
64900         output_digit, output_numeric, output_mirror, output_scripts,
64901         output_ident_category): Use proper width specifier in format strings.
64903 2009-02-07  Bruno Haible  <bruno@clisp.org>
64905         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
64906         failure behaviour.
64908 2009-02-07  Jim Meyering  <meyering@redhat.com>
64910         regex: avoid compilation failure with upcoming gcc-4.4
64911         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
64912         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
64913         "... error: integer overflow in preprocessor expression".
64915 2009-02-05  Ben Pfaff  <blp@gnu.org>
64917         Fix link errors on Windows when close module is used.
64918         * modules/close: Add $(LIB_CLOSE) to Link section.
64919         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
64920         $(LIB_CLOSE) on Windows.
64922 2009-02-05  Jim Meyering  <meyering@redhat.com>
64924         still avoid unused-parameter warnings, but do it cleanly
64925         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
64926         (get_fs_usage): Cast to void instead.
64927         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
64928         (dev_from_mount_options, read_file_system_list): Cast to void.
64929         Prompted by Bruno Haible.
64931 2009-02-04  Jim Meyering  <meyering@redhat.com>
64933         fsusage.c: correct copyright year
64934         * lib/fsusage.c: Reflect year in which the change is pushed into
64936         avoid misc. warnings
64937         * lib/fsusage.c (UNUSED_PARAM): Define.
64938         (get_fs_usage): Mark parameter "disk" as unused.
64939         * lib/getugroups.c (getgrent): Use "void" in prototype.
64940         * lib/mountlist.c: Mark unused parameters.
64941         (read_file_system_list): Declare a local with "const".
64942         * lib/nanosleep.c (getnow): Declare static.
64943         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
64945         dirfd: set errno upon failure
64946         * lib/dirfd.c: Include <errno.h>.
64947         Set errno to ENOTSUP when returning -1.
64948         * modules/dirfd (Depends-on): Add errno.
64949         Suggested by John Kodis <kodis@comcast.net>.
64951 2009-02-01  Bruno Haible  <bruno@clisp.org>
64953         Don't assume sizeof (long) >= sizeof (void *).
64954         * lib/memcmp.c: Include stdint.h.
64955         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
64956         srcp2 to 'const byte *'.
64957         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
64958         types to uintptr_t.
64959         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
64960         * modules/memcmp (Depends-on): Add stdint.
64961         Reported by Ozkan Sezer <sezeroz@gmail.com>.
64963 2009-01-30  Eric Blake  <ebb9@byu.net>
64965         fix more require-before-expand issues
64966         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
64967         expand, AC_PROG_AWK.
64968         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
64970 2009-01-28  Eric Blake  <ebb9@byu.net>
64972         version-etc: use consistent URL formatting
64973         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
64974         Improve formatting.  Use fputs for string without %.
64976 2009-01-28  Jim Meyering  <meyering@redhat.com>
64978         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
64979         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
64980         "underquoted definition of NAME" from autoconf-2.59.
64982 2009-01-28  Bruno Haible  <bruno@clisp.org>
64984         * doc/gnulib.texi: Add "Obsolete modules" to index.
64986 2009-01-28  Jim Meyering  <meyering@redhat.com>
64988         useless-if-before-free: recognize more variants
64989         * build-aux/useless-if-before-free: Also recognize e.g.,
64990         if (NULL != p) free (p);
64992 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
64994         test-getaddrinfo: skip (don't fail) this test when there's no network
64995         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
64996         on the presumption that it means you lack network access.
64998 2009-01-26  Jim Meyering  <meyering@redhat.com>
65000         fflush: avoid warnings on modern systems
65001         * lib/fflush.c (rpl_fflush): Move declarations of locals,
65002         pos and result, into scopes where they're used.
65004 2009-01-26  Eric Blake  <ebb9@byu.net>
65006         Silence warning reintroduced by recent extensions patch.
65007         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
65008         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
65009         autoconf.
65011         Backport improved autoconf semantics of AC_DEFUN_ONCE.
65012         * m4/00gnulib.m4: New file.
65013         * gnulib-tool (func_get_filelist): Always use it.
65014         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
65015         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
65017 2009-01-25  Bruno Haible  <bruno@clisp.org>
65019         Make test-quotearg work on MacOS X and AIX.
65020         * tests/test-quotearg.sh: New file.
65021         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
65022         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
65023         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
65024         include <libintl.h>.
65025         (fake_locale): Remove variable.
65026         (gettext, dgettext, dcgettext): Remove functions.
65027         (main): Instead of setting a fake locale, set a real locale. Call
65028         textdomain and bindtextdomain.
65029         * modules/quotearg-tests (Files): Add the new files.
65030         (Depends-on): Add gettext, setenv, unsetenv.
65031         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
65032         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
65033         Augment TESTS_ENVIRONMENT.
65035 2009-01-25  Bruno Haible  <bruno@clisp.org>
65037         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
65038         fr_FR.ISO8859-1 locale on MacOS X.
65039         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
65040         ja_JP.eucJP locale on MacOS X.
65041         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
65042         zh_CN.GB18030 locale on MacOS X.
65044 2009-01-25  Bruno Haible  <bruno@clisp.org>
65046         Avoid link errors on MacOS X 10.3.
65047         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
65048         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65050 2009-01-25  Bruno Haible  <bruno@clisp.org>
65052         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
65053         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
65054         * modules/pipe (Files): Remove m4/posix_spawn.m4.
65055         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
65056         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
65057         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
65058         posix_spawnattr_init, posix_spawnattr_setsigmask,
65059         posix_spawnattr_setflags, posix_spawnattr_destroy.
65061         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
65062         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
65063         * modules/execute (Files): Remove m4/posix_spawn.m4.
65064         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
65065         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
65066         posix_spawnattr_init, posix_spawnattr_setsigmask,
65067         posix_spawnattr_setflags, posix_spawnattr_destroy.
65069 2009-01-25  Bruno Haible  <bruno@clisp.org>
65071         * lib/glthread/threadlib.c: Include <stdlib.h>.
65073 2009-01-25  Bruno Haible  <bruno@clisp.org>
65075         * lib/glthread/threadlib.c (dummy): New declaration.
65077 2009-01-25  Bruno Haible  <bruno@clisp.org>
65079         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
65080         multibyte characters also for the GB18030 encoding. Don't crash when
65081         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
65083 2009-01-25  Bruno Haible  <bruno@clisp.org>
65085         Avoid redefining 'struct random_data' on OSF/1 5.1.
65086         * lib/stdlib.in.h: Include <random.h> if it exists.
65087         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
65088         HAVE_RANDOM_H. Include <random.h> when testing whether
65089         'struct random_data' exists.
65090         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
65092 2009-01-25  Bruno Haible  <bruno@clisp.org>
65094         Don't install charset.alias on MacOS X >= 10.3.
65095         * lib/localcharset.c (DARWIN7): New macro.
65096         (get_charset_aliases): Hardcode the result for Darwin7.
65097         * modules/localcharset (install-exec-local): Don't install
65098         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
65100 2009-01-25  Bruno Haible  <bruno@clisp.org>
65102         Don't install charset.alias on mingw and Cygwin.
65103         * modules/localcharset (install-exec-local): Don't install
65104         charset.alias on mingw and Cygwin, if the file does not yet exist.
65105         The result for these platforms is hardcoded in localcharset.c.
65107 2009-01-25  Bruno Haible  <bruno@clisp.org>
65109         Make it possible again to use AC_GNU_SOURCE together with gnulib.
65110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
65111         before requiring AC_USE_SYSTEM_EXTENSIONS.
65113 2009-01-25  Jim Meyering  <meyering@redhat.com>
65115         c-strtod: avoid warnings
65116         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
65117         "assignment discards qualifiers from pointer target type" warnings.
65119 2009-01-24  Bruno Haible  <bruno@clisp.org>
65121         Add support for non-UTF-8 locales on MacOS X.
65122         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
65123         canonical encodings. For Darwin 7 and newer, don't map traditional
65124         encodings to UTF-8.
65125         Reported by Vincent Lefevre <vincent@vinc17.org>
65126         at <http://savannah.gnu.org/bugs/?25235>.
65128 2009-01-24  Bruno Haible  <bruno@clisp.org>
65130         * doc/gnulib.texi (Obsolete modules): New section.
65131         Reported by Mike Frysinger <vapier@gentoo.org>.
65133 2009-01-24  Bruno Haible  <bruno@clisp.org>
65135         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
65136         (%.dvi): New rule.
65138 2009-01-24  Bruno Haible  <bruno@clisp.org>
65140         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
65141         Reported by Eric Blake.
65143 2009-01-24  Bruno Haible  <bruno@clisp.org>
65145         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
65146         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
65147         Reported by Gary V. Vaughan <gary@gnu.org>.
65149 2009-01-24  Bruno Haible  <bruno@clisp.org>
65151         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
65153 2009-01-23  Bruno Haible  <bruno@clisp.org>
65155         Make c-strtod, c-strtold usable in libraries.
65156         * lib/c-strtod.c: Include string.h instead of xalloc.h.
65157         (C_STRTOD): Call strdup instead of xstrdup.
65158         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
65159         * modules/c-strtold (Depends-on): Likewise.
65160         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
65161         * NEWS: Mention the change.
65162         Reported by Michael Gold <mgold@ncf.ca>.
65164 2009-01-23  Jim Meyering  <meyering@redhat.com>
65166         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
65167         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
65168         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
65170 2009-01-23  Simon Josefsson  <simon@josefsson.org>
65172         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
65173         GNU CoreUtils.
65174         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
65175         * modules/version-etc (Description): Update.
65177 2009-01-22  Bruno Haible  <bruno@clisp.org>
65179         Cache the C locale object.
65180         * lib/c-strtod.c (c_locale_cache): New variable.
65181         (c_locale): New function.
65182         (C_STRTOD): Use it, and don't call freelocale.
65183         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
65184         Suggested by Paolo Bonzini.
65186 2009-01-21  Bruno Haible  <bruno@clisp.org>
65188         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
65189         conditions other than overflow.
65191 2009-01-21  Bruno Haible  <bruno@clisp.org>
65193         * lib/c-strtod.c: Include errno.h.
65194         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
65195         value from STRTOD_L and STRTOD.
65197 2009-01-21  Bruno Haible  <bruno@clisp.org>
65198         and Jim Meyering  <meyering@redhat.com>
65200         nanosleep: skip configure test (fail it) for apple universal builds
65201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
65202         universal builds, assume that nanosleep does not work.
65203         * modules/nanosleep (Depends-on): Add multiarch.
65205         mktime: skip configure test (fail it) for apple universal builds
65206         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
65207         universal builds, assume that mktime does not work.
65208         * modules/mktime (Depends-on): Add multiarch.
65210 2009-01-21  Eric Blake  <ebb9@byu.net>
65212         multiarch: avoid expand-before-require warning
65213         * modules/multiarch (configure.ac): Require, rather than expand,
65214         gl_MULTIARCH.
65215         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
65216         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
65217         enforce that all clients require it.  Partial reversion of
65218         2008-12-29 patch.
65220         error: avoid expand-before-require warning
65221         * modules/errno (configure.ac): Require, rather than expand,
65222         gl_HEADER_ERRNO_H.
65223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
65224         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
65225         enforce that all clients require it.
65227         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
65228         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
65229         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
65230         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
65232 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
65234         Revert:
65235         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
65237         regex: do not depend on obsolete modules.
65238         * modules/regex: Remove memcmp and memmove.
65240 2009-01-20  Bruno Haible  <bruno@clisp.org>
65242         Make the 'link' module link on Windows NT 4.
65243         * lib/link.c (_WIN32_WINNT): Don't define.
65244         (CreateHardLinkFuncType): New type.
65245         (CreateHardLinkFunc, initialized): New variables.
65246         (initialize): New function.
65247         (link): Invoke CreateHardLink indirectly through the function pointer.
65249 2009-01-20  Bruno Haible  <bruno@clisp.org>
65251         Fix compilation failure on mingw.
65252         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
65254 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
65256         * doc/c-strtod.texi: Mention a couple of restrictions.
65258 2009-01-20  Jim Meyering  <meyering@redhat.com>
65260         gettimeofday: move more declarations out of functions
65261         * lib/gettimeofday.c: Move extern declarations of tzset and
65262         gmtime out of containing functions.  Prompted by Bruno Haible.
65264 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
65266         regex: do not depend on obsolete modules.
65267         * modules/regex: Remove memcmp and memmove.
65269 2009-01-19  Bruno Haible  <bruno@clisp.org>
65271         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
65272         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
65273         gl_BIGENDIAN, not AC_C_BIGENDIAN.
65274         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
65275         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
65277 2009-01-19  Bruno Haible  <bruno@clisp.org>
65279         * tests/test-link.c: Include <errno.h>.
65280         (main): Exit with code 77 when a hard link cannot be created due to
65281         the file system.
65282         * tests/test-link.sh: Skip test when a hard link cannot be created due
65283         to the file system.
65284         Suggested by Eric Blake.
65286 2009-01-19  Martin Lambers  <marlam@marlam.de>
65288         * modules/link-tests: New file.
65289         * tests/test-link.sh: New file.
65290         * tests/test-link.c: New file.
65292 2009-01-19  Eric Blake  <ebb9@byu.net>
65294         doc: mention another function added in cygwin 1.7.0
65295         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
65296         Another new function in cygwin 1.7.
65298 2009-01-19  Bruno Haible  <bruno@clisp.org>
65300         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
65301         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
65302         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
65303         gl_BIGENDIAN, not AC_C_BIGENDIAN.
65304         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
65305         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
65306         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65307         * m4/md4.m4 (gl_MD4): Likewise.
65308         * m4/md5.m4 (gl_MD5): Likewise.
65309         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
65310         * m4/sha1.m4 (gl_SHA1): Likewise.
65311         * m4/sha256.m4 (gl_SHA256): Likewise.
65312         * m4/sha512.m4 (gl_SHA512): Likewise.
65314 2009-01-19  Bruno Haible  <bruno@clisp.org>
65316         * modules/uniname/uniname-tests (Depends-on): Add progname.
65317         * tests/uniname/test-uninames.c: Include progname.h.
65318         (main): Call set_program_name.
65320         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
65321         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
65322         (main): Call set_program_name.
65324         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
65325         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
65326         (main): Call set_program_name.
65328         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
65329         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
65330         (main): Call set_program_name.
65332         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
65333         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
65334         (main): Call set_program_name.
65336         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
65337         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
65338         (main): Call set_program_name.
65340         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
65341         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
65342         (main): Call set_program_name.
65344         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
65345         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
65346         (main): Call set_program_name.
65348         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
65349         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
65350         (main): Call set_program_name.
65352 2009-01-19  Eric Blake  <ebb9@byu.net>
65354         test-unistd: test previous patch
65355         * tests/test-unistd.c: Test *_FILENO macros.
65357         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
65358         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65359         Guarantee a definition.
65360         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
65361         * modules/unistd-safer (Depends-on): Add dependency on unistd.
65362         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
65363         * lib/dup-safer.c (STDERR_FILENO): Likewise.
65364         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65365         Likewise.
65366         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
65367         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
65368         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65369         Likewise.
65370         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
65371         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
65372         (STDERR_FILENO): Likewise.
65373         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
65374         (STDERR_FILENO): Likewise.
65375         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
65376         (STDERR_FILENO): Likewise.
65377         Reported by Elbert Pol.
65379 2009-01-19  Eric Blake  <ebb9@byu.net>
65381         doc: mention more functions added in cygwin 1.7.0
65382         * doc/posix-functions/abort.texi (abort): Update wording related
65383         to cygwin.
65384         * doc/posix-functions/daylight.texi (daylight): Likewise.
65385         * doc/posix-functions/optarg.texi (optarg): Likewise.
65386         * doc/posix-functions/optarg.texi (opterr): Likewise.
65387         * doc/posix-functions/optarg.texi (optind): Likewise.
65388         * doc/posix-functions/optarg.texi (optopt): Likewise.
65389         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
65390         worked in 1.5.x, and was withdrawn in 1.7.
65391         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
65392         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
65393         cygwin versions.
65394         * doc/posix-functions/perror.texi (perror): Likewise.
65395         * doc/posix-functions/printf.texi (printf): Likewise.
65396         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
65397         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
65398         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
65399         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
65400         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
65401         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
65402         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
65403         Likewise.
65404         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
65405         Likewise.
65406         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
65407         this function.
65408         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
65409         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
65410         Likewise.
65411         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
65412         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
65413         * doc/posix-functions/confstr.texi (confstr): Likewise.
65414         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
65415         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
65416         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
65417         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
65418         * doc/posix-functions/fputws.texi (fputws): Likewise.
65419         * doc/posix-functions/fwide.texi (fwide): Likewise.
65420         * doc/posix-functions/getwc.texi (getwc): Likewise.
65421         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
65422         * doc/posix-functions/putwc.texi (putwc): Likewise.
65423         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
65424         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
65425         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
65426         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
65427         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
65428         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
65429         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
65430         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
65431         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
65432         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
65433         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
65435 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
65437         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
65438         * lib/ioctl.c: Include <sys/ioctl.h>.
65440 2009-01-19  Simon Josefsson  <simon@josefsson.org>
65442         * modules/getdate-tests (Depends-on): Add progname.
65443         * tests/test-getdate.c: Use progname module, to avoid link errors
65444         on non-glibc systems.
65446 2009-01-18  Simon Josefsson  <simon@josefsson.org>
65448         * modules/filenamecat-tests (Depends-on): Add progname.
65449         * modules/fstrcmp-tests (Depends-on): Likewise.
65451         * tests/test-filenamecat.c: Use progname module, to avoid link
65452         errors on non-glibc systems.
65453         * tests/test-fstrcmp.c: Likewise.
65455 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
65457         gettimeofday: avoid warning: nested extern declaration of 'localtime'
65458         * lib/gettimeofday.c: Move extern declaration out of function.
65460 2009-01-18  Bruno Haible  <bruno@clisp.org>
65462         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
65463         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
65464         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
65466 2009-01-18  Bruno Haible  <bruno@clisp.org>
65468         * lib/strftime.c (MEMPCPY): Remove unused macro.
65469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
65471 2009-01-18  Martin Lambers  <marlam@marlam.de>
65473         New module 'link'.
65474         * lib/unistd.in.h (link): New declaration.
65475         * lib/link.c: New file.
65476         * m4/link.m4: New file.
65477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
65478         HAVE_LINK.
65479         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
65480         * modules/link: New file.
65481         * doc/posix-functions/link.texi: Mention the new module.
65483 2009-01-18  Bruno Haible  <bruno@clisp.org>
65485         * tests/test-avltree_list.c (main): Call set_program_name.
65486         * tests/test-avltree_oset.c (main): Likewise.
65487         * tests/test-obstack-printf.c: Include progname.h.
65488         (main): Call set_program_name.
65489         * tests/test-quotearg.c: Include progname.h.
65490         (main): Call set_program_name.
65491         * tests/test-xmemdup0.c: Include progname.h.
65492         (main): Call set_program_name.
65494 2009-01-18  Bruno Haible  <bruno@clisp.org>
65496         New module 'alphasort'.
65497         * lib/dirent.in.h (alphasort): New declaration.
65498         * lib/alphasort.c: New file, from glibc with modifications.
65499         * m4/alphasort.m4: New file.
65500         * modules/alphasort: New file.
65501         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
65502         HAVE_ALPHASORT.
65503         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
65504         HAVE_ALPHASORT.
65505         * doc/posix-functions/alphasort.texi: Mention the new module and the
65506         portability problems.
65508 2009-01-18  Bruno Haible  <bruno@clisp.org>
65510         New module 'scandir'.
65511         * lib/dirent.in.h (scandir): New declaration.
65512         * lib/scandir.c: New file, from glibc with modifications.
65513         * m4/scandir.m4: New file.
65514         * modules/scandir: New file.
65515         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
65516         HAVE_SCANDIR.
65517         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
65518         HAVE_SCANDIR.
65519         * doc/posix-functions/scandir.texi: Mention the new module and the
65520         portability problems.
65522 2009-01-17  Bruno Haible  <bruno@clisp.org>
65524         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
65525         Update documentation.
65526         (func_remove_suffix): Escape all dots in the suffix. Update
65527         documentation.
65528         (func_filter_filelist): Update documentation.
65529         Reported by Ralf Wildenhues.
65531 2009-01-17  Bruno Haible  <bruno@clisp.org>
65533         * modules/dprintf-posix-tests: New file.
65534         * tests/test-dprintf-posix.sh: New file.
65535         * tests/test-dprintf-posix.c: New file.
65537         New modules 'dprintf', 'dprintf-posix'.
65538         * lib/stdio.in.h (dprintf): New declaration.
65539         * lib/dprintf.c: New file.
65540         * m4/dprintf.m4: New file.
65541         * m4/dprintf-posix.m4: New file.
65542         * modules/dprintf: New file.
65543         * modules/dprintf-posix: New file.
65544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
65545         HAVE_DPRINTF, REPLACE_DPRINTF.
65546         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
65547         HAVE_DPRINTF, REPLACE_DPRINTF.
65548         * doc/posix-functions/dprintf.texi: Mention the new modules.
65550 2009-01-17  Bruno Haible  <bruno@clisp.org>
65552         * modules/vdprintf-posix-tests: New file.
65553         * tests/test-vdprintf-posix.sh: New file.
65554         * tests/test-vdprintf-posix.c: New file.
65556         New modules 'vdprintf', 'vdprintf-posix'.
65557         * lib/stdio.in.h (vdprintf): New declaration.
65558         * lib/vdprintf.c: New file.
65559         * m4/vdprintf.m4: New file.
65560         * m4/vdprintf-posix.m4: New file.
65561         * modules/vdprintf: New file.
65562         * modules/vdprintf-posix: New file.
65563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
65564         HAVE_VDPRINTF, REPLACE_VDPRINTF.
65565         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
65566         HAVE_VDPRINTF, REPLACE_VDPRINTF.
65567         * doc/posix-functions/vdprintf.texi: Mention the new modules.
65569 2009-01-17  Bruno Haible  <bruno@clisp.org>
65571         Fix replacement of fopen on mingw.
65572         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
65573         mingw.
65575 2009-01-17  Bruno Haible  <bruno@clisp.org>
65577         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
65578         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
65580 2009-01-17  Bruno Haible  <bruno@clisp.org>
65582         Avoid test-fflush2.sh failure on mingw.
65583         * tests/test-fflush2.c: Include binary-io.h.
65584         (main): Put standard input into binary mode.
65585         * modules/fflush-tests (Depends-on): Add binary-io.
65587 2009-01-17  Bruno Haible  <bruno@clisp.org>
65589         * lib/wchar.in.h: In another particular situation, include only the
65590         system's <wchar.h> file.
65591         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
65592         Reported by Albert Chin-A-Young <china@thewrittenword.com>
65593         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
65595 2009-01-17  Bruno Haible  <bruno@clisp.org>
65597         Support for stripping executables in --enable-relocatable.
65598         * build-aux/install-reloc: Expect one more argument, or an environment
65599         variable RELOC_STRIP_PROG. If set, strip the destination program and
65600         its wrapper.
65601         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
65602         RELOC_STRIP_PROG.
65603         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
65604         to set RELOCATABLE_STRIP.
65605         * NEWS: Mention the new Makefile requirement.
65607 2009-01-17  Bruno Haible  <bruno@clisp.org>
65609         * build-aux/install-reloc: Remove debugging information left over by
65610         C compiler on MacOS X.
65612 2009-01-17  Bruno Haible  <bruno@clisp.org>
65614         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
65615         * lib/progreloc.c (find_executable): Fix type of pointer passed to
65616         _NSGetExecutablePath.
65618 2009-01-16  Jim Meyering  <meyering@redhat.com>
65620         strerror: avoid warnings about discarding "const"
65621         * lib/strerror.c (rpl_strerror): Instead of returning a const
65622         string from each and every "case", use a variable, and add a single
65623         cast after the switch.
65625 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
65627         * lib/arpa_inet.in.h: Add extern "C" block for C++.
65629 2009-01-16  Bruno Haible  <bruno@clisp.org>
65631         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
65632         array initializer syntax that also works in C++ mode.
65633         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65635 2009-01-16  Jim Meyering  <meyering@redhat.com>
65637         poll: suppress a warning
65638         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
65639         to ignore "...unsigned expression < 0 is always false" warnings.
65641 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
65643         poll: remove declarations of unused variables
65644         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
65645         sockbuf and optlen.
65647 2009-01-15  Bruno Haible  <bruno@clisp.org>
65649         Make fflush-after-ungetc POSIX compliant on BSD systems.
65650         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
65651         (clear_ungetc_buffer): Implement also for other systems.
65652         (rpl_fflush): On glibc systems, invoke
65653         clear_ungetc_buffer_preserving_position. Otherwise, invoke
65654         clear_ungetc_buffer after fetching the stream's position, not before.
65656 2009-01-15  Bruno Haible  <bruno@clisp.org>
65658         Make fflush-after-ungetc POSIX compliant on glibc systems.
65659         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
65660         after ungetc.
65661         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
65662         (rpl_fflush): On glibc systems, simply call the system's fflush
65663         function after clearing the ungetc buffer.
65664         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
65665         Instead, lseek only to the end of file, then use the system's fseeko
65666         for the rest. On glibc systems, reset the EOF indicator bit.
65668 2009-01-15  Jim Meyering  <meyering@redhat.com>
65670         openmp.m4: revert quote-adding change, for portability to older autoconf
65671         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
65672         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
65673         Simon Josefsson noticed the problem when using autoconf-2.61.
65675 2009-01-15  Bruno Haible  <bruno@clisp.org>
65677         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
65678         * tests/test-fflush2.c (ASSERT): Always fail.
65679         (main): Add two tests for fflush() after ungetc(), taking into account
65680         the Austin Group's clarification.
65681         Suggested by Eric Blake.
65683 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
65685         mktime.m4: remove K&R-style function prototypes
65686         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
65687         for the Sun C++ compiler.
65689 2009-01-14  Bruno Haible  <bruno@clisp.org>
65691         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
65692         while including <wchar.h>.
65693         * lib/wchar.in.h: In two particular situations on HP-UX, include only
65694         the system's <wchar.h> file.
65695         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65697 2009-01-14  Bruno Haible  <bruno@clisp.org>
65699         * m4/csharp.m4: Don't mention gettext on the serial number line.
65700         * m4/csharpexec.m4: Likewise.
65701         * m4/eaccess.m4: Likewise.
65702         * m4/javaexec.m4: Likewise.
65703         * m4/sig_atomic_t.m4: Likewise.
65704         * m4/tmpdir.m4: Likewise.
65705         * m4/intldir.m4: Bump gettext version.
65706         * m4/lib-ld.m4: Likewise.
65708 2009-01-14  Bruno Haible  <bruno@clisp.org>
65710         * lib/progname.c (set_program_name): Add more comments.
65711         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
65713 2009-01-14  Simon Josefsson  <simon@josefsson.org>
65715         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
65716         were sys/stat.h does not define it.
65718 2009-01-14  Jim Meyering  <meyering@redhat.com>
65720         many *.m4 files: improve m4 quoting
65721         99% of this change was performed by running the following commands:
65722         git ls-files | grep '\.m4$' | xargs perl -pi \
65723           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
65724           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
65725           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
65726           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
65727         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
65728         The remainder were to add Copyright dates, increment serial numbers,
65729         undo some changes in comments, exclude m4/intl.m4, and add quotes
65730         around the "1" in ",1" where the unusual spacing prohibited the
65731         above regexps from doing the job.  For more details, see
65732         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
65733         * m4/acl.m4: Modified.
65734         * m4/afs.m4: Likewise.
65735         * m4/alloca.m4: Likewise.
65736         * m4/argp.m4: Likewise.
65737         * m4/argz.m4: Likewise.
65738         * m4/atexit.m4: Likewise.
65739         * m4/bison-i18n.m4: Likewise.
65740         * m4/bison.m4: Likewise.
65741         * m4/byteswap.m4: Likewise.
65742         * m4/c-stack.m4: Likewise.
65743         * m4/c-strtod.m4: Likewise.
65744         * m4/calloc.m4: Likewise.
65745         * m4/canonicalize-lgpl.m4: Likewise.
65746         * m4/chown.m4: Likewise.
65747         * m4/clock_time.m4: Likewise.
65748         * m4/codeset.m4: Likewise.
65749         * m4/copy-file.m4: Likewise.
65750         * m4/csharp.m4: Likewise.
65751         * m4/csharpcomp.m4: Likewise.
65752         * m4/csharpexec.m4: Likewise.
65753         * m4/d-ino.m4: Likewise.
65754         * m4/d-type.m4: Likewise.
65755         * m4/dirfd.m4: Likewise.
65756         * m4/double-slash-root.m4: Likewise.
65757         * m4/eaccess.m4: Likewise.
65758         * m4/eealloc.m4: Likewise.
65759         * m4/environ.m4: Likewise.
65760         * m4/errno_h.m4: Likewise.
65761         * m4/euidaccess.m4: Likewise.
65762         * m4/execute.m4: Likewise.
65763         * m4/fatal-signal.m4: Likewise.
65764         * m4/fchdir.m4: Likewise.
65765         * m4/fcntl_h.m4: Likewise.
65766         * m4/fileblocks.m4: Likewise.
65767         * m4/filenamecat.m4: Likewise.
65768         * m4/findprog.m4: Likewise.
65769         * m4/flexmember.m4: Likewise.
65770         * m4/fnmatch.m4: Likewise.
65771         * m4/fopen.m4: Likewise.
65772         * m4/fpending.m4: Likewise.
65773         * m4/fprintf-posix.m4: Likewise.
65774         * m4/free.m4: Likewise.
65775         * m4/frexp.m4: Likewise.
65776         * m4/frexpl.m4: Likewise.
65777         * m4/fsusage.m4: Likewise.
65778         * m4/ftruncate.m4: Likewise.
65779         * m4/gc-camellia.m4: Likewise.
65780         * m4/gc-random.m4: Likewise.
65781         * m4/gc.m4: Likewise.
65782         * m4/getaddrinfo.m4: Likewise.
65783         * m4/getcwd-abort-bug.m4: Likewise.
65784         * m4/getcwd-path-max.m4: Likewise.
65785         * m4/getdate.m4: Likewise.
65786         * m4/getdomainname.m4: Likewise.
65787         * m4/getgroups.m4: Likewise.
65788         * m4/gethostname.m4: Likewise.
65789         * m4/gethrxtime.m4: Likewise.
65790         * m4/getline.m4: Likewise.
65791         * m4/getloadavg.m4: Likewise.
65792         * m4/getndelim2.m4: Likewise.
65793         * m4/getpass.m4: Likewise.
65794         * m4/gettext.m4: Likewise.
65795         * m4/gettime.m4: Likewise.
65796         * m4/gettimeofday.m4: Likewise.
65797         * m4/gnulib-common.m4: Likewise.
65798         * m4/group-member.m4: Likewise.
65799         * m4/host-os.m4: Likewise.
65800         * m4/iconv.m4: Likewise.
65801         * m4/iconv_open.m4: Likewise.
65802         * m4/inet_ntop.m4: Likewise.
65803         * m4/inet_pton.m4: Likewise.
65804         * m4/inline.m4: Likewise.
65805         * m4/intldir.m4: Likewise.
65806         * m4/intlmacosx.m4: Likewise.
65807         * m4/intmax.m4: Likewise.
65808         * m4/intmax_t.m4: Likewise.
65809         * m4/inttypes.m4: Likewise.
65810         * m4/inttypes_h.m4: Likewise.
65811         * m4/inttypes-pri.m4: Likewise.
65812         * m4/isapipe.m4: Likewise.
65813         * m4/isnand.m4: Likewise.
65814         * m4/isnanf.m4: Likewise.
65815         * m4/isnanl.m4: Likewise.
65816         * m4/javacomp.m4: Likewise.
65817         * m4/javaexec.m4: Likewise.
65818         * m4/jm-winsz1.m4: Likewise.
65819         * m4/jm-winsz2.m4: Likewise.
65820         * m4/lchown.m4: Likewise.
65821         * m4/lcmessage.m4: Likewise.
65822         * m4/ldexpl.m4: Likewise.
65823         * m4/lib-ld.m4: Likewise.
65824         * m4/lib-link.m4: Likewise.
65825         * m4/libsigsegv.m4: Likewise.
65826         * m4/link-follow.m4: Likewise.
65827         * m4/localcharset.m4: Likewise.
65828         * m4/locale-fr.m4: Likewise.
65829         * m4/locale-ja.m4: Likewise.
65830         * m4/locale-tr.m4: Likewise.
65831         * m4/locale-zh.m4: Likewise.
65832         * m4/lock.m4: Likewise.
65833         * m4/longlong.m4: Likewise.
65834         * m4/ls-mntd-fs.m4: Likewise.
65835         * m4/lstat.m4: Likewise.
65836         * m4/malloc.m4: Likewise.
65837         * m4/mathl.m4: Likewise.
65838         * m4/mbrtowc.m4: Likewise.
65839         * m4/mbstate_t.m4: Likewise.
65840         * m4/mbswidth.m4: Likewise.
65841         * m4/memchr.m4: Likewise.
65842         * m4/memcmp.m4: Likewise.
65843         * m4/memcpy.m4: Likewise.
65844         * m4/memmem.m4: Likewise.
65845         * m4/memmove.m4: Likewise.
65846         * m4/mempcpy.m4: Likewise.
65847         * m4/memrchr.m4: Likewise.
65848         * m4/memset.m4: Likewise.
65849         * m4/minmax.m4: Likewise.
65850         * m4/mkdir-slash.m4: Likewise.
65851         * m4/mkdtemp.m4: Likewise.
65852         * m4/mktime.m4: Likewise.
65853         * m4/mmap-anon.m4: Likewise.
65854         * m4/mountlist.m4: Likewise.
65855         * m4/nanosleep.m4: Likewise.
65856         * m4/nls.m4: Likewise.
65857         * m4/nocrash.m4: Likewise.
65858         * m4/open.m4: Likewise.
65859         * m4/openat.m4: Likewise.
65860         * m4/openmp.m4: Likewise.
65861         * m4/pathmax.m4: Likewise.
65862         * m4/perl.m4: Likewise.
65863         * m4/physmem.m4: Likewise.
65864         * m4/pipe.m4: Likewise.
65865         * m4/po.m4: Likewise.
65866         * m4/poll.m4: Likewise.
65867         * m4/posixtm.m4: Likewise.
65868         * m4/posixver.m4: Likewise.
65869         * m4/printf-frexp.m4: Likewise.
65870         * m4/printf-frexpl.m4: Likewise.
65871         * m4/printf-posix.m4: Likewise.
65872         * m4/printf-posix-rpl.m4: Likewise.
65873         * m4/printf.m4: Likewise.
65874         * m4/progtest.m4: Likewise.
65875         * m4/putenv.m4: Likewise.
65876         * m4/readline.m4: Likewise.
65877         * m4/readlink.m4: Likewise.
65878         * m4/readutmp.m4: Likewise.
65879         * m4/realloc.m4: Likewise.
65880         * m4/regex.m4: Likewise.
65881         * m4/relocatable.m4: Likewise.
65882         * m4/relocatable-lib.m4: Likewise.
65883         * m4/rename-dest-slash.m4: Likewise.
65884         * m4/rename.m4: Likewise.
65885         * m4/rmdir-errno.m4: Likewise.
65886         * m4/rmdir.m4: Likewise.
65887         * m4/roundf.m4: Likewise.
65888         * m4/roundl.m4: Likewise.
65889         * m4/rpmatch.m4: Likewise.
65890         * m4/save-cwd.m4: Likewise.
65891         * m4/selinux-selinux-h.m4: Likewise.
65892         * m4/setenv.m4: Likewise.
65893         * m4/settime.m4: Likewise.
65894         * m4/sig2str.m4: Likewise.
65895         * m4/sig_atomic_t.m4: Likewise.
65896         * m4/signalblocking.m4: Likewise.
65897         * m4/signbit.m4: Likewise.
65898         * m4/sigpipe.m4: Likewise.
65899         * m4/sockets.m4: Likewise.
65900         * m4/sockpfaf.m4: Likewise.
65901         * m4/st_dm_mode.m4: Likewise.
65902         * m4/stat-time.m4: Likewise.
65903         * m4/stdbool.m4: Likewise.
65904         * m4/stdint.m4: Likewise.
65905         * m4/stdint_h.m4: Likewise.
65906         * m4/stpcpy.m4: Likewise.
65907         * m4/stpncpy.m4: Likewise.
65908         * m4/strcase.m4: Likewise.
65909         * m4/strchrnul.m4: Likewise.
65910         * m4/strcspn.m4: Likewise.
65911         * m4/strdup.m4: Likewise.
65912         * m4/strftime.m4: Likewise.
65913         * m4/strndup.m4: Likewise.
65914         * m4/strnlen.m4: Likewise.
65915         * m4/strpbrk.m4: Likewise.
65916         * m4/strptime.m4: Likewise.
65917         * m4/strsep.m4: Likewise.
65918         * m4/strtod.m4: Likewise.
65919         * m4/strtoimax.m4: Likewise.
65920         * m4/strtok_r.m4: Likewise.
65921         * m4/strtol.m4: Likewise.
65922         * m4/strtoll.m4: Likewise.
65923         * m4/strtoul.m4: Likewise.
65924         * m4/strtoull.m4: Likewise.
65925         * m4/strtoumax.m4: Likewise.
65926         * m4/strverscmp.m4: Likewise.
65927         * m4/threadlib.m4: Likewise.
65928         * m4/timegm.m4: Likewise.
65929         * m4/tm_gmtoff.m4: Likewise.
65930         * m4/tmpdir.m4: Likewise.
65931         * m4/tmpfile.m4: Likewise.
65932         * m4/tzset.m4: Likewise.
65933         * m4/uintmax_t.m4: Likewise.
65934         * m4/unlinkdir.m4: Likewise.
65935         * m4/unlocked-io.m4: Likewise.
65936         * m4/uptime.m4: Likewise.
65937         * m4/userspec.m4: Likewise.
65938         * m4/utimbuf.m4: Likewise.
65939         * m4/utime.m4: Likewise.
65940         * m4/utimes-null.m4: Likewise.
65941         * m4/utimes.m4: Likewise.
65942         * m4/vararrays.m4: Likewise.
65943         * m4/vasnprintf.m4: Likewise.
65944         * m4/vfprintf-posix.m4: Likewise.
65945         * m4/vprintf-posix.m4: Likewise.
65946         * m4/wait-process.m4: Likewise.
65947         * m4/wchar_t.m4: Likewise.
65948         * m4/wint_t.m4: Likewise.
65949         * m4/write-any-file.m4: Likewise.
65950         * m4/yield.m4: Likewise.
65952 2009-01-13  Bruno Haible  <bruno@clisp.org>
65954         Avoid test-copy-file.sh failures when ACL support insufficient.
65955         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
65956         TESTS_ENVIRONMENT.
65957         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
65958         Reported by Jim Meyering.
65960 2009-01-13  Bruno Haible  <bruno@clisp.org>
65962         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
65963         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
65964         * modules/unistdio/u8-printf-parse (Files): Likewise.
65965         * modules/unistdio/u32-printf-parse (Files): Likewise.
65966         * modules/unistdio/ulc-printf-parse (Files): Likewise.
65968 2009-01-13  Simon Josefsson  <simon@josefsson.org>
65970         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
65971         and m4/inttypes_h.m4 too.
65973 2009-01-12  Eric Blake  <ebb9@byu.net>
65975         tests: IRIX 6.2 cc can't compile -0.0 into .data
65976         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
65977         rather than at compile-time.
65978         * tests/test-floorl.c (minus_zero): Likewise.
65979         * tests/test-frexpl.c (minus_zero): Likewise.
65980         * tests/test-isnan.c (minus_zerol): Likewise.
65981         * tests/test-isnanl.h (minus_zero): Likewise.
65982         * tests/test-ldexpl.c (minus_zero): Likewise.
65983         * tests/test-roundl.c (minus_zero): Likewise.
65984         * tests/test-signbit.c (minus_zerol): Likewise.
65985         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
65986         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
65987         * tests/test-truncl.c (minus_zero): Likewise.
65988         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
65989         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
65990         Reported by Tom G. Christensen and Nelson H. F. Beebe.
65992 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65994         regex: fix glibc bug 9697
65995         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
65996         handling.
65998 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
66000         regex: fix glibc bug 697
66001         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
66002         being NULL also if there are no backreferences.
66004 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
66006         regex: merge glibc changes
66007         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
66008         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
66009         re_string_skip_chars, re_string_reconstruct): Likewise.
66010         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
66012 2009-01-07  Jim Meyering  <meyering@redhat.com>
66014         poll: filter through cppi
66015         * lib/poll.c: Indent cpp directives to reflect nesting.
66017 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
66019         poll: don't return uninitialized
66020         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
66022 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
66024         avoid compile failure on AIX 6.1
66025         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
66026         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
66028 2009-01-04  Jim Meyering  <meyering@redhat.com>
66030         remove duplicate inclusion of <stdio.h>
66031         * tests/test-fprintf-posix.c: Likewise.
66032         * tests/test-printf-posix.c: Likewise.
66033         * tests/test-snprintf-posix.c: Likewise.
66034         * tests/test-sprintf-posix.c: Likewise.
66035         * tests/test-vasprintf-posix.c: Likewise.
66036         * tests/test-vfprintf-posix.c: Likewise.
66037         * tests/test-vprintf-posix.c: Likewise.
66038         * tests/test-vsnprintf-posix.c: Likewise.
66039         * tests/test-vsprintf-posix.c: Likewise.
66041 2009-01-03  Jim Meyering  <meyering@redhat.com>
66043         gnulib-tool: fix sed-based filtering
66044         * gnulib-tool (func_filter_filelist): Remove extra backslash
66045         in sed_fff_filter definition.
66047 2009-01-02  Jim Meyering  <meyering@redhat.com>
66049         strftime: avoid compilation failure on Solaris 2.6
66050         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
66051         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
66052         Don't #define mbrlen or mbsinit, since now they're guaranteed to
66053         be available.  Reported by Tom G. Christensen.  Details in
66054         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
66056 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66057             Bruno Haible  <bruno@clisp.org>
66059         Speed up gnulib-tool by doing more string processing through shell
66060         built-ins.
66061         * gnulib-tool (fast_func_append): New variable.
66062         (func_remove_prefix, func_remove_suffix): New functions.
66063         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
66064         (func_filter_filelist): New function.
66065         (func_get_dependencies): Use func_remove_suffix instead of sed.
66066         (func_get_automake_snippet): Use func_filter_filelist instead of a
66067         subshell and sed invocation.
66069 2009-01-01  Bruno Haible  <bruno@clisp.org>
66071         Fix a security bug.
66072         * gnulib-tool (func_import, import, update): Don't allow the characters
66073         '"', '$', '`', '\' in macro arguments that become part of commands that
66074         are evaluated.
66076 2009-01-01  Bruno Haible  <bruno@clisp.org>
66078         * gnulib-tool (func_reset_sigpipe): Add more comments.
66080 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66082         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
66083         func_emit_tests_Makefile_am, func_import): Abort loops early if we
66084         already know the answer.
66086 2009-01-01  Jim Meyering  <meyering@redhat.com>
66088         * lib/version-etc.c (version_etc_va): Update copyright year.
66090 2008-12-30  Bruno Haible  <bruno@clisp.org>
66092         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
66093         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
66094         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
66096 2008-12-29  Eric Blake  <ebb9@byu.net>
66098         multiarch: avoid autoconf AC_REQUIRE bug
66099         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
66100         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
66101         2.63 and older.
66102         Reported by Bruno Haible, and analyzed in
66103         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
66105 2008-12-29  Bruno Haible  <bruno@clisp.org>
66107         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
66108         files in subdirectories correctly.
66109         Reported by Ralf Wildenhues.
66111 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66113         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
66114         rather than 'join FILE -', for Solaris join.
66116 2008-12-29  Bruno Haible  <bruno@clisp.org>
66118         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
66119         quoting.
66120         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66121         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
66122         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
66123         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
66124         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66125         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66126         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66127         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66128         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66129         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66130         * m4/nls.m4 (AM_NLS): Likewise.
66131         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
66132         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66133         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66134         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66135         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66136         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66137         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
66138         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66139         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66140         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66141         * m4/xsize.m4 (gl_XSIZE): Likewise.
66142         Suggested by Jim Meyering.
66144 2008-11-17  Bruce Korb  <bkorb@gnu.org>
66146         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
66147         * lib/parse-duration.c: use a switch instead of cascading if's.
66149 2008-12-29  Eric Blake  <ebb9@byu.net>
66151         wchar.h: supply WEOF on Irix 5.3
66152         * lib/wchar.in.h (wint_t): Also supply WEOF.
66153         * lib/wctype.in.h (wint_t): Likewise.
66154         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
66155         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
66156         Reported by Tom G. Christensen.
66158 2008-12-26  Bruno Haible  <bruno@clisp.org>
66160         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
66161         i486, i586, i686.
66163 2008-12-26  Bruno Haible  <bruno@clisp.org>
66165         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
66167 2008-12-26  Bruno Haible  <bruno@clisp.org>
66169         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
66170         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
66171         not __STDC_CONSTANT_MACROS.
66172         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
66174 2008-12-25  Bruno Haible  <bruno@clisp.org>
66176         Add support for universal builds to vasnprintf.
66177         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
66178         universal builds, guess no.
66179         * modules/vasnprintf-posix (Depends-on): Add multiarch.
66180         * modules/vasprintf-posix (Depends-on): Likewise.
66181         * modules/fprintf-posix (Depends-on): Likewise.
66182         * modules/vfprintf-posix (Depends-on): Likewise.
66183         * modules/snprintf-posix (Depends-on): Likewise.
66184         * modules/vsnprintf-posix (Depends-on): Likewise.
66185         * modules/sprintf-posix (Depends-on): Likewise.
66186         * modules/vsprintf-posix (Depends-on): Likewise.
66187         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
66188         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
66189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66192         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66195         Add support for universal builds to <inttypes.h>.
66196         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
66197         _SCNu64_PREFIX): In Apple
66198         universal builds, define directly, using _LP64.
66199         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
66200         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
66201         * modules/inttypes (Depends-on): Add multiarch.
66202         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
66204         Add support for universal builds to <stdint.h>.
66205         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
66206         universal builds, define directly, using _LP64.
66207         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
66208         Apple universal builds, don't test for the size and suffix of ptrdiff_t
66209         and size_t.
66210         * modules/stdint (Depends-on): Add multiarch.
66211         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
66213         New module 'multiarch'.
66214         * modules/multiarch: New file.
66215         * m4/multiarch.m4: New file.
66217 2008-12-25  Bruno Haible  <bruno@clisp.org>
66219         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
66221 2008-12-25  Bruno Haible  <bruno@clisp.org>
66223         * modules/btowc (License): Relicense under LGPLv2+.
66224         * modules/mbsinit (License): Likewise.
66225         * modules/mbrtowc (License): Likewise.
66226         * modules/wcrtomb (License): Likewise.
66227         * modules/streq (License): Likewise.
66228         Reported by David Lutterkort <lutter@redhat.com>.
66230 2008-12-23  Bruno Haible  <bruno@clisp.org>
66232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
66234 2008-12-23  Bruno Haible  <bruno@clisp.org>
66236         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
66237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
66238         GETADDRINFO_LIB, not in LIBS.
66239         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
66240         * modules/canon-host (Link): Likewise.
66241         * NEWS: Mention the change.
66242         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
66243         GETADDRINFO_LIB.
66245 2008-12-22  Bruno Haible  <bruno@clisp.org>
66247         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
66248         * doc/posix-functions/iswalpha_l.texi: Likewise.
66249         * doc/posix-functions/iswblank_l.texi: Likewise.
66250         * doc/posix-functions/iswcntrl_l.texi: Likewise.
66251         * doc/posix-functions/iswctype_l.texi: Likewise.
66252         * doc/posix-functions/iswdigit_l.texi: Likewise.
66253         * doc/posix-functions/iswgraph_l.texi: Likewise.
66254         * doc/posix-functions/iswlower_l.texi: Likewise.
66255         * doc/posix-functions/iswprint_l.texi: Likewise.
66256         * doc/posix-functions/iswpunct_l.texi: Likewise.
66257         * doc/posix-functions/iswspace_l.texi: Likewise.
66258         * doc/posix-functions/iswupper_l.texi: Likewise.
66259         * doc/posix-functions/iswxdigit_l.texi: Likewise.
66260         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
66261         * doc/posix-functions/open_wmemstream.texi: Likewise.
66262         * doc/posix-functions/swscanf.texi: Likewise.
66263         * doc/posix-functions/towctrans_l.texi: Likewise.
66264         * doc/posix-functions/towlower.texi: Likewise.
66265         * doc/posix-functions/towlower_l.texi: Likewise.
66266         * doc/posix-functions/towupper.texi: Likewise.
66267         * doc/posix-functions/towupper_l.texi: Likewise.
66268         * doc/posix-functions/vfwprintf.texi: Likewise.
66269         * doc/posix-functions/vfwscanf.texi: Likewise.
66270         * doc/posix-functions/vswscanf.texi: Likewise.
66271         * doc/posix-functions/vwprintf.texi: Likewise.
66272         * doc/posix-functions/vwscanf.texi: Likewise.
66273         * doc/posix-functions/wcpcpy.texi: Likewise.
66274         * doc/posix-functions/wcpncpy.texi: Likewise.
66275         * doc/posix-functions/wcscasecmp.texi: Likewise.
66276         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
66277         * doc/posix-functions/wcscoll_l.texi: Likewise.
66278         * doc/posix-functions/wcsdup.texi: Likewise.
66279         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66280         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
66281         * doc/posix-functions/wcsnlen.texi: Likewise.
66282         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66283         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
66284         * doc/posix-functions/wctrans_l.texi: Likewise.
66285         * doc/posix-functions/wctype_l.texi: Likewise.
66286         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
66287         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
66288         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
66289         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
66290         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
66291         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
66292         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
66293         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
66294         * doc/glibc-functions/wcschrnul.texi: Likewise.
66295         * doc/glibc-functions/wcsftime_l.texi: Likewise.
66296         * doc/glibc-functions/wcstod_l.texi: Likewise.
66297         * doc/glibc-functions/wcstof_l.texi: Likewise.
66298         * doc/glibc-functions/wcstol_l.texi: Likewise.
66299         * doc/glibc-functions/wcstold_l.texi: Likewise.
66300         * doc/glibc-functions/wcstoll_l.texi: Likewise.
66301         * doc/glibc-functions/wcstoq.texi: Likewise.
66302         * doc/glibc-functions/wcstoul_l.texi: Likewise.
66303         * doc/glibc-functions/wcstoull_l.texi: Likewise.
66304         * doc/glibc-functions/wcstouq.texi: Likewise.
66305         * doc/glibc-functions/wmempcpy.texi: Likewise.
66307 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
66308             Eric Blake  <ebb9@byu.net>
66309             Paolo Bonzini  <bonzini@gnu.org>
66310             Bruno Haible  <bruno@clisp.org>
66312         Make c-stack work on Haiku.
66313         * lib/c-stack.c (SA_ONSTACK): Define fallback.
66314         (c_stack_action): Use SA_ONSTACK flag.
66316 2008-12-22  Bruno Haible  <bruno@clisp.org>
66318         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
66320 2008-12-22  Bruno Haible  <bruno@clisp.org>
66322         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
66323         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
66324         being overridden.
66325         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
66326         New macros.
66327         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
66328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
66329         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
66330         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
66332 2008-12-22  Bruno Haible  <bruno@clisp.org>
66334         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
66335         from test code.
66337 2008-12-22  Eric Blake  <ebb9@byu.net>
66339         Avoid gcc warnings on cygwin.
66340         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
66341         Avoid unused variable.
66342         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
66343         Likewise.
66345 2008-12-22  Bruno Haible  <bruno@clisp.org>
66347         Remove HAVE_MBRTOWC conditionals.
66348         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
66349         (mbscasecmp): Assume mbrtowc function.
66350         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
66351         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
66352         * lib/mbschr.c: Include mbuiter.h unconditionally.
66353         (mbschr): Assume mbrtowc function.
66354         * lib/mbscspn.c: Include mbuiter.h unconditionally.
66355         (mbscspn): Assume mbrtowc function.
66356         * lib/mbslen.c: Include mbuiter.h unconditionally.
66357         (mbslen): Assume mbrtowc function.
66358         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
66359         (mbsncasecmp): Assume mbrtowc function.
66360         * lib/mbsnlen.c: Include mbiter.h unconditionally.
66361         (mbsnlen): Assume mbrtowc function.
66362         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
66363         (mbspbrk): Assume mbrtowc function.
66364         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
66365         (mbspcasecmp): Assume mbrtowc function.
66366         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
66367         (mbsrchr): Assume mbrtowc function.
66368         * lib/mbssep.c: Include mbuiter.h unconditionally.
66369         (mbssep): Assume mbrtowc function.
66370         * lib/mbsspn.c: Include mbuiter.h unconditionally.
66371         (mbsspn): Assume mbrtowc function.
66372         * lib/mbsstr.c: Include mbuiter.h unconditionally.
66373         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
66374         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
66375         (mbstok_r): Assume mbrtowc function.
66376         * lib/propername.c: Include mbuiter.h unconditionally.
66377         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
66378         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
66379         (trim2): Assume mbrtowc function.
66380         * lib/mbswidth.c (mbsinit): Remove fallback definition.
66381         (mbsnwidth): Assume mbrtowc function.
66382         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
66383         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
66384         fallback definitions.
66385         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
66387 2008-12-22  Bruno Haible  <bruno@clisp.org>
66389         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
66391 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
66393         * modules/regex: Request emulations for the mb*/wc* functions we need.
66394         * m4/regex.m4: Don't look for those functions here.
66395         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
66397 2008-12-22  Bruno Haible  <bruno@clisp.org>
66399         * modules/fnmatch (Depends-on): Remove duplicated dependency.
66401 2008-12-21  Bruno Haible  <bruno@clisp.org>
66403         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
66404         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
66405         (Include): Remove conditionalization.
66406         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
66407         (Include): Remove conditionalization.
66408         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
66409         (Include): Remove conditionalization.
66410         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
66411         * m4/mbfile.m4 (gl_MBFILE): Likewise.
66412         * NEWS: Mention the change.
66413         Reported by Alan Hourihane <alanh@fairlite.co.uk>
66414         via Sergey Poznyakoff <gray@gnu.org.ua>.
66416 2008-12-21  Bruno Haible  <bruno@clisp.org>
66418         * MODULES.html.sh (Extended multibyte and wide character utilities
66419         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
66420         wcrtomb, wcsrtombs.
66421         (Support for systems lacking POSIX:2008): Add accept, bind, close,
66422         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
66423         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
66424         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
66426 2008-12-21  Bruno Haible  <bruno@clisp.org>
66428         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
66430 2008-12-21  Bruno Haible  <bruno@clisp.org>
66432         * modules/wcsnrtombs-tests: New file.
66433         * tests/test-wcsnrtombs1.sh: New file.
66434         * tests/test-wcsnrtombs2.sh: New file.
66435         * tests/test-wcsnrtombs3.sh: New file.
66436         * tests/test-wcsnrtombs4.sh: New file.
66437         * tests/test-wcsnrtombs.c: New file.
66439         New module 'wcsnrtombs'.
66440         * lib/wchar.in.h (wcsnrtombs): New declaration.
66441         * lib/wcsnrtombs.c: New file.
66442         * lib/wcsrtombs-state.c: New file.
66443         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
66444         (internal_state): Remove variable.
66445         * m4/wcsnrtombs.m4: New file.
66446         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
66447         compilation units.
66448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
66449         HAVE_WCSNRTOMBS.
66450         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
66451         HAVE_WCSNRTOMBS.
66452         * modules/wcsnrtombs: New file.
66453         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
66454         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
66456 2008-12-21  Bruno Haible  <bruno@clisp.org>
66458         * modules/wcsrtombs-tests: New file.
66459         * tests/test-wcsrtombs1.sh: New file.
66460         * tests/test-wcsrtombs2.sh: New file.
66461         * tests/test-wcsrtombs3.sh: New file.
66462         * tests/test-wcsrtombs4.sh: New file.
66463         * tests/test-wcsrtombs.c: New file.
66465         New module 'wcsrtombs'.
66466         * lib/wchar.in.h (wcsrtombs): New declaration.
66467         * lib/wcsrtombs.c: New file.
66468         * m4/wcsrtombs.m4: New file.
66469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
66470         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
66471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
66472         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
66473         * modules/wcsrtombs: New file.
66474         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
66475         bugs.
66477 2008-12-21  Bruno Haible  <bruno@clisp.org>
66479         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
66480         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
66481         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
66482         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
66483         if not correct.
66484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
66485         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
66486         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66487         m4/locale-zh.m4, m4/codeset.m4.
66488         * doc/posix-functions/wcrtomb.texi: Document the bug.
66490 2008-12-21  Bruno Haible  <bruno@clisp.org>
66492         Work around a btowc() bug on IRIX 6.5.
66493         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
66494         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
66495         REPLACE_WTOBC if not.
66496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
66497         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
66498         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
66500 2008-12-21  Bruno Haible  <bruno@clisp.org>
66502         * modules/wcrtomb-tests: New file.
66503         * tests/test-wcrtomb.sh: New file.
66504         * tests/test-wcrtomb.c: New file.
66506         New module 'wcrtomb'.
66507         * lib/wchar.in.h (wcrtomb): New declaration.
66508         * lib/wcrtomb.c: New file.
66509         * m4/wcrtomb.m4: New file.
66510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
66511         HAVE_WCRTOMB.
66512         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
66513         HAVE_WCRTOMB.
66514         * modules/wcrtomb: New file.
66515         * doc/posix-functions/wcrtomb.texi: Mention the new module.
66517 2008-12-21  Bruno Haible  <bruno@clisp.org>
66519         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
66520         * modules/mbsrtowcs (Files): Likewise.
66521         * modules/wctob (Files): Likewise.
66522         * modules/c-strcase-tests (Files): Likewise.
66523         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
66524         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
66525         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
66526         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
66527         * modules/vasnprintf-posix-tests (Files): Likewise.
66529 2008-12-21  William Pursell  <bill.pursell@gmail.com>
66531         gitlog-to-changelog: pass all command-line arguments to git-log
66532         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
66533         it is sometimes convenient to filter the commits in various ways.
66534         gitlog-to-changelog only allows --since to specify a start date,
66535         but git-log itself supports many other filtering mechanisms.
66536         At the moment, I want to filter by branch name.  Rather than
66537         adding a --branch option to gitlog-to-changelog, it seems more
66538         flexible to simply pass all options directly to git-log and let
66539         git do the work.  Notice that this effectively makes --since a
66540         redundant option for gitlog-to-changelog, but removing it would
66541         require current usage to change since calls would then require
66542         an additional '--'.
66544 2008-12-21  Bruno Haible  <bruno@clisp.org>
66546         * modules/mbsnrtowcs-tests: New file.
66547         * tests/test-mbsnrtowcs1.sh: New file.
66548         * tests/test-mbsnrtowcs2.sh: New file.
66549         * tests/test-mbsnrtowcs3.sh: New file.
66550         * tests/test-mbsnrtowcs4.sh: New file.
66551         * tests/test-mbsnrtowcs.c: New file.
66553         New module 'mbsnrtowcs'.
66554         * lib/wchar.in.h (mbsnrtowcs): New declaration.
66555         * lib/mbsnrtowcs.c: New file.
66556         * lib/mbsrtowcs-state.c: New file.
66557         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
66558         (internal_state): Remove variable.
66559         * m4/mbsnrtowcs.m4: New file.
66560         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
66561         compilation units.
66562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
66563         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
66564         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
66565         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
66566         * modules/mbsnrtowcs: New file.
66567         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
66568         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
66569         portability problem.
66571 2008-12-21  Bruno Haible  <bruno@clisp.org>
66573         Work around mbsrtowcs bug.
66574         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
66575         (gl_FUNC_MBSRTOWCS): Invoke it.
66576         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66577         m4/locale-zh.m4.
66578         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
66580 2008-12-21  Bruno Haible  <bruno@clisp.org>
66582         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
66584 2008-12-21  Bruno Haible  <bruno@clisp.org>
66586         Update doc for AIX.
66587         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
66588         16-bit wchar_t type.
66589         * doc/posix-functions/btowc.texi: Likewise.
66590         * doc/posix-functions/fgetwc.texi: Likewise.
66591         * doc/posix-functions/fgetws.texi: Likewise.
66592         * doc/posix-functions/fputwc.texi: Likewise.
66593         * doc/posix-functions/fputws.texi: Likewise.
66594         * doc/posix-functions/fwide.texi: Likewise.
66595         * doc/posix-functions/fwprintf.texi: Likewise.
66596         * doc/posix-functions/fwscanf.texi: Likewise.
66597         * doc/posix-functions/getwchar.texi: Likewise.
66598         * doc/posix-functions/getwc.texi: Likewise.
66599         * doc/posix-functions/iswalnum.texi: Likewise.
66600         * doc/posix-functions/iswalpha.texi: Likewise.
66601         * doc/posix-functions/iswblank.texi: Likewise.
66602         * doc/posix-functions/iswcntrl.texi: Likewise.
66603         * doc/posix-functions/iswctype.texi: Likewise.
66604         * doc/posix-functions/iswdigit.texi: Likewise.
66605         * doc/posix-functions/iswgraph.texi: Likewise.
66606         * doc/posix-functions/iswlower.texi: Likewise.
66607         * doc/posix-functions/iswprint.texi: Likewise.
66608         * doc/posix-functions/iswpunct.texi: Likewise.
66609         * doc/posix-functions/iswspace.texi: Likewise.
66610         * doc/posix-functions/iswupper.texi: Likewise.
66611         * doc/posix-functions/iswxdigit.texi: Likewise.
66612         * doc/posix-functions/mbrtowc.texi: Likewise.
66613         * doc/posix-functions/mbsrtowcs.texi: Likewise.
66614         * doc/posix-functions/mbstowcs.texi: Likewise.
66615         * doc/posix-functions/mbtowc.texi: Likewise.
66616         * doc/posix-functions/putwchar.texi: Likewise.
66617         * doc/posix-functions/putwc.texi: Likewise.
66618         * doc/posix-functions/swprintf.texi: Likewise.
66619         * doc/posix-functions/tolower.texi: Likewise.
66620         * doc/posix-functions/toupper.texi: Likewise.
66621         * doc/posix-functions/towctrans.texi: Likewise.
66622         * doc/posix-functions/ungetwc.texi: Likewise.
66623         * doc/posix-functions/vswprintf.texi: Likewise.
66624         * doc/posix-functions/wcrtomb.texi: Likewise.
66625         * doc/posix-functions/wcscat.texi: Likewise.
66626         * doc/posix-functions/wcschr.texi: Likewise.
66627         * doc/posix-functions/wcscmp.texi: Likewise.
66628         * doc/posix-functions/wcscoll.texi: Likewise.
66629         * doc/posix-functions/wcscpy.texi: Likewise.
66630         * doc/posix-functions/wcscspn.texi: Likewise.
66631         * doc/posix-functions/wcsftime.texi: Likewise.
66632         * doc/posix-functions/wcslen.texi: Likewise.
66633         * doc/posix-functions/wcsncat.texi: Likewise.
66634         * doc/posix-functions/wcsncmp.texi: Likewise.
66635         * doc/posix-functions/wcsncpy.texi: Likewise.
66636         * doc/posix-functions/wcspbrk.texi: Likewise.
66637         * doc/posix-functions/wcsrchr.texi: Likewise.
66638         * doc/posix-functions/wcsrtombs.texi: Likewise.
66639         * doc/posix-functions/wcsspn.texi: Likewise.
66640         * doc/posix-functions/wcsstr.texi: Likewise.
66641         * doc/posix-functions/wcstod.texi: Likewise.
66642         * doc/posix-functions/wcstof.texi: Likewise.
66643         * doc/posix-functions/wcstoimax.texi: Likewise.
66644         * doc/posix-functions/wcstok.texi: Likewise.
66645         * doc/posix-functions/wcstold.texi: Likewise.
66646         * doc/posix-functions/wcstoll.texi: Likewise.
66647         * doc/posix-functions/wcstol.texi: Likewise.
66648         * doc/posix-functions/wcstombs.texi: Likewise.
66649         * doc/posix-functions/wcstoull.texi: Likewise.
66650         * doc/posix-functions/wcstoul.texi: Likewise.
66651         * doc/posix-functions/wcstoumax.texi: Likewise.
66652         * doc/posix-functions/wcswidth.texi: Likewise.
66653         * doc/posix-functions/wcsxfrm.texi: Likewise.
66654         * doc/posix-functions/wctob.texi: Likewise.
66655         * doc/posix-functions/wctomb.texi: Likewise.
66656         * doc/posix-functions/wctrans.texi: Likewise.
66657         * doc/posix-functions/wctype.texi: Likewise.
66658         * doc/posix-functions/wcwidth.texi: Likewise.
66659         * doc/posix-functions/wmemchr.texi: Likewise.
66660         * doc/posix-functions/wmemcmp.texi: Likewise.
66661         * doc/posix-functions/wmemcpy.texi: Likewise.
66662         * doc/posix-functions/wmemmove.texi: Likewise.
66663         * doc/posix-functions/wmemset.texi: Likewise.
66664         * doc/posix-functions/wprintf.texi: Likewise.
66665         * doc/posix-functions/wscanf.texi: Likewise.
66667 2008-12-21  Bruno Haible  <bruno@clisp.org>
66669         Update doc for HP-UX 11.11.
66670         * doc/posix-functions/btowc.texi: Clarify that the function is missing
66671         in HP-UX version 11.00, not in all versions of HP-UX 11.
66672         * doc/posix-functions/fwide.texi: Likewise.
66673         * doc/posix-functions/fwprintf.texi: Likewise.
66674         * doc/posix-functions/fwscanf.texi: Likewise.
66675         * doc/posix-functions/inet_ntop.texi: Likewise.
66676         * doc/posix-functions/inet_pton.texi: Likewise.
66677         * doc/posix-functions/mbrlen.texi: Likewise.
66678         * doc/posix-functions/mbrtowc.texi: Likewise.
66679         * doc/posix-functions/mbsinit.texi: Likewise.
66680         * doc/posix-functions/mbsrtowcs.texi: Likewise.
66681         * doc/posix-functions/swprintf.texi: Likewise.
66682         * doc/posix-functions/swscanf.texi: Likewise.
66683         * doc/posix-functions/towctrans.texi: Likewise.
66684         * doc/posix-functions/vfwprintf.texi: Likewise.
66685         * doc/posix-functions/vswprintf.texi: Likewise.
66686         * doc/posix-functions/vwprintf.texi: Likewise.
66687         * doc/posix-functions/wcrtomb.texi: Likewise.
66688         * doc/posix-functions/wcsrtombs.texi: Likewise.
66689         * doc/posix-functions/wcsstr.texi: Likewise.
66690         * doc/posix-functions/wctob.texi: Likewise.
66691         * doc/posix-functions/wctrans.texi: Likewise.
66692         * doc/posix-functions/wmemchr.texi: Likewise.
66693         * doc/posix-functions/wmemcmp.texi: Likewise.
66694         * doc/posix-functions/wmemcpy.texi: Likewise.
66695         * doc/posix-functions/wmemmove.texi: Likewise.
66696         * doc/posix-functions/wmemset.texi: Likewise.
66697         * doc/posix-functions/wprintf.texi: Likewise.
66698         * doc/posix-functions/wscanf.texi: Likewise.
66700 2008-12-21  Bruno Haible  <bruno@clisp.org>
66702         Work around a portability problem.
66703         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
66704         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
66706 2008-12-20  Bruno Haible  <bruno@clisp.org>
66708         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
66709         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
66710         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
66711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
66712         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
66714         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
66715         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
66716         set.
66717         (GNULIB_defined_mbstate_t): New macro.
66718         (mbsinit): Redefine if REPLACE_MBSINIT is set.
66719         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
66720         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
66721         reuses the system's mbrtowc function but works around the bugs.
66722         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
66723         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
66724         macros.
66725         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
66726         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
66727         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
66728         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
66729         REPLACE_MBSINIT if mbsinit needs to be overridden.
66730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
66731         REPLACE_MBSINIT, REPLACE_MBRTOWC.
66732         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
66733         REPLACE_MBSINIT, REPLACE_MBRTOWC.
66734         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66735         m4/locale-zh.m4.
66736         (Depends): Add mbsinit.
66737         * modules/mbsinit (Depends): Add mbrtowc.
66738         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
66740 2008-12-20  Bruno Haible  <bruno@clisp.org>
66742         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
66743         so that there are no conversion errors on AIX.
66744         * tests/test-mbsrtowcs.c (main): LIkewise.
66746 2008-12-20  Bruno Haible  <bruno@clisp.org>
66748         Work around wctob bug on Solaris <= 9.
66749         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
66750         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
66751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
66752         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
66753         * modules/wctob (Files): Add m4/locale-fr.m4.
66754         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
66756 2008-12-20  Bruno Haible  <bruno@clisp.org>
66758         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
66759         /dev/null.
66760         * tests/test-select-in.sh: Likewise.
66761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66763 2008-12-20  Bruno Haible  <bruno@clisp.org>
66765         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
66766         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
66767         Cygwin 1.5.x.
66769 2008-12-20  Bruno Haible  <bruno@clisp.org>
66771         Ensure mbstate_t is defined on HP-UX 11.11.
66772         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
66773         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
66774         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
66775         AC_USE_SYSTEM_EXTENSIONS.
66776         * modules/fnmatch (Depends-on): Add extensions.
66777         * modules/mbrlen (Depends-on): Likewise.
66778         * modules/mbrtowc (Depends-on): Likewise.
66779         * modules/mbsinit (Depends-on): Likewise.
66780         * modules/mbsrtowcs (Depends-on): Likewise.
66781         * modules/mbswidth (Depends-on): Likewise.
66782         * modules/quotearg (Depends-on): Likewise.
66783         * modules/strftime (Depends-on): Likewise.
66785 2008-12-20  Bruno Haible  <bruno@clisp.org>
66787         Ensure wctob is declared on IRIX 6.5.
66788         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
66789         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
66790         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
66791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
66792         of HAVE_WCTOB.
66793         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
66794         HAVE_WCTOB.
66795         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
66797 2008-12-19  Bruno Haible  <bruno@clisp.org>
66799         * modules/mbsrtowcs-tests: New file.
66800         * tests/test-mbsrtowcs1.sh: New file.
66801         * tests/test-mbsrtowcs2.sh: New file.
66802         * tests/test-mbsrtowcs3.sh: New file.
66803         * tests/test-mbsrtowcs4.sh: New file.
66804         * tests/test-mbsrtowcs.c: New file.
66806         New module 'mbsrtowcs'.
66807         * lib/wchar.in.h (mbsrtowcs): New declaration.
66808         * lib/mbsrtowcs.c: New file.
66809         * m4/mbsrtowcs.m4: New file.
66810         * modules/mbsrtowcs: New file.
66811         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
66812         HAVE_MBSRTOWCS.
66813         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
66814         HAVE_MBSRTOWCS.
66815         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
66817 2008-12-19  Bruno Haible  <bruno@clisp.org>
66819         New module 'mbrlen'.
66820         * lib/wchar.in.h (mbrlen): New declaration.
66821         * lib/mbrlen.c: New file.
66822         * m4/mbrlen.m4: New file.
66823         * modules/mbrlen: New file.
66824         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
66825         HAVE_MBRLEN.
66826         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
66827         HAVE_MBRLEN.
66828         * doc/posix-functions/mbrlen.texi: Document the new module.
66830 2008-12-19  Bruno Haible  <bruno@clisp.org>
66832         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
66833         * modules/mbrtowc (Depends-on): Add verify.
66834         Suggested by Paul Eggert.
66836 2008-12-18  Bruno Haible  <bruno@clisp.org>
66838         * modules/mbsinit-tests: New file.
66839         * tests/test-mbsinit.sh: New file.
66840         * tests/test-mbsinit.c: New file.
66842 2008-12-18  Bruno Haible  <bruno@clisp.org>
66844         * modules/mbrtowc-tests: New file.
66845         * tests/test-mbrtowc1.sh: New file.
66846         * tests/test-mbrtowc2.sh: New file.
66847         * tests/test-mbrtowc3.sh: New file.
66848         * tests/test-mbrtowc4.sh: New file.
66849         * tests/test-mbrtowc.c: New file.
66851         New module 'mbrtowc'.
66852         * lib/wchar.in.h (mbstate_t): Override when the system does not have
66853         mbsinit and mbrtowc.
66854         (mbrtowc): New declaration.
66855         * lib/mbrtowc.c: New file.
66856         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
66857         * modules/mbrtowc: New file.
66858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
66859         HAVE_MBRTOWC.
66860         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
66861         HAVE_MBRTOWC.
66862         * doc/posix-functions/mbrtowc.texi: Document the new module.
66864 2008-12-18  Bruno Haible  <bruno@clisp.org>
66866         New module 'wctob'.
66867         * lib/wchar.in.h (wctob): New declaration.
66868         * lib/wctob.c: New file.
66869         * m4/wctob.m4: New file.
66870         * modules/wctob: New file.
66871         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
66872         HAVE_WCTOB.
66873         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
66874         * doc/posix-functions/wctob.texi: Document the new module.
66876 2008-12-18  Bruno Haible  <bruno@clisp.org>
66878         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
66879         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
66881 2008-12-18  Simon Josefsson  <simon@josefsson.org>
66883         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
66884         G. Christensen" <tgc@jupiterrise.com>.
66886         * lib/flock.c: Need to include errno.h.  Reported by "Tom
66887         G. Christensen" <tgc@jupiterrise.com>.
66889         * lib/flock.c: Need to include string.h.  Reported by "Tom
66890         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
66891         <ebb9@byu.net>.
66893 2008-12-18  Bruno Haible  <bruno@clisp.org>
66895         * m4/locale-ja.m4: New file, from GNU gettext.
66897 2008-12-17  Bruno Haible  <bruno@clisp.org>
66899         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
66900         Suggested by Eric Blake.
66902 2008-12-17  Bruno Haible  <bruno@clisp.org>
66904         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
66906 2008-12-17  Bruno Haible  <bruno@clisp.org>
66908         * lib/mbsinit.c: Include verify.h. Verify an assumption.
66909         * modules/mbsinit (Depends-on): Add verify.
66910         Suggested by Paul Eggert.
66912 2008-12-17  Bruno Haible  <bruno@clisp.org>
66914         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
66915         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
66916         gl_FUNC_MBRTOWC.
66917         * m4/mbiter.m4 (gl_MBITER): LIkewise.
66918         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
66919         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
66920         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
66921         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
66922         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
66923         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
66924         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
66925         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
66926         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
66927         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
66928         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
66929         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
66930         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
66931         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
66932         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66933         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
66934         * modules/trim (configure.ac): Likewise.
66936 2008-12-17  Bruno Haible  <bruno@clisp.org>
66938         * modules/btowc-tests: New file.
66939         * tests/test-btowc1.sh: New file.
66940         * tests/test-btowc2.sh: New file.
66941         * tests/test-btowc.c: New file.
66943         New module 'btowc'.
66944         * lib/wchar.in.h (btowc): New declaration.
66945         * lib/btowc.c: New file.
66946         * m4/btowc.m4: New file.
66947         * modules/btowc: New file.
66948         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
66949         HAVE_BTOWC.
66950         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
66951         * doc/posix-functions/btowc.texi: Document the new module.
66953 2008-12-17  Bruno Haible  <bruno@clisp.org>
66955         New module 'mbsinit'.
66956         * lib/wchar.in.h (mbsinit): New declaration.
66957         * lib/mbsinit.c: New file.
66958         * m4/mbsinit.m4: New file.
66959         * modules/mbsinit: New file.
66960         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
66961         HAVE_MBSINIT.
66962         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
66963         HAVE_MBSINIT.
66964         * doc/posix-functions/mbsinit.texi: Document the new module.
66966 2008-12-16  Bruno Haible  <bruno@clisp.org>
66968         * lib/unistd.in.h: Add comment.
66969         * tests/test-environ.c: Don't include <stdlib.h>.
66971 2008-12-16  Bruno Haible  <bruno@clisp.org>
66973         * lib/parse-duration.h (parse_duration): Document return value
66974         convention.
66975         * lib/parse-duration.c: Include specification header first. Add
66976         comments.
66977         (_): Remove macro.
66978         (parse_year_month_day, parse_hour_minute_second): Move side effects
66979         outside of strchr call.
66980         (parse_non_iso8601): Move side effects outside of isspace call.
66981         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
66982         call.
66984 2008-12-16  Bruno Haible  <bruno@clisp.org>
66986         * tests/test-parse-duration.sh: Produce no output when the test
66987         succeeds.
66989 2008-12-16  Bruno Haible  <bruno@clisp.org>
66991         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
66992         expressions.
66994 2008-12-15  Bruno Haible  <bruno@clisp.org>
66996         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
66997         * doc/glibc-functions/flistxattr.texi: Likewise.
66998         * doc/glibc-functions/fopencookie.texi: Likewise.
66999         * doc/glibc-functions/fremovexattr.texi: Likewise.
67000         * doc/glibc-functions/fsetxattr.texi: Likewise.
67001         * doc/glibc-functions/getxattr.texi: Likewise.
67002         * doc/glibc-functions/lgetxattr.texi: Likewise.
67003         * doc/glibc-functions/listxattr.texi: Likewise.
67004         * doc/glibc-functions/llistxattr.texi: Likewise.
67005         * doc/glibc-functions/lremovexattr.texi: Likewise.
67006         * doc/glibc-functions/lsetxattr.texi: Likewise.
67007         * doc/glibc-functions/removexattr.texi: Likewise.
67008         * doc/glibc-functions/setxattr.texi: Likewise.
67009         * doc/posix-functions/open_memstream.texi: Likewise.
67011 2008-12-15  Eric Blake  <ebb9@byu.net>
67013         Update doc for cygwin 1.7.
67014         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
67015         functions.
67016         * doc/posix-functions/fchmodat.texi: Likewise.
67017         * doc/posix-functions/fchownat.texi: Likewise.
67018         * doc/posix-functions/fdopendir.texi: Likewise.
67019         * doc/posix-functions/fmemopen.texi: Likewise.
67020         * doc/posix-functions/freeaddrinfo.texi: Likewise.
67021         * doc/posix-functions/fstatat.texi: Likewise.
67022         * doc/posix-functions/futimens.texi: Likewise.
67023         * doc/posix-functions/gai_strerror.texi: Likewise.
67024         * doc/posix-functions/getaddrinfo.texi: Likewise.
67025         * doc/posix-functions/getnameinfo.texi: Likewise.
67026         * doc/posix-functions/if_freenameindex.texi: Likewise.
67027         * doc/posix-functions/if_indextoname.texi: Likewise.
67028         * doc/posix-functions/if_nameindex.texi: Likewise.
67029         * doc/posix-functions/if_nametoindex.texi: Likewise.
67030         * doc/posix-functions/insque.texi: Likewise.
67031         * doc/posix-functions/linkat.texi: Likewise.
67032         * doc/posix-functions/llrint.texi: Likewise.
67033         * doc/posix-functions/llrintf.texi: Likewise.
67034         * doc/posix-functions/llrintl.texi: Likewise.
67035         * doc/posix-functions/lockf.texi: Likewise.
67036         * doc/posix-functions/lrintl.texi: Likewise.
67037         * doc/posix-functions/mkdirat.texi: Likewise.
67038         * doc/posix-functions/mkfifoat.texi: Likewise.
67039         * doc/posix-functions/mknodat.texi: Likewise.
67040         * doc/posix-functions/mq_close.texi: Likewise.
67041         * doc/posix-functions/mq_getattr.texi: Likewise.
67042         * doc/posix-functions/mq_notify.texi: Likewise.
67043         * doc/posix-functions/mq_open.texi: Likewise.
67044         * doc/posix-functions/mq_receive.texi: Likewise.
67045         * doc/posix-functions/mq_send.texi: Likewise.
67046         * doc/posix-functions/mq_setattr.texi: Likewise.
67047         * doc/posix-functions/mq_timedreceive.texi: Likewise.
67048         * doc/posix-functions/mq_timedsend.texi: Likewise.
67049         * doc/posix-functions/mq_unlink.texi: Likewise.
67050         * doc/posix-functions/open_memstream.texi: Likewise.
67051         * doc/posix-functions/openat.texi: Likewise.
67052         * doc/posix-functions/posix_fadvise.texi: Likewise.
67053         * doc/posix-functions/posix_fallocate.texi: Likewise.
67054         * doc/posix-functions/posix_madvise.texi: Likewise.
67055         * doc/posix-functions/posix_memalign.texi: Likewise.
67056         * doc/posix-functions/posix_openpt.texi: Likewise.
67057         * doc/posix-functions/readlinkat.texi: Likewise.
67058         * doc/posix-functions/remque.texi: Likewise.
67059         * doc/posix-functions/renameat.texi: Likewise.
67060         * doc/posix-functions/rintl.texi: Likewise.
67061         * doc/posix-functions/sem_unlink.texi: Likewise.
67062         * doc/posix-functions/shm_open.texi: Likewise.
67063         * doc/posix-functions/shm_unlink.texi: Likewise.
67064         * doc/posix-functions/signgam.texi: Likewise.
67065         * doc/posix-functions/sigset.texi: Likewise.
67066         * doc/posix-functions/stpcpy.texi: Likewise.
67067         * doc/posix-functions/stpncpy.texi: Likewise.
67068         * doc/posix-functions/strerror.texi: Likewise.
67069         * doc/posix-functions/strtod.texi: Likewise.
67070         * doc/posix-functions/symlinkat.texi: Likewise.
67071         * doc/posix-functions/unlinkat.texi: Likewise.
67072         * doc/posix-functions/utimensat.texi: Likewise.
67073         * doc/glibc-functions/bindresvport.texi: Likewise.
67074         * doc/glibc-functions/dn_expand.texi: Likewise.
67075         * doc/glibc-functions/exp10.texi: Likewise.
67076         * doc/glibc-functions/exp10f.texi: Likewise.
67077         * doc/glibc-functions/fgetxattr.texi: Likewise.
67078         * doc/glibc-functions/flistxattr.texi: Likewise.
67079         * doc/glibc-functions/fopencookie.texi: Likewise.
67080         * doc/glibc-functions/freeifaddrs.texi: Likewise.
67081         * doc/glibc-functions/fremovexattr.texi: Likewise.
67082         * doc/glibc-functions/fsetxattr.texi: Likewise.
67083         * doc/glibc-functions/getifaddrs.texi: Likewise.
67084         * doc/glibc-functions/getxattr.texi: Likewise.
67085         * doc/glibc-functions/lgetxattr.texi: Likewise.
67086         * doc/glibc-functions/listxattr.texi: Likewise.
67087         * doc/glibc-functions/llistxattr.texi: Likewise.
67088         * doc/glibc-functions/lremovexattr.texi: Likewise.
67089         * doc/glibc-functions/lsetxattr.texi: Likewise.
67090         * doc/glibc-functions/pow10.texi: Likewise.
67091         * doc/glibc-functions/pow10f.texi: Likewise.
67092         * doc/glibc-functions/rcmd_af.texi: Likewise.
67093         * doc/glibc-functions/removexattr.texi: Likewise.
67094         * doc/glibc-functions/res_init.texi: Likewise.
67095         * doc/glibc-functions/res_mkquery.texi: Likewise.
67096         * doc/glibc-functions/res_query.texi: Likewise.
67097         * doc/glibc-functions/res_querydomain.texi: Likewise.
67098         * doc/glibc-functions/res_send.texi: Likewise.
67099         * doc/glibc-functions/rresvport_af.texi: Likewise.
67100         * doc/glibc-functions/setxattr.texi: Likewise.
67101         * doc/glibc-functions/strcasestr.texi: Likewise.
67103 2008-12-15  Bruno Haible  <bruno@clisp.org>
67105         Fix compilation error on OSF/1 4.0.
67106         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
67107         <sys/time.h>, simply delegate to the system header.
67108         Reported by Daniel Richard G. <oss@teragram.com>.
67110 2008-12-15  Bruno Haible  <bruno@clisp.org>
67112         * doc/posix-functions/openat.texi: Mention the 'openat' module.
67113         * doc/posix-functions/fchmodat.texi: Likewise.
67114         * doc/posix-functions/fchownat.texi: Likewise.
67115         * doc/posix-functions/fdopendir.texi: Likewise.
67116         * doc/posix-functions/fstatat.texi: Likewise.
67117         * doc/posix-functions/mkdirat.texi: Likewise.
67118         * doc/posix-functions/unlinkat.texi: Likewise.
67120 2008-12-14  Bruno Haible  <bruno@clisp.org>
67122         Update doc for POSIX:2008.
67123         * doc/posix-functions/faccessat.texi: New file.
67124         * doc/posix-functions/fchmodat.texi: New file.
67125         * doc/posix-functions/fchownat.texi: New file.
67126         * doc/posix-functions/fdopendir.texi: New file.
67127         * doc/posix-functions/fstatat.texi: New file.
67128         * doc/posix-functions/futimens.texi: New file.
67129         * doc/posix-functions/linkat.texi: New file.
67130         * doc/posix-functions/mkdirat.texi: New file.
67131         * doc/posix-functions/mkfifoat.texi: New file.
67132         * doc/posix-functions/mknodat.texi: New file.
67133         * doc/posix-functions/open_wmemstream.texi: New file.
67134         * doc/posix-functions/openat.texi: New file.
67135         * doc/posix-functions/psiginfo.texi: New file.
67136         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
67137         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
67138         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
67139         * doc/posix-functions/readlinkat.texi: New file.
67140         * doc/posix-functions/renameat.texi: New file.
67141         * doc/posix-functions/strerror_l.texi: New file.
67142         * doc/posix-functions/symlinkat.texi: New file.
67143         * doc/posix-functions/unlinkat.texi: New file.
67144         * doc/posix-functions/utimensat.texi: New file.
67145         * doc/gnulib.texi (Function Substitutes): Add these subsections.
67147 2008-12-14  Bruno Haible  <bruno@clisp.org>
67149         Update doc for POSIX:2008.
67150         * doc/posix-functions/alphasort.texi: Renamed from
67151         doc/glibc-functions/alphasort.texi.
67152         * doc/posix-functions/dirfd.texi: Renamed from
67153         doc/glibc-functions/dirfd.texi.
67154         * doc/posix-functions/dprintf.texi: Renamed from
67155         doc/glibc-functions/dprintf.texi.
67156         * doc/posix-functions/duplocale.texi: Renamed from
67157         doc/glibc-functions/duplocale.texi.
67158         * doc/posix-functions/fexecve.texi: Renamed from
67159         doc/glibc-functions/fexecve.texi.
67160         * doc/posix-functions/fmemopen.texi: Renamed from
67161         doc/glibc-functions/fmemopen.texi.
67162         * doc/posix-functions/freelocale.texi: Renamed from
67163         doc/glibc-functions/freelocale.texi.
67164         * doc/posix-functions/getdate_err.texi: Renamed from
67165         doc/glibc-functions/getdate_err.texi.
67166         * doc/posix-functions/isalnum_l.texi: Renamed from
67167         doc/glibc-functions/isalnum_l.texi.
67168         * doc/posix-functions/isalpha_l.texi: Renamed from
67169         doc/glibc-functions/isalpha_l.texi.
67170         * doc/posix-functions/isblank_l.texi: Renamed from
67171         doc/glibc-functions/isblank_l.texi.
67172         * doc/posix-functions/iscntrl_l.texi: Renamed from
67173         doc/glibc-functions/iscntrl_l.texi.
67174         * doc/posix-functions/isdigit_l.texi: Renamed from
67175         doc/glibc-functions/isdigit_l.texi.
67176         * doc/posix-functions/isgraph_l.texi: Renamed from
67177         doc/glibc-functions/isgraph_l.texi.
67178         * doc/posix-functions/islower_l.texi: Renamed from
67179         doc/glibc-functions/islower_l.texi.
67180         * doc/posix-functions/isprint_l.texi: Renamed from
67181         doc/glibc-functions/isprint_l.texi.
67182         * doc/posix-functions/ispunct_l.texi: Renamed from
67183         doc/glibc-functions/ispunct_l.texi.
67184         * doc/posix-functions/isspace_l.texi: Renamed from
67185         doc/glibc-functions/isspace_l.texi.
67186         * doc/posix-functions/isupper_l.texi: Renamed from
67187         doc/glibc-functions/isupper_l.texi.
67188         * doc/posix-functions/iswalnum_l.texi: Renamed from
67189         doc/glibc-functions/iswalnum_l.texi.
67190         * doc/posix-functions/iswalpha_l.texi: Renamed from
67191         doc/glibc-functions/iswalpha_l.texi.
67192         * doc/posix-functions/iswblank_l.texi: Renamed from
67193         doc/glibc-functions/iswblank_l.texi.
67194         * doc/posix-functions/iswcntrl_l.texi: Renamed from
67195         doc/glibc-functions/iswcntrl_l.texi.
67196         * doc/posix-functions/iswctype_l.texi: Renamed from
67197         doc/glibc-functions/iswctype_l.texi.
67198         * doc/posix-functions/iswdigit_l.texi: Renamed from
67199         doc/glibc-functions/iswdigit_l.texi.
67200         * doc/posix-functions/iswgraph_l.texi: Renamed from
67201         doc/glibc-functions/iswgraph_l.texi.
67202         * doc/posix-functions/iswlower_l.texi: Renamed from
67203         doc/glibc-functions/iswlower_l.texi.
67204         * doc/posix-functions/iswprint_l.texi: Renamed from
67205         doc/glibc-functions/iswprint_l.texi.
67206         * doc/posix-functions/iswpunct_l.texi: Renamed from
67207         doc/glibc-functions/iswpunct_l.texi.
67208         * doc/posix-functions/iswspace_l.texi: Renamed from
67209         doc/glibc-functions/iswspace_l.texi.
67210         * doc/posix-functions/iswupper_l.texi: Renamed from
67211         doc/glibc-functions/iswupper_l.texi.
67212         * doc/posix-functions/iswxdigit_l.texi: Renamed from
67213         doc/glibc-functions/iswxdigit_l.texi.
67214         * doc/posix-functions/isxdigit_l.texi: Renamed from
67215         doc/glibc-functions/isxdigit_l.texi.
67216         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
67217         doc/glibc-functions/mbsnrtowcs.texi.
67218         * doc/posix-functions/mkdtemp.texi: Renamed from
67219         doc/glibc-functions/mkdtemp.texi.
67220         * doc/posix-functions/newlocale.texi: Renamed from
67221         doc/glibc-functions/newlocale.texi.
67222         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
67223         doc/glibc-functions/nl_langinfo_l.texi.
67224         * doc/posix-functions/open_memstream.texi: Renamed from
67225         doc/glibc-functions/open_memstream.texi.
67226         * doc/posix-functions/opterr.texi: Renamed from
67227         doc/glibc-functions/opterr.texi.
67228         * doc/posix-functions/optind.texi: Renamed from
67229         doc/glibc-functions/optind.texi.
67230         * doc/posix-functions/optopt.texi: Renamed from
67231         doc/glibc-functions/optopt.texi.
67232         * doc/posix-functions/psignal.texi: Renamed from
67233         doc/glibc-functions/psignal.texi.
67234         * doc/posix-functions/scandir.texi: Renamed from
67235         doc/glibc-functions/scandir.texi.
67236         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
67237         doc/glibc-functions/sched_get_priority_min.texi.
67238         * doc/posix-functions/signgam.texi: Renamed from
67239         doc/glibc-functions/signgam.texi.
67240         * doc/posix-functions/stpcpy.texi: Renamed from
67241         doc/glibc-functions/stpcpy.texi.
67242         * doc/posix-functions/stpncpy.texi: Renamed from
67243         doc/glibc-functions/stpncpy.texi.
67244         * doc/posix-functions/strcasecmp_l.texi: Renamed from
67245         doc/glibc-functions/strcasecmp_l.texi.
67246         * doc/posix-functions/strcoll_l.texi: Renamed from
67247         doc/glibc-functions/strcoll_l.texi.
67248         * doc/posix-functions/strfmon_l.texi: Renamed from
67249         doc/glibc-functions/strfmon_l.texi.
67250         * doc/posix-functions/strftime_l.texi: Renamed from
67251         doc/glibc-functions/strftime_l.texi.
67252         * doc/posix-functions/strncasecmp_l.texi: Renamed from
67253         doc/glibc-functions/strncasecmp_l.texi.
67254         * doc/posix-functions/strndup.texi: Renamed from
67255         doc/glibc-functions/strndup.texi.
67256         * doc/posix-functions/strnlen.texi: Renamed from
67257         doc/glibc-functions/strnlen.texi.
67258         * doc/posix-functions/strsignal.texi: Renamed from
67259         doc/glibc-functions/strsignal.texi.
67260         * doc/posix-functions/strxfrm_l.texi: Renamed from
67261         doc/glibc-functions/strxfrm_l.texi.
67262         * doc/posix-functions/timer_gettime.texi: Renamed from
67263         doc/glibc-functions/timer_gettime.texi.
67264         * doc/posix-functions/tolower_l.texi: Renamed from
67265         doc/glibc-functions/tolower_l.texi.
67266         * doc/posix-functions/toupper_l.texi: Renamed from
67267         doc/glibc-functions/toupper_l.texi.
67268         * doc/posix-functions/towctrans_l.texi: Renamed from
67269         doc/glibc-functions/towctrans_l.texi.
67270         * doc/posix-functions/towlower_l.texi: Renamed from
67271         doc/glibc-functions/towlower_l.texi.
67272         * doc/posix-functions/towupper_l.texi: Renamed from
67273         doc/glibc-functions/towupper_l.texi.
67274         * doc/posix-functions/uselocale.texi: Renamed from
67275         doc/glibc-functions/uselocale.texi.
67276         * doc/posix-functions/vdprintf.texi: Renamed from
67277         doc/glibc-functions/vdprintf.texi.
67278         * doc/posix-functions/wcpcpy.texi:
67279         Renamed from doc/glibc-functions/wcpcpy.texi.
67280         * doc/posix-functions/wcpncpy.texi: Renamed from
67281         doc/glibc-functions/wcpncpy.texi.
67282         * doc/posix-functions/wcscasecmp.texi: Renamed from
67283         doc/glibc-functions/wcscasecmp.texi.
67284         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
67285         doc/glibc-functions/wcscasecmp_l.texi.
67286         * doc/posix-functions/wcscoll_l.texi: Renamed from
67287         doc/glibc-functions/wcscoll_l.texi.
67288         * doc/posix-functions/wcsdup.texi: Renamed from
67289         doc/glibc-functions/wcsdup.texi.
67290         * doc/posix-functions/wcsncasecmp.texi: Renamed from
67291         doc/glibc-functions/wcsncasecmp.texi.
67292         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
67293         doc/glibc-functions/wcsncasecmp_l.texi.
67294         * doc/posix-functions/wcsnlen.texi: Renamed from
67295         doc/glibc-functions/wcsnlen.texi.
67296         * doc/posix-functions/wcsnrtombs.texi: Renamed from
67297         doc/glibc-functions/wcsnrtombs.texi.
67298         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
67299         doc/glibc-functions/wcsxfrm_l.texi.
67300         * doc/posix-functions/wctrans_l.texi: Renamed from
67301         doc/glibc-functions/wctrans_l.texi.
67302         * doc/posix-functions/wctype_l.texi: Renamed from
67303         doc/glibc-functions/wctype_l.texi.
67304         * doc/gnulib.texi (Function Substitutes): Add these subsections.
67305         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
67306         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
67307         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
67308         these subsections.
67309         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
67310         Remove sections.
67312 2008-12-14  Bruno Haible  <bruno@clisp.org>
67314         Update doc for POSIX:2008.
67315         * doc/posix-functions/*.texi: Update URL of POSIX specification.
67317 2008-12-14  Bruno Haible  <bruno@clisp.org>
67319         Update doc for POSIX:2008.
67320         * doc/pastposix-functions/bcmp.texi: Renamed from
67321         doc/posix-functions/bcmp.texi.
67322         * doc/pastposix-functions/bcopy.texi: Renamed from
67323         doc/posix-functions/bcopy.texi.
67324         * doc/pastposix-functions/bsd_signal.texi: Renamed from
67325         doc/posix-functions/bsd_signal.texi.
67326         * doc/pastposix-functions/bzero.texi: Renamed from
67327         doc/posix-functions/bzero.texi.
67328         * doc/pastposix-functions/ecvt.texi: Renamed from
67329         doc/posix-functions/ecvt.texi.
67330         * doc/pastposix-functions/fcvt.texi: Renamed from
67331         doc/posix-functions/fcvt.texi.
67332         * doc/pastposix-functions/ftime.texi: Renamed from
67333         doc/posix-functions/ftime.texi.
67334         * doc/pastposix-functions/gcvt.texi: Renamed from
67335         doc/posix-functions/gcvt.texi.
67336         * doc/pastposix-functions/getcontext.texi: Renamed from
67337         doc/posix-functions/getcontext.texi.
67338         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
67339         doc/posix-functions/gethostbyaddr.texi.
67340         * doc/pastposix-functions/gethostbyname.texi: Renamed from
67341         doc/posix-functions/gethostbyname.texi.
67342         * doc/pastposix-functions/getwd.texi: Renamed from
67343         doc/posix-functions/getwd.texi.
67344         * doc/pastposix-functions/h_errno.texi: Renamed from
67345         doc/posix-functions/h_errno.texi.
67346         * doc/pastposix-functions/index.texi: Renamed from
67347         doc/posix-functions/index.texi.
67348         * doc/pastposix-functions/makecontext.texi: Renamed from
67349         doc/posix-functions/makecontext.texi.
67350         * doc/pastposix-functions/mktemp.texi: Renamed from
67351         doc/posix-functions/mktemp.texi.
67352         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
67353         doc/posix-functions/pthread_attr_getstackaddr.texi.
67354         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
67355         doc/posix-functions/pthread_attr_setstackaddr.texi.
67356         * doc/pastposix-functions/rindex.texi: Renamed from
67357         doc/posix-functions/rindex.texi.
67358         * doc/pastposix-functions/scalb.texi: Renamed from
67359         doc/posix-functions/scalb.texi.
67360         * doc/pastposix-functions/setcontext.texi: Renamed from
67361         doc/posix-functions/setcontext.texi.
67362         * doc/pastposix-functions/swapcontext.texi: Renamed from
67363         doc/posix-functions/swapcontext.texi.
67364         * doc/pastposix-functions/ualarm.texi: Renamed from
67365         doc/posix-functions/ualarm.texi.
67366         * doc/pastposix-functions/usleep.texi: Renamed from
67367         doc/posix-functions/usleep.texi.
67368         * doc/pastposix-functions/vfork.texi: Renamed from
67369         doc/posix-functions/vfork.texi.
67370         * doc/pastposix-functions/wcswcs.texi: Renamed from
67371         doc/posix-functions/wcswcs.texi.
67372         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
67373         (Function Substitutes): Update.
67375 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67377         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
67378         m4/strerror.m4.
67380 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67381             Bruno Haible  <bruno@clisp.org>
67383         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
67385 2008-12-13  Bruno Haible  <bruno@clisp.org>
67387         * modules/strtoull (Depends-on): Remove unistd.
67389 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67391         * modules/strtoull (Depends-on): Add stdlib.
67393 2008-12-11  Simon Josefsson  <simon@josefsson.org>
67395         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
67397 2008-12-10  Jim Meyering  <meyering@redhat.com>
67399         gl_ASSERT: don't say assertions are disabled when they're not
67400         * m4/assert.m4 (gl_ASSERT): Do not make configure report
67401         "checking whether to enable assertions... no", when they are in
67402         fact enabled.  This is solely a bug in the output of configure.
67403         In spite of saying "no", NDEBUG was not defined in that case.
67404         Also, as noted by Eric Blake, leave assertions enabled upon
67405         --enable-assert=INVALID.
67407 2008-12-10  Bruno Haible  <bruno@clisp.org>
67409         Change MODULES.html to refer to POSIX:2008 where possible.
67410         * MODULES.html.sh (POSIX2008_URL): New variable.
67411         (posix_headers): Remove sys/timeb, ucontext.
67412         (posix2001_headers): New variable.
67413         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
67414         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
67415         index, makecontext, mktemp, pthread_attr_getstackaddr,
67416         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
67417         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
67418         (posix2001_functions): New variable.
67419         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
67420         otherwise.
67422 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67424         add missing include to parse-duration.c
67425         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
67426         * modules/parse-duration (Depends-on): Add xalloc.
67428         fix sed script reading maint.mk
67429         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
67430         (syntax-check-rules): Use it.
67432 2008-12-09  Bruno Haible  <bruno@clisp.org>
67434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
67435         MacOS X 10.4/PowerPC.
67436         Reported by Simon Josefsson.
67438 2008-12-08  Jim Meyering  <meyering@redhat.com>
67440         work around mingw's lack of some S_IF definitions
67441         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
67442         Reported by Simon Josefsson.
67444 2008-12-08  Bruno Haible  <bruno@clisp.org>
67446         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
67447         applied to variables. Needed on MacOS X 10.4/PowerPC.
67448         Reported by Simon Josefsson.
67450 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
67451         and Eric Blake  <ebb9@byu.net>
67453         assert: honor --enable-assert
67454         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
67455         order to honor --enable-assert, rather than treating it as a
67456         synonym for --disable-assert.
67458 2008-12-08  Jim Meyering  <meyering@redhat.com>
67460         * lib/posixtm.c: Remove now-useless declaration of mktime.
67462         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
67464 2008-12-07  Bruno Haible  <bruno@clisp.org>
67466         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
67467         test_once): Mark functions as static.
67468         * tests/test-tls.c (test_tls): Likewise.
67470 2008-12-07  Bruno Haible  <bruno@clisp.org>
67472         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
67473         iconv_register_autodetect.
67475 2008-12-07  Jim Meyering  <meyering@redhat.com>
67477         posixtm.c: avoid a warning
67478         * lib/posixtm.c (posixtime): Don't initialize tm0.
67479         It's no longer needed to placate gcc4's -Wuninitialized,
67480         and the attempt to placate would elicit a new warning.
67482         unicodeio.c: mark unused parameters
67483         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
67484         (fallback_failure_callback): Likewise.
67486 2008-12-07  Bruno Haible  <bruno@clisp.org>
67488         * gnulib-tool (func_create_testdir): When building the tests
67489         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
67490         Reported by Simon Josefsson.
67492 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67494         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
67496 2008-12-06  Bruno Haible  <bruno@clisp.org>
67498         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
67499         Suggested by Eric Blake.
67501 2008-12-06  Bruno Haible  <bruno@clisp.org>
67503         Fix a c-stack test failure on MacOS X.
67504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
67505         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
67506         handler for SIGBUS as well.
67507         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
67508         install a signal handler for SIGBUS as well.
67509         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
67511 2008-12-06  Bruno Haible  <bruno@clisp.org>
67513         Advocacy documentation.
67514         * doc/gnulib-intro.texi (Benefits): New section.
67515         * doc/gnulib.texi: Update.
67517 2008-12-06  Bruno Haible  <bruno@clisp.org>
67519         Document the 'manywarnings' module.
67520         * doc/manywarnings.texi: New file.
67521         * doc/gnulib.texi: Include it.
67523 2008-12-05  Eric Blake  <ebb9@byu.net>
67525         tests: silence some gcc warnings
67526         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
67527         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
67528         type mismatches.
67530 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67531             Bruno Haible  <bruno@clisp.org>
67533         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
67535 2008-11-29  Jim Meyering  <meyering@redhat.com>
67537         unicodeio.c: mark unused parameters
67538         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
67539         (fallback_failure_callback): Likewise.
67541         fts: fix a thinko
67542         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
67543         (set_stat_type): Return S_IF*-valued "type" directly.
67544         Prompted by James Youngman's spotting a related bug.
67545         Confirmed by further testing through find.
67547         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
67548         * lib/fts.c (D_TYPE): Define.
67549         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
67550         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
67551         (s_ifmt_shift_bits): New function.
67552         (set_stat_type): New function.
67553         (fts_build): When not calling fts_stat, call set_stat_type
67554         to propagate dirent.d_type info to fts_read caller.
67555         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
67556         fts_statp->st_mode type information may be valid.
67558 2008-11-28  Simon Josefsson  <simon@josefsson.org>
67560         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
67561         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
67562         <sds@gnu.org>.
67564 2008-11-20  Bruno Haible  <bruno@clisp.org>
67566         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
67567         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
67568         INCLUDE_NEXT.
67569         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
67570         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
67571         * modules/math (Makefile.am): Substitute
67572         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
67573         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67575 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
67576             Bruno Haible  <bruno@clisp.org>
67578         * lib/stdint.in.h: Define all type macros so that their expansion is
67579         a single typedef'ed token. Fixes a compilation failure in Boost which
67580         does "using ::int8_t;".
67582 2008-11-18  Simon Josefsson  <simon@josefsson.org>
67584         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
67585         gl_MANYWARN_ALL_GCC.
67586         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
67587         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
67588         * modules/manywarnings: New file.
67589         * MODULES.html.sh: Mention manywarnings module.
67591 2008-11-18  Bruno Haible  <bruno@clisp.org>
67593         * doc/gnulib-tool.texi (Unit tests): New section.
67595 2008-11-18  Simon Josefsson  <simon@josefsson.org>
67597         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
67598         paths like 'lib/po/foo.po'.
67600 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67602         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
67603         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
67605 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67607         * m4/warnings.m4: Use CPPFLAGS to really check whether the
67608         parameter works.
67610 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67612         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
67614 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67616         * modules/parse-duration-tests: New file.
67617         * tests/test-parse-duration.sh: New file.
67618         * tests/test-parse-duration.c: New file.
67620         New module 'parse-duration'.
67621         * lib/parse-duration.h: New file.
67622         * lib/parse-duration.c: New file.
67623         * modules/parse-duration: New file.
67625 2008-11-17  Bruno Haible  <bruno@clisp.org>
67627         * tests/test-select-out.sh: Comment out the first pipe test.
67628         Reported by Simon Josefsson.
67630 2008-11-17  Bruno Haible  <bruno@clisp.org>
67632         * modules/getaddrinfo (Depends-on): Add servent, hostent.
67633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
67634         gl_HOSTENT.
67636 2008-11-17  Bruno Haible  <bruno@clisp.org>
67638         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
67639         -lnetwork and -lnet. Needed for Haiku and BeOS.
67641 2008-11-16  Bruno Haible  <bruno@clisp.org>
67643         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
67645 2008-11-16  Bruno Haible  <bruno@clisp.org>
67647         Avoid test failure on Haiku.
67648         * tests/test-fsync.c: Include <errno.h>.
67649         (main): Don't require that fsync (0) fails.
67651 2008-11-15  Bruno Haible  <bruno@clisp.org>
67653         New module 'hostent'.
67654         * modules/hostent: New file.
67655         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
67657 2008-11-15  Bruno Haible  <bruno@clisp.org>
67659         New module 'servent'.
67660         * modules/servent: New file.
67661         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
67663 2008-11-15  Bruno Haible  <bruno@clisp.org>
67665         Avoid generating same test program with two different rules.
67666         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
67667         test-frexp to test-frexp-nolibm.
67668         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
67669         test-frexpl to test-frexpl-nolibm.
67671 2008-11-15  Bruno Haible  <bruno@clisp.org>
67673         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
67674         $(FREXPL_LIBM).
67676 2008-11-15  Bruno Haible  <bruno@clisp.org>
67678         * lib/netdb.in.h: Activate the definitions also when the system's
67679         <netdb.h> has 'struct addrinfo'.
67680         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
67681         EAI_OVERFLOW or AI_NUMERICSERV.
67682         * doc/posix-headers/netdb.texi: Document the problem.
67684 2008-11-15  Bruno Haible  <bruno@clisp.org>
67686         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
67688         Make the 'sched' module work on platforms where <sched.h> exists but
67689         is incomplete (such as Haiku).
67690         * lib/sched.in.h; Include the system's <sched.h> if it exists.
67691         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
67692         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
67693         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
67694         HAVE_STRUCT_SCHED_PARAM.
67695         * modules/sched (Depends-on): Add include_next.
67696         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
67697         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
67698         * doc/posix-headers/sched.texi: Document the issue.
67700 2008-11-13  Jim Meyering  <meyering@redhat.com>
67702         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
67703         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
67704         test would fail due to the difference in the Report bugs to ...
67705         line.  The expected address is empty, "<>", while the actual
67706         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
67708 2008-11-12  Bruno Haible  <bruno@clisp.org>
67710         lstat: don't compile lstat.c on systems lacking lstat
67711         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
67712         which don't have lstat; this is handled by lib/sys_stat.in.h already.
67713         Reported by Daniel P. Berrange via Jim Meyering.
67715 2008-11-12  Jim Meyering  <meyering@redhat.com>
67717         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
67719 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67721         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
67722         instead.
67724 2008-11-12  Bruno Haible  <bruno@clisp.org>
67726         * lib/unicodeio.c: Include unistr.h.
67727         (utf8_wctomb): Remove function.
67728         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
67730 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67732         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
67733         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
67734         <bruno@clisp.org>.
67735         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
67737 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67739         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
67740         * doc/gnulib.texi: Add section for warnings.
67742 2008-11-11  Bruno Haible  <bruno@clisp.org>
67744         * lib/sockets.h: Add a comment.
67746 2008-11-11  Karl Berry  <karl@gnu.org>
67748         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
67750 2008-11-11  Eric Blake  <ebb9@byu.net>
67752         fdl.texi: avoid git symlinks
67753         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
67755 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67757         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
67759 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67761         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
67762         (gl_WARN_ADD): Substitute $2 if literal.
67764 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67766         * m4/warning.m4: Remove.
67768 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67770         * m4/warnings.m4: Almost complete rewrite. :-)
67772 2008-11-10  Simon Josefsson  <simon@josefsson.org>
67774         * modules/warnings: New module.
67775         * m4/warnings.m4: New file.
67776         * MODULES.html.sh: Mention warnings module.
67777         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
67778         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67780 2008-11-10  Eric Blake  <ebb9@byu.net>
67782         fdl.texi: make a symlink to the latest version
67783         * doc/standards.texi: Revert today's earlier change.
67784         * doc/fdl-1.2.texi: Rename from old fdl.texi...
67785         * doc/fdl.texi: ...and replace this with a symlink to the newer
67786         fdl-1.3.texi.
67788 2008-11-10  Bruno Haible  <bruno@clisp.org>
67790         * tests/test-select-fd.c (main): Accept the result file name as fourth
67791         argument.
67792         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
67793         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
67795 2008-11-10  Bruno Haible  <bruno@clisp.org>
67797         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
67798         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
67799         as autoconf-substituted macros.
67800         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
67801         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
67802         gl_NETDB_H_DEFAULTS. Set these variables.
67803         * modules/netdb (Makefile.am): Substitute these variables.
67805 2008-11-10  Eric Blake  <ebb9@byu.net>
67807         standards.texi: include correct file for FDL 1.3
67808         * doc/standards.texi (GNU Free Documentation License): Change
67809         include file to pull in FDL 1.3, not 1.2.
67811         fdl.texi: revert accidental change to license
67812         * doc/fdl.texi: This is FDL 1.2, not 1.3.
67814 2008-11-10  Bruno Haible  <bruno@clisp.org>
67816         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
67817         cross-compiling guesses also when the native compile gives no result.
67819 2008-11-10  Bruno Haible  <bruno@clisp.org>
67821         * lib/spawni.c (__spawni): Force variable into the stack.
67823 2008-11-10  Bruno Haible  <bruno@clisp.org>
67825         Add support for Haiku.
67826         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
67827         glibc and BeOS, but also on Haiku.
67828         * lib/fpurge.c (fpurge): Likewise.
67829         * lib/freadable.c (freadable): Likewise.
67830         * lib/freadahead.c (freadahead): Likewise.
67831         * lib/freading.c (freading): Likewise.
67832         * lib/freadptr.c (freadptr): Likewise.
67833         * lib/freadseek.c (freadptrinc): Likewise.
67834         * lib/fseeko.c (rpl_fseeko): Likewise.
67835         * lib/fseterr.c (fseterr): Likewise.
67836         * lib/fwritable.c (fwritable): Likewise.
67837         * lib/fwriting.c (fwriting): Likewise.
67838         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
67840 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
67842         * lib/config.charset: Treat Haiku like BeOS.
67844 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
67846         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
67847         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
67849 2008-11-08  Bruno Haible  <bruno@clisp.org>
67851         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
67852         AC_CACHE_CHECK.
67854 2008-11-08  Bruno Haible  <bruno@clisp.org>
67856         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
67858 2008-11-08  Bruno Haible  <bruno@clisp.org>
67860         * tests/test-select-fd.c: New file.
67861         * tests/test-select-in.sh: New file.
67862         * tests/test-select-out.sh: New file.
67863         * tests/test-select-stdin.c: New file.
67864         * modules/select-tests (Files): Add the new files.
67865         (Depends-on): Add gettimeofday.
67866         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
67867         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
67868         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
67870 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
67871             Bruno Haible  <bruno@clisp.org>
67873         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
67875 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
67877         * build-aux/pmccabe2html: Added support for C++ source files.
67879 2008-11-05  Ben Pfaff  <blp@gnu.org>
67881         Fix lib/close.c build on Windows.
67882         * modules/close (Files): Add lib/w32sock.h.
67884 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
67886         Accept Bison's NEWS format.
67887         * build-aux/announce-gen (print_news_deltas): Tweak
67888         $re_prefix.
67890 2008-11-04  Bruno Haible  <bruno@clisp.org>
67892         * modules/random_r (Maintainer): Add glibc.
67894 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67896         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
67897         by karl@freefriends.org (Karl Berry).
67898         * doc/alloca.texi: Likewise.
67899         * doc/c-ctype.texi: Likewise.
67900         * doc/c-strcase.texi: Likewise.
67901         * doc/c-strcaseeq.texi: Likewise.
67902         * doc/c-strcasestr.texi: Likewise.
67903         * doc/c-strstr.texi: Likewise.
67904         * doc/c-strtod.texi: Likewise.
67905         * doc/c-strtold.texi: Likewise.
67906         * doc/ctime.texi: Likewise.
67907         * doc/error.texi: Likewise.
67908         * doc/fdl.texi: Likewise.
67909         * doc/gcd.texi: Likewise.
67910         * doc/getdate.texi: Likewise.
67911         * doc/gnulib-intro.texi: Likewise.
67912         * doc/gnulib-tool.texi: Likewise.
67913         * doc/gnulib.texi: Likewise.
67914         * doc/inet_ntoa.texi: Likewise.
67915         * doc/maintain.texi: Likewise.
67916         * doc/make-stds.texi: Likewise.
67917         * doc/quote.texi: Likewise.
67918         * doc/regexprops-generic.texi: Likewise.
67919         * doc/standards.texi: Likewise.
67920         * doc/verify.texi: Likewise.
67921         * doc/visibility.texi: Likewise.
67922         * doc/gnulib.texi (GNU Free Documentation License): Include
67923         fdl-1.3.texi instead of fdl.texi.
67925 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67927         * doc/fdl-1.3.texi: New file, from
67928         <http://www.gnu.org/licenses/fdl-1.3.texi>.
67929         * modules/fdl-1.3: Add.
67930         * MODULES.html.sh: Add fdl-1.3.
67932 2008-11-03  Bruno Haible  <bruno@clisp.org>
67934         Make determination of absolute name of header file work with AIX xlc.
67935         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
67936         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
67937         preprocessing.
67938         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67939         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67941 2008-11-03  Simon Josefsson  <simon@josefsson.org>
67943         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
67944         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
67945         <ludo@gnu.org>.
67947 2008-11-02  Bruno Haible  <bruno@clisp.org>
67949         Mark 'strpbrk' obsolete.
67950         * modules/strpbrk (Status, Notice): New sections.
67951         * modules/strtok_r (Depends-on): Add strpbrk.
67953 2008-11-02  Bruno Haible  <bruno@clisp.org>
67955         Mark 'strdup' obsolete.
67956         * modules/strdup (Status, Notice): New sections.
67957         * modules/findprog (Depends-on): Add strdup.
67958         * modules/getaddrinfo (Depends-on): Likewise.
67959         * modules/localename (Depends-on): Likewise.
67960         * modules/relocatable-lib (Depends-on): Likewise.
67961         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
67962         * modules/relocatable-prog (Depends-on): Likewise.
67963         * modules/trim (Depends-on): Likewise.
67964         * modules/unictype/gen-ctype (Depends-on): Likewise.
67965         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67967 2008-11-02  Bruno Haible  <bruno@clisp.org>
67969         Mark 'strcspn' obsolete.
67970         * modules/strcspn (Status, Notice): New sections.
67972 2008-11-02  Bruno Haible  <bruno@clisp.org>
67974         Mark 'rmdir' obsolete.
67975         * modules/rmdir (Status, Notice): New sections.
67976         * modules/clean-temp (Depends-on): Add rmdir.
67977         * modules/openat (Depends-on): Likewise.
67979 2008-11-02  Bruno Haible  <bruno@clisp.org>
67981         Mark 'raise' obsolete.
67982         * modules/raise (Status, Notice): New sections.
67983         (Include): Specify <signal.h>.
67984         * modules/stdio (Depends-on): Add raise.
67985         * modules/write (Depends-on): Likewise.
67987 2008-11-02  Bruno Haible  <bruno@clisp.org>
67989         Mark 'memset' obsolete.
67990         * modules/memset (Status, Notice): New sections.
67992 2008-11-02  Bruno Haible  <bruno@clisp.org>
67994         Mark 'memmove' obsolete.
67995         * modules/memmove (Status, Notice): New sections.
67996         * modules/argp (Depends-on): Add memmove.
67997         * modules/argz (Depends-on): Likewise.
67998         * modules/canonicalize (Depends-on): Likewise.
67999         * modules/canonicalize-lgpl (Depends-on): Likewise.
68000         * modules/fts (Depends-on): Likewise.
68001         * modules/getcwd (Depends-on): Likewise.
68002         * modules/human (Depends-on): Likewise.
68003         * modules/regex (Depends-on): Likewise.
68004         * modules/striconveh (Depends-on): Likewise.
68005         * modules/trim (Depends-on): Likewise.
68006         * modules/unistr/u8-move (Depends-on): Likewise.
68007         * modules/unistr/u16-move (Depends-on): Likewise.
68008         * modules/unistr/u32-move (Depends-on): Likewise.
68010 2008-11-02  Bruno Haible  <bruno@clisp.org>
68012         Mark 'memcpy' obsolete.
68013         * modules/memcpy (Status, Notice): New sections.
68015 2008-11-02  Bruno Haible  <bruno@clisp.org>
68017         Mark 'memcmp' obsolete.
68018         * modules/memcmp (Status, Notice): New sections.
68019         * modules/argmatch (Depends-on): Add memchr.
68020         * modules/backupfile (Depends-on): Likewise.
68021         * modules/c-strcasestr (Depends-on): Likewise.
68022         * modules/crypto/des (Depends-on): Likewise.
68023         * modules/csharpcomp (Depends-on): Likewise.
68024         * modules/fnmatch (Depends-on): Likewise.
68025         * modules/git-merge-changelog (Depends-on): Likewise.
68026         * modules/isnand (Depends-on): Likewise.
68027         * modules/isnand-nolibm (Depends-on): Likewise.
68028         * modules/isnanf (Depends-on): Likewise.
68029         * modules/isnanf-nolibm (Depends-on): Likewise.
68030         * modules/isnanl (Depends-on): Likewise.
68031         * modules/isnanl-nolibm (Depends-on): Likewise.
68032         * modules/mbchar (Depends-on): Likewise.
68033         * modules/memcoll (Depends-on): Likewise.
68034         * modules/quotearg (Depends-on): Likewise.
68035         * modules/regex (Depends-on): Likewise.
68036         * modules/relocatable-prog (Depends-on): Likewise.
68037         * modules/same (Depends-on): Likewise.
68038         * modules/signbit (Depends-on): Likewise.
68039         * modules/strcasestr-simple (Depends-on): Likewise.
68040         * modules/unictype/gen-ctype (Depends-on): Likewise.
68041         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
68042         * modules/uniname/uniname (Depends-on): Likewise.
68043         * modules/unistr/u8-cmp (Depends-on): Likewise.
68045 2008-11-02  Bruno Haible  <bruno@clisp.org>
68047         Mark 'memchr' obsolete.
68048         * modules/memchr (Status, Notice): New sections.
68049         * modules/argp (Depends-on): Add memchr.
68050         * modules/base64 (Depends-on): Likewise.
68051         * modules/c-strcasestr (Depends-on): Likewise.
68052         * modules/chdir-long (Depends-on): Likewise.
68053         * modules/fnmatch (Depends-on): Likewise.
68054         * modules/getsubopt (Depends-on): Likewise.
68055         * modules/git-merge-changelog (Depends-on): Likewise.
68056         * modules/glob (Depends-on): Likewise.
68057         * modules/strcasestr-simple (Depends-on): Likewise.
68058         * modules/strnlen (Depends-on): Likewise.
68060 2008-11-02  Bruno Haible  <bruno@clisp.org>
68062         Mark 'atexit' obsolete.
68063         * modules/atexit (Status, Notice): New sections.
68064         * modules/chdir-long (Depends-on): Add atexit.
68065         * modules/wait-process (Depends-on): Likewise.
68067 2008-11-02  Bruno Haible  <bruno@clisp.org>
68069         * gnulib-tool: New option --with-obsolete.
68070         (func_usage): Document it.
68071         (func_modules_transitive_closure): Drop obsolete dependencies if
68072         incobsolete is not true.
68073         (func_import): Read and save the incobsolete variable to the cache.
68075 2008-11-02  Bruno Haible  <bruno@clisp.org>
68077         * modules/TEMPLATE-EXTENDED: New field 'Status'.
68078         * gnulib-tool: New option --extract-status.
68079         (func_usage): Document it.
68080         (sed_extract_prog): Recognize it.
68081         (func_get_status): New function.
68083 2008-10-30  Simon Josefsson  <simon@josefsson.org>
68085         * modules/sockets (License): Change from LGPL to LGPLv2+.
68087 2008-10-28  Simon Josefsson  <simon@josefsson.org>
68089         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
68091 2008-10-28  Simon Josefsson  <simon@josefsson.org>
68093         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68094         Mention times and sys_times.
68095         * modules/sys_times, modules/sys_times-tests: New modules.
68096         * modules/times, modules/times-tests: Likewise
68097         * m4/sys_times_h.m4: New file.
68098         * lib/sys_times.in.h: Likewise
68099         * lib/times.c: Likewise.
68100         * tests/test-sys_times.c: Likewise.
68101         * tests/test-times.c: Likewise.
68102         * doc/posix-headers/sys_times.texi: Update.
68103         * doc/posix-functions/times.texi: Update.
68105 2008-10-28  Jim Meyering  <meyering@redhat.com>
68107         * modules/tempname (Depends-on): Add lstat.
68109         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
68111 2008-10-28  Simon Josefsson  <simon@josefsson.org>
68113         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
68114         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
68115         using idiom used elsewhere in gnulib.
68117 2008-10-27  Jim Meyering  <meyering@redhat.com>
68119         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
68121 2008-10-27  Simon Josefsson  <simon@josefsson.org>
68123         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
68124         TESTS_ENVIRONMENT, for shell scripts that needs to call built
68125         programs.
68126         * tests/test-argp-2.sh: Use $EXEEXT when needed.
68128 2008-10-27  Simon Josefsson  <simon@josefsson.org>
68130         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
68132 2008-10-27  Bruno Haible  <bruno@clisp.org>
68134         * tests/test-lstat.c: Include <stdio.h>.
68136 2008-10-27  Simon Josefsson  <simon@josefsson.org>
68138         * modules/lstat-tests: New module.
68139         * tests/test-lstat.c: New file.
68141 2008-10-26  Jim Meyering  <meyering@redhat.com>
68143         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
68145 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68146             Bruno Haible  <bruno@clisp.org>
68148         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
68149         * modules/configmake (Include): Add a note that the include must come
68150         after all system headers.
68151         * lib/javaversion.c: Include configmake.h after all other includes.
68153 2008-10-26  Bruno Haible  <bruno@clisp.org>
68155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
68156         HAVE_STRUCT_RANDOM_DATA to 1.
68157         (gl_STDLIB_H): Simplify.
68159 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68161         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
68162         substitute HAVE_STRUCT_RANDOM_DATA.
68163         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
68164         random_data.
68165         * modules/stdlib (Makefile.am): Substitute
68166         HAVE_STRUCT_RANDOM_DATA.
68168 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68170         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
68171         * doc/gnulib-intro.texi (Copyright): Likewise.
68173 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68175         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
68176         findings.
68178 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
68179             Bruno Haible  <bruno@clisp.org>
68181         * lib/unistd.in.h: Include <winsock2.h>.
68182         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
68183         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
68184         Provide dummy declarations.
68185         (gethostname): Override.
68186         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
68187         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
68188         gl_PREREQ_SYS_H_WINSOCK2.
68189         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
68190         * doc/posix-functions/gethostname.texi: More details.
68192 2008-10-25  Bruno Haible  <bruno@clisp.org>
68194         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
68195         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
68196         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
68198         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
68199         here ...
68200         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
68201         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
68202         gl_UNISTD_H_DEFAULTS.
68204 2008-10-25  Eric Blake  <ebb9@byu.net>
68206         signbit: avoid spurious compiler failure
68207         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
68208         declarations inside function.
68210 2008-10-24  Simon Josefsson  <simon@josefsson.org>
68211             Bruno Haible  <bruno@clisp.org>
68213         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
68214         * modules/random_r (Depends-on): Add stdint.
68216 2008-10-24  Bruno Haible  <bruno@clisp.org>
68218         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
68219         Eggert.
68220         * modules/strerror (License): Likewise.
68222 2008-10-24  Jim Meyering  <meyering@redhat.com>
68224         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
68225         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
68227 2008-10-24  Eric Blake  <ebb9@byu.net>
68229         getgroups: fix compilation when getgroups is available
68230         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
68231         but with <config.h> override of getgroups disabled.
68233 2008-10-24  Simon Josefsson  <simon@josefsson.org>
68235         * doc/gnulib.texi (Header files): Add note about C++ problems.
68236         Explained by Bruno Haible <bruno@clisp.org>.
68238 2008-10-23  Bruno Haible  <bruno@clisp.org>
68240         Define a dummy SA_NODEFER macro on Interix.
68241         * lib/signal.in.h (SA_NODEFER): Define fallback.
68242         Reported by Aleksey Cheusov <cheusov@tut.by> via
68243         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
68245 2008-10-23  Bruno Haible  <bruno@clisp.org>
68247         * modules/freadahead (License): Change to LGPLv2+.
68248         Suggested by Simon Josefsson.
68250 2008-10-23  Jim Meyering  <meyering@redhat.com>
68252         random_r: new module
68253         * modules/random_r: New file.
68254         * m4/random_r.m4: New file.
68255         * lib/random_r.c: New file, from glibc.
68256         * modules/random_r-tests: New file.
68257         * tests/test-random_r.c: New file.
68258         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
68259          Declare.
68260         (RAND_MAX): Define.
68261         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
68262         * modules/stdlib: Substitute them, too.
68263         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
68264         * doc/glibc-functions/initstate_r.texi: Mention the new module.
68265         * doc/glibc-functions/random_r.texi: Likewise.
68266         * doc/glibc-functions/setstate_r.texi: Likewise.
68267         * doc/glibc-functions/srandom_r.texi: Likewise.
68268         * config/srclist.txt: Mention it.
68270 2008-10-23  David Lutterkort  <lutter@redhat.com>
68272         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
68273         link requirement
68275 2008-10-23  Jim Meyering  <meyering@redhat.com>
68277         selinux-h: mark parameters of stub functions as intentionally unused
68278         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
68279         * lib/se-context.in.h: Likewise.
68281 2008-10-22  Simon Josefsson  <simon@josefsson.org>
68283         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
68285 2008-10-22  Simon Josefsson  <simon@josefsson.org>
68287         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
68289 2008-10-22  Eric Blake  <ebb9@byu.net>
68291         glthread/thread: avoid compiler warning
68292         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
68293         Add unreachable abort to silence compiler.
68295 2008-10-22  Eric Blake  <ebb9@byu.net>
68297         netdb: also supply struct addrinfo for cygwin 1.5.x
68298         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
68299         older cygwin.
68300         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
68301         cygwin.
68302         * doc/posix-headers/netdb.texi (netdb.h): Document this.
68304 2008-10-22  Bruno Haible  <bruno@clisp.org>
68306         * users.txt: Update entry about pspp.
68308 2008-10-21  Bruno Haible  <bruno@clisp.org>
68310         Simplification.
68311         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
68312         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
68314         Simplification.
68315         * lib/ioctl.c (ioctl): Don't undefine.
68316         * lib/socket.c (socket): Don't undefine.
68318         Remove unused module indicator macros.
68319         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
68320         GNULIB_$1 as a C macro.
68322         * doc/posix-functions/close.texi: Undo last change.
68323         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
68324         Windows platforms.
68326 2008-10-21  Bruno Haible  <bruno@clisp.org>
68328         Add gethostname() declaration to <unistd.h>.
68329         * lib/unistd.in.h (gethostname): New declaration.
68330         * lib/gethostname.c: Include <unistd.h>.
68331         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
68332         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
68333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
68334         and HAVE_GETHOSTNAME.
68335         * modules/gethostname (Depends-on): Add unistd.
68336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68337         (Include): Specify <unistd.h>.
68338         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
68339         HAVE_GETHOSTNAME.
68340         * tests/test-gethostname.c: Include <unistd.h> first.
68342 2008-10-21  Bruno Haible  <bruno@clisp.org>
68344         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
68345         * modules/select-tests (Depends-on): Likewise.
68346         Reported by Simon Josefsson.
68348 2008-10-21  Simon Josefsson  <simon@josefsson.org>
68350         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
68351         * lib/accept.c: New file, based on winsock.c.
68352         * lib/bind.c: New file, based on winsock.c.
68353         * lib/connect.c: New file, based on winsock.c.
68354         * lib/getpeername.c: New file, based on winsock.c.
68355         * lib/getsockname.c: New file, based on winsock.c.
68356         * lib/getsockopt.c: New file, based on winsock.c.
68357         * lib/ioctl.c: New file, based on winsock.c.
68358         * lib/listen.c: New file, based on winsock.c.
68359         * lib/recv.c: New file, based on winsock.c.
68360         * lib/recvfrom.c: New file, based on winsock.c.
68361         * lib/send.c: New file, based on winsock.c.
68362         * lib/sendto.c: New file, based on winsock.c.
68363         * lib/setsockopt.c: New file, based on winsock.c.
68364         * lib/shutdown.c: New file, based on winsock.c.
68365         * lib/socket.c: New file, based on winsock.c.
68366         * lib/w32sock.h: New file, based on winsock.c.
68367         * lib/winsock.c: Remove file.
68368         * modules/accept: Likewise.
68369         * modules/bind: Likewise.
68370         * modules/connect: Likewise.
68371         * modules/getpeername: Likewise.
68372         * modules/getsockname: Likewise.
68373         * modules/getsockopt: Likewise.
68374         * modules/ioctl: Likewise.
68375         * modules/listen: Likewise.
68376         * modules/recv: Likewise.
68377         * modules/recvfrom: Likewise.
68378         * modules/send: Likewise.
68379         * modules/sendto: Likewise.
68380         * modules/setsockopt: Likewise.
68381         * modules/shutdown: Likewise.
68382         * modules/socket: Use socket.c instead of winsock.c.
68383         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
68384         * doc/posix-functions/accept.texi: Doc fix.
68385         * doc/posix-functions/bind.texi: Doc fix.
68386         * doc/posix-functions/close.texi: Doc fix.
68387         * doc/posix-functions/connect.texi: Doc fix.
68388         * doc/posix-functions/getpeername.texi: Doc fix.
68389         * doc/posix-functions/getsockname.texi: Doc fix.
68390         * doc/posix-functions/getsockopt.texi: Doc fix.
68391         * doc/posix-functions/ioctl.texi: Doc fix.
68392         * doc/posix-functions/listen.texi: Doc fix.
68393         * doc/posix-functions/recv.texi: Doc fix.
68394         * doc/posix-functions/recvfrom.texi: Doc fix.
68395         * doc/posix-functions/send.texi: Doc fix.
68396         * doc/posix-functions/sendto.texi: Doc fix.
68397         * doc/posix-functions/setsockopt.texi: Doc fix.
68398         * doc/posix-functions/shutdown.texi: Doc fix.
68399         * doc/posix-functions/socket.texi: Doc fix.
68401 2008-10-20  Bruno Haible  <bruno@clisp.org>
68403         Take into account the role of SIGABRT_COMPAT on Windows 2008.
68404         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
68405         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
68406         as an alias for SIGABRT.
68407         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
68408         (sigaction): Map it to SIGABRT.
68409         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
68411 2008-10-20  Bruno Haible  <bruno@clisp.org>
68413         * lib/fts.c: Don't include lstat.h.
68414         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
68416         Move the lstat() declaration to <sys/stat.h>.
68417         * lib/lstat.h: Remove file.
68418         * lib/sys_stat.in.h: Add special invocation convention.
68419         (lstat): New declaration.
68420         * lib/lstat.c (orig_lstat): New function.
68421         (rpl_lstat): Use orig_lstat instead of lstat.
68422         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
68423         AC_C_INLINE. Set REPLACE_LSTAT.
68424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
68425         and REPLACE_LSTAT.
68426         * modules/lstat (Files): Remove lib/lstat.h.
68427         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
68428         (Include): Specify <sys/stat.h> instead of lstat.h.
68429         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
68430         REPLACE_LSTAT.
68431         * NEWS: Mention the change.
68433 2008-10-20  Bruno Haible  <bruno@clisp.org>
68435         * modules/posix_spawn-tests: New file.
68436         * tests/test-posix_spawn3.c: New file.
68438 2008-10-20  Bruno Haible  <bruno@clisp.org>
68440         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
68441         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
68442         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
68443         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
68444         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
68446 2008-10-20  Bruno Haible  <bruno@clisp.org>
68448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
68449         of posix_spawn on AIX 5.3.
68451 2008-10-20  Bruno Haible  <bruno@clisp.org>
68453         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
68455 2008-10-20  Bruno Haible  <bruno@clisp.org>
68457         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
68458         of AC_LANG_PROGRAM.
68460 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68462         * lib/netdb.in.h: Don't define GNU specific constants until they
68463         are supported or needed.  Reported by Bruno Haible
68464         <bruno@clisp.org>.
68466 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68468         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
68470 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68472         * lib/getaddrinfo.h: Remove file.
68473         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
68474         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
68475         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
68476         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
68477         * modules/netdb: Substitute GNULIB_GETADDRINFO.
68478         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
68479         * tests/test-getaddrinfo.c: Likewise.
68480         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
68481         * NEWS: Mention change.
68483 2008-10-19  Bruno Haible  <bruno@clisp.org>
68485         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
68487 2008-10-19  Bruno Haible  <bruno@clisp.org>
68489         * lib/wait-process.c: Include simply <sys/wait.h>.
68490         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
68491         WIFSTOPPED): Remove fallback definitions.
68492         * modules/wait-process (Depends-on): Add sys_wait.
68494         New module 'sys_wait'.
68495         * modules/sys_wait: New file.
68496         * lib/sys_wait.in.h: New file, partially copied from
68497         lib/wait-process.c.
68498         * m4/sys_wait_h.m4: New file.
68499         * doc/posix-headers/sys_wait.texi: Mention the new module.
68501 2008-10-19  Bruno Haible  <bruno@clisp.org>
68503         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
68505 2008-10-19  Bruno Haible  <bruno@clisp.org>
68507         Assume that waitpid() fills an 'int' status, not a 'union wait'.
68508         * lib/wait-process.c (WAIT_T): Remove type.
68509         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
68510         (wait_subprocess): Update.
68512 2008-10-19  Bruno Haible  <bruno@clisp.org>
68514         New module 'atoll'.
68515         * modules/atoll: New file.
68516         * lib/stdlib.in.h (atoll): New declaration.
68517         * lib/atoll.c: New file, from glibc with modifications.
68518         * m4/atoll.m4: New file.
68519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
68520         HAVE_ATOLL.
68521         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
68522         * doc/posix-functions/atoll.texi: Mention the new module.
68524 2008-10-19  Bruno Haible  <bruno@clisp.org>
68526         Add strtoull() declaration to <stdlib.h>.
68527         * lib/stdlib.in.h (strtoull): New declaration.
68528         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
68529         Set HAVE_STRTOULL.
68530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
68531         HAVE_STRTOULL.
68532         * modules/strtoull (Depends-on): Add stdlib.
68533         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68534         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
68535         HAVE_STRTOULL.
68537 2008-10-19  Bruno Haible  <bruno@clisp.org>
68539         Add strtoll() declaration to <stdlib.h>.
68540         * lib/stdlib.in.h (strtoll): New declaration.
68541         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
68542         Set HAVE_STRTOLL.
68543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
68544         HAVE_STRTOLL.
68545         * modules/strtoll (Depends-on): Add stdlib.
68546         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68547         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
68549 2008-10-19  Bruno Haible  <bruno@clisp.org>
68551         * modules/bcopy (Depends-on): Add strings.
68552         (Include): Specify <strings.h>.
68554 2008-10-19  Bruno Haible  <bruno@clisp.org>
68556         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
68558 2008-10-19  Bruno Haible  <bruno@clisp.org>
68560         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
68561         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
68562         mingw.
68564 2008-10-19  Bruno Haible  <bruno@clisp.org>
68566         * lib/atanl.c: Don't include isnanl.h.
68567         * lib/cosl.c: Likewise.
68568         * lib/ldexpl.c: Likewise.
68569         * lib/logl.c: Likewise.
68570         * lib/sinl.c: Likewise.
68571         * lib/sqrtl.c: Likewise.
68572         * lib/tanl.c: Likewise.
68574         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
68575         * lib/isnanf.h: Remove file.
68576         * lib/isnand.h: Remove file.
68577         * lib/isnanl.h: Remove file.
68578         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
68579         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
68580         macros.
68581         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
68582         HAVE_ISNANF, don't define it as a C macro.
68583         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
68584         HAVE_ISNAND, don't define it as a C macro.
68585         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
68586         HAVE_ISNANL, don't define it as a C macro.
68587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
68588         HAVE_ISNAN[FDL].
68589         * modules/isnanf (Files): Remove lib/isnanf.h.
68590         (Depends-on): Add math.
68591         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68592         (Include): Specify <math.h> instead of isnanf.h.
68593         * modules/isnand (Files): Remove lib/isnand.h.
68594         (Depends-on): Add math.
68595         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68596         (Include): Specify <math.h> instead of isnand.h.
68597         * modules/isnanl (Files): Remove lib/isnanl.h.
68598         (Depends-on): Add math.
68599         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68600         (Include): Specify <math.h> instead of isnanl.h.
68601         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
68602         HAVE_ISNAN[FDL].
68603         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
68604         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
68605         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
68606         * NEWS: Mention the change.
68608 2008-10-18  Bruno Haible  <bruno@clisp.org>
68610         Add getusershell(), setusershell(), endusershell() declarations to
68611         <unistd.h>.
68612         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
68613         declarations.
68614         * lib/getusershell.c: Include unistd.h.
68615         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
68616         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
68617         HAVE_GETUSERSHELL.
68618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
68619         and HAVE_GETUSERSHELL.
68620         * modules/getusershell (Depends-on): Add unistd, extensions.
68621         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68622         (Include): Specify <unistd.h>.
68623         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
68624         HAVE_GETUSERSHELL.
68626 2008-10-18  Bruno Haible  <bruno@clisp.org>
68628         Add a getloadavg() declaration to <stdlib.h>.
68629         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
68630         getloadavg declaration.
68631         (getloadavg): New declaration.
68632         * lib/getloadavg.c: Include <stdlib.h> first.
68633         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
68634         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
68635         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
68636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
68637         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
68638         * modules/getloadavg (Depends-on): Add stdlib, extensions.
68639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68640         (Include): Specify <stdlib.h>.
68641         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
68642         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
68644 2008-10-18  Bruno Haible  <bruno@clisp.org>
68646         * lib/dirchownmod.c: Don't include lchmod.h.
68648         Move the lchmod() declaration to <sys/stat.h>.
68649         * lib/lchmod.h: Remove file.
68650         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
68651         (lchmod): New declaration, moved here from lib/lchown.h.
68652         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
68653         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
68654         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
68655         and HAVE_LCHMOD.
68656         * modules/lchmod (Files): Remove lib/lchmod.h.
68657         (Depends-on): Add sys_stat, extensions.
68658         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
68659         (Include): Specify <sys/stat.h> instead of lchmod.h.
68660         * modules/sys_stat (Depends-on): Add link-warning.
68661         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
68662         definition of GL_LINK_WARNING.
68663         * NEWS: Mention the change.
68665 2008-10-18  Bruno Haible  <bruno@clisp.org>
68667         * lib/fchdir.c: Don't include dirfd.h.
68668         * lib/fts.c: Likewise.
68669         * lib/getcwd.c: Likewise.
68670         * lib/glob.c: Likewise.
68672         Move the dirfd() declaration to <dirent.h>.
68673         * lib/dirfd.h: Remove file.
68674         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
68675         (dirfd): New declaration.
68676         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
68677         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
68678         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
68679         HAVE_DECL_DIRFD.
68680         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
68681         HAVE_DECL_DIRFD.
68682         * modules/dirfd (Files): Remove lib/dirfd.h.
68683         (Depends-on): Add dirent, extensions.
68684         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
68685         (Include): Specify <dirent.h> instead of dirfd.h.
68686         * modules/dirent (Depends-on): Add link-warning.
68687         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
68688         definition of GL_LINK_WARNING.
68689         * NEWS: Mention the change.
68691 2008-10-18  Bruno Haible  <bruno@clisp.org>
68693         Move the euidaccess() declaration to <unistd.h>.
68694         * lib/euidaccess.h: Remove file.
68695         * lib/unistd.in.h (euidaccess): New declaration.
68696         * lib/euidaccess.c: Don't include euidaccess.h.
68697         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
68698         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
68699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
68700         and HAVE_EUIDACCESS.
68701         * modules/euidaccess (Files): Remove lib/euidaccess.h.
68702         (Depends-on): Add unistd.
68703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68704         (Include): Specify <unistd.h> instead of euidaccess.h.
68705         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
68706         HAVE_EUIDACCESS.
68707         * NEWS: Mention the change.
68709 2008-10-18  Bruno Haible  <bruno@clisp.org>
68711         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
68713         Move the getdomainname() declaration to <unistd.h>.
68714         * lib/getdomainname.h: Remove file.
68715         * lib/unistd.in.h (getdomainname): New declaration.
68716         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
68717         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
68718         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
68719         HAVE_GETDOMAINNAME.
68720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68721         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
68722         * modules/getdomainname (Files): Remove lib/getdomainname.h.
68723         (Depends-on): Add unistd, extensions.
68724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68725         (Includes): Specify <unistd.h> instead of getdomainname.h.
68726         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
68727         HAVE_GETDOMAINNAME.
68728         * NEWS: Mention the change.
68730 2008-10-18  Bruno Haible  <bruno@clisp.org>
68732         * modules/dirent: New file.
68733         * m4/dirent_h.m4: New file.
68734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
68735         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
68736         * modules/fchdir (Files): Remove lib/dirent.in.h.
68737         (Depends-on): Add dirent.
68738         (Makefile.am): Move rules to modules/dirent.
68739         * doc/posix-headers/dirent.texi: Mention the new module.
68741 2008-10-18  Bruno Haible  <bruno@clisp.org>
68743         Avoid -Wunused-parameter warnings in public gnulib header files.
68744         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
68745         macro.
68746         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
68748 2008-10-18  Bruno Haible  <bruno@clisp.org>
68750         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
68751         * doc/glibc-functions/error.texi: Mention the module 'error'.
68752         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
68753         * doc/glibc-functions/getdomainname.texi: Mention the module
68754         'getdomainname'.
68755         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
68756         * doc/glibc-functions/getpagesize.texi: Mention the module
68757         'getpagesize'.
68758         * doc/glibc-functions/getusershell.texi: Mention the module
68759         'getusershell'.
68760         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
68761         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
68762         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
68763         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
68764         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
68765         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
68766         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
68767         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
68768         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
68769         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
68770         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
68771         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
68772         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
68773         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
68775 2008-10-17  Bruno Haible  <bruno@clisp.org>
68777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
68778         HP-UX and IRIX, use -0.0L.
68779         * tests/test-ceill.c (minus_zero): Likewise.
68780         * tests/test-floorl.c (minus_zero): Likewise.
68781         * tests/test-frexpl.c (minus_zero): Likewise.
68782         * tests/test-isnan.c (minus_zerol): Likewise.
68783         * tests/test-isnanl.h (minus_zero): Likewise.
68784         * tests/test-ldexpl.c (minus_zero): Likewise.
68785         * tests/test-roundl.c (minus_zero): Likewise.
68786         * tests/test-signbit.c (minus_zerol): Likewise.
68787         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68788         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68789         * tests/test-truncl.c (minus_zero): Likewise.
68790         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68791         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68792         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
68793         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
68795 2008-10-17  Bruno Haible  <bruno@clisp.org>
68797         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
68798         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
68799         that it gets activated only for gcc >= 3.0.
68800         * lib/dirent.in.h: Likewise.
68801         * lib/errno.in.h: Likewise.
68802         * lib/fcntl.in.h: Likewise.
68803         * lib/float.in.h: Likewise.
68804         * lib/iconv.in.h: Likewise.
68805         * lib/inttypes.in.h: Likewise.
68806         * lib/locale.in.h: Likewise.
68807         * lib/math.in.h: Likewise.
68808         * lib/netdb.in.h: Likewise.
68809         * lib/netinet_in.in.h: Likewise.
68810         * lib/search.in.h: Likewise.
68811         * lib/signal.in.h: Likewise.
68812         * lib/spawn.in.h: Likewise.
68813         * lib/stdarg.in.h: Likewise.
68814         * lib/stdint.in.h: Likewise.
68815         * lib/stdio.in.h: Likewise.
68816         * lib/stdlib.in.h: Likewise.
68817         * lib/string.in.h: Likewise.
68818         * lib/strings.in.h: Likewise.
68819         * lib/sys_file.in.h: Likewise.
68820         * lib/sys_ioctl.in.h: Likewise.
68821         * lib/sys_select.in.h: Likewise.
68822         * lib/sys_socket.in.h: Likewise.
68823         * lib/sys_stat.in.h: Likewise.
68824         * lib/sys_time.in.h: Likewise.
68825         * lib/sysexits.in.h: Likewise.
68826         * lib/time.in.h: Likewise.
68827         * lib/unistd.in.h: Likewise.
68828         * lib/wchar.in.h: Likewise.
68829         * lib/wctype.in.h: Likewise.
68830         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68832 2008-10-17  Jim Meyering  <meyering@redhat.com>
68834         ignore-value: don't depend on inline module
68835         * modules/ignore-value (Depends-on): Remove 'inline'.
68836         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
68837         Suggestion from Bruno Haible.
68839 2008-10-17  Bruno Haible  <bruno@clisp.org>
68841         New implementation of condition variables for Win32.
68842         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
68843         (gl_linked_waitqueue_t): New type.
68844         (gl_cond_t): Use it.
68845         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
68846         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
68847         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
68848         (glthread_cond_init_func, glthread_cond_wait_func,
68849         glthread_cond_timedwait_func, glthread_cond_signal_func,
68850         glthread_cond_broadcast_func, glthread_cond_destroy_func):
68851         Reimplemented on the basis of gl_linked_waitqueue_t.
68852         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
68853         gl_waitqueue_t.
68854         (gl_rwlock_t): Update.
68855         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
68857 2008-10-17  Simon Josefsson  <simon@josefsson.org>
68859         * modules/recvfrom (Depends-on): Add dependency on getpeername.
68860         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68862 2008-10-17  Jim Meyering  <meyering@redhat.com>
68864         ignore-value: new module
68865         * modules/ignore-value: New file.
68866         * lib/ignore-value.h: New file.
68867         * MODULES.html.sh (Compiler warning management): New section,
68868         just for this module.  More to come.
68870 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68872         open-safer.c: avoid 'signed and unsigned in conditional...' warning
68873         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
68874         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
68876 2008-10-16  Jim Meyering  <meyering@redhat.com>
68878         openat-die.c: avoid 'no previous prototype' warning
68879         * lib/openat-die.c: Include "openat.h".
68880         Reported by Reuben Thomas <rrt@sc3d.org>.
68882 2008-10-16  Simon Josefsson  <simon@josefsson.org>
68884         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
68885         * lib/netdb.in.h: Fix typo.
68886         Reported by Bruno Haible  <bruno@clisp.org>
68888         * lib/netdb.in.h: Include sys/socket.h for platforms without
68889         netdb.h, to get structures like hostent on MinGW.
68890         * modules/netdb (Depends-on): Add sys_socket.
68892 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68894         * modules/netdb, modules/netdb-tests: New file.
68895         * m4/netdb_h.m4: New file.
68896         * lib/netdb.in.h: Add, currently just an empty file pending
68897         definitions.
68898         * tests/test-netdb.c: New file.
68899         * doc/posix-headers/netdb.texi: Mention that we replace it if
68900         needed.
68901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68902         netdb.
68904 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68906         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
68907         with code.
68909 2008-10-13  Bruno Haible  <bruno@clisp.org>
68911         * lib/glthread/cond.c (glthread_cond_wait_func,
68912         glthread_cond_timedwait_func): Add a comment.
68914 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68916         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
68917         * tests/test-select.c: Likewise,
68919 2008-10-13  Bruno Haible  <bruno@clisp.org>
68921         * lib/glthread/cond.c (glthread_cond_wait_func,
68922         glthread_cond_timedwait_func): Fix variable name.
68923         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68925 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
68927         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
68928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
68929         struct sockaddr.sa_len.
68930         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
68932 2008-10-13  Simon Josefsson  <simon@josefsson.org>
68934         * build-aux/pmccabe2html: Add css and css_url parameters.
68936 2008-10-12  Bruno Haible  <bruno@clisp.org>
68938         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
68939         calling aclx_get.
68940         Reported by Rainer Tammer <tammer@tammer.net>.
68942 2008-10-12  Bruno Haible  <bruno@clisp.org>
68944         Use msvcrt aware primitives for creation/termination of Win32 threads.
68945         * lib/glthread/thread.c: Include <process.h>.
68946         (glthread_create_func): Use _beginthreadex instead of CreateThread.
68947         (wrapper_func): Update signature.
68948         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
68950 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68951             Bruno Haible  <bruno@clisp.org>
68953         Provide a Win32 implementation of the 'cond' module.
68954         * lib/glthread/cond.h [USE_WIN32]: New implementation.
68955         * lib/glthread/cond.c (glthread_cond_init_func,
68956         glthread_cond_wait_func, glthread_cond_timedwait_func,
68957         glthread_cond_signal_func, glthread_cond_broadcast_func,
68958         glthread_cond_destroy_func) [USE_WIN32]: New functions.
68959         * modules/cond (Dependencies): Add gettimeofday.
68961 2008-10-11  Bruno Haible  <bruno@clisp.org>
68963         Make sleep work on older versions of mingw.
68964         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
68965         only whether it exists.
68966         * doc/posix-functions/sleep.texi: Mention the problem with older
68967         versions of mingw.
68969 2008-10-11  Bruno Haible  <bruno@clisp.org>
68971         New module 'shutdown'.
68972         * modules/shutdown: New file.
68973         * lib/sys_socket.in.h (shutdown): New declaration.
68974         * lib/winsock.c (shutdown): New function.
68975         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
68976         GNULIB_SHUTDOWN.
68977         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
68978         * doc/posix-functions/shutdown.texi: Document the new module.
68980 2008-10-11  Jim Meyering  <meyering@redhat.com>
68982         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
68984 2008-10-11  Bruno Haible  <bruno@clisp.org>
68986         New module 'fclose'.
68987         * modules/fclose: New file.
68988         * lib/stdio.in.h (fclose): New declaration.
68989         * lib/fclose.c: New file.
68990         * m4/fclose.m4: New file.
68991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
68992         REPLACE_FCLOSE.
68993         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
68994         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
68995         REPLACE_FCLOSE.
68996         * modules/close (Depends-on): fclose.
68997         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
68999 2008-10-11  Bruno Haible  <bruno@clisp.org>
69001         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
69002         set errno and don't call _close.
69004 2008-10-10  Bruno Haible  <bruno@clisp.org>
69006         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
69007         ACL, not afterwards. Fixes test failure on Cygwin.
69009 2008-10-09  Ben Pfaff  <blp@gnu.org>
69011         * build-aux/announce-gen: Fix gnulib version related part of usage
69012         message.  Die with a useful error message if no tarballs are
69013         found.
69015 2008-10-10  Jim Meyering  <meyering@redhat.com>
69017         bootstrap: use git's --depth=N option only if it's supported
69018         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
69019         recognize the --depth option.  Reported by Pádraig Brady.
69021 2008-10-09  Bruno Haible  <bruno@clisp.org>
69023         New module 'ioctl'.
69024         * modules/ioctl: New file.
69025         * lib/sys_socket.in.h (ioctl): Remove declaration.
69026         * lib/winsock.c: Include <sys/ioctl.h>.
69027         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
69028         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
69029         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
69030         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
69031         * doc/posix-functions/ioctl.texi: Mention the new module.
69033 2008-10-09  Bruno Haible  <bruno@clisp.org>
69035         New module 'sys_ioctl'.
69036         * lib/sys_ioctl.in.h: New file.
69037         * m4/sys_ioctl_h.m4: New file.
69038         * modules/sys_ioctl: New file.
69039         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
69041 2008-10-09  Bruno Haible  <bruno@clisp.org>
69043         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
69044         * lib/winsock.c: Include <stdarg.h>.
69045         (rpl_ioctl): Change to second argument 'int' and then varargs.
69047 2008-10-09  Bruno Haible  <bruno@clisp.org>
69049         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
69050         when the sys_socket module is present and the system has <winsock2.h>.
69052 2008-10-09  Bruno Haible  <bruno@clisp.org>
69054         * doc/posix-functions/close.texi: Mention module 'close' instead of
69055         module 'sys_socket'.
69057 2008-10-09  Bruno Haible  <bruno@clisp.org>
69059         * doc/glibc-headers/sys_ioctl.texi: New file.
69060         * doc/gnulib.texi: Include it.
69062 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69063             Bruno Haible  <bruno@clisp.org>
69065         Combine the two replacements of 'close'.
69066         * lib/sys_socket.in.h (close): Define to a reminder to include
69067         <unistd.h>.
69068         (_gl_close_fd_maybe_socket): New declaration.
69069         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
69070         * lib/winsock.c (close): Remove undefinition.
69071         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
69072         needed for the gnulib module 'close'.
69073         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
69074         define to an error symbol or to a warning, if suitable.
69075         * lib/close.c: Include <sys/socket.h>.
69076         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
69077         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
69078         UNISTD_H_HAVE_WINSOCK2_H.
69079         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
69080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69081         UNISTD_H_HAVE_WINSOCK2_H.
69082         * modules/sys_socket (Files): Add m4/unistd_h.m4.
69083         (configure.ac): Set a module indicator.
69084         (Makefile.am): Substitute GNULIB_CLOSE.
69085         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
69086         * modules/poll-tests (Depends-on): Add close.
69087         * modules/select-tests (Depends-on): Likewise.
69089 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69090             Bruno Haible  <bruno@clisp.org>
69092         New module 'close'.
69093         * modules/close: New file.
69094         * lib/unistd.in.h (close): Move declaration out of the
69095         FCHDIR_REPLACEMENT scope.
69096         (_gl_unregister_fd): New declaration.
69097         * lib/close.c: New file.
69098         * lib/fchdir.c (rpl_close): Remove function.
69099         * m4/close.m4: New file.
69100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
69101         close.
69102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
69103         REPLACE_CLOSE.
69104         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
69105         REPLACE_CLOSE.
69106         * modules/fchdir (Depends-on): Add close.
69108 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69109             Bruno Haible  <bruno@clisp.org>
69111         * lib/fcntl.in.h (open): Simplify conditionals.
69112         (_gl_register_fd): New declaration.
69113         * lib/fchdir.c (rpl_open): Remove function.
69114         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
69115         also.
69116         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
69117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
69118         open.
69120 2008-10-09  Jim Meyering  <meyering@redhat.com>
69122         GNUmakefile: use the more name-space-friendly "_version"
69123         * top/GNUmakefile (_dummy): Update.
69124         (_version): Rename from "version".
69126 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69127             Bruno Haible  <bruno@clisp.org>
69129         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
69130         rpl_close.
69131         (_gl_register_fd): New function, extracted from rpl_open.
69132         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
69133         (rpl_open, rpl_opendir): Use _gl_register_fd.
69135 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69137         Fix organization of 'open' replacement.
69138         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
69139         (gl_FUNC_OPEN): Use it.
69140         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
69142 2008-10-08  Bruno Haible  <bruno@clisp.org>
69144         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
69146 2008-10-08  Simon Josefsson  <simon@josefsson.org>
69148         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
69149         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
69150         listen).
69152 2008-10-08  Eric Blake  <ebb9@byu.net>
69154         GNUmakefile: add 'make version' target
69155         * top/GNUmakefile (_curr-ver): Split version update rules...
69156         (version): ...into a target.
69158 2008-10-07  Bruno Haible  <bruno@clisp.org>
69160         Use a more portable replacement expression for -0.0L.
69161         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
69162         instead of -0.0L. Fix m4 quotation.
69164         * tests/test-signbit.c: Include <float.h>.
69165         (minus_zero): New variable.
69166         (test_signbitl): Use minus_zero instead of -zero.
69167         * modules/signbit-tests (Depends-on): Add float.
69169         * tests/test-ceill.c: Include <float.h>.
69170         (zero): Remove variable.
69171         (minus_zero): New variable.
69172         (main): Use minus_zero instead of -zero.
69173         * modules/ceill-tests (Depends-on): Add float.
69175         * tests/test-floorl.c: Include <float.h>.
69176         (zero): Remove variable.
69177         (minus_zero): New variable.
69178         (main): Use minus_zero instead of -zero.
69179         * modules/floorl-tests (Depends-on): Add float.
69181         * tests/test-roundl.c: Include <float.h>.
69182         (zero): Remove variable.
69183         (minus_zero): New variable.
69184         (main): Use minus_zero instead of -zero.
69185         * modules/roundl-tests (Depends-on): Add float.
69187         * tests/test-truncl.c: Include <float.h>.
69188         (zero): Remove variable.
69189         (minus_zero): New variable.
69190         (main): Use minus_zero instead of -zero.
69191         * modules/truncl-tests (Depends-on): Add float.
69193         * tests/test-frexpl.c (zero): Remove variable.
69194         (minus_zero): New variable.
69195         (main): Use minus_zero instead of -zero.
69196         * modules/frexpl-tests (Depends-on): Add float.
69198         * tests/test-isnan.c (zerol): Remove variable.
69199         (minus_zerol): New variable.
69200         (test_long_double): Use minus_zerol instead of -zerol.
69201         * modules/isnan-tests (Depends-on): Add float.
69203         * tests/test-isnanl.h (zero): Remove variable.
69204         (minus_zero): New variable.
69205         (main): Use minus_zero instead of -zero.
69206         * modules/isnanl-nolibm-tests (Depends-on): Add float.
69207         * modules/isnanl-tests (Depends-on): Add float.
69209         * tests/test-ldexpl.c (zero): Remove variable.
69210         (minus_zero): New variable.
69211         (main): Use minus_zero instead of -zero.
69212         * modules/ldexpl-tests (Depends-on): Add float.
69214         * tests/test-snprintf-posix.h (zerol): Remove variable.
69215         (minus_zerol): New variable.
69216         (test_function): Use minus_zerol instead of -zerol.
69217         * modules/snprintf-posix-tests (Depends-on): Add float.
69218         * modules/vsnprintf-posix-tests (Depends-on): Add float.
69220         * tests/test-sprintf-posix.h (zerol): Remove variable.
69221         (minus_zerol): New variable.
69222         (test_function): Use minus_zerol instead of -zerol.
69223         * modules/sprintf-posix-tests (Depends-on): Add float.
69224         * modules/vsprintf-posix-tests (Depends-on): Add float.
69226         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
69227         (minus_zerol): New variable.
69228         (test_function): Use minus_zerol instead of -zerol.
69229         * modules/vasnprintf-posix-tests (Depends-on): Add float.
69231         * tests/test-vasprintf-posix.c (zerol): Remove variable.
69232         (minus_zerol): New variable.
69233         (test_function): Use minus_zerol instead of -zerol.
69234         * modules/vasprintf-posix-tests (Depends-on): Add float.
69236 2008-10-07  Simon Josefsson  <simon@josefsson.org>
69238         * MODULES.html.sh (Support for building documentation): Mention
69239         pmccabe2html.  Sort entries.
69241         Add pmccabe2html module, from gnupdf.
69242         * build-aux/pmccabe.css: New file.
69243         * build-aux/pmccabe2html: New file.
69244         * m4/pmccabe2html.m4: New file.
69245         * modules/pmccabe2html: New file.
69247 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
69249         flock: new module
69250         * MODULES.html.sh: Add to list of modules.
69251         * lib/flock.c: flock implementation for Windows and Unix systems
69252         which have fcntl.
69253         * doc/glibc-functions/flock.texi: Update documentation.
69254         * lib/sys_file.in.h: <sys/file.h> header file.
69255         * m4/flock.m4: M4 macros.
69256         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
69257         * modules/flock: flock module.
69258         * modules/flock-tests: flock tests module.
69259         * modules/sys_file: sys/file.h module.
69260         * tests/test-flock.c: test suite for flock.
69262 2008-10-06  Jim Meyering  <meyering@redhat.com>
69264         bootstrap: check for LT_INIT more portably still ;-)
69265         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
69266         Spotted by Bruno Haible.
69268 2008-10-06  Eric Blake  <ebb9@byu.net>
69270         test-signbit: avoid tripping Irix cc bug on -0.0L
69271         * tests/test-signbit.c (minus_zerol): Delete, and replace with
69272         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
69273         entire testsuite consistent and avoids an Irix 6.2 bug.
69275 2008-10-05  Bruno Haible  <bruno@clisp.org>
69276             Jim Meyering  <jim@meyering.net>
69278         Add an option for ignoring EPIPE during close_stdout.
69279         * lib/closeout.h: Include <stdbool.h>.
69280         (close_stdout_set_ignore_EPIPE): New declaration.
69281         * lib/closeout.c: Include <stdbool.h>.
69282         (ignore_EPIPE): New variable.
69283         (close_stdout_set_ignore_EPIPE): New function.
69284         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
69285         * lib/close-stream.c (close_stream): Mention the possible EPIPE
69286         failure.
69287         * modules/closeout (Depends-on): Add stdbool.
69289 2008-10-05  Bruno Haible  <bruno@clisp.org>
69291         * modules/accept: New file.
69292         * modules/bind: New file.
69293         * modules/connect: New file.
69294         * modules/getpeername: New file.
69295         * modules/getsockname: New file.
69296         * modules/getsockopt: New file.
69297         * modules/listen: New file.
69298         * modules/recv: New file.
69299         * modules/recvfrom: New file.
69300         * modules/send: New file.
69301         * modules/sendto: New file.
69302         * modules/setsockopt: New file.
69303         * modules/socket: New file.
69304         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
69305         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
69306         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
69307         the particular module is requested. Add a link warning when the
69308         particular module is not requested.
69309         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
69310         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
69311         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
69312         the particular module is requested.
69313         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
69314         gl_SYS_SOCKET_H_DEFAULTS): New macros.
69315         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
69316         * modules/sys_socket (Depends-on): Add link-warning.
69317         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
69318         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
69319         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
69320         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
69321         GL_LINK_WARNING.
69322         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
69323         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
69324         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
69325         * doc/posix-functions/getpeername.texi: Mention the new module
69326         'getpeername'.
69327         * doc/posix-functions/getsockname.texi: Mention the new module
69328         'getsockname'.
69329         * doc/posix-functions/getsockopt.texi: Mention the new module
69330         'getsockopt'.
69331         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
69332         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
69333         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
69334         * doc/posix-functions/send.texi: Mention the new module 'send'.
69335         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
69336         * doc/posix-functions/setsockopt.texi: Mention the new module
69337         'setsockopt'.
69338         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
69339         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
69340         listen, connect, accept.
69341         * modules/select-tests (Depends-on): Likewise.
69343 2008-10-05  Bruno Haible  <bruno@clisp.org>
69345         * lib/winsock.c (strerror): Remove unused #undef.
69346         (rpl_close): Remove unused local variable.
69348         * modules/sys_socket (Depends-on); Add errno.
69350 2008-10-05  Bruno Haible  <bruno@clisp.org>
69352         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
69353         (select): Add a link warning when the 'select' module is not used.
69354         * modules/sys_select (Depends-on): Add link-warning.
69355         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
69356         Suggested by Paolo Bonzini.
69358 2008-10-05  Jim Meyering  <meyering@redhat.com>
69360         bootstrap: check for LT_INIT more portably
69361         * build-aux/bootstrap: Avoid using grep -E, since it's not
69362         portable enough.  Suggestion from Bruno Haible.
69364 2008-10-05  Bruno Haible  <bruno@clisp.org>
69366         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
69367         as being fixed by gnulib.
69369 2008-10-05  Bruno Haible  <bruno@clisp.org>
69371         * modules/select-tests: New file, mostly copied from
69372         modules/sys_select-tests.
69373         * tests/test-select.c: New file, mostly copied from
69374         tests/test-sys_select.c.
69375         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
69376         * modules/sys_select-tests (Depends-on): Remove all dependencies.
69377         (Makefile.am): Remove test_sys_select_LDADD.
69379         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
69380         to an undefined symbol, for an error message.
69381         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
69382         (gl_SYS_SELECT_H_DEFAULTS): New macro.
69383         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
69384         winsock-select.c here.
69385         * modules/sys_select (Files): Remove lib/winsock-select.c.
69386         (Depends-on): Remove alloca.
69387         (Makefile.am): Substitute GNULIB_SELECT.
69388         * modules/select: New file.
69389         * doc/posix-functions/select.texi: Update.
69391 2008-10-05  Bruno Haible  <bruno@clisp.org>
69393         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
69394         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
69395         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
69396         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
69397         getdtablesize.
69398         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
69399         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
69401 2008-10-05  Bruno Haible  <bruno@clisp.org>
69403         * modules/getdtablesize-tests: New file.
69404         * tests/test-getdtablesize.c: New file.
69406         New module 'getdtablesize'.
69407         * lib/unistd.in.h (getdtablesize): New declaration.
69408         * lib/getdtablesize.c: New file.
69409         * m4/getdtablesize.m4: New file.
69410         * modules/getdtablesize: New file.
69411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69412         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
69413         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
69414         HAVE_GETDTABLESIZE.
69415         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
69417 2008-10-05  Bruno Haible  <bruno@clisp.org>
69419         * modules/sched (Makefile.am): Fix typo.
69420         Reported by Simon Josefsson.
69422 2008-10-05  Jim Meyering  <meyering@redhat.com>
69424         bootstrap: check for LT_INIT, too
69425         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
69426         are deprecated.  Suggestion from Ralf Wildenhues.
69428 2008-10-05  Bruno Haible  <bruno@clisp.org>
69430         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
69431         overriding them by ours.
69432         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
69434 2008-10-05  Jim Meyering  <meyering@redhat.com>
69436         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
69437         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
69438         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
69440 2008-10-04  Bruno Haible  <bruno@clisp.org>
69442         * modules/dup2 (License): Change to LGPLv2+.
69443         * modules/sleep (License): Likewise.
69444         * modules/perror (License): Likewise.
69445         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
69446         Blake.
69447         * modules/signal (License): Likewise.
69448         * modules/sigprocmask (License): Likewise.
69449         * modules/raise (License): Change to LGPLv2+, with approval by Jim
69450         Meyering.
69452 2008-10-04  Bruno Haible  <bruno@clisp.org>
69454         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
69455         Reported by Rainer Tammer <tammer@tammer.net>.
69457 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
69458             Bruno Haible  <bruno@clisp.org>
69460         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
69461         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
69462         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
69464 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
69466         filevercmp: new module
69467         * lib/filevercmp.h: New function filevercmp comparing version strings.
69468         * lib/filevercmp.c: Implementation of filevercmp function.
69469         * modules/filevercmp: Module metadata.
69470         * tests/test-filevercmp.c: Unit test for new module.
69471         * modules/filevercmp-tests: Unit test metadata.
69472         * MODULES.html.sh: Add filevercmp module.
69474 2008-10-03  Bruno Haible  <bruno@clisp.org>
69476         * lib/c-ctype.h: Add comment.
69477         Reported by Jim Meyering.
69479 2008-10-02  Bruno Haible  <bruno@clisp.org>
69481         * modules/posix_spawn-internal (Depends-on): Add 'open'.
69483 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69485         * build-aux/bootstrap: Allow renaming bootstrap, and change the
69486         name of bootstrap.conf accordingly.
69488 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69490         * build-aux/bootstrap: Install git-merge-changelog configuration
69491         items into .gitconfig if needed.
69493 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69495         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
69496         git repository, and initialize/update it accordingly.
69498 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
69500         * modules/fsync-tests: New file.
69501         * tests/test-fsync.c: New file.
69503         New module 'fsync'.
69504         * lib/fsync.c: New file.
69505         * m4/fsync.m4: New file.
69506         * modules/fsync: New file.
69507         * lib/unistd.in.h (fsync): New declaration.
69508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
69509         GNULIB_FSYNC and HAVE_FSYNC.
69510         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
69511         * MODULES.html.sh (posix_functions): Add fsync.
69512         * doc/posix-functions/fsync.texi: Mention the new module.
69514 2008-10-02  Jim Meyering  <meyering@redhat.com>
69516         fts.c: sync with similar code from coreutils' remove.c
69517         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
69518         Guard also with "#if defined __linux__", since for now at least,
69519         this code is Linux-kernel-specific.
69521 2008-10-02  Jim Meyering  <meyering@redhat.com>
69523         fts: bug fixes
69524         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
69525         Include <sys/vfs.h>, not <sys/statfs.h>.
69527         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
69528         Include <sys/vfs.h>, not <sys/statfs.h>.
69530 2008-10-01  Bruno Haible  <bruno@clisp.org>
69532         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
69533         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
69534         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
69535         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
69536         * doc/posix-functions/posix_spawnp.texi: Likewise.
69537         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
69538         whether posix_spawn actually works.
69539         * m4/pipe.m4 (gl_PIPE): Likewise.
69540         * modules/execute (Files): Add m4/posix_spawn.m4.
69541         * modules/pipe (Files): Add m4/posix_spawn.m4.
69542         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
69544 2008-10-01  Jim Meyering  <meyering@redhat.com>
69546         remove trailing spaces
69547         * NEWS: Likewise.
69548         * lib/poll.c (poll): Likewise.
69549         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
69550         * lib/winsock.c (rpl_close): Likewise.
69551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
69552         * modules/yield: Likewise.
69553         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
69554         * tests/test-sys_select.c (connect_to_socket): Likewise.
69556         fts.c: adjust a new interface to be more generally useful
69557         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
69558         (fts_build): Adjust caller.
69560 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69562         * modules/cond-tests: New file.
69563         * tests/test-cond.c: New file.
69565 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69566             Bruno Haible  <bruno@clisp.org>
69568         * modules/cond (Dependencies): Add errno, time.
69569         * lib/glthread/cond.h: Include <time.h>.
69570         (gl_cond_define, gl_cond_define_initialized): Use the same definition
69571         across platforms.
69573 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69574             Bruno Haible  <bruno@clisp.org>
69576         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
69578 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69579             Bruno Haible  <bruno@clisp.org>
69581         * modules/tls-tests (Depends-on): Add thread, yield.
69582         (configure.ac): Remove all checks.
69583         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
69584         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
69585         gl_thread_self): Remove definitions. Include glthread/thread.h and
69586         glthread/yield.h instead.
69587         (test_tls): Pass an additional NULL argument to gl_thread_join.
69589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69590             Bruno Haible  <bruno@clisp.org>
69592         * modules/lock-tests (Depends-on): Add thread, yield.
69593         (configure.ac): Remove all checks.
69594         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
69595         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
69596         gl_thread_self): Remove definitions. Include glthread/thread.h and
69597         glthread/yield.h instead.
69598         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
69599         additional NULL argument to gl_thread_join.
69601 2008-09-30  Bruno Haible  <bruno@clisp.org>
69603         Fix the Win32 implementation of the 'thread' module.
69604         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
69605         pointer type.
69606         (gl_thread_self): Invoke gl_thread_self_func.
69607         (gl_thread_self_func): New declaration.
69608         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
69609         (do_init_self_key, init_self_key): New functions.
69610         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
69611         Remove some fields.
69612         (running_threads, running_lock): Remove variables.
69613         (get_current_thread_handle): New function.
69614         (gl_thread_self_func, wrapper_func, glthread_create_func,
69615         glthread_join_func, gl_thread_exit_func): Largely rewritten and
69616         simplified.
69618 2008-09-30  Bruno Haible  <bruno@clisp.org>
69620         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
69621         files.
69623 2008-09-30  Jim Meyering  <meyering@redhat.com>
69625         fts.m4: correct the test for statfs.f_type
69626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
69627         when checking for statfs.f_type.
69629 2008-09-15  Simon Josefsson  <simon@josefsson.org>
69631         tests: avoid some compiler warnings
69632         * tests/test-memchr.c (main): Pass NULL indirectly.
69633         * tests/test-getdate.c (main): Remove unused variable 'ret'.
69635 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
69637         getdate.y: disallow countable dayshifts like "4 yesterday ago"
69638         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
69639         exactly specified dayshifts.
69640         (dayshift): New rule.
69641         (rel): Add dayshift.
69642         (relative_time_table) [tomorrow, yesterday, today, now]:
69643         Use tDAY_SHIFT in place of tDAY_UNIT.
69644         * tests/test-getdate.c: Add tests for now-disallowed countable
69645         dayshifts, e.g., "4 yesterday ago".
69647 2008-09-29  Bruno Haible  <bruno@clisp.org>
69649         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
69650         * tests/test-posix_spawn1.in.sh: Renamed from
69651         tests/test-posix_spawn.in.sh.
69652         * tests/test-posix_spawn2.c: New file.
69653         * tests/test-posix_spawn2.in.sh: New file.
69654         * modules/posix_spawnp-tests (Files): Update.
69655         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
69657 2008-09-29  Bruno Haible  <bruno@clisp.org>
69659         Propagate effects of putenv/setenv/unsetenv to child processes.
69660         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
69661         * lib/pipe.c (create_pipe): Likewise.
69663 2008-09-29  Bruno Haible  <bruno@clisp.org>
69665         Enable use of shell scripts as executables in mingw.
69666         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
69667         run the program as a shell script.
69668         * lib/pipe.c (create_pipe): Likewise.
69669         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
69670         resulting array.
69672 2008-09-29  Eric Blake  <ebb9@byu.net>
69674         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
69676 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
69678         * doc/posix-functions/accept.texi: Update mingw problems.
69679         * doc/posix-functions/bind.texi: Update mingw problems.
69680         * doc/posix-functions/close.texi: Update mingw problems.
69681         * doc/posix-functions/connect.texi: Update mingw problems.
69682         * doc/posix-functions/getpeername.texi: Update mingw problems.
69683         * doc/posix-functions/getsockname.texi: Update mingw problems.
69684         * doc/posix-functions/getsockopt.texi: Update mingw problems.
69685         * doc/posix-functions/ioctl.texi: Update mingw problems.
69686         * doc/posix-functions/listen.texi: Update mingw problems.
69687         * doc/posix-functions/recv.texi: Update mingw problems.
69688         * doc/posix-functions/recvfrom.texi: Update mingw problems.
69689         * doc/posix-functions/select.texi: Update mingw problems.
69690         * doc/posix-functions/send.texi: Update mingw problems.
69691         * doc/posix-functions/sendto.texi: Update mingw problems.
69692         * doc/posix-functions/setsockopt.texi: Update mingw problems.
69693         * doc/posix-functions/socket.texi: Update mingw problems.
69695 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
69696             Bruno Haible  <bruno@clisp.org>
69698         * lib/sys_select.in.h: Include sys/time.h.
69699         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
69700         * modules/sys_select: Depend on sys_time.
69701         * tests/test-sys_select.c: Test that sys/select.h defines struct
69702         timeval fully.
69704 2008-09-29  Bruno Haible  <bruno@clisp.org>
69706         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
69707         * lib/sys_select.in.h: Likewise.
69709 2008-09-29  Bruno Haible  <bruno@clisp.org>
69711         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
69713 2008-09-29  Bruno Haible  <bruno@clisp.org>
69715         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
69716         Set LIBSOCKET instead of augmenting LIBS.
69717         * modules/sockets (Link): New section.
69718         * modules/sockets-tests (test_sockets_LDADD): New variable.
69719         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
69720         * modules/poll-tests (test_poll_LDADD): New variable.
69721         * NEWS: Document the change.
69723 2008-09-29  Bruno Haible  <bruno@clisp.org>
69725         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
69726         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
69727         ARPA_INET_H directly.
69728         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69730 2008-09-28  Bruno Haible  <bruno@clisp.org>
69732         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
69733         from gl_HEADER_SYS_SOCKET.
69734         (gl_HEADER_SYS_SOCKET): Invoke it.
69735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69737 2008-09-28  Bruno Haible  <bruno@clisp.org>
69739         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
69740         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
69741         Needed on OSF/1 4.0.
69743 2008-09-28  Bruno Haible  <bruno@clisp.org>
69745         Override open more carefully.
69746         * lib/open.c (orig_open): New function.
69747         (rpl_open): Use orig_open instead of open.
69748         * lib/fcntl.in.h: Add special invocation convention.
69749         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
69750         (gl_FUNC_OPEN): Invoke it.
69752         Override freopen more carefully.
69753         * lib/freopen.c (orig_freopen): New function.
69754         (rpl_freopen): Use orig_freopen instead of freopen.
69755         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
69756         (gl_FUNC_FREOPEN): Invoke it.
69758         Override fopen more carefully.
69759         * lib/fopen.c (orig_fopen): New function.
69760         (rpl_fopen): Use orig_fopen instead of fopen.
69761         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
69762         (gl_FUNC_FOPEN): Invoke it.
69763         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
69765 2008-09-28  Bruno Haible  <bruno@clisp.org>
69767         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
69768         SIGPIPE.
69770 2008-09-28  Bruno Haible  <bruno@clisp.org>
69772         * tests/test-sigaction.c (handler, main): Disable the check whether
69773         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
69774         glibc systems with LinuxThreads.
69776 2008-09-28  Bruno Haible  <bruno@clisp.org>
69778         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
69780         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
69781         with AIX xlc.
69782         * lib/fcntl.in.h (open): Likewise.
69783         Reported by Rainer Tammer <tammer@tammer.net>.
69785 2008-09-28  Bruno Haible  <bruno@clisp.org>
69787         * modules/posix_spawnp-tests: New file.
69788         * tests/test-posix_spawn.c: New file.
69789         * tests/test-posix_spawn.in.sh: New file.
69791         New module 'posix_spawnp'.
69792         * modules/posix_spawnp: New file.
69793         * lib/spawnp.c: New file, from GNU libc with modifications.
69794         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
69796         New module 'posix_spawn'.
69797         * modules/posix_spawn: New file.
69798         * lib/spawn.c: New file, from GNU libc with modifications.
69799         * doc/posix-functions/posix_spawn.texi: Mention the new module.
69801         New module 'posix_spawnattr_destroy'.
69802         * modules/posix_spawnattr_destroy: New file.
69803         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
69804         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
69805         module.
69807         New module 'posix_spawnattr_setsigmask'.
69808         * modules/posix_spawnattr_setsigmask: New file.
69809         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
69810         modifications.
69811         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
69812         new module.
69814         New module 'posix_spawnattr_getsigmask'.
69815         * modules/posix_spawnattr_getsigmask: New file.
69816         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
69817         modifications.
69818         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
69819         new module.
69821         New module 'posix_spawnattr_setsigdefault'.
69822         * modules/posix_spawnattr_setsigdefault: New file.
69823         * lib/spawnattr_setdefault.c: New file, from GNU libc with
69824         modifications.
69825         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
69826         new module.
69828         New module 'posix_spawnattr_getsigdefault'.
69829         * modules/posix_spawnattr_getsigdefault: New file.
69830         * lib/spawnattr_getdefault.c: New file, from GNU libc with
69831         modifications.
69832         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
69833         new module.
69835         New module 'posix_spawnattr_setschedpolicy'.
69836         * modules/posix_spawnattr_setschedpolicy: New file.
69837         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
69838         modifications.
69839         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
69840         new module.
69842         New module 'posix_spawnattr_getschedpolicy'.
69843         * modules/posix_spawnattr_getschedpolicy: New file.
69844         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
69845         modifications.
69846         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
69847         new module.
69849         New module 'posix_spawnattr_setschedparam'.
69850         * modules/posix_spawnattr_setschedparam: New file.
69851         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
69852         modifications.
69853         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
69854         new module.
69856         New module 'posix_spawnattr_getschedparam'.
69857         * modules/posix_spawnattr_getschedparam: New file.
69858         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
69859         modifications.
69860         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
69861         new module.
69863         New module 'posix_spawnattr_setpgroup'.
69864         * modules/posix_spawnattr_setpgroup: New file.
69865         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
69866         modifications.
69867         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
69868         module.
69870         New module 'posix_spawnattr_getpgroup'.
69871         * modules/posix_spawnattr_getpgroup: New file.
69872         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
69873         modifications.
69874         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
69875         module.
69877         New module 'posix_spawnattr_setflags'.
69878         * modules/posix_spawnattr_setflags: New file.
69879         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
69880         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
69881         module.
69883         New module 'posix_spawnattr_getflags'.
69884         * modules/posix_spawnattr_getflags: New file.
69885         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
69886         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
69887         module.
69889         New module 'posix_spawnattr_init'.
69890         * modules/posix_spawnattr_init: New file.
69891         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
69892         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
69893         module.
69895         New module 'posix_spawn_file_actions_destroy'.
69896         * modules/posix_spawn_file_actions_destroy: New file.
69897         * lib/spawn_faction_destroy.c: New file, from GNU libc with
69898         modifications.
69899         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
69900         the new module.
69902         New module 'posix_spawn_file_actions_addopen'.
69903         * modules/posix_spawn_file_actions_addopen: New file.
69904         * lib/spawn_faction_addopen.c: New file, from GNU libc with
69905         modifications.
69906         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
69907         the new module.
69909         New module 'posix_spawn_file_actions_adddup2'.
69910         * modules/posix_spawn_file_actions_adddup2: New file.
69911         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
69912         modifications.
69913         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
69914         the new module.
69916         New module 'posix_spawn_file_actions_addclose'.
69917         * modules/posix_spawn_file_actions_addclose: New file.
69918         * lib/spawn_faction_addclose.c: New file, from GNU libc with
69919         modifications.
69920         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
69921         the new module.
69923         New module 'posix_spawn_file_actions_init'.
69924         * modules/posix_spawn_file_actions_init: New file.
69925         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
69926         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
69927         new module.
69929         New module 'posix_spawn-internal'.
69930         * modules/posix_spawn-internal: New file.
69931         * lib/spawn_int.h: New file, from GNU libc with modifications.
69932         * lib/spawni.c: New file, from GNU libc with modifications.
69933         * m4/posix_spawn.m4: New file.
69935         New module 'spawn'.
69936         * modules/spawn: New file.
69937         * lib/spawn.in.h: New file, from GNU libc with modifications.
69938         * m4/spawn_h.m4: New file.
69939         * doc/posix-headers/spawn.texi: Mention the new module.
69941 2008-09-28  Bruno Haible  <bruno@clisp.org>
69943         * modules/sched-tests: New file.
69944         * tests/test-sched.c: New file.
69946         New module 'sched'.
69947         * modules/sched: New file.
69948         * lib/sched.in.h: New file.
69949         * m4/sched_h.m4: New file.
69950         * doc/posix-headers/sched.texi: Mention the new module.
69952 2008-09-27  Eric Blake  <ebb9@byu.net>
69954         Fix previous patch, and tweak references to $0.
69955         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
69956         (func_version, func_gnulib_dir): Don't call this program
69957         gnulib-tool.
69958         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
69959         with using $0 in function.
69960         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
69961         (func_fatal_error): Reuse the name the user invoked us with.
69963 2008-09-27  Bruno Haible  <bruno@clisp.org>
69965         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
69966         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
69967         (gl_ICONV_H): Not here.
69968         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
69969         instead of assigning ICONV_H directly.
69971         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
69972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
69973         WCHAR_H directly.
69975 2008-09-27  Bruno Haible  <bruno@clisp.org>
69977         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
69978         * modules/arpa_inet (Depends-on): Add link-warning.
69979         (Makefile.am): Insert the definition of GL_LINK-WARNING.
69980         * modules/unistd (Makefile.am): Likewise.
69982 2008-09-26  Bruno Haible  <bruno@clisp.org>
69984         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
69985         variables.
69986         (func_version): Essentially copied from gnulib-tool.
69987         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
69988         func_readlink): Copied from gnulib-tool.
69990 2008-09-26  Bruno Haible  <bruno@clisp.org>
69992         * gnulib-tool (func_version): Change directory to $gnulib_dir before
69993         invoking git-version-gen.
69995 2008-09-26  Bruno Haible  <bruno@clisp.org>
69997         * posix-modules: Update to directory names changed on 2008-01-19.
69998         Remove commas in output before splitting into words. No more need to
69999         avoid 'ftruncate' since 2007-02-19.
70001 2008-09-26  Bruno Haible  <bruno@clisp.org>
70003         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
70005 2008-09-26  Bruno Haible  <bruno@clisp.org>
70007         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
70008         * modules/fwriteerror (Depends-on): Add errno.
70010 2008-09-26  Bruno Haible  <bruno@clisp.org>
70012         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
70013         * tests/test-vc-list-files-cvs.sh: Likewise.
70015 2008-09-26  Bruno Haible  <bruno@clisp.org>
70017         * doc/posix-headers/sys_resource.texi: Reorder items.
70019 2008-09-26  Jim Meyering  <meyering@redhat.com>
70021         fts: tweak inode comparison function
70022         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
70023         inode numbers, as documented.
70025         fts: sort dirent entries on inode number before traversing
70026         This avoids a quadratic, seek-related performance penalty when
70027         operating on a directory containing many entries (measurable at 10k;
70028         3.5 hours at 2 million entries with a cold cache) on certain types
70029         of file systems, including ext3 and ext4, but not tmpfs.
70030         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
70031         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
70032         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
70033         (fs_handles_readdir_ordered_dirents_efficiently): New function.
70034         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
70035         (fts_build): Set the stat.st_ino member from D_INO.
70036         If it is likely to be useful, sort dirent entries on inode number.
70038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
70039         and the struct statfs.f_type member.
70040         * modules/fts (Depends-on): Add d-ino.
70042 2008-09-26  Bruno Haible  <bruno@clisp.org>
70044         * modules/sigpipe-die (Depends-on): Add sigpipe.
70046         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
70047         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
70048         and GNULIB_STDIO_H_SIGPIPE are set.
70049         * lib/stdio-write.c: New file.
70050         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
70051         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
70052         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
70053         REPLACE_STDIO_WRITE_FUNCS.
70054         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
70055         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
70056         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
70057         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
70058         * modules/stdio (Files): Add lib/stdio-write.c.
70059         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
70060         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
70061         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
70062         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
70063         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
70064         REPLACE_FPRINTF_POSIX.
70065         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
70066         REPLACE_PRINTF_POSIX.
70067         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
70068         REPLACE_VFPRINTF_POSIX.
70069         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
70070         REPLACE_VPRINTF_POSIX.
70071         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
70072         SIGPIPE issue.
70073         * doc/posix-functions/fputc.texi: Likewise.
70074         * doc/posix-functions/fputs.texi: Likewise.
70075         * doc/posix-functions/fwrite.texi: Likewise.
70076         * doc/posix-functions/printf.texi: Likewise.
70077         * doc/posix-functions/putc.texi: Likewise.
70078         * doc/posix-functions/putchar.texi: Likewise.
70079         * doc/posix-functions/puts.texi: Likewise.
70080         * doc/posix-functions/vfprintf.texi: Likewise.
70081         * doc/posix-functions/vprintf.texi: Likewise.
70083         * modules/safe-write (Depends-on): Add write.
70085         * modules/sigpipe-tests: New file.
70086         * tests/test-sigpipe.c: New file.
70087         * tests/test-sigpipe.sh: New file.
70089         * modules/write: New file.
70090         * lib/unistd.in.h: Include <sys/types.h>.
70091         (write): New declaration.
70092         * lib/write.c: New file.
70093         * m4/write.m4: New file.
70094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70095         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
70096         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
70097         GNULIB_WRITE, REPLACE_WRITE.
70098         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
70099         and the SIGPIPE issue.
70101         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
70102         (raise): New declaration.
70103         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
70104         (ext_signal): New function.
70105         (rpl_raise): New function.
70106         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
70107         GNULIB_SIGNAL_H_SIGPIPE.
70108         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
70109         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
70111         * modules/sigpipe: New file.
70112         * m4/sigpipe.m4: New file.
70114 2008-09-25  Derek Price  <derek@ximbiot.com>
70115             Bruno Haible  <bruno@clisp.org>
70117         * gnulib-tool (func_import): Report all license incompatibilities, not
70118         just the first one.
70120 2008-09-25  Bruno Haible  <bruno@clisp.org>
70122         * gnulib-tool (func_import): When computing the edits, consider not
70123         only the Makefile.ams that exist but also those that will be generated.
70125 2008-09-25  Simon Josefsson  <simon@josefsson.org>
70127         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
70128         fixes gnulib-tool --test warning about duplicate dependency.
70130 2008-09-25  Bruno Haible  <bruno@clisp.org>
70132         * gnulib-tool: Don't ask the user to perform edits in the generated
70133         Makefile.ams.
70134         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
70135         apply to the Makefile.am being generated.
70136         (func_emit_tests_Makefile_am): Execute edits that apply to the
70137         Makefile.am being generated.
70138         (func_import): Setup list of Makefile.am edits before emitting the
70139         Makefile.ams, not at the end.
70140         (func_create_testdir): Update.
70141         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70143 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70145         * gnulib-tool (func_import): Store the --tests-base option in the
70146         comment in gnulib-cache.m4.
70148 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
70150         * NEWS: Document increased portability that sys_select now provides.
70152         * lib/sys_select.in.h: Install select wrapper.
70153         * lib/sys_socket.in.h: Use more descriptive name when there is no
70154         select wrapper.
70155         * lib/winsock-select.c: New.
70156         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
70157         Require gl_HEADER_SYS_SOCKET.
70158         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
70159         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
70160         * tests/test-sys_select.c: Add functional tests.
70162 2008-09-24  Eric Blake  <ebb9@byu.net>
70164         open, fopen: close fd leak in last patch
70165         * lib/open.c (rpl_open): Close fd before returning error.
70166         * lib/fopen.c (rpl_fopen): Close fd before returning error.
70167         * doc/posix-functions/open.texi (open): Document that Irix also
70168         has the bug.
70169         * doc/posix-functions/fopen.texi (fopen): Likewise.
70170         Reported by Paolo Bonzini.
70172 2008-09-24  Bruno Haible  <bruno@clisp.org>
70174         Ensure that a filename ending in a slash cannot be used to access a
70175         non-directory.
70176         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
70177         to check whether it's really a directory.
70178         * lib/fopen.c: Include fcntl.h, unistd.h.
70179         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
70180         and fdopen().
70181         * modules/fopen (Depends-on): Add unistd.
70182         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
70183         * tests/test-fopen.c (main): Likewise.
70184         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
70185         * doc/posix-functions/fopen.texi: Likewise.
70186         Reported by Eric Blake.
70188 2008-09-23  Eric Blake  <ebb9@byu.net>
70190         c-stack: avoid compiler optimizations when provoking overflow
70191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
70192         recursion harder to optimize, to ensure a stack overflow occurs.
70193         * tests/test-c-stack.c (recurse): Likewise.
70194         Borrowed from libsigsegv.
70196         c-stack: work around Irix sigaltstack bug
70197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
70198         whether sigaltstack uses wrong end of stack_t (copied in part from
70199         libsigsegv).
70200         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
70201         Irix bug, without requiring an over-allocation.
70202         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
70203         bug.
70205         fopen: document mingw bug on directories
70206         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
70207         not allowing a stream visiting a directory, even though reading
70208         from such a stream is not portable.
70210 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70212         * lib/poll.c: Rewrite.
70213         * modules/poll: Depend on alloca.
70215 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70217         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
70218         instead define prototypes for a full set of wrappers.  Ensure
70219         that Cygwin does not use the compatibility code, which is only
70220         for MinGW.
70221         * lib/winsock.c: New.
70222         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
70223         * modules/sys_socket: Add lib/winsock.c.
70225         * modules/poll-tests: Add errno and perror.
70226         * tests/test-poll.c: Use ioctl, not ioctlsocket.
70228 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70230         * tests/test-poll.c: Downgrade minimum needed Winsock version.
70232 2008-09-23  Bruno Haible  <bruno@clisp.org>
70234         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
70235         * doc/glibc-functions/*: Likewise.
70237 2008-09-23  Simon Josefsson  <simon@josefsson.org>
70239         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
70240         success.
70242 2008-09-22  Eric Blake  <ebb9@byu.net>
70243             Bruno Haible  <bruno@clisp.org>
70245         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
70246         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
70247         supply %A but mishandle pseudo-NaN.
70248         Reported by Simon Josefsson.
70250 2008-09-21  Bruno Haible  <bruno@clisp.org>
70252         * tests/test-lock.c (main): Tweak skip message.
70253         * tests/test-tls.c (main): Likewise.
70255 2008-09-21  Bruno Haible  <bruno@clisp.org>
70257         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
70258         whether 'struct sigaction' has sa_sigaction here...
70259         (gl_PREREQ_SIG_HANDLER_H): ... not here.
70260         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
70262 2008-09-21  Bruno Haible  <bruno@clisp.org>
70264         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
70265         section.
70266         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
70267         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
70268         the new section.
70269         (Support for obsolete systems lacking POSIX:2001): New section.
70270         (String handling <string.h>): Move strdup to the new section.
70271         Suggested by Simon Josefsson and Paolo Bonzini.
70273 2008-09-21  Bruno Haible  <bruno@clisp.org>
70275         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
70276         exponents in %e and %g results on 'long double'. Needed for mingw's
70277         improved *printf functions.
70278         * tests/test-vasprintf-posix.c (test_function): Likewise.
70279         * tests/test-snprintf-posix.h (test_function): Likewise.
70280         * tests/test-sprintf-posix.h (test_function): Likewise.
70281         Reported by Eric Blake.
70283 2008-09-21  Bruno Haible  <bruno@clisp.org>
70285         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
70286         * tests/test-sprintf-posix.h (test_function): Likewise.
70288 2008-09-21  Bruno Haible  <bruno@clisp.org>
70290         * modules/getpass (Depends-on): Add strdup-posix.
70292         New module 'strdup-posix'.
70293         * modules/strdup-posix: New file.
70294         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
70295         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
70296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70297         REPLACE_STRDUP.
70298         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
70299         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
70300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70301         strdup-posix.
70303         * modules/strdup (Depends-on): Remove malloc-posix.
70305 2008-09-20  Bruno Haible  <bruno@clisp.org>
70307         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
70308         Wildenhues.
70310 2008-09-20  Bruno Haible  <bruno@clisp.org>
70312         Ensure that wint_t gets defined on IRIX 5.3.
70313         * lib/wchar.in.h (wint_t): Define if not defined by the system.
70314         * lib/wctype.in.h (wint_t): Likewise.
70315         (__wctype_wint_t): Remove type.
70316         (isw*): Use wint_t instead of __wctype_wint_t.
70317         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
70318         * modules/wchar (Files): Add m4/wint_t.m4.
70319         (Makefile.am): Substitute HAVE_WINT_T.
70320         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
70321         * tests/test-wctype.c: Check that wint_t is defined.
70322         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
70323         * doc/posix-headers/wctype.texi: Likewise.
70324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70326 2008-09-18  Bruno Haible  <bruno@clisp.org>
70328         * gnulib-tool (func_exit): Update comment.
70330 2008-09-18  Simon Josefsson  <simon@josefsson.org>
70332         * modules/getaddrinfo (Depends-on): Remove strdup, this module
70333         assumes strdup exists and does not depend on strdup to return
70334         ENOMEM on out of memory conditions.
70336 2008-09-18  Bruno Haible  <bruno@clisp.org>
70338         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
70339         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
70340         digits for the exponent.
70342 2008-09-18  Jim Meyering  <meyering@redhat.com>
70343             Bruno Haible  <bruno@clisp.org>
70345         * lib/vasnprintf.c (decimal_point_char): Define also if
70346         NEED_PRINTF_INFINITE_LONG_DOUBLE.
70348 2008-09-16  Bruno Haible  <bruno@clisp.org>
70349         and Eric Blake  <ebb9@byu.net>
70351         vasnprintf: support Irix 5.3
70352         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
70353         that mishandle long double infinity.
70354         Reported by Tom G. Christensen.
70356 2008-09-16  Bruno Haible  <bruno@clisp.org>
70358         * doc/glibc-functions/scandir.texi: Mention the function is missing on
70359         Solaris 9.
70360         * doc/glibc-functions/alphasort.texi: Likewise.
70361         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
70363 2008-09-16  Jim Meyering  <meyering@redhat.com>
70365         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
70366         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
70367         a umask modification leak out of a subshell.  Otherwise, the
70368         opensolaris /bin/sh would be accepted and thus cause unwarranted
70369         failures in the coreutils test suite.
70371 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
70373         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
70374         to succeed.
70376 2008-09-16  Jim Meyering  <meyering@redhat.com>
70378         avoid spurious test failure when library is built without ACL support
70379         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
70380         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
70381         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
70382         * tests/test-copy-acl.sh: Likewise.
70384 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70386         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
70387         based on character occurrence counts.
70389 2008-09-15  Eric Blake  <ebb9@byu.net>
70391         tests: avoid some compiler warnings
70392         * tests/test-memchr.c (main): Pass NULL indirectly.
70393         * tests/test-closein.c (main): Avoid unused variable.
70395 2008-09-15  Bruno Haible  <bruno@clisp.org>
70397         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
70398         are missing on OpenBSD 4.0 individually.
70399         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70401 2008-09-15  Bruno Haible  <bruno@clisp.org>
70403         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
70404         * doc/posix-functions/strerror.texi: Mention also Cygwin.
70405         * doc/posix-functions/perror.texi: Likewise.
70406         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
70407         is missing.
70408         Reported by Eric Blake.
70410         * lib/errno.in.h: Use replacement values >= 2000.
70411         Reported by Eric Blake.
70413 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70415         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
70416         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
70417         limit.
70418         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
70419         compareseq was aborted.
70421 2008-09-14  Bruno Haible  <bruno@clisp.org>
70423         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
70424         yvec_edit_count.
70425         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
70426         (fstrcmp_bounded): Simplify result computation accordingly.
70428 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70430         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
70431         (fstrcmp): Define in terms of fstrcmp_bounded.
70432         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
70433         lower_bound argument.
70434         Return quickly if the result is certainly < lower_bound.
70435         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
70437 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70439         * lib/diffseq.h (EARLY_ABORT): New macro.
70440         (compareseq): Change return type to bool. Return true when EARLY_ABORT
70441         evaluates to true.
70443 2008-09-14  Bruno Haible  <bruno@clisp.org>
70445         * modules/perror-tests: New file.
70446         * tests/test-perror.sh: New file.
70447         * tests/test-perror.c: New file.
70449         New module 'perror'.
70450         * lib/stdio.in.h (perror): New declaration.
70451         * lib/perror.c: New file.
70452         * m4/perror.m4: New file.
70453         * modules/perror: New file.
70454         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
70455         * doc/posix-functions/perror.texi: Mention the perror module.
70456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
70457         REPLACE_PERROR.
70458         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
70459         REPLACE_PERROR.
70461 2008-09-14  Bruno Haible  <bruno@clisp.org>
70463         * modules/stdio (Makefile.am): Reorder to match the order in
70464         lib/stdio.in.h.
70465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70467 2008-09-13  Bruno Haible  <bruno@clisp.org>
70469         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
70471 2008-09-13  Bruno Haible  <bruno@clisp.org>
70473         Extend strerror to cover the added errno values.
70474         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
70475         (rpl_strerror): Provide error messages for the added errno values and
70476         for the WSA* values.
70477         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
70478         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
70479         strerror.
70480         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
70481         * modules/strerror (Depends-on): Add errno.
70482         * doc/posix-functions/strerror.texi: Document the change.
70483         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
70484         and EOVERFLOW.
70486 2008-09-13  Bruno Haible  <bruno@clisp.org>
70488         * modules/EOVERFLOW: Remove file.
70489         * m4/eoverflow.m4: Remove file.
70490         * modules/EOVERFLOW-tests: Remove file.
70491         * tests/test-EOVERFLOW.c: Remove file.
70492         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
70493         * modules/ftell (Depends-on): Likewise.
70494         * modules/getdelim (Depends-on): Likewise.
70495         * modules/getugroups (Depends-on): Likewise.
70496         * modules/poll (Depends-on): Likewise.
70497         * modules/snprintf (Depends-on): Likewise.
70498         * modules/sprintf-posix (Depends-on): Likewise.
70499         * modules/vasnprintf (Depends-on): Likewise.
70500         * modules/vasprintf (Depends-on): Likewise.
70501         * modules/vfprintf-posix (Depends-on): Likewise.
70502         * modules/vsnprintf (Depends-on): Likewise.
70503         * modules/vsprintf-posix (Depends-on): Likewise.
70504         * modules/xvasprintf (Depends-on): Likewise.
70505         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
70506         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
70507         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
70508         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
70509         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
70510         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
70511         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
70512         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
70513         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
70514         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
70515         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
70516         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
70517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
70518         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
70519         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
70520         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
70521         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
70522         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
70523         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
70524         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
70525         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
70526         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
70527         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
70528         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
70529         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
70530         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
70531         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
70532         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
70533         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
70534         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
70535         * MODULES.html.sh: Remove EOVERFLOW.
70536         * NEWS: Mention the change.
70538 2008-09-13  Bruno Haible  <bruno@clisp.org>
70540         * modules/errno-tests: New file.
70541         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
70543         * lib/errno.in.h: New file.
70544         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
70545         * modules/errno: New file.
70546         * doc/posix-headers/errno.texi: Update documentation.
70547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
70549 2008-09-13  Bruno Haible  <bruno@clisp.org>
70551         * tests/test-poll.c: Use #if for native Windows, rather than testing
70552         __MSVCRT__.
70554 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70555             Bruno Haible  <bruno@clisp.org>
70557         * lib/glob.c: Don't include <pwd.h> on native Windows.
70558         (WINDOWS32): New macro.
70559         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
70561 2008-09-13  Bruno Haible  <bruno@clisp.org>
70563         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
70564         (ETIMEDOUT): Remove macro.
70565         (glthread_cond_timedwait_multithreaded): New declaration.
70566         (glthread_cond_timedwait): Use it.
70567         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
70568         (glthread_cond_timedwait_multithreaded): New function.
70570 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70572         * modules/poll-tests: Do not check for io.h.
70573         * tests/test-poll.c: Check for __MSVCRT__ instead.
70575 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70577         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
70578         * modules/poll-tests: Add inet_pton, stdbool, sockets.
70579         * tests/test-poll.c: Use them.  Use _pipe on Windows.
70581 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70583         * modules/poll-tests: New.
70584         * tests/test-poll.c: New.
70586 2008-09-12  Eric Blake  <ebb9@byu.net>
70588         frexp: test for NetBSD failure on -0.0
70589         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
70590         not all, bugs from NetBSD 3.0 have been fixed.
70591         * doc/posix-functions/frexp.texi (frexp): Document bug.
70592         Reported by Thomas Klausner.
70594         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
70595         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
70596         literal -0.0.
70597         Reported by Jonathan C. Patschke <jp@centtech.com>.
70599 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70601         * lib/glthread/cond.h: Use dummy implementation also if
70602         USE_WIN32_THREADS.
70604 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70606         * modules/fnmatch-posix (License): Change to LGPLv2+.
70607         * modules/fnmatch-gnu (License): Likewise.
70609 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70611         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
70613 2008-09-11  Jim Meyering  <meyering@redhat.com>
70615         * users.txt: Add gtk-vnc.
70617 2008-09-08  Simon Josefsson  <simon@josefsson.org>
70619         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
70620         rotate amounts.
70622         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
70623         required for 16-bit and 8-bit rotates.
70624         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
70625         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
70626         UINT8_MAX instead of hard-coded constants.
70627         Suggested by Paul Eggert.
70629 2008-09-07  Bruno Haible  <bruno@clisp.org>
70631         * tests/test-striconveh.c (main): Check behaviour when converting from
70632         UTF-7.
70634         Make striconveh work better with stateful encodings.
70635         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
70636         that iconv does not increment the inptr when returning -1/EINVAL.
70638 2008-09-07  Bruno Haible  <bruno@clisp.org>
70640         * build-aux/config.rpath: Update according to libtool-2.2.6.
70641         * build-aux/config.libpath: Likewise.
70643 2008-09-06  Bruno Haible  <bruno@clisp.org>
70645         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
70646         * lib/freadptr.c (freadptr): Likewise.
70647         * lib/freadseek.c (freadptrinc): Likewise.
70648         Reported by Simon Josefsson.
70650 2008-09-06  Bruno Haible  <bruno@clisp.org>
70652         * modules/freadptr (License): Change to LGPLv2+.
70653         * modules/freadseek (License): Likewise.
70654         Suggested by Eric Blake.
70656         * modules/memchr2 (License): Change to LGPLv2+.
70657         Approved by Eric Blake.
70659 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70660             Bruno Haible  <bruno@clisp.org>
70662         Make gnulib-tool work with native 'sed' on AIX.
70663         * gnulib-tool (sed_noop): New variable.
70664         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
70665         func_add_or_update, func_create_testdir): Use it to initialize sed
70666         script variables.
70667         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70669 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
70670             Bruno Haible  <bruno@clisp.org>
70672         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
70673         also works after #include directives.
70675 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
70677         getdate.y: reject an out-of-range timezone value
70678         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
70679         the range [-24...+24].  When specified with only one or two digits,
70680         * tests/test-getdate.c: Tests for the fix.
70681         * doc/getdate.texi: Document this change.
70683 2008-09-03  Bruno Haible  <bruno@clisp.org>
70685         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
70687 2008-09-02  Simon Josefsson  <simon@josefsson.org>
70689         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
70690         <bruce.korb@gmail.com> with ideas from Ben Pfaff
70691         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
70692         Blake <ebb9@byu.net>.
70694         * tests/test-bitrotate.c: Add more test vectors.
70696 2008-09-02  Eric Blake  <ebb9@byu.net>
70698         vasnprintf-posix: handle large precision via %.*d
70699         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
70700         when handling it ourselves.
70701         * tests/test-vasnprintf-posix.c (test_function): Add test.
70702         * tests/test-snprintf-posix.h (test_function): Likewise.
70703         * tests/test-sprintf-posix.h (test_function): Likewise.
70704         * tests/test-vasprintf-posix.c (test_function): Likewise.
70705         Reported by Alain Guibert.
70707 2008-09-01  Eric Blake  <ebb9@byu.net>
70709         c-stack: make configure-time check more robust
70710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
70711         successful sigaction call.
70712         Reported by Tom G. Christensen.
70714 2008-09-01  Bruno Haible  <bruno@clisp.org>
70716         New module 'findprog-lgpl'.
70717         * modules/findprog-lgpl: New file.
70718         * lib/findprog-lgpl.c: New file.
70719         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
70720         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
70721         to decide whether to use strdup or xstrdup, concatenated_filename or
70722         xconcatenated_filename.
70724 2008-09-01  Bruno Haible  <bruno@clisp.org>
70726         Split module 'concat-filename' into 'concat-filename' (LGPL) and
70727         'xconcat-filename' (GPL).
70728         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
70729         (License): Change to LGPLv2+.
70730         * modules/xconcat-filename: New file.
70731         * lib/concat-filename.h (concatenated_filename): Change specification.
70732         (xconcatenated_filename): New declaration.
70733         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
70734         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
70735         memory situations.
70736         * lib/xconcat-filename.c: New file.
70737         * NEWS: Mention the change.
70738         * lib/findprog.c: Include concat-filename.h, not filename.h.
70739         (find_in_path): Use xconcatenated_filename instead of
70740         concatenated_filename.
70741         * lib/javacomp.c: Include concat-filename.h, not filename.h.
70742         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70743         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70744         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70745         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
70746         instead of concatenated_filename.
70747         * lib/javaexec.c: Include concat-filename.h, not filename.h.
70748         (execute_java_class): Use xconcatenated_filename instead of
70749         concatenated_filename.
70750         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
70751         * modules/javacomp (Depends-on): Likewise.
70752         * modules/javaexec (Depends-on): Likewise.
70754 2008-09-01  Bruno Haible  <bruno@clisp.org>
70756         Split module 'filename' into 'filename' and 'concat-filename'.
70757         * modules/filename: Keep only lib/filename.h.
70758         (License): Change to LGPLv2+.
70759         * modules/concat-filename: New file, extracted from modules/filename.
70760         * lib/filename.h (concatenated_filename): Remove declaration.
70761         * lib/concat-filename.h: New file, extracted from lib/filename.h.
70762         * lib/concat-filename.c: Include concat-filename.h.
70763         * NEWS: Mention the change.
70765 2008-09-01  Simon Josefsson  <simon@josefsson.org>
70767         * lib/bitrotate.h (rotl8, rotr8): Add.
70769         * modules/bitrotate (configure.ac): Need
70770         AC_REQUIRE([AC_C_INLINE]).
70771         (Description): Mention stdint.h.  Reported by Bruno Haible
70772         <bruno@clisp.org>.
70774         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
70775         Paolo Bonzini <bonzini@gnu.org>.
70777 2008-08-31  Bruno Haible  <bruno@clisp.org>
70779         Assume Solaris specific bi-arch conventions on Solaris systems.
70780         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
70781         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
70782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
70783         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
70784         like acl_libdirstem.
70785         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
70786         acl_libdirstem.
70787         * NEWS: Mention the change.
70788         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
70790 2008-08-31  Jim Meyering  <meyering@redhat.com>
70792         * lib/strftime.h: Add comments describing the two added arguments.
70794         remove duplicate #include directives
70795         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
70796         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
70798 2008-08-31  Bruno Haible  <bruno@clisp.org>
70800         New module 'sigpipe-die'.
70801         * modules/sigpipe-die: New file.
70802         * lib/sigpipe-die.h: New file.
70803         * lib/sigpipe-die.c: New file.
70804         * MODULES.html.sh (Signal handling): Add sigpipe-die.
70806 2008-08-31  Bruno Haible  <bruno@clisp.org>
70808         Don't override previously installed signal handlers.
70809         * lib/fatal-signal.c (saved_sigactions): New variable.
70810         (uninstall_handlers): Reset the signal to the saved handler, not
70811         to SIG_DFL (except when ignored).
70812         (install_handlers): Save the previous handlers.
70814 2008-08-30  Bruno Haible  <bruno@clisp.org>
70816         * gnulib-tool (func_reset_sigpipe): New function.
70817         (func_get_automake_snippet, func_modules_transitive_closure,
70818         func_import): Invoke it before a join command that reads from stdin,
70819         to avoid "echo: write error: Broken pipe" error messages on stderr.
70820         Reported by Sam Steingold <sds@gnu.org>.
70822 2008-08-30  Bruno Haible  <bruno@clisp.org>
70824         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
70825         Code copied from m4/open.m4.
70826         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
70827         access and the filename ends in a slash. Code copied from lib/open.c.
70828         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
70829         * tests/test-fopen.c (main): Check against bug with trailing slash.
70831 2008-08-29  Bruno Haible  <bruno@clisp.org>
70833         Avoid some "gcc -pedantic" warnings.
70834         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
70835         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
70836         * lib/dirent.in.h: Likewise.
70837         * lib/fcntl.in.h: Likewise.
70838         * lib/float.in.h: Likewise.
70839         * lib/iconv.in.h: Likewise.
70840         * lib/inttypes.in.h: Likewise.
70841         * lib/locale.in.h: Likewise.
70842         * lib/math.in.h: Likewise.
70843         * lib/netinet_in.in.h: Likewise.
70844         * lib/search.in.h: Likewise.
70845         * lib/signal.in.h: Likewise.
70846         * lib/stdarg.in.h: Likewise.
70847         * lib/stdint.in.h: Likewise.
70848         * lib/stdio.in.h: Likewise.
70849         * lib/stdlib.in.h: Likewise.
70850         * lib/string.in.h: Likewise.
70851         * lib/strings.in.h: Likewise.
70852         * lib/sys_select.in.h: Likewise.
70853         * lib/sys_socket.in.h: Likewise.
70854         * lib/sys_stat.in.h: Likewise.
70855         * lib/sys_time.in.h: Likewise.
70856         * lib/sysexits.in.h: Likewise.
70857         * lib/time.in.h: Likewise.
70858         * lib/unistd.in.h: Likewise.
70859         * lib/wchar.in.h: Likewise.
70860         * lib/wctype.in.h: Likewise.
70861         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
70862         * modules/fchdir (Makefile.am): Likewise.
70863         * modules/fcntl (Makefile.am): Likewise.
70864         * modules/float (Makefile.am): Likewise.
70865         * modules/iconv_open (Makefile.am): Likewise.
70866         * modules/inttypes (Makefile.am): Likewise.
70867         * modules/locale (Makefile.am): Likewise.
70868         * modules/math (Makefile.am): Likewise.
70869         * modules/netinet_in (Makefile.am): Likewise.
70870         * modules/search (Makefile.am): Likewise.
70871         * modules/signal (Makefile.am): Likewise.
70872         * modules/stdarg (Makefile.am): Likewise.
70873         * modules/stdint (Makefile.am): Likewise.
70874         * modules/stdio (Makefile.am): Likewise.
70875         * modules/stdlib (Makefile.am): Likewise.
70876         * modules/string (Makefile.am): Likewise.
70877         * modules/strings (Makefile.am): Likewise.
70878         * modules/sys_select (Makefile.am): Likewise.
70879         * modules/sys_socket (Makefile.am): Likewise.
70880         * modules/sys_stat (Makefile.am): Likewise.
70881         * modules/sys_time (Makefile.am): Likewise.
70882         * modules/sysexits (Makefile.am): Likewise.
70883         * modules/time (Makefile.am): Likewise.
70884         * modules/unistd (Makefile.am): Likewise.
70885         * modules/wchar (Makefile.am): Likewise.
70886         * modules/wctype (Makefile.am): Likewise.
70887         Reported by Reuben Thomas <rrt@sc3d.org>.
70889 2008-08-29  Bruno Haible  <bruno@clisp.org>
70891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
70892         any more.
70894 2008-08-29  Simon Josefsson  <simon@josefsson.org>
70896         * MODULES.html.sh (Misc): Add bitrotate.
70898         * modules/bitrotate: New file.
70900         * lib/bitrotate.h: New file.
70902         * modules/bitrotate-tests: New file.
70904         * tests/test-bitrotate.c: New file.
70906         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
70907         on the bitrotate module.
70909         * lib/arctwo.c: Use new bitrotate module.
70911 2008-08-29  Jim Meyering  <meyering@redhat.com>
70913         bootstrap: merge changes from coreutils
70914         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
70915         of copied files.  Remove a kludge, now that this is fixed.
70916         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
70917         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
70918         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
70920 2008-08-29  Bruno Haible  <bruno@clisp.org>
70922         * MODULES.html.sh: Remove --cvs-urls option.
70924 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
70926         maint.mk: adjust to file name change
70927         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
70929 2008-08-28  Jim Meyering  <meyering@redhat.com>
70931         * modules/getndelim2 (License): Relicense to LGPLv2+.
70932         Approved by Richard Stallman for the version of 1995, and by
70933         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
70935 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
70937         * lib/getdelim.c (flockfile, funlockfile): Make all of them
70938         dummy if one is not available.  Do not touch them if
70939         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
70940         (getc_maybe_unlocked): New.
70941         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
70943 2008-08-26  Eric Blake  <ebb9@byu.net>
70945         doc/INSTALL: resync from autoconf
70946         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
70947         (INSTALL_PRELUDE): Delete; this is done more efficiently by
70948         moving...
70949         * install.texi [!autoconf]: ...here.  Resync from autoconf.
70950         * INSTALL: Regenerate.
70951         * INSTALL.ISO: New file.
70952         * INSTALL.UTF-8: Likewise.
70954 2008-08-26  Jim Meyering  <meyering@redhat.com>
70956         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
70957         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
70958         these definitions conditional, so that they may be overridden, too.
70960 2008-08-26  Bruno Haible  <bruno@clisp.org>
70962         Generate INSTALL file variants with prettier quotes.
70963         * doc/Makefile (INSTALL_PRELUDE): New macro.
70964         (INSTALL): Use it.
70965         (INSTALL.ISO, INSTALL.UTF-8): New rules.
70967 2008-08-26  Bruno Haible  <bruno@clisp.org>
70969         Run makeinfo in an English locale.
70970         * doc/Makefile (MAKEINFO): New variable.
70972 2008-08-26  Bruno Haible  <bruno@clisp.org>
70974         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
70975         Suggested by Eric Blake.
70977 2008-08-25  Bruno Haible  <bruno@clisp.org>
70979         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
70981 2008-08-25  Eric Blake  <ebb9@byu.net>
70983         c-stack: test that stack overflow can be caught
70984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
70985         that platform allows handling stack overflow; at least OS/2 EMX
70986         has sigaltstack, but crashes before transferring control to
70987         handler on stack overflow.
70988         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
70989         check for HAVE_STACK_OVERFLOW_HANDLING.
70990         Reported by Elbert Pol.
70992 2008-08-25  Bruno Haible  <bruno@clisp.org>
70994         * doc/posix-functions/strftime.texi: Fix description of strftime
70995         module.
70997 2008-08-24  Bruno Haible  <bruno@clisp.org>
70999         * tests/uniwidth/test-uc_width2.c: New file.
71000         * tests/uniwidth/test-uc_width2.sh: New file.
71001         * modules/uniwidth/width-tests (Files): Add the new files.
71002         (TESTS): Add uniwidth/test-uc_width2.sh.
71003         (TESTS_ENVIRONMENT): New variable.
71004         (check_PROGRAMS): Add test-uc_width2.
71005         (test_uc_width2_SOURCES): New variable.
71007         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
71008         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
71009         not 0x00AB.
71010         Reported by Alexander V. Lukyanov <lav@netis.ru>.
71012 2008-08-22  Eric Blake  <ebb9@byu.net>
71014         test-lock, test-tls: mention why a test is skipped
71015         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
71016         skipped.
71017         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
71019         count-one-bits: relax license
71020         * modules/count-one-bits (License): Relicense to LGPLv2+.
71021         Suggested by Ludovic Courtès, approved by Ben Pfaff.
71023 2008-08-22  Andreas Schwab  <schwab@suse.de>
71025         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71026         Remove spurious space in assignment.
71028 2008-08-21  Simon Josefsson  <simon@josefsson.org>
71030         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
71031         Paul Eggert <eggert@CS.UCLA.EDU>.
71033 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
71035         * modules/gettext: Add m4/threadlib.m4.
71037 2008-08-19  Eric Blake  <ebb9@byu.net>
71039         test-c-stack: fix compilation failure on FreeBSD 5.0
71040         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
71041         headers before <sys/resource.h>.
71042         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
71043         the bug.
71044         Reported by Nelson H. F. Beebe.
71046         strverscmp: migrate from "strverscmp.h" to <string.h>
71047         * modules/string (Makefile.am): Add new hooks.
71048         * modules/strverscmp (Files): Remove strverscmp.h.
71049         (Depends-on): Add string.
71050         (configure.ac): Add indicator.
71051         (Include): Mention new header.
71052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
71053         defaults.
71054         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
71055         results.
71056         * lib/strverscmp.h: Delete.
71057         * lib/string.in.h (strverscmp): Provide declaration, when needed.
71058         * tests/test-strverscmp.c (includes): Adjust client.
71059         * lib/check-version.c (includes): Likewise.
71060         * NEWS: Document the change.
71062         strverscmp: add unit test
71063         * modules/strverscmp-tests: New file.
71064         * tests/test-strverscmp.c: Likewise.
71066 2008-08-19  Simon Josefsson  <simon@josefsson.org>
71068         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
71069         regarding Windows crypto stuff, from Mono.
71071 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
71073         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
71074         if present, for intel RND.  Return error on failures.
71076 2008-08-18  Ben Pfaff  <blp@gnu.org>
71078         gitlog-to-changelog: give better diagnostic for failed pipe-open
71079         * build-aux/gitlog-to-changelog: Improve error message: suggest
71080         that the version of Git may be too old.
71082 2008-08-18  Simon Josefsson  <simon@josefsson.org>
71084         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
71085         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
71087 2008-08-18  Bruno Haible  <bruno@clisp.org>
71089         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
71090         pthread_in_use().
71092 2008-08-18  Bruno Haible  <bruno@clisp.org>
71094         * lib/glthread/threadlib.c: Include <pthread.h>.
71096 2008-08-18  Bruno Haible  <bruno@clisp.org>
71098         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
71099         glthread_recursive_lock_* macros.
71100         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
71101         Fix syntax error.
71103 2008-08-18  Bruno Haible  <bruno@clisp.org>
71105         * lib/glthread/thread.c: Avoid forcing a context switch right after
71106         thread creation.
71108 2008-08-17  Bruno Haible  <bruno@clisp.org>
71110         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
71111         * lib/glthread/thread.h: Provide Win32 specific implementation.
71112         * modules/thread (Files): Add lib/glthread/thread.c.
71113         (Depends-on): Add lock.
71114         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
71116 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71118         New module 'yield'.
71119         * modules/yield: New file.
71120         * lib/glthread/yield.h: New file.
71121         * m4/yield.m4: New file.
71122         * MODULES.html.sh (Multithreading): Add yield.
71124 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71126         New module 'thread'.
71127         * modules/thread: New file.
71128         * lib/glthread/thread.h: New file.
71129         * m4/thread.m4: New file.
71130         * MODULES.html.sh (Multithreading): Add thread.
71132 2008-08-17  Bruno Haible  <bruno@clisp.org>
71134         * lib/glthread/lock.h: Include <stdlib.h> always.
71135         * lib/glthread/tls.h: Likewise.
71136         * lib/glthread/cond.h: Likewise.
71138 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71140         New module 'cond'.
71141         * modules/cond: New file.
71142         * lib/glthread/cond.h: New file.
71143         * lib/glthread/cond.c: New file.
71144         * m4/cond.m4: New file.
71145         * MODULES.html.sh (Multithreading): Add cond.
71147 2008-08-16  Eric Blake  <ebb9@byu.net>
71149         c-stack: fix regression on Irix 5.3 from 2008-06-21
71150         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
71151         sa_sigaction...
71152         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
71153         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
71154         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
71155         * modules/signal (Makefile.am): Use the value.
71156         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
71157         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
71158         * doc/posix-headers/signal.texi (signal.h): Document this
71159         portability issue.
71160         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
71161         Reported by Tom G. Christensen.
71163 2008-08-17  Bruno Haible  <bruno@clisp.org>
71165         New module 'threadlib'.
71166         * modules/threadlib: New file.
71167         * lib/glthread/threadlib.c: New file, extracted from
71168         lib/glthread/lock.c.
71169         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
71170         functions.
71171         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
71172         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
71173         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
71174         macros.
71175         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
71176         (gl_DISABLE_THREADS): Remove macro.
71177         * modules/lock (Files): Remove build-aux/config.rpath.
71178         (Depends-on): Remove havelib. Add threadlib.
71179         (configure.ac-early): Remove section.
71180         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
71181         * modules/tls (Depends-on): Remove lock. Add threadlib.
71182         (Link): New section, copied from threadlib.
71183         * MODULES.html.sh (Multithreading): Add threadlib.
71185 2008-08-14  Bruno Haible  <bruno@clisp.org>
71187         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
71188         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
71189         glthread_rwlock_unlock, glthread_rwlock_destroy,
71190         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
71191         glthread_recursive_lock_destroy): Define as macros always.
71192         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
71193         glthread_lock_lock.
71194         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
71195         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
71196         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
71197         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
71198         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
71199         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
71200         (glthread_recursive_lock_lock_func): Renamed from
71201         glthread_recursive_lock_lock.
71202         (glthread_recursive_lock_unlock_func): Renamed from
71203         glthread_recursive_lock_unlock.
71204         (glthread_recursive_lock_destroy_func): Renamed from
71205         glthread_recursive_lock_destroy.
71207 2008-08-14  Bruno Haible  <bruno@clisp.org>
71209         * lib/glthread/lock.h: Renamed from lib/lock.h.
71210         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
71211         * lib/glthread/tls.h: Renamed from lib/tls.h.
71212         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
71213         * lib/fstrcmp.c: Update includes.
71214         * lib/strsignal.c: Update includes.
71215         * modules/lock (Files, Makefile.am): Update.
71216         (Include): Change to "glthread/lock.h".
71217         * modules/tls (Files, Makefile.am): Update.
71218         (Include): Change to "glthread/tls.h".
71219         * tests/test-lock.c: Update includes.
71220         * tests/test-tls.c: Update includes.
71221         * NEWS: Mention the renamed header files.
71223 2008-08-11  Jim Meyering  <meyering@redhat.com>
71225         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
71227 2008-08-11  Eric Blake  <ebb9@byu.net>
71229         test-c-stack: avoid C99-ism
71230         * tests/test-c-stack.c (main): Fix whitespace, move declaration
71231         before statement.
71232         Reported by Alain Guibert.
71234 2008-08-10  Jim Meyering  <meyering@redhat.com>
71236         ensure that return value of uinttostr et al are not ignored
71237         * lib/inttostr.h (__GNUC_PREREQ): Define.
71238         (__attribute_warn_unused_result__): Define.
71239         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
71241 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
71243         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
71244         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
71246 2008-08-07  Jim Meyering  <meyering@redhat.com>
71248         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
71250         * modules/mkstemp (License): Relicense under LGPLv2+.
71251         * modules/tempname (License): Likewise.
71253 2008-08-06  Bruno Haible  <bruno@clisp.org>
71255         * lib/poll.c (poll): Further micro-optimization.
71257 2008-08-06  Jim Meyering  <meyering@redhat.com>
71259         inet_pton.c: use locale-independent tolower
71260         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
71261         (inet_pton6): Use c_tolower rather than tolower.
71262         * modules/inet_pton (Depends-on): Add c-ctype.
71264 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
71266         * lib/poll.c (poll): Avoid division when timeout is 0, cache
71267         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
71269 2008-08-06  Jim Meyering  <meyering@redhat.com>
71271         * modules/inet_pton (License): Relicense under LGPLv2+.
71273 2008-08-03  Bruno Haible  <bruno@clisp.org>
71275         Additional non-aborting API for lock and tls.
71276         * lib/lock.h: Include <errno.h>.
71277         (glthread_lock_init): New macro/function.
71278         (gl_lock_init): Define as wrapper around glthread_lock_init.
71279         (glthread_lock_lock): New macro/function.
71280         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
71281         (glthread_lock_unlock): New macro/function.
71282         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
71283         (glthread_lock_destroy): New macro/function.
71284         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
71285         (glthread_rwlock_init): New macro/function.
71286         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
71287         (glthread_rwlock_rdlock): New macro/function.
71288         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
71289         (glthread_rwlock_wrlock): New macro/function.
71290         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
71291         (glthread_rwlock_unlock): New macro/function.
71292         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
71293         (glthread_rwlock_destroy): New macro/function.
71294         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
71295         (glthread_recursive_lock_init): New macro/function.
71296         (gl_recursive_lock_init): Define as wrapper around
71297         glthread_recursive_lock_init.
71298         (glthread_recursive_lock_lock): New macro/function.
71299         (gl_recursive_lock_lock): Define as wrapper around
71300         glthread_recursive_lock_lock.
71301         (glthread_recursive_lock_unlock): New macro/function.
71302         (gl_recursive_lock_unlock): Define as wrapper around
71303         glthread_recursive_lock_unlock.
71304         (glthread_recursive_lock_destroy): New macro/function.
71305         (gl_recursive_lock_destroy): Define as wrapper around
71306         glthread_recursive_lock_destroy.
71307         (glthread_once): New macro/function.
71308         (gl_once): Define as wrapper around glthread_once.
71309         Update function declarations.
71310         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
71311         glthread_rwlock_init. Return error code.
71312         (glthread_rwlock_rdlock_multithreaded): Renamed from
71313         glthread_rwlock_rdlock. Return error code.
71314         (glthread_rwlock_wrlock_multithreaded): Renamed from
71315         glthread_rwlock_wrlock. Return error code.
71316         (glthread_rwlock_unlock_multithreaded): Renamed from
71317         glthread_rwlock_unlock. Return error code.
71318         (glthread_rwlock_destroy_multithreaded): Renamed from
71319         glthread_rwlock_destroy. Return error code.
71320         (glthread_recursive_lock_init_multithreaded): Renamed from
71321         glthread_recursive_lock_init. Return error code.
71322         (glthread_recursive_lock_lock_multithreaded): Renamed from
71323         glthread_recursive_lock_lock. Return error code.
71324         (glthread_recursive_lock_unlock_multithreaded): Renamed from
71325         glthread_recursive_lock_unlock. Return error code.
71326         (glthread_recursive_lock_destroy_multithreaded): Renamed from
71327         glthread_recursive_lock_destroy. Return error code.
71328         (glthread_once_call): Make static.
71329         (glthread_once_multithreaded): Renamed from glthread_once.
71330         * lib/tls.h: Include <errno.h>.
71331         (glthread_tls_key_init): New macro/function.
71332         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
71333         (glthread_tls_set): New macro/function.
71334         (gl_tls_set): Define as wrapper around glthread_tls_set.
71335         (glthread_tls_key_destroy): New macro/function.
71336         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
71337         Update function declarations.
71338         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
71339         glthread_tls_get.
71340         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71342 2008-08-04  Eric Blake  <ebb9@byu.net>
71344         gnumakefile: use space, not TAB, outside of targets
71345         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
71347 2008-08-02  Jim Meyering  <meyering@redhat.com>
71349         getdate.y: avoid locale-dependent date parsing failure
71350         In Turkish locales, getdate would fail to recognize keywords
71351         containing a lowercase "i".  The solution is not to rely on
71352         locale-sensitive case-conversion.
71353         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
71354         (lookup_word): Use c_toupper in place of toupper.
71355         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
71356         Reported by Vefa Bicakci <bicave@superonline.com> in
71357         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
71358         * modules/getdate (Depends-on): Add c-ctype.
71360 2008-08-02  Bruno Haible  <bruno@clisp.org>
71362         * gnulib-tool (func_import): When updating or creating a .gitignore
71363         file, prepend each added line with a slash, and ignore leading slashes
71364         from the existing lines.
71365         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71367 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71369         Portability fix for GNU make 3.79.1.
71370         * top/GNUmakefile: Avoid 'else COND', which older GNU make
71371         versions do not understand.
71373 2008-08-01  Bruno Haible  <bruno@clisp.org>
71375         Work around bug of HP-UX 10.20 cc with -0.0 literal.
71376         * tests/test-isnanf.h (zero): New variable.
71377         (main): Avoid literal -0.0f.
71378         * tests/test-isnand.h (zero): New variable.
71379         (main): Avoid literal -0.0.
71380         * tests/test-isnanl.h (zero): New variable.
71381         (main): Avoid literal -0.0L.
71382         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
71383         (test_float, test_double, test_long_double): Avoid literals -0.0f,
71384         -0.0, -0.0L.
71385         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
71386         (test_signbitd): Avoid literal -0.0.
71387         (test_signbitl): Avoid literal -0.0L.
71388         * tests/test-ceilf1.c (zero): New variable.
71389         (main): Avoid literal -0.0f.
71390         * tests/test-ceill.c (zero): New variable.
71391         (main): Avoid literal -0.0L.
71392         * tests/test-floorf1.c (zero): New variable.
71393         (main): Avoid literal -0.0f.
71394         * tests/test-floorl.c (zero): New variable.
71395         (main): Avoid literal -0.0L.
71396         * tests/test-roundf1.c (zero): New variable.
71397         (main): Avoid literal -0.0f.
71398         * tests/test-round1.c (zero): New variable.
71399         (main): Avoid literal -0.0.
71400         * tests/test-roundl.c (zero): New variable.
71401         (main): Avoid literal -0.0L.
71402         * tests/test-truncf1.c (zero): New variable.
71403         (main): Avoid literal -0.0f.
71404         * tests/test-trunc1.c (zero): New variable.
71405         (main): Avoid literal -0.0.
71406         * tests/test-truncl.c (zero): New variable.
71407         (main): Avoid literal -0.0L.
71408         * tests/test-frexp.c (zero): New variable.
71409         (main): Avoid literal -0.0.
71410         * tests/test-frexpl.c (zero): New variable.
71411         (main): Avoid literal -0.0L.
71412         * tests/test-ldexpl.c (zero): New variable.
71413         (main): Avoid literal -0.0L.
71414         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
71415         (zerod, zerol): New variables.
71416         (test_function): Avoid literals -0.0, -0.0L.
71417         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
71418         (zerod, zerol): New variables.
71419         (test_function): Avoid literals -0.0, -0.0L.
71420         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
71421         (zerod, zerol): New variables.
71422         (test_function): Avoid literals -0.0, -0.0L.
71423         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
71424         (zerod, zerol): New variables.
71425         (test_function): Avoid literals -0.0, -0.0L.
71426         * tests/test-strtod.c (zero): New variable.
71427         (main): Avoid literal -0.0.
71428         Reported by Jonathan C. Patschke <jp@centtech.com>.
71430 2008-07-31  Jim Meyering  <meyering@redhat.com>
71432         sha256.h: correct definition of SHA224_DIGEST_SIZE
71433         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
71434         Reported by Paulie Pena IV <paulie4@gmail.com>.
71435         Define as 224 / 8, rather than as a literal.
71436         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
71437         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
71438         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
71440 2008-07-31  Bruno Haible  <bruno@clisp.org>
71442         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
71443         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
71444         Reported by Jonathan Patschke <jp@centtech.com>.
71446 2008-07-31  Bruno Haible  <bruno@clisp.org>
71448         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
71449         Reported by Paolo Bonzini <bonzini@gnu.org>.
71451 2008-07-30  Eric Blake  <ebb9@byu.net>
71453         test-strtod: allow compilation without -lm
71454         * tests/test-strtod.c (main): Avoid link dependence on fabs.
71455         Reported by Dennis Clarke <blastwave@gmail.com>.
71457 2008-07-28  Jim Meyering  <meyering@redhat.com>
71459         bootstrap: work also when there are no .po files in po/
71460         * build-aux/bootstrap (update_po_files): Complete the change
71461         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
71463 2008-07-27  Jim Meyering  <meyering@redhat.com>
71465         * users.txt: Add zile.
71467 2008-07-26  Ben Pfaff  <blp@gnu.org>
71469         Add missing dependencies on new m4/exponent[fdl].m4 files.
71470         * modules/isnanf-nolibm: Add m4/exponentf.m4.
71471         * modules/isnand-nolibm: Add m4/exponentd.m4.
71472         * modules/isnanl-nolibm: Add m4/exponentl.m4.
71473         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
71474         m4/isnan[fdl].m4, because the macros actually used moved.
71475         Reported by Jim Meyering.
71477 2008-07-14  Ben Pfaff  <blp@gnu.org>
71479         Add isinf module.
71480         * lib/isinf.c: New file.
71481         * lib/math.in.h: Define isinf macro if we have decided to replace
71482         it.
71483         * m4/isinf.m4: New file.
71484         * m4/math_h.m4: Initialize and substitute variables for isinf
71485         module.
71486         * modules/isinf: New file.
71487         * modules/isinf-tests: New file.
71488         * modules/math: Add substitutions for new module.
71489         * tests/test-isinf.c: New file.
71490         * doc/posix-functions/isinf.texi: Mention new module.
71491         * MODULES.html.sh: Mention new module.
71493 2008-07-14  Ben Pfaff  <blp@gnu.org>
71495         Factor out some macros for use by additional modules.
71496         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
71497         exponentf.m4.
71498         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
71499         exponentd.m4.
71500         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
71501         file exponentl.m4.
71502         * m4/exponentf.m4: New file.
71503         * m4/exponentd.m4: New file.
71504         * m4/exponentl.m4: New file.
71505         * modules/isnanf: Use new file m4/exponentf.m4.
71506         * modules/isnand: Use new file m4/exponentd.m4.
71507         * modules/isnanl: Use new file m4/exponentl.m4.
71509 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
71511         mktime.c: normalize tp->tm_isdst value to -1/0/1.
71512         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
71513         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
71514         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
71516         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
71517         readlink on platforms without PATH_MAX.
71519 2008-07-21  Eric Blake  <ebb9@byu.net>
71521         Warn, not fail, on stale version.
71522         * top/GNUmakefile (_curr-ver): Tone down previous patch.
71524         Don't allow installation with stale devel version number.
71525         * top/GNUmakefile (_is-install-target): New macro.
71526         (_curr-ver): Forbid installation with stale version number.
71528 2008-07-20  Bruno Haible  <bruno@clisp.org>
71530         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
71531         TESTS_ENVIRONMENT.
71532         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
71534 2008-07-20  Bruno Haible  <bruno@clisp.org>
71536         * lib/c-stack.h (c_stack_action): Add documentation.
71537         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
71539 2008-07-20  Bruno Haible  <bruno@clisp.org>
71541         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
71542         * modules/readlink (License): Likewise.
71544 2008-07-17  Eric Blake  <ebb9@byu.net>
71546         * modules/c-stack (Link): Fix typo.
71548         Make c-stack use libsigsegv, when available.
71549         * modules/c-stack (Depends-on): Add libsigsegv.
71550         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
71551         needed.
71552         * lib/c-stack.c (SIGSTKSZ): Define fallback.
71553         (segv_handler, overflow_handler, c_stack_action)
71554         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
71555         implementation when libsigsegv is available, but only when using
71556         the library is necessary.
71557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
71558         comment, explaining why XSI check fails on Linux.
71559         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
71560         * tests/test-c-stack2.sh: Tweak skip message.
71561         * NEWS: Document new link-time requirements.
71563 2008-07-16  Eric Blake  <ebb9@byu.net>
71565         c-stack: Expose false positives when not using libsigsegv.
71566         * modules/c-stack-tests (Files): Expand test.
71567         * tests/test-c-stack.c (main): Add means to conditionally trigger
71568         non-overflow SIGSEGV.
71569         * tests/test-c-stack2.sh: New file.
71571 2008-07-14  Bruno Haible  <bruno@clisp.org>
71573         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
71574         Reported by Eric Blake.
71576 2008-07-14  Sam Steingold  <sds@gnu.org>
71577             Bruno Haible  <bruno@clisp.org>
71579         New module libsigsegv.
71580         * modules/libsigsegv: New file.
71581         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
71582         modifications.
71583         * MODULES.html.sh (Signal handling): New section.
71585 2008-07-14  Bruno Haible  <bruno@clisp.org>
71587         * modules/unictype/ctype-* (Description): Add the word "function".
71588         Improves the resulting doc in MODULES.html.
71590 2008-07-12  Ben Pfaff  <blp@gnu.org>
71592         Add longlong module.
71593         * modules/longlong: New file.
71595 2008-07-12  Bruno Haible  <bruno@clisp.org>
71597         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
71598         to empty.
71600 2008-07-10  Ben Pfaff  <blp@gnu.org>
71602         Add isnan module.
71603         * doc/posix-functions/isnan.texi: Mention new module.
71604         * lib/math.in.h: Define isnan macro if we have decided to replace
71605         it.
71606         * m4/isnan.m4: New file.
71607         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
71608         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
71609         also.
71610         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
71611         redundancy.
71612         * m4/math_h.m4: Initialize and substitute variables for isnan
71613         module.
71614         * modules/isnan: New file.
71615         * modules/isnan-tests: New file.
71616         * modules/math: Add substitutions for new module.
71617         * tests/test-isnan.c: New file.
71618         * MODULES.html.sh: Mention new module.
71620 2008-07-10  Ben Pfaff  <blp@gnu.org>
71622         Add isnanf module.
71623         * lib/isnanf.m4: New file.
71624         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
71625         (gl_HAVE_ISNANF_IN_LIBM): New macro.
71626         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
71627         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
71628         * modules/isnanf: New file.
71629         * modules/isnanf-tests: New file.
71630         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
71631         files.
71632         * tests/test-isnanf-nolibm.c: factored most of its contents into
71633         new file tests/test-isnanf.h.
71634         * tests/test-isnanf.h: New file.
71635         * tests/test-isnanf.c: New file.
71636         * MODULES.html.sh: Mention new module.
71637         * doc/glibc-functions/isnanf.texi: Mention new module.
71639 2008-07-10  Ben Pfaff  <blp@gnu.org>
71641         Add isnand module.
71642         * lib/isnand.h: New file.
71643         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
71644         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
71645         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
71646         functionality also.
71647         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
71648         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
71649         (gl_HAVE_ISNAND_IN_LIBM): New macro.
71650         * modules/isnand: New file.
71651         * modules/isnand-tests: New file.
71652         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
71653         files.
71654         * tests/test-isnand-nolibm.c: factored most of its contents into
71655         new file tests/test-isnand.h.
71656         * tests/test-isnand.h: New file.
71657         * tests/test-isnand.c: New file.
71658         * MODULES.html.sh: Mention new module.
71660 2008-07-10  Ben Pfaff  <blp@gnu.org>
71662         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
71663         * lib/isnand.h: Rename lib/isnand-nolibm.h.
71664         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
71665         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
71666         * modules/isnanf-nolibm: Update references to renamed files.
71667         * modules/isnand-nolibm: Likewise.
71668         * modules/isnanf-nolibm-tests: Likewise.
71669         * modules/isnand-nolibm-tests: Likewise.
71670         * lib/frexp.c: Likewise.
71671         * lib/isfinite.c: Likewise.
71672         * lib/signbitd.c: Likewise.
71673         * lib/signbitf.c: Likewise.
71674         * lib/vasnprintf.c: Likewise.
71675         * tests/test-ceilf1.c: Likewise.
71676         * tests/test-ceilf2.c: Likewise.
71677         * tests/test-floorf1.c: Likewise.
71678         * tests/test-floorf2.c: Likewise.
71679         * tests/test-frexp.c: Likewise.
71680         * tests/test-round1.c: Likewise.
71681         * tests/test-round2.c: Likewise.
71682         * tests/test-roundf1.c: Likewise.
71683         * tests/test-strtod.c: Likewise.
71684         * tests/test-trunc1.c: Likewise.
71685         * tests/test-trunc2.c: Likewise.
71686         * tests/test-truncf1.c: Likewise.
71687         * tests/test-truncf2.c: Likewise.
71688         * NEWS: Mention the renamed header files.
71690 2008-07-11  Jim Meyering  <meyering@redhat.com>
71692         vc-list-files: make the last-resort awk code more portable
71693         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
71694         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
71695         does not support it.
71697 2008-07-10  Eric Blake  <ebb9@byu.net>
71699         Work with tar's bootstrap.
71700         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
71701         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
71702         an m4 comment.
71704 2008-07-09  Jim Meyering  <meyering@redhat.com>
71706         posix-shell.m4: fix typo that made this test malfunction
71707         * m4/posix-shell.m4: Remove capitalization in variable name.
71709 2008-07-08  Bruno Haible  <bruno@clisp.org>
71711         * m4/onceonly.m4: Update comments.
71712         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71714 2008-07-04  Jim Meyering  <meyering@redhat.com>
71716         * users.txt: Add vc-dwim.
71717         (bison, coreutils): Use the gitweb URL.
71719 2008-07-03  Jim Meyering  <meyering@redhat.com>
71721         * users.txt: Add libffcall.  From Sam Steingold.
71723 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
71725         getdate.y: do not ignore TZ with relative day, month or year offset
71726         * lib/getdate.y (get_date): Move the tz-handling block to follow the
71727         relative-date-handling, since otherwise, the latter would clobber the
71728         sole output (an updated Start value) of the tz-handling block.
71729         * tests/test-getdate.c: Tests for the fix
71731 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71733         Recognize 'foo_LIBRARIES += libgnu.a'.
71734         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
71735         makefile snippet has already specified an installation location,
71736         also using '+='.
71738 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
71740         getdate.y: factor out common actions
71741         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
71742         Use them in place of open-coded actions.
71744 2008-07-01  Simon Josefsson  <simon@josefsson.org>
71746         Add self-test for getdate module.
71747         * modules/getdate-tests: New file.
71748         * tests/test-getdate.c: New file.
71750 2008-06-29  Bruno Haible  <bruno@clisp.org>
71752         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
71753         .gitignore.
71754         Reported by Sylvain Beucler <beuc@beuc.net>.
71756 2008-06-29  Bruno Haible  <bruno@clisp.org>
71758         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
71759         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
71761 2008-06-29  Bruno Haible  <bruno@clisp.org>
71763         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
71764         EXTRA_DIST.
71765         Reported by Sylvain Beucler <beuc@beuc.net>.
71767 2008-06-26  Jim Meyering  <meyering@redhat.com>
71769         make several modules depend on the "open" module
71770         This provides slightly increased consistency when opening-for-write
71771         the name of a non-directory spelled with a trailing slash.
71772         * modules/chdir-safer: Likewise.
71773         * modules/chown: Likewise.
71774         * modules/clean-temp: Likewise.
71775         * modules/copy-file: Likewise.
71776         * modules/fchdir: Likewise.
71777         * modules/fcntl-safer: Likewise.
71778         * modules/pipe: Likewise.
71779         * modules/utime: Likewise.
71780         Prompted by Eric Blake and Bruno Haible.
71782 2008-06-24  Andreas Schwab  <schwab@suse.de>
71784         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
71785         literals can be used as initializers for global variables.
71787 2008-06-23  Eric Blake  <ebb9@byu.net>
71789         Make gnulib-cache.m4 easier to diff.
71790         * gnulib-tool (func_import): Allow newlines when reading cached
71791         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
71793 2008-06-23  Bruno Haible  <bruno@clisp.org>
71795         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
71796         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
71797         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
71798         m4/signalblocking.m4.
71799         (gl_PREREQ_SIGACTION): Don't invoke it.
71800         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
71801         gl_PREREQ_SIG_HANDLER_H.
71802         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71803         Don't check for sigaction here.
71805 2008-06-23  Bruno Haible  <bruno@clisp.org>
71807         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
71808         (install_handlers): Don't set the SA_RESETHAND flag.
71810 2008-06-23  Bruno Haible  <bruno@clisp.org>
71812         * m4/sigaction.m4: Comment fixes.
71813         * lib/signal.in.h: Likewise.
71815 2008-06-23  Eric Blake  <ebb9@byu.net>
71817         Fix typo.
71818         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
71820         Avoid SA_ namespace.
71821         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
71822         Reported by Ralf Wildenhues.
71824         Avoid test failure due to SA_RESTORER.
71825         * tests/test-sigaction.c (SA_MASK): New macro.
71826         (main): Avoid failing due to extension flags being set.
71827         Reported by Jim Meyering.
71829         Revert use of sig-handler.h in sigprocmask.c.
71830         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
71831         it requires the existence of struct sigaction.
71832         * lib/sigprocmask.c (handler_t): Restore typedef.
71833         (rpl_signal, old_handlers): Use local type.
71835 2008-06-22  Bruno Haible  <bruno@clisp.org>
71837         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
71838         conditionally.
71839         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71841 2008-06-22  Bruno Haible  <bruno@clisp.org>
71843         * doc/posix-functions/siginterrupt.texi: Move note.
71845         * lib/signal.in.h (SA_RESTART): New macro.
71846         * lib/sigaction.c: Update comment.
71848         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
71850         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
71851         (gl_PREREQ_SIGPROCMASK): Invoke it.
71852         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
71854         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
71856         * lib/sigprocmask.c: Update a comment.
71858 2008-06-21  Eric Blake  <ebb9@byu.net>
71860         Use sigaction module rather than signal().
71861         * modules/c-stack (Depends-on): Add sigaction.
71862         * modules/fatal-signal (Depends-on): Likewise.
71863         * modules/nanosleep (Depends-on): Likewise.
71864         * modules/sigprocmask (Files): Add sig-handler.h.
71865         * modules/sigaction (Files): Likewise.
71866         * lib/sig-handler.h (get_handler): New file, suggested by Paul
71867         Eggert.
71868         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
71869         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
71870         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
71871         (init_fatal_signals): Likewise.
71872         * lib/nanosleep.c (rpl_nanosleep): Likewise.
71873         (siginterrupt): Delete fallback.
71874         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
71875         instead.
71876         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
71877         siginterrupt.
71879         New module sigaction, for mingw.
71880         * modules/sigaction: New module...
71881         * modules/sigaction-tests: ...and its test.
71882         * m4/sigaction.m4: New file.
71883         * lib/sigaction.c: Likewise.
71884         * tests/test-sigaction.c: Likewise.
71885         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
71886         * modules/signal (Makefile.am): Likewise.
71887         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
71888         needed.
71889         * doc/posix-headers/signal.texi (signal.h): Mention provided
71890         types.
71891         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
71892         that sigaction is preferable.
71893         * doc/posix-functions/sigaction.texi (sigaction): Mention new
71894         module.
71895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71896         sigaction.
71898         Improve robustness of sigprocmask by overriding signal.
71899         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
71900         is in use.
71901         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
71902         (SIGKILL, SIGSTOP): Provide fallbacks.
71903         (rpl_signal): Implement.
71904         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
71905         signal can be called inside handlers.
71907         Fix nanosleep module on mingw.
71908         * modules/nanosleep (Depends-on): Add sys_select.
71909         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
71911         Fix licensing of sigprocmask.
71912         * modules/raise (License): Relicense as LGPL.
71914 2008-06-21  Bruno Haible  <bruno@clisp.org>
71916         * lib/propername.c (proper_name_utf8): Don't use the transliterated
71917         result if it contains question marks.
71918         Reported by Michael Geng <linux@michaelgeng.de>.
71920 2008-06-19  Bruno Haible  <bruno@clisp.org>
71922         Fix CVS-ism.
71923         * doc/gnulib.texi: Include updated-stamp.texi.
71924         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
71925         (updated-stamp.texi): New rule.
71926         (gnulib.info): Depend on it.
71927         * doc/.gitignore: Add updated-stamp.texi.
71928         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
71930 2008-06-19  Bruno Haible  <bruno@clisp.org>
71932         * doc/Makefile (gnulib.info): Update and simplify dependencies.
71933         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71935 2008-06-19  Eric Blake  <ebb9@byu.net>
71937         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
71938         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
71939         Reported by Stepan Kasal.
71941 2008-06-18  Bruno Haible  <bruno@clisp.org>
71943         * lib/fatal-signal.c (init_fatal_signals): Add comment.
71944         Reported by Eric Blake.
71946 2008-06-18  Eric Blake  <ebb9@byu.net>
71948         Work around cygwin 1.5.25 strsignal bug.
71949         * tests/test-strsignal.c: Allow for const char *.
71950         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
71952 2008-06-18  Simon Josefsson  <simon@josefsson.org>
71954         * users.txt: Update URL to article and add author/date
71955         information.
71957 2008-06-17  Bruno Haible  <bruno@clisp.org>
71959         New macro gl_DISABLE_THREADS.
71960         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
71961         if the user did not pass --enable-threads or --disable-threads option.
71962         (gl_DISABLE_THREADS): New macro.
71963         Reported by Eric Blake <ebb9@byu.net>.
71965 2008-06-17  Bruno Haible  <bruno@clisp.org>
71967         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
71968         when the macro ignores it.
71969         Based on a patch by Eric Blake <ebb9@byu.net>.
71971 2008-06-17  Bruno Haible  <bruno@clisp.org>
71973         * modules/tls (License): Change to LGPLv2+.
71974         Reported by Eric Blake.
71976 2008-06-17  Eric Blake  <ebb9@byu.net>
71978         Simplify c-stack prerequisites.
71979         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
71980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
71981         no longer requires <ucontext.h> to exist.  Optimize setrlimit
71982         check.
71983         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
71984         <sys/resource.h>.
71986         Move c-stack test into testsuite.
71987         * modules/c-stack-tests: New file.
71988         * lib/c-stack.c [DEBUG]: Move test program...
71989         * tests/test-c-stack.c: ...into this new file.  Skip rather than
71990         fail test if sigaltstack is lacking.
71991         * tests/test-c-stack.sh: New driver file.
71993 2008-06-16  Eric Blake  <ebb9@byu.net>
71995         Use raise module consistently.
71996         * modules/fatal-signal (Depends-on): Add raise.
71997         * modules/sigprocmask (Depends-on): Likewise.
71998         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
71999         * lib/sigprocmask.c (sigprocmask): Likewise.
72000         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72001         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
72003         Fix compliance bug in sigpending.
72004         * lib/sigprocmask.c (sigpending): Return pending array via
72005         parameter, not return value.
72007 2008-06-14  Eric Blake  <ebb9@byu.net>
72009         Improve obstack-printf test code.
72010         * tests/test-obstack-printf.c (test_function): Fix comment, and
72011         simplify usage of obstack_* in macros.  Add a test for coverage.
72012         Reported by Bruno Haible.
72014 2008-06-14  Bruno Haible  <bruno@clisp.org>
72016         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
72017         array size as a constant, not as a const variable.
72018         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
72019         AC_USE_SYSTEM_EXTENSIONS.
72020         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
72021         Test whether the obstack_printf function actually exists.
72022         * modules/obstack-printf (Depends-on): Add extensions.
72023         (Include): Remove obstack.h.
72024         * modules/obstack-printf-posix (Depends-on): Add extensions.
72025         (Include): Remove obstack.h.
72027 2008-06-13  Eric Blake  <ebb9@byu.net>
72029         Add obstack-printf and obstack-printf-posix modules.
72030         * modules/obstack-printf: New file.
72031         * modules/obstack-printf-posix: Likewise.
72032         * MODULES.html.sh (Misc): Mention them.
72033         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
72034         Likewise.
72035         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
72036         Likewise.
72037         * modules/stdio (Makefile.am): Accomodate new modules.
72038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72039         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
72040         Declare.
72041         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
72042         functions.
72043         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
72044         (gl_REPLACE_OBSTACK_PRINTF): New macros
72045         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
72046         * tests/test-obstack-printf.c: New file.
72047         * modules/obstack-printf-tests: Likewise.
72048         * modules/obstack-printf-posix-tests: Likewise.
72050 2008-06-11  Bruno Haible  <bruno@clisp.org>
72052         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
72053         * lib/open.c: Include errno.h.
72054         (open): Fail when attempting to write to a file that has a trailing
72055         slash.
72056         * tests/test-open.c (main): Test against trailing slash bug.
72057         * doc/posix-functions/open.texi: Mention the trailing slash bug.
72059 2008-06-10  Bruno Haible  <bruno@clisp.org>
72061         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
72062         for $? to work inside the trap command, with various /bin/sh-s.
72063         * tests/test-vc-list-files-cvs.sh: Likewise.
72065 2008-06-10  Bruno Haible  <bruno@clisp.org>
72067         * lib/acl-internal.h: Don't include gettext.h here.
72068         * lib/set-mode-acl.c: Include gettext.h here.
72069         * lib/copy-acl.c: Likewise.
72071 2008-06-10  Bruno Haible  <bruno@clisp.org>
72073         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
72074         * lib/wait-process.c (wait_subprocess): Likewise.
72075         * lib/execute.h (execute): Add termsigp argument.
72076         * lib/execute.c (execute): Likewise.
72077         * lib/csharpcomp.c (compile_csharp_using_pnet,
72078         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
72079         * lib/csharpexec.c (execute_csharp_using_pnet,
72080         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
72081         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
72082         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
72083         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
72084         is_jikes_present): Update.
72085         * lib/javaexec.c (execute_java_class): Update.
72086         * lib/javaversion.c (execute_and_read_line): Update.
72087         * NEWS: Document the changes.
72088         Reported by Eric Blake.
72090 2008-06-10  Eric Blake  <ebb9@byu.net>
72092         Add missing include.
72093         * tests/test-strstr.c (includes): Add <signal.h>.
72094         * tests/test-strcasestr.c (includes): Likewise.
72095         * tests/test-memmem.c (includes): Likewise.
72097 2008-06-10  Bruno Haible  <bruno@clisp.org>
72099         * lib/wait-process.c (wait_subprocess): Add an assertion.
72101 2008-06-10  Bruno Haible  <bruno@clisp.org>
72103         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
72105 2008-06-10  Bruno Haible  <bruno@clisp.org>
72107         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
72108         using alarm().
72109         * tests/test-strcasestr.c (main): Likewise.
72110         * tests/test-strstr.c (main): Likewise.
72112 2008-06-09  Bruno Haible  <bruno@clisp.org>
72114         Work around the Solaris 10 ACE ACLs ABI change.
72115         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
72116         declare if ACL_NO_TRIVIAL is present.
72117         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
72118         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
72119         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
72120         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
72121         define if ACL_NO_TRIVIAL is present.
72122         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
72123         and use the current ABI.
72124         (file_has_acl): Use same #if condition as elsewhere.
72125         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
72126         in use, and use the current ABI.
72127         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
72128         Reported by Jim Meyering.
72130 2008-06-09  Eric Blake  <ebb9@byu.net>
72132         Work around environments that (stupidly) ignore SIGALRM.
72133         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
72134         before using alarm().
72135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
72137         Reported by Ian Beckwith <ianb@erislabs.net>.
72139         Produce autobuild blurb earlier in log.
72140         * modules/autobuild (configure.ac-early): Move AB_INIT here.
72142 2008-06-09  Jim Meyering  <meyering@redhat.com>
72143         and Ondřej Vašík  <ovasik@redhat.com>
72145         utimens.c: correct kernel bug work-around
72146         Ondřej Vašík found that the invalid return value of 280 indicates
72147         failure, not success, and the kernel bug we're trying to work
72148         around affects not just the utimensat call, but also the fallback
72149         futimens call.
72150         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
72151         not success.
72152         [HAVE_FUTIMENS]: Use the same work-around, here.
72154 2008-06-09  Jim Meyering  <meyering@redhat.com>
72156         add more guards around definition of ACE_-related code
72157         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
72158         ALLOW and ACE_OWNER are also defined.
72160 2008-06-08  Bruno Haible  <bruno@clisp.org>
72162         * lib/acl-internal.h: Add me as co-author.
72163         * lib/file-has-acl.c: Likewise.
72164         * lib/set-mode-acl.c: Likewise.
72165         * lib/copy-acl.c: Likewise.
72167 2008-06-08  Bruno Haible  <bruno@clisp.org>
72169         Add support for AIX ACLs.
72170         * lib/acl-internal.h (acl_nontrivial): New declaration.
72171         * lib/file-has-acl.c (acl_nontrivial): New function.
72172         (file_has_acl): Add implementation using AIX 4 ACL API.
72173         * lib/set-mode-acl.c (qset_acl): Likewise.
72174         * lib/copy-acl.c (qcopy_acl): Likewise.
72176 2008-06-08  Bruno Haible  <bruno@clisp.org>
72178         Add support for HP-UX ACLs.
72179         * lib/acl-internal.h (acl_nontrivial): New declaration.
72180         * lib/file-has-acl.c (acl_nontrivial): New function.
72181         (file_has_acl): Add implementation using HP-UX 11 ACL API.
72182         * lib/set-mode-acl.c (qset_acl): Likewise.
72183         * lib/copy-acl.c (qcopy_acl): Likewise.
72185 2008-06-08  Bruno Haible  <bruno@clisp.org>
72187         Add support for Cygwin ACLs.
72188         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
72189         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
72190         the chmod_or_fchmod call.
72191         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
72193 2008-06-08  Bruno Haible  <bruno@clisp.org>
72195         Fix bug with setuid modes in Solaris 10+ code.
72196         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
72197         succeeded, when the mode contains some special bits.
72199 2008-06-08  Bruno Haible  <bruno@clisp.org>
72201         Add support for Solaris 7..10 ACLs.
72202         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
72203         declarations.
72204         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
72205         functions.
72206         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
72207         * lib/set-mode-acl.c (qset_acl): Likewise.
72208         * lib/copy-acl.c (qcopy_acl): Likewise.
72210 2008-06-08  Bruno Haible  <bruno@clisp.org>
72212         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
72213         declaration.
72214         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
72215         (acl_access_nontrivial): Remove MacOS X case.
72216         (file_has_acl): Use acl_extended_nontrivial.
72217         * lib/copy-acl.c (qcopy_acl): Likewise.
72219 2008-06-08  Bruno Haible  <bruno@clisp.org>
72221         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
72223 2008-06-08  Jim Meyering  <meyering@redhat.com>
72225         * modules/acl (Maintainer): Add Bruno Haible.
72227 2008-06-07  Bruno Haible  <bruno@clisp.org>
72229         Improve support for Tru64 ACLs.
72230         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
72231         ACL on OSF/1.
72233 2008-06-07  Bruno Haible  <bruno@clisp.org>
72235         Add support for MacOS X ACLs.
72236         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
72237         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
72238         * lib/set-mode-acl.c (qset_acl): Likewise.
72239         * lib/copy-acl.c (qcopy_acl): Likewise.
72241 2008-06-07  Bruno Haible  <bruno@clisp.org>
72243         Fix memory leak introduced on 2008-05-22.
72244         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
72245         use.
72247 2008-06-07  Bruno Haible  <bruno@clisp.org>
72249         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
72250         to construct an empty ACL.
72252 2008-06-07  Bruno Haible  <bruno@clisp.org>
72254         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
72255         precisely.
72256         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
72258 2008-06-07  Bruno Haible  <bruno@clisp.org>
72260         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
72261         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
72263 2008-06-07  Bruno Haible  <bruno@clisp.org>
72265         * doc/posix-functions/_setjmp.texi: Explain the use of this function
72266         regardless of POSIX.
72267         * doc/posix-functions/_longjmp.texi: Likewise.
72268         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
72269         SystemV platform in this case.
72271 2008-06-06  Eric Blake  <ebb9@byu.net>
72273         Document abort() bugs.
72274         * doc/posix-functions/abort.texi (abort): Mention anomalies.
72276         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
72277         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
72278         sigsetjmp.
72279         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
72280         siglongjmp, but only as a macro.
72281         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
72282         is obsolete.
72283         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
72285         Tweak documentation to cover cygwin argz bugs.
72286         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
72287         argz bug fix; no code change needed since no cygwin releases
72288         occurred between the last fix and the bug being tested.
72289         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
72290         module and recently fixed cygwin bugs.
72291         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
72292         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
72293         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
72294         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
72295         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
72296         Likewise.
72297         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
72298         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
72299         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
72300         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
72301         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
72302         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
72303         Likewise.
72305         Avoid gcc warning on cygwin.
72306         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
72307         !ACL_NO_TRIVIAL]: Avoid unused variable.
72309 2008-06-05  Eric Blake  <ebb9@byu.net>
72311         Be tolerant of UNKNOWN version in gnulib-tool test dir.
72312         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
72313         git-version-gen fails to come up with a version.
72314         Reported by Simon Josefsson.
72316 2008-06-05  Jim Meyering  <meyering@redhat.com>
72317             Paul Eggert  <eggert@cs.ucla.edu>
72319         utimens.c: work around a probable Linux kernel bug
72320         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
72321         appears to be a kernel bug that causes utimensat to return 280
72322         instead of 0, indicating success.
72324 2008-06-04  Bruno Haible  <bruno@clisp.org>
72326         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
72327         2008-06-01 commit.
72329 2008-06-04  Bruno Haible  <bruno@clisp.org>
72331         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
72332         * lib/file-has-acl.c (acl_access_nontrivial): New function.
72333         (file_has_acl): Use it. Save errno afterwards.
72334         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
72336 2008-06-03  Bruno Haible  <bruno@clisp.org>
72338         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
72339         draft code. Simplify #ifs.
72340         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
72341         Put Solaris code after POSIX-draft code. Fix comments regarding
72342         Solaris 10, HP-UX. Mention Cygwin.
72343         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
72345 2008-06-03  Eric Blake  <ebb9@byu.net>
72347         Provide fallback for older kernels.
72348         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
72349         Provide runtime fallback if kernel lacks support.
72350         Reported by Mike Frysinger.
72352 2008-06-02  Bruno Haible  <bruno@clisp.org>
72354         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
72355         it exists.
72357 2008-06-02  Bruno Haible  <bruno@clisp.org>
72359         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
72360         * lib/copy-acl.c (qcopy_acl): Update comment.
72362 2008-06-02  Bruno Haible  <bruno@clisp.org>
72364         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
72365         like ACL APIs.
72367 2008-06-02  Bruno Haible  <bruno@clisp.org>
72369         * tests/test-file-has-acl.sh: Use different code for Cygwin.
72370         * tests/test-set-mode-acl.sh: Likewise.
72371         * tests/test-copy-acl.sh: Likewise.
72372         * tests/test-copy-file.sh: Likewise.
72374 2008-06-02  Bruno Haible  <bruno@clisp.org>
72376         * tests/test-file-has-acl.sh: Remove unused code.
72378 2008-06-01  Bruno Haible  <bruno@clisp.org>
72380         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
72381         (copy_acl): Just a wrapper around qcopy_acl that emits the error
72382         messages.
72383         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
72385 2008-06-01  Bruno Haible  <bruno@clisp.org>
72387         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
72388         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
72389         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
72390         APIs.
72391         * modules/acl-tests (configure.ac): Remove tests now contained in
72392         m4/acl.m4.
72394 2008-06-02  Jim Meyering  <meyering@redhat.com>
72396         announce-gen: use a better key-server host name
72397         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
72398         it may be more consistently reliable.  Suggested by Werner Koch
72399         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
72401 2008-06-01  Bruno Haible  <bruno@clisp.org>
72403         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
72404         Reported by Voroskoi Andras <voroskoi@gmail.com>.
72406 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
72408         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
72410 2008-06-01  Bruno Haible  <bruno@clisp.org>
72412         New ACL tests.
72413         * tests/test-file-has-acl.sh: New file.
72414         * tests/test-file-has-acl.c: New file.
72415         * tests/test-set-mode-acl.sh: New file.
72416         * tests/test-set-mode-acl.c: New file.
72417         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
72418         * tests/test-copy-acl.c: New file.
72419         * modules/acl-tests: New file, based on modules/copy-file-tests.
72420         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
72421         (Depends-on): Add acl-tests.
72422         (configure.ac): Remove checks.
72423         (Makefile.am): Don't create test-sameacls program here any more.
72425 2008-06-01  Bruno Haible  <bruno@clisp.org>
72427         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
72428         * tests/test-sameacls.c: Include progname.h.
72429         (main): Invoke set_program_name. Portability fixes for MacOS X,
72430         Solaris, HP-UX.
72432 2008-06-01  Bruno Haible  <bruno@clisp.org>
72434         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
72435         function.
72436         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
72438 2008-06-01  Bruno Haible  <bruno@clisp.org>
72440         * modules/rpmatch (Depends-on): Add strdup.
72442 2008-06-01  Bruno Haible  <bruno@clisp.org>
72444         * lib/pipe.c: Include unistd-safer.h.
72445         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
72446         * modules/pipe (Depends-on): Add unistd-safer.
72448 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72450         * modules/autobuild (configure.ac): Call AB_INIT.
72452 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72454         * tests/test-getaddrinfo.c: Don't print debug messages by default.
72455         Suggested by Bruno Haible <bruno@clisp.org>.
72457 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72459         * tests/test-base64.c: Cast size_t to unsigned long when invoking
72460         printf.  Use %lu instead of %d.  Reported by Bruno Haible
72461         <bruno@clisp.org>.
72463 2008-05-29  Eric Blake  <ebb9@byu.net>
72465         Prefer new POSIX 200x interfaces over futimesat.
72466         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
72467         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
72468         when available.
72469         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
72471 2008-05-28  Bruno Haible  <bruno@clisp.org>
72473         * modules/stpcpy (License): Change to LGPLv2+.
72474         Requested by David Lutterkort <dlutter@redhat.com>.
72476 2008-05-27  Bruno Haible  <bruno@clisp.org>
72478         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
72479         current mingw.
72480         Reported by Jose E. Marchesi <jemarch@gnu.org>.
72482 2008-05-27  Bruno Haible  <bruno@clisp.org>
72484         * modules/iconv_open (Link): New section, from module 'iconv'.
72485         * modules/striconv (Link): Likewise.
72486         * modules/striconveh (Link): Likewise.
72487         * modules/xstriconv (Link): Likewise.
72488         * modules/unicodeio (Link): Likewise.
72489         * modules/propername (Link): Likewise.
72490         Reported by Jim Meyering.
72492 2008-05-26  Jim Meyering  <meyering@redhat.com>
72494         sha256: do not artificially restrict buffer length to be < 2^32
72495         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
72496         uint32_t to size_t.
72497         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
72498         to match.
72500         avoid unaligned access errors, e.g., on sparc
72501         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
72502         direct access through a possibly-unaligned uint64* pointer.
72503         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
72504         direct access through a possibly-unaligned uint32* pointer.
72505         Prompted by this patch from Tom "spot" Callaway:
72506         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
72508         sha512.c: fix typo in comment
72509         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
72511 2008-05-25  Bruno Haible  <bruno@clisp.org>
72513         * lib/set-mode-acl.c: Renamed from lib/acl.c.
72514         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
72515         (Makefile.am): Update lib_SOURCES.
72517 2008-05-25  Bruno Haible  <bruno@clisp.org>
72519         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
72521 2008-05-25  Jim Meyering  <meyering@redhat.com>
72523         useless-if-before-free: freed expr may have white-space differences
72524         * build-aux/useless-if-before-free: Recognize cases in which the
72525         freed expression differs from the tested one in embedded white
72526         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
72527         $1 was used, so we can't make any regexp shy.  Improved tests now
72528         detect this.
72530         useless-if-before-free: accept white space in the expression.
72531         * build-aux/useless-if-before-free: For now, any white space
72532         in the expression must be identical in the free argument.
72534         useless-if-before-free: efficiency tweak
72535         * build-aux/useless-if-before-free: Make the expression-matching
72536         regexp "shy".
72537         Make the *outer* regexp shy, not the expr-matching one.
72539         update code-in-comment to accept cast of free arg
72540         * build-aux/useless-if-before-free: Update regexp.
72542 2008-05-25  Bruno Haible  <bruno@clisp.org>
72544         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
72545         * modules/copy-file-tests (Files, Makefile.am): Update.
72546         * tests/test-copy-file.c (func_test_copy): Update.
72548 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
72550         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
72552 2008-05-23  Bruno Haible  <bruno@clisp.org>
72554         Improve support for ACLs on OSF/1.
72555         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
72556         Remove fallback for unknown flavors of ACLs.
72558 2008-05-22  Bruno Haible  <bruno@clisp.org>
72560         Add support for ACLs on OSF/1.
72561         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
72562         replacements.
72563         (acl_free_text): New macro fallback.
72564         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
72565         acl_free.
72566         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
72567         acl_free_text function. Require AC_C_INLINE.
72569 2008-05-22  Bruno Haible  <bruno@clisp.org>
72571         Make copy_acl work on MacOS X 10.5.
72572         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
72573         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
72574         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
72575         If MODE_INSIDE_ACL, don't assume that every system has the same text
72576         representation for ACLs as FreeBSD.
72577         * lib/copy-acl.c (copy_acl): Add support for platforms with
72578         !MODE_INSIDE_ACL.
72579         * lib/file-has-acl.c (file_has_acl): Likewise.
72580         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
72581         FreeBSD, MacOS X, or IRIX, respectively.
72583 2008-05-22  Bruno Haible  <bruno@clisp.org>
72585         * lib/acl.h: Don't include <sys/acl.h>.
72586         (GETACLCNT): Move fallback to lib/acl-internal.h.
72587         * lib/acl-internal.h: Include <sys/acl.h> here.
72588         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
72590 2008-05-22  Bruno Haible  <bruno@clisp.org>
72592         Split off copy_acl function to separate file.
72593         * lib/copy-acl.c: New file, extracted from lib/acl.c.
72594         * lib/acl.c (copy_acl): Moved function to separate file.
72595         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
72596         * modules/acl (Files): Add lib/copy-acl.c.
72597         (Makefiles.am): Augment lib_SOURCES.
72599 2008-05-22  Bruno Haible  <bruno@clisp.org>
72601         * modules/copy-file-tests: New file.
72602         * tests/test-copy-file.sh: New file.
72603         * tests/test-copy-file.c: New file.
72604         * tests/test-copy-file-sameacls.c: New file.
72606 2008-05-22  Eric Blake  <ebb9@byu.net>
72608         Avoid gcc warning.
72609         * tests/test-memcmp.c (main): Pass NULL indirectly.
72611 2008-05-21  Bruno Haible  <bruno@clisp.org>
72613         Add reference doc about ACLs.
72614         * doc/acl-resources.txt: New file.
72615         * doc/acl-cygwin.txt: New file.
72617 2008-05-21  Bruno Haible  <bruno@clisp.org>
72619         Avoid one more warning from gcc.
72620         * lib/vasnprintf.c (IF_LINT): Update comments.
72621         (VASNPRINTF): Use it also for the 'prefix' array initializer.
72623 2008-05-21  Jim Meyering  <meyering@redhat.com>
72625         avoid a warning from gcc
72626         * lib/vasnprintf.c (IF_LINT): Define.
72627         (scale10_round_decimal_long_double):
72628         Use it to avoid a "may be used uninitialized" warning.
72629         (scale10_round_decimal_double): Likewise.
72631 2008-05-21  Simon Josefsson  <simon@josefsson.org>
72633         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
72634         declared.
72636 2008-05-20  Bruno Haible  <bruno@clisp.org>
72638         * tests/test-memcmp.c (main): Test also the sign of the result. Test
72639         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
72641 2008-05-20  Simon Josefsson  <simon@josefsson.org>
72643         * modules/memcmp-tests: New file.
72644         * tests/test-memcmp.c: New file.
72646 2008-05-19  Bruno Haible  <bruno@clisp.org>
72648         * modules/propername (Notice, configure.ac): Put quoted "..." into
72649         --keyword option.
72650         * lib/propername.h: Update comments accordingly.
72651         Reported by Eric Blake.
72653 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
72655         * modules/getpass-gnu (Depends-on): Add fseeko.
72657 2008-05-19  Simon Josefsson  <simon@josefsson.org>
72659         * modules/base64-tests: New file.
72661 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
72663         * lib/base64.c (base64_decode_ctx): If a decode context structure
72664         was passed in use it to ignore newlines.  If a context structure
72665         was _not_ passed in, continue to treat newlines as garbage (this
72666         is the historical behavior).  Formerly base64_decode.
72667         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
72668         takes a decode context structure.
72669         * lib/base64.h (base64_decode): Macro for four-argument calls.
72670         (base64_decode_alloc): Likewise.
72671         * lib/base64.c (base64_decode_ctx): If a decode context structure
72672         was passed in use it to ignore newlines.  If a context structure
72673         was _not_ passed in, continue to treat newlines as garbage (this
72674         is the historical behavior).  Formerly base64_decode.
72675         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
72676         takes a decode context structure.
72677         * lib/base64.h (base64_decode): Macro for four-argument calls.
72678         (base64_decode_alloc): Likewise.
72680 2008-05-19  Jim Meyering  <meyering@redhat.com>
72682         avoid a warning from gcc
72683         * lib/trim.c (IF_LINT): Define.
72684         (trim2): Use it to avoid a "may be used uninitialized" warning.
72686         Fix doc typo.
72687         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
72689 2008-05-19  Bruno Haible  <bruno@clisp.org>
72691         * doc/glibc-functions/getpass.texi: Document limits of other
72692         implementations.
72694 2008-05-19  Simon Josefsson  <simon@josefsson.org>
72695             Bruno Haible <bruno@clisp.org>
72697         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
72699 2008-05-18  Bruno Haible  <bruno@clisp.org>
72701         * modules/propername: New file, from GNU gettext.
72702         * lib/propername.h: New file, from GNU gettext.
72703         * lib/propername.c: New file, from GNU gettext.
72704         * MODULES.html.sh (Internationalization functions): Add propername.
72706 2008-05-16  Jim Meyering  <meyering@redhat.com>
72707             Bruno Haible  <bruno@clisp.org>
72709         Avoid some warnings from "gcc -Wshadow".
72710         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
72712 2008-05-15  Eric Blake  <ebb9@byu.net>
72714         Extend previous patch to cygwin 1.7.0.
72715         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
72716         fast implementation in cygwin >= 1.7.0.
72717         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72720 2008-05-15  Bruno Haible  <bruno@clisp.org>
72722         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
72723         implementation in glibc >= 2.9.
72724         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72727 2008-05-15  Bruno Haible  <bruno@clisp.org>
72729         * MODULES.html.sh (Internationalization functions): Remove linebreak.
72730         (Unicode string functions): Add unilbrk/*.
72731         Reported by Karl Berry.
72733 2008-05-15  Eric Blake  <ebb9@byu.net>
72735         Fix violation of <stdbool.h> replacement in regex.
72736         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
72737         * lib/regexec.c (re_search_internal): Likewise.
72738         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
72740 2008-05-15  Jim Meyering  <meyering@redhat.com>
72742         avoid distracting test output when git or cvs is not found
72743         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
72744         * tests/test-vc-list-files-git.sh: Likewise.
72746 2008-05-15  Eric Blake  <ebb9@byu.net>
72748         Glibc finally accepted the memmem speedup code, bugzilla #5514.
72749         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
72750         glibc version.
72751         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
72752         * doc/posix-functions/strstr.texi (strstr): Likewise.
72753         * lib/str-two-way.h (MAX): Sychronize with glibc.
72755 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
72757         * lib/regcomp.c (optimize_utf8): Add a note on why we test
72758         opr.ctx_type.
72759         (calc_first): Initialize constraint field.
72760         (duplicate_node_closure): Use it instead of special casing ANCHORS.
72761         Fix grammar.
72762         (duplicate_node): Merge constraint field for all node types.
72763         (calc_eclosure_iter): Look at constraint field for all node types.
72764         * lib/regex_internal.c (create_cd_newstate): Don't look at
72765         opr.ctx_type.
72767 2008-05-14  Bruno Haible  <bruno@clisp.org>
72769         Help GCC to do better code generation.
72770         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
72771         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
72772         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
72773         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
72774         Declare with attribute 'malloc' if supported.
72776 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
72778         use "echo STR|wc -c" rather than unportable "expr length STR"
72779         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
72780         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
72782 2008-05-14  Jim Meyering  <meyering@redhat.com>
72784         use dd ibs=$n count=1 ... rather than less-portable head -c$n
72785         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
72786         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
72787         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
72788         via Collin Lasse.
72790 2008-05-14  Eric Blake  <ebb9@byu.net>
72792         Avoid quadratic growth in gl_LIBSOURCES.
72793         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
72794         Suggested by Bruno Haible.
72796         Test xmemdup0.
72797         * modules/xmemdup0-tests: New file.
72798         * tests/test-xmemdup0.c: Likewise.
72800 2008-05-13  Eric Blake  <ebb9@byu.net>
72802         Split xmemdup0 into its own module.
72803         * modules/xmemdup0: New file.
72804         * lib/xmemdup0.h: Likewise.
72805         * lib/xmemdup0.c: Likewise.
72806         * MODULES.html.sh (Memory management functions): Add xmemdup0.
72807         * lib/xalloc.h (xmemdup0): Remove.
72808         * lib/xmalloc.c (xmemdup0): Likewise.
72810 2008-05-13  Eric Blake  <ebb9@byu.net>
72811             Bruno Haible  <bruno@clisp.org>
72813         Reduce number of forks required during autoconf.
72814         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
72815         and gl_LIBSOURCES_DIR.
72816         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
72817         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
72818         m4_syscmd per file.
72819         <m4_foreach_w>: Move...
72820         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
72822 2008-05-13  Eric Blake  <ebb9@byu.net>
72824         * gnulib-tool: Fix various comment typos.
72826 2008-05-12  Bruno Haible  <bruno@clisp.org>
72828         Tailor the linebreaking algorithm.
72829         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
72831 2008-05-12  Bruno Haible  <bruno@clisp.org>
72833         Update to Unicode 5.0.0.
72834         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
72835         LBP_JV, LBP_JT. Redistribute values.
72836         (unilbrk_table): Change size.
72837         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
72838         Unicode TR#14 rev. 22.
72839         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
72840         LBP_JV, LBP_JT. Redistribute values.
72841         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
72842         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
72843         Update.
72844         * lib/unilbrk/lbrkprop1.h: Regenerated.
72845         * lib/unilbrk/lbrkprop2.h: Regenerated.
72846         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
72847         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
72848         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
72849         Likewise.
72850         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
72851         Likewise.
72852         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
72853         result.
72854         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
72855         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
72856         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
72857         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
72858         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
72859         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
72861 2008-05-11  Bruno Haible  <bruno@clisp.org>
72863         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
72865 2008-05-11  Bruno Haible  <bruno@clisp.org>
72867         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
72868         * modules/unilbrk/gen-lbrk: New file.
72870 2008-05-11  Bruno Haible  <bruno@clisp.org>
72872         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
72873         * m4/sha512.m4 (gl_SHA512): Likewise.
72875 2008-05-11  Jim Meyering  <meyering@redhat.com>
72877         New modules: crypto/sha256, crypto/sha512 (from coreutils)
72878         * modules/crypto/sha256: New file.
72879         * modules/crypto/sha512: Likewise.
72880         * lib/sha256.c: Likewise.
72881         * lib/sha256.h: Likewise.
72882         * lib/sha512.c: Likewise.
72883         * lib/sha512.h: Likewise.
72884         * lib/u64.h: Likewise.
72885         * m4/sha256.m4: Likewise.
72886         * m4/sha512.m4: Likewise.
72887         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
72889 2008-05-10  Bruno Haible  <bruno@clisp.org>
72891         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
72892         (Input/Output <stdio.h>): Add xprintf.
72893         (Signal handling <signal.h>): Add strsignal.
72894         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
72895         (Core language properties): Add func.
72896         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
72897         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
72898         strings.
72899         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
72900         (Input/output): New section.
72901         (File system functions): Add openat-die, stat-macros.
72902         (Networking functions): Add sockets.
72903         (Unicode string functions): Add unictype/*.
72904         (Support for building libraries and executables): Add gperf.
72905         (Support for building documentation): Add agpl-3.0.
72906         (Misc): Add nocrash.
72908 2008-05-10  Bruno Haible  <bruno@clisp.org>
72910         * modules/unictype/gen-ctype: New file.
72912 2008-05-10  Jim Meyering  <meyering@redhat.com>
72914         Make chdir-safer.c more efficient on a system with no symlinks.
72915         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
72916         also if ELOOP is zero.  Suggested by Bruno Haible.
72918         Make chdir-safer.c slightly safer.
72919         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
72920         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
72922         Avoid compile failure on systems without ELOOP (like mingw).
72923         * lib/chdir-safer.c (ELOOP): Define if not already defined.
72924         Reported by Bruno Haible.
72926 2008-05-10  Bruno Haible  <bruno@clisp.org>
72928         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
72929         (is_utf8_encoding): Use a case-insensitive comparison.
72930         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
72931         streq.
72933 2008-05-10  Bruno Haible  <bruno@clisp.org>
72935         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
72936         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
72937         * lib/unilbrk/ulc-common.h (iconv_string_length,
72938         iconv_string_keeping_offsets): Remove declarations.
72939         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
72940         Don't include <iconv.h>, streq.h, xsize.h.
72941         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
72942         conversion.
72943         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
72944         <iconv.h>, streq.h, xsize.h.
72945         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
72946         conversion.
72947         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
72948         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
72949         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
72950         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
72952 2008-05-10  Bruno Haible  <bruno@clisp.org>
72954         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
72955         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
72957         * modules/unilbrk/u32-width-linebreaks-tests: New file.
72958         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
72960         * modules/unilbrk/u16-width-linebreaks-tests: New file.
72961         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
72963         * modules/unilbrk/u8-width-linebreaks-tests: New file.
72964         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
72966         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
72967         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
72969         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
72970         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
72972         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
72973         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
72975         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
72976         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
72978 2008-05-10  Bruno Haible  <bruno@clisp.org>
72980         Split up 'linebreak' module.
72981         * lib/unilbrk.h: New file, based on lib/linebreak.h.
72982         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
72983         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
72984         modifications.
72985         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
72986         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
72987         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
72988         lib/linebreak.c.
72989         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
72990         lib/linebreak.c.
72991         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
72992         lib/linebreak.c.
72993         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
72994         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
72995         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
72996         lib/linebreak.c.
72997         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
72998         lib/linebreak.c.
72999         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
73000         lib/linebreak.c.
73001         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
73002         lib/linebreak.c.
73003         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
73004         lib/linebreak.c.
73005         * modules/unilbrk/base: New file.
73006         * modules/unilbrk/tables: New file.
73007         * modules/unilbrk/u8-possible-linebreaks: New file.
73008         * modules/unilbrk/u16-possible-linebreaks: New file.
73009         * modules/unilbrk/u32-possible-linebreaks: New file.
73010         * modules/unilbrk/ulc-common: New file.
73011         * modules/unilbrk/ulc-possible-linebreaks: New file.
73012         * modules/unilbrk/u8-width-linebreaks: New file.
73013         * modules/unilbrk/u16-width-linebreaks: New file.
73014         * modules/unilbrk/u32-width-linebreaks: New file.
73015         * modules/unilbrk/ulc-width-linebreaks: New file.
73016         * lib/linebreak.h: Remove file.
73017         * lib/linebreak.c: Remove file.
73018         * m4/linebreak.m4: Remove file.
73019         * modules/linebreak: Remove file.
73020         * NEWS: Mention the changes.
73022 2008-05-09  Eric Blake  <ebb9@byu.net>
73024         Add xmemdup0.
73025         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
73026         implementation.
73027         * lib/xmalloc.c (xmemdup0): New C implementation.
73029 2008-05-08  Bruno Haible  <bruno@clisp.org>
73031         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
73033 2008-05-07  Eric Blake  <ebb9@byu.net>
73035         Support cross-compilation of <wctype.h>.
73036         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
73037         AC_CACHE_CHECK.
73039 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
73041         * build-aux/vc-list-files: Add support for bzr.
73043 2008-05-03  Jim Meyering  <meyering@redhat.com>
73045         avoid failed assertion with tight malloc
73046         * tests/test-getndelim2.c: Correct an off-by-one assertion.
73048 2008-05-03  Simon Josefsson  <simon@josefsson.org>
73050         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
73051         are needed from arpa/inet.h.
73052         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
73053         Reported by Bruno Haible.
73055 2008-05-02  Jim Meyering  <meyering@redhat.com>
73057         avoid compilation error on FreeBSD 6
73058         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
73060 2008-05-01  Jim Meyering  <meyering@redhat.com>
73062         useless-if-before-free: correct --help's exit status description
73063         * build-aux/useless-if-before-free (usage): Like grep, exit 0
73064         for one or more matches, etc.  Reported by Bruno Haible.
73066         vc-list-files: make the stand-alone gnulib test work
73067         * modules/vc-list-files-tests (configure.ac):
73068         Define and AC_SUBST abs_aux_dir.
73069         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
73070         $(abs_top_srcdir) to each script and having each of them
73071         duplicate the work of setting PATH, set PATH here, using
73072         the new variable, abs_aux_dir instead.
73073         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
73074         * tests/test-vc-list-files-git.sh: Likewise.
73075         Reported by Bruno Haible.
73077 2008-05-01  Bruno Haible  <bruno@clisp.org>
73079         * lib/getndelim2.c (getndelim2): Fix newsize computation during
73080         reallocation. Rename 'done' to 'found_delimiter'.
73082 2008-05-01  Jim Meyering  <meyering@redhat.com>
73084         vc-list-files: accommodate /bin/sh like the one from Solaris 10
73085         * build-aux/vc-list-files: Use `...`, not $(...).
73087 2008-04-30  Jim Meyering  <meyering@redhat.com>
73089         add tests for vc-list-files
73090         * modules/vc-list-files-tests: New module.
73091         * tests/test-vc-list-files-cvs.sh: New file.
73092         * tests/test-vc-list-files-git.sh: New file.
73094         avoid a warning from gcc
73095         * lib/getndelim2.c (IF_LINT): Define.
73096         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
73098         vc-list-files: work properly with build-aux/cvsu, too
73099         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
73100         to all cvs-based clauses.
73102         vc-list-files: work properly in the CVS+awk case, too
73103         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
73105         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
73106         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
73107         take more than one file argument, so .  Add quotes, just in case $dir
73108         ever contains a shell meta-character.  Prompted by Soren Hansen in
73109         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
73111 2008-04-29  Eric Blake  <ebb9@byu.net>
73113         Optimize getndelim2 to use block operations when possible.
73114         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
73115         freadseek, and memchr2.
73116         * lib/getndelim2.c (getndelim2): Use them for block reads.
73118 2008-04-29  Bruno Haible  <bruno@clisp.org>
73120         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
73121         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73122         * modules/inet_ntop (Depends-on): Add extensions.
73123         * modules/inet_pton (Depends-on): Likewise.
73124         Reported by Simon Josefsson.
73126 2008-04-29  Jim Meyering  <meyering@redhat.com>
73128         When the is more than one match in a block, match all of them.
73129         * build-aux/useless-if-before-free: Iterate through each block
73130         until there are no more matches.
73132         Fix broken useless-if-before-free script.
73133         * build-aux/useless-if-before-free: Fix typo: missing "?" after
73134         the expression to match cast of argument to free-like function.
73136 2008-04-29  Eric Blake  <ebb9@byu.net>
73138         Use new header.
73139         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
73141 2008-04-29  Jim Meyering  <meyering@redhat.com>
73143         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
73144         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
73145         by gnulib to exist and to declare e.g., inet_ntop.
73146         Don't include "inet_ntop.h", now removed.
73148         * m4/arpa_inet_h.m4: Remove trailing blanks.
73150 2008-04-29  Eric Blake  <ebb9@byu.net>
73152         Silence valgrind on safe reads beyond potential array bounds.
73153         * lib/rawmemchr.valgrind: New file.
73154         * lib/strchrnul.valgrind: Likewise.
73155         * modules/rawmemchr (Files): Distribute new file.
73156         * modules/strchrnul (Files): Likewise.
73157         Suggested by Bruno Haible.
73159 2008-04-29  Bruno Haible  <bruno@clisp.org>
73161         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
73162         (inet_ntop, inet_pton): Change portability warning's wording.
73163         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
73164         Invoke gl_CHECK_NEXT_HEADERS.
73165         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
73166         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
73167         set ARPA_INET_H.
73168         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73169         * modules/arpa_inet (Description): No longer only for systems that
73170         lack it.
73171         (Depends-on): Add include_next.
73172         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
73173         HAVE_ARPA_INET_H.
73175 2008-04-29  Jim Meyering  <meyering@redhat.com>
73177         * modules/mkdir (License): Re-license as LGPLv2+.
73179 2008-04-29  Bruno Haible  <bruno@clisp.org>
73181         * modules/rawmemchr (Maintainer): Set to Eric.
73182         * modules/strchrnul (Maintainer): Likewise.
73184 2008-04-29  Simon Josefsson  <simon@josefsson.org>
73186         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
73187         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
73189         * modules/arpa_inet (arpa/inet.h): Use them.
73191 2008-04-28  Eric Blake  <ebb9@byu.net>
73193         Test getndelim2.
73194         * modules/getndelim2-tests: New file.
73195         * tests/test-getndelim2.c: Likewise.
73196         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
73197         stream.
73198         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
73200         * MODULES.html.sh: Document new module.
73202 2008-04-20  Bruno Haible  <bruno@clisp.org>
73204         * lib/c-stack.c (die): Use raise.
73205         * modules/c-stack (Depends-on): Add raise.
73207 2008-04-28  Bruno Haible  <bruno@clisp.org>
73209         Expect rpmatch to be declared.
73210         * lib/yesno.c (rpmatch): Remove declaration.
73212         Declare rpmatch.
73213         * lib/stdlib.in.h (rpmatch): New declaration.
73214         * lib/rpmatch.c: Include <stdlib.h> first.
73215         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
73216         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
73217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
73218         HAVE_RPMATCH.
73219         * modules/rpmatch (Depends-on): Add stdlib, extensions.
73220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73221         (Include): Set to <stdlib.h>.
73222         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
73223         HAVE_RPMATCH.
73224         * NEWS: Document the change.
73226 2008-04-28  Bruno Haible  <bruno@clisp.org>
73228         Change rpmatch to use nl_langinfo when appropriate.
73229         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
73230         (N_): New macro.
73231         (localized_pattern): New function/macro.
73232         (try): Remove match, nomatch arguments. Copy the pattern into safe
73233         memory before caching it.
73234         (rpmatch): Use localized_pattern. Add translator comments.
73235         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
73236         Suggested by Eric Blake.
73237         * modules/rpmatch (Depends-on): Add stdbool.
73239 2008-04-28  Eric Blake  <ebb9@byu.net>
73241         Add rawmemchr module, matching glibc.
73242         * modules/string (Makefile.am): New indicator.
73243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
73244         * lib/string.in.h (rawmemchr): Declare when appropriate.
73245         * modules/rawmemchr: New file.
73246         * m4/rawmemchr.m4: Likewise.
73247         * lib/rawmemchr.c: Likewise.
73248         * modules/rawmemchr-tests: Likewise.
73249         * tests/test-rawmemchr.c: Likewise.
73250         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
73251         module.
73252         * modules/strchrnul (Depends-on): Add rawmemchr.
73253         * lib/strchrnul.c (strchrnul): Optimize a corner case.
73255         Whitespace cleanup.
73256         * tests/test-strchrnul.c: Reindent.
73257         * lib/strchrnul.c: Likewise.
73259         Optimize and test strchrnul.
73260         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
73261         * modules/strchrnul-tests: New file.
73262         * tests/test-strchrnul.c: Likewise.
73264         Remove intprops dependency.
73265         * modules/memchr (Depends-on): Remove intprops.
73266         * modules/memrchr (Depends-on): Likewise.
73267         * modules/memchr2 (Depends-on): Likewise.
73268         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
73269         * lib/memrchr.c (__memrchr): Likewise.
73270         * lib/memrchr2.c (memchr2): Likewise.
73271         Reported by Simon Josefsson.
73273 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73275         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
73276         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73278 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73280         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
73282         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
73284         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
73286         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
73287         declarations.
73288         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
73290         * m4/inet_pton.m4: Don't check for header files.
73292         * m4/inet_ntop.m4: Don't check for header files.
73294 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73296         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
73297         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
73298         trigger for cygwin).
73299         Reported by Bruno Haible  <bruno@clisp.org>.
73301 2008-04-28  Bruno Haible  <bruno@clisp.org>
73303         * doc/posix-functions/strdup.texi: Mention mingw problem.
73305 2008-04-27  Bruno Haible  <bruno@clisp.org>
73307         * modules/stat-time-tests (Depends-on): Add sleep.
73308         * tests/test-stat-time.c (force_unlink): New function.
73309         (cleanup): Use it.
73310         (test_mtime): Remove the ctime related tests.
73311         (test_ctime): New function, containing the ctime related tests.
73312         (main): Call test_ctime, except on native Windows platforms.
73314 2008-04-27  Bruno Haible  <bruno@clisp.org>
73316         * lib/rpmatch.c (rpmatch): Add some comments.
73317         Reported by James Youngman <jay@gnu.org>.
73319 2008-04-27  Bruno Haible  <bruno@clisp.org>
73321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
73322         quiet NaNs.
73324 2008-04-27  Bruno Haible  <bruno@clisp.org>
73326         Make test-yesno.sh work on mingw.
73327         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
73328         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
73329         (main): Set stdin to binary mode.
73330         * modules/yesno-tests (Depends-on): Add binary-io.
73332 2008-04-27  Bruno Haible  <bruno@clisp.org>
73334         Fix 'isfinite' on x86, x86_64, ia64 platforms.
73335         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
73336         argument that lie outside the IEEE 854 domain.
73337         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
73338         (gl_ISFINITE): Use it.
73339         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
73341 2008-04-27  Bruno Haible  <bruno@clisp.org>
73343         Allow local renaming in config.h.
73344         * lib/memrchr.c (memrchr): Don't undefine outside libc.
73346 2008-04-27  Bruno Haible  <bruno@clisp.org>
73348         * lib/memchr.c (__memchr): Change type of 'i'.
73349         * lib/memchr2.c (memchr2): Likewise.
73351 2008-04-26  Eric Blake  <ebb9@byu.net>
73352         and Bruno Haible  <bruno@clisp.org>
73354         Optimize and test memrchr.
73355         * modules/memrchr (Depends-on): Add intprops.
73356         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
73357         * modules/memrchr-tests: New file.
73358         * tests/test-memrchr.c: New file.
73360 2008-04-26  Bruno Haible  <bruno@clisp.org>
73362         Add tentative support for DragonFly BSD.
73363         * lib/stdio-impl.h: Add macros for DragonFly BSD.
73364         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
73365         fp.
73366         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
73367         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
73368         * lib/fpurge.c (fpurge): Likewise.
73369         * lib/freadable.c (freaadable): Likewise.
73370         * lib/freadahead.c (freadahead): Likewise.
73371         * lib/freading.c (freading): Likewise.
73372         * lib/freadptr.c (freadptr): Likewise.
73373         * lib/freadseek.c (freadptrinc): Likewise.
73374         * lib/fseeko.c (fseeko): Likewise.
73375         * lib/fseterr.c (fseterr): Likewise.
73376         * lib/fwritable.c (fwritable): Likewise.
73377         * lib/fwriting.c (fwriting): Likewise.
73379 2008-04-26  Bruno Haible  <bruno@clisp.org>
73381         * lib/stdio-impl.h: New file.
73382         * lib/fbufmode.c: Include stdio-impl.h.
73383         (fbufmode): Use fp_, remove redundant #defines.
73384         * lib/fflush.c: Include stdio-impl.h.
73385         (clear_ungetc_buffer): Remove redundant #defines.
73386         * lib/fpurge.c: Include stdio-impl.h.
73387         (fpurge): Remove redundant #defines.
73388         * lib/freadable.c: Include stdio-impl.h.
73389         (freadable): Remove redundant #defines.
73390         * lib/freadahead.c: Include stdio-impl.h.
73391         (freadahead): Remove redundant #defines.
73392         * lib/freading.c: Include stdio-impl.h.
73393         (freading): Remove redundant #defines.
73394         * lib/freadptr.c: Include stdio-impl.h.
73395         (freadptr): Remove redundant #defines.
73396         * lib/freadseek.c: Include stdio-impl.h.
73397         (freadptrinc): Remove redundant #defines.
73398         * lib/fseeko.c: Include stdio-impl.h.
73399         (rpl_fseeko): Remove redundant #defines.
73400         * lib/fseterr.c: Include stdio-impl.h.
73401         (fseterr): Remove redundant #defines.
73402         * lib/fwritable.c: Include stdio-impl.h.
73403         (fwritable: Remove redundant #defines.
73404         * lib/fwriting.c: Include stdio-impl.h.
73405         (fwriting): Remove redundant #defines.
73406         * modules/fbufmode (Files): Add lib/stdio-impl.h.
73407         * modules/fflush (Files): Likewise.
73408         * modules/fpurge (Files): Likewise.
73409         * modules/freadable (Files): Likewise.
73410         * modules/freadahead (Files): Likewise.
73411         * modules/freading (Files): Likewise.
73412         * modules/freadptr (Files): Likewise.
73413         * modules/freadseek (Files): Likewise.
73414         * modules/fseeko (Files): Likewise.
73415         * modules/fseterr (Files): Likewise.
73416         * modules/fwritable (Files): Likewise.
73417         * modules/fwriting (Files): Likewise.
73419 2008-04-26  Bruno Haible  <bruno@clisp.org>
73421         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
73422         restore_seek_optimization, update_fpos_cache): New functions, extracted
73423         from rpl_fflush.
73424         (rpl_fflush): Use them.
73425         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
73426         (gl_REPLACE_FFLUSH): Use it.
73428 2008-04-26  Bruno Haible  <bruno@clisp.org>
73430         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
73431         on Solaris.
73432         * tests/test-xstrtoimax.sh: Likewise.
73433         * tests/test-xstrtoumax.sh: Likewise.
73434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73436 2008-04-26  Bruno Haible  <bruno@clisp.org>
73438         * modules/memchr-tests: New file.
73439         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
73441 2008-04-26  Eric Blake  <ebb9@byu.net>
73442             Bruno Haible  <bruno@clisp.org>
73444         * lib/memchr.c: Include intprops.h.
73445         (__memchr): Optimize parallel detection of matching bytes. Rename local
73446         variables. Add explanatory comments.
73448 2008-04-26  Bruno Haible  <bruno@clisp.org>
73450         Fix module 'memchr', broken since 2000-10-28.
73451         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
73453 2008-04-26  Bruno Haible  <bruno@clisp.org>
73455         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
73456         comments.
73458 2008-04-25  Eric Blake  <ebb9@byu.net>
73460         Use native fstatat on cygwin 1.7.0.
73461         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
73462         first.
73464 2008-04-23  Eric Blake  <ebb9@byu.net>
73466         Improve memchr2 performance.
73467         * lib/memchr2.c (memchr2): Further optimize parallel detection of
73468         NUL bytes.
73469         * modules/memchr2 (Depends-on): Use intprops.h.
73471 2008-04-23  Simon Josefsson  <simon@josefsson.org>
73473         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
73474         an inline function instead of a CPP macro.  Patch by Ben Pfaff
73475         <blp@cs.stanford.edu>.
73477 2008-04-23  Simon Josefsson  <simon@josefsson.org>
73479         * lib/arpa_inet.in.h: New file.
73481         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
73482         (Makefile.am): Sed in substitute header file.
73484         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
73485         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
73487         * modules/inet_ntop (configure.ac): Use
73488         gl_ARPA_INET_MODULE_INDICATOR.
73490         * modules/inet_pton (configure.ac): Use
73491         gl_ARPA_INET_MODULE_INDICATOR.
73493 2008-04-22  Jim Meyering  <meyering@redhat.com>
73495         * modules/verify (License): Re-license as LGPLv2+.
73497 2008-04-22  Simon Josefsson  <simon@josefsson.org>
73499         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
73500         parameter to void* as per POSIX standard (MinGW uses char*).
73502 2008-04-21  Bruno Haible  <bruno@clisp.org>
73504         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73505         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73506         Define to replacements if REPLACE_ISWCNTRL is 1.
73507         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
73508         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
73509         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
73510         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
73511         what it fixes.
73512         * doc/posix-functions/iswalpha.texi: Likewise.
73513         * doc/posix-functions/iswblank.texi: Likewise.
73514         * doc/posix-functions/iswcntrl.texi: Likewise.
73515         * doc/posix-functions/iswdigit.texi: Likewise.
73516         * doc/posix-functions/iswgraph.texi: Likewise.
73517         * doc/posix-functions/iswlower.texi: Likewise.
73518         * doc/posix-functions/iswprint.texi: Likewise.
73519         * doc/posix-functions/iswpunct.texi: Likewise.
73520         * doc/posix-functions/iswspace.texi: Likewise.
73521         * doc/posix-functions/iswupper.texi: Likewise.
73522         * doc/posix-functions/iswxdigit.texi: Likewise.
73523         Reported by Alain Guibert.
73525 2008-04-21  Bruno Haible  <bruno@clisp.org>
73527         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
73528         Patch by Alain Guibert.
73530 2008-04-21  Bruno Haible  <bruno@clisp.org>
73532         Fix test failures on mingw.
73533         * tests/test-xstrtol.c (print_no_progname): New function.
73534         (main): Install it in error_print_progname hook.
73535         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
73536         * tests/test-xstrtoimax.sh: Likewise.
73537         * tests/test-xstrtoumax.sh: Likewise.
73539 2008-04-21  Bruno Haible  <bruno@clisp.org>
73541         Fix test failure on mingw.
73542         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
73544 2008-04-21  Bruno Haible  <bruno@clisp.org>
73546         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
73547         Actually assign a value.
73549 2008-04-20  Bruno Haible  <bruno@clisp.org>
73551         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
73552         take 2.
73553         * lib/canonicalize.c (canonicalize_file_name): Elide if the
73554         'canonicalize-lgpl' module is also used.
73555         * lib/canonicalize-lgpl.c: Undo last change.
73556         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
73558 2008-04-20  Bruno Haible  <bruno@clisp.org>
73560         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
73561         config.h. Provide _mkdir based fallback for mingw.
73562         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
73563         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
73564         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
73565         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
73566         rather than defining mkdir in config.h.
73567         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
73568         (gl_SYS_STAT_H_DEFAULTS): New macro.
73569         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
73570         HAVE_IO_H any more.
73571         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
73572         HAVE_DECL_MKDIR and HAVE_IO_H.
73574 2008-04-20  Bruno Haible  <bruno@clisp.org>
73576         * lib/isapipe.c: Port to native Windows platforms.
73578 2008-04-20  Bruno Haible  <bruno@clisp.org>
73580         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
73582 2008-04-21  Eric Blake  <ebb9@byu.net>
73584         Work around preprocessors that don't handle UINTMAX_MAX.
73585         * lib/memchr2.c (memchr2): Avoid embedded #if.
73586         Reported by Alain Guibert, fix suggested by Bruno Haible.
73588 2008-04-21  Simon Josefsson  <simon@josefsson.org>
73590         * doc/posix-functions/strftime.texi (strftime): Explain better
73591         Windows incompatibility.  Suggested by Micah Cowan
73592         <micah@cowan.name>.
73594 2008-04-20  Bruno Haible  <bruno@clisp.org>
73596         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
73597         unistr/u8-mblen.
73599 2008-04-20  Bruno Haible  <bruno@clisp.org>
73601         Fix test failure on platforms with non-GNU iconv.
73602         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
73603         (U_TO_U8): Use it, rather than u16_to_u8.
73604         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
73605         units at the end of the input string.
73606         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
73608 2008-04-20  Bruno Haible  <bruno@clisp.org>
73610         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
73611         when the resulting length is 0.
73612         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
73614 2008-04-20  Bruno Haible  <bruno@clisp.org>
73616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
73617         works.
73618         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
73620 2008-04-20  Bruno Haible  <bruno@clisp.org>
73622         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
73623         * modules/tsearch-tests (configure.ac): Test for initstate function.
73625 2008-04-20  Bruno Haible  <bruno@clisp.org>
73627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
73628         for nlink_t if missing.
73629         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
73631 2008-04-19  Bruno Haible  <bruno@clisp.org>
73633         Work around snprintf bug on Linux libc5.
73634         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
73635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
73636         gl_SNPRINTF_SIZE1.
73637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73638         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
73639         that test failed.
73640         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
73641         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
73642         * modules/snprintf (Files): Add m4/printf.m4.
73643         * modules/vsnprintf (Files): Likewise.
73644         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
73645         * doc/posix-functions/vsnprintf.texi: Likewise.
73647 2008-04-19  Bruno Haible  <bruno@clisp.org>
73649         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
73650         from 0.0058 to less than 10^-7.
73652 2008-04-19  Bruno Haible  <bruno@clisp.org>
73654         Fix rounding when a precision is given.
73655         * lib/vasnprintf.c (is_borderline): New function.
73656         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
73657         9...9x.
73658         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
73659         %e, %g.
73660         * tests/test-vasprintf-posix.c (test_function): Likewise.
73661         * tests/test-snprintf-posix.h (test_function): Likewise.
73662         * tests/test-sprintf-posix.h (test_function): Likewise.
73663         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
73664         * tests/test-printf-posix.h (test_function): Likewise.
73665         * tests/test-printf-posix.output: Update.
73666         Reported by John Darrington <john@darrington.wattle.id.au> via
73667         Ben Pfaff <blp@cs.stanford.edu>.
73669 2008-04-18  Simon Josefsson  <simon@josefsson.org>
73671         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
73672         Suggested by Bruno Haible <bruno@clisp.org>.
73674 2008-04-17  Bruno Haible  <bruno@clisp.org>
73676         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
73677         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
73678         implementation.
73679         Patch by Bruce Merry <bmerry@gmail.com>.
73681 2008-04-17  Simon Josefsson  <simon@josefsson.org>
73683         * doc/posix-functions/strftime.texi (strftime): Mention that %e
73684         doesn't work under Windows.
73686 2008-04-16  Bruno Haible  <bruno@clisp.org>
73688         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
73689         New macros.
73690         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
73691         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
73692         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
73693         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
73694         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
73695         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
73696         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
73697         macros.
73698         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
73699         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
73700         Northern Sotho, Uighur.
73702 2008-04-16  Bruno Haible  <bruno@clisp.org>
73704         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
73705         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
73706         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
73707         Reported by Daniel Bergström <daniel@octocode.com>.
73709 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
73710             Bruno Haible  <bruno@clisp.org>
73712         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
73713         function.
73714         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
73715         New functions, mostly extracted from gl_locale_name_default.
73716         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
73718 2008-04-16  Eric Blake  <ebb9@byu.net>
73720         Adjust strtod detection to catch glibc 2.7 bug.
73721         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
73722         Reported by John Gatewood Ham.
73724 2008-04-16  Bruno Haible  <bruno@clisp.org>
73726         Add tentative support for Linux libc5.
73727         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
73728         * lib/fpurge.c (fpurge): Likewise.
73729         * lib/freadable.c (freadable): Likewise.
73730         * lib/freadahead.c (freadahead): Likewise.
73731         * lib/freading.c (freading): Likewise.
73732         * lib/freadptr.c (freadptr): Likewise.
73733         * lib/freadseek.c (freadptrinc): Likewise.
73734         * lib/fseeko.c (rpl_fseeko): Likewise.
73735         * lib/fseterr.c (fseterr): Likewise.
73736         * lib/fwritable.c (fwritable): Likewise.
73737         * lib/fwriting.c (fwriting): Likewise.
73738         Reported by Alain Guibert <alguibert+bts@free.fr>.
73740 2008-04-15  Bruno Haible  <bruno@clisp.org>
73742         * modules/mathl (configure.ac): Define module indicator.
73744 2008-04-15  Bruno Haible  <bruno@clisp.org>
73746         * lib/logl.c (logl): Remove unused variables.
73748 2008-04-15  Bruno Haible  <bruno@clisp.org>
73750         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
73751         fails.
73753 2008-04-15  Bruno Haible  <bruno@clisp.org>
73755         * lib/trim.c (trim2): Fix argument of isspace() macro.
73757 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
73759         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
73760         to 0.
73761         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
73763 2008-04-14  Bruno Haible  <bruno@clisp.org>
73765         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
73766         AC_LANG_PROGRAM argument.
73767         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
73768         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
73769         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
73770         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73771         * m4/math_h.m4 (gl_MATH_H): Likewise.
73772         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
73773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73774         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
73775         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
73776         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73777         * m4/regex.m4 (gl_REGEX): Likewise.
73778         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
73779         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
73780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73781         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
73782         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73783         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73784         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73785         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73787 2008-04-14  Jim Meyering  <meyering@redhat.com>
73789         test-strtod: fix typos: s/abs/fabs/
73790         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
73792 2008-04-13  Bruno Haible  <bruno@clisp.org>
73794         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
73795         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
73796         module is also used and while not building the reloc-wrapper.
73798 2008-04-13  Bruno Haible  <bruno@clisp.org>
73800         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
73802 2008-04-13  Bruno Haible  <bruno@clisp.org>
73804         Fix AIX compilation failure introduced on 2008-04-02.
73805         * tests/test-frexp.c (exp): Undefine before redefining.
73806         * tests/test-frexpl.c (exp): Likewise.
73808 2008-04-13  Bruno Haible  <bruno@clisp.org>
73810         Work around a HP-UX stdio bug.
73811         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
73812         * tests/test-ftello.c (main): Likewise.
73813         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
73814         * doc/posix-functions/ftello.texi: Likewise.
73816 2008-04-13  Bruno Haible  <bruno@clisp.org>
73818         Make test-signbit pass on HP-UX/hppa.
73819         * tests/test-signbit.c (minus_zerol): New variable.
73820         (test_signbitl): Use it.
73822 2008-04-13  Bruno Haible  <bruno@clisp.org>
73824         Make truncl work on OSF/1 4.0.
73825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
73826         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
73827         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
73828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
73829         HAVE_DECL_TRUNCL.
73830         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
73831         HAVE_DECL_TRUNCL.
73832         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
73834 2008-04-13  Bruno Haible  <bruno@clisp.org>
73836         * lib/unictype.h: Remove trailing comma from enumeration definitions.
73838 2008-04-13  Bruno Haible  <bruno@clisp.org>
73840         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
73841         expression, so as to avoid HP-UX 11 cc compiler bug.
73843 2008-04-13  Bruno Haible  <bruno@clisp.org>
73845         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
73847 2008-04-13  Bruno Haible  <bruno@clisp.org>
73849         * lib/git-merge-changelog.c: Remove empty declaration outside of
73850         functions.
73852 2008-04-13  Bruno Haible  <bruno@clisp.org>
73854         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
73856 2008-04-13  Bruno Haible  <bruno@clisp.org>
73858         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
73859         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
73860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
73861         also if it exists but lacks definitions of the SHUT_* macros.
73862         * modules/sys_socket (Description): Update.
73863         Reported by Elbert Pol <e.pol@chello.nl>.
73865 2008-04-13  Bruno Haible  <bruno@clisp.org>
73867         * lib/localcharset.c (OS2): Don't redefine if already defined.
73868         Reported by Elbert Pol <e.pol@chello.nl>.
73870 2008-04-13  Bruno Haible  <bruno@clisp.org>
73872         * lib/binary-io.h [__EMX__]: Include <io.h>.
73873         Reported by Elbert Pol <e.pol@chello.nl>.
73875 2008-04-12  Bruno Haible  <bruno@clisp.org>
73877         * lib/fpucw.h: Enable the definitions also for x86_64.
73878         Needed for NetBSD/x86_64.
73879         Reported by Thomas Klausner <tk@giga.or.at>.
73881 2008-04-12  Bruno Haible  <bruno@clisp.org>
73883         * tests/test-strtod.c: Include isnand.h.
73884         (main): Use isnand instead of isnan.
73885         Reported by Jim Meyering.
73887 2008-04-12  Bruno Haible  <bruno@clisp.org>
73889         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
73890         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73892 2008-04-12  Jim Meyering  <meyering@redhat.com>
73894         * m4/math_h.m4 (gl_MATH_H): Fix typos.
73896 2008-04-12  Bruno Haible  <bruno@clisp.org>
73898         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
73899         Reported by Elbert Pol <e.pol@chello.nl>.
73901 2008-04-12  Eric Blake  <ebb9@byu.net>
73903         Work around Solaris 10 math.h bug.
73904         * m4/math_h.m4 (gl_MATH_H): Check for bug.
73905         (gl_MATH_H_DEFAULTS): Set up default.
73906         * modules/math (Makefile.am): Replace new indicators.
73907         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
73908         * tests/test-math.c (main): Test this.
73909         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
73910         * doc/posix-headers/math.texi (math.h): Mention bug.
73911         Reported by Nelson H. F. Beebe and Jim Meyering.
73913 2008-04-11  Bruno Haible  <bruno@clisp.org>
73915         Adapt to future versions of Apple GCC.
73916         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
73917         Reported by Peter O'Gorman <peter@pogma.com>.
73919 2008-04-11  Bruno Haible  <bruno@clisp.org>
73921         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
73923 2008-04-11  Bruno Haible  <bruno@clisp.org>
73925         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
73927         * modules/getaddrinfo-tests (Makefile.am): Define
73928         test_getaddrinfo_LDADD.
73930 2008-04-11  Bruno Haible  <bruno@clisp.org>
73932         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
73933         (init): Fix syntax error.
73934         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
73935         is declared.
73937 2008-04-11  Bruno Haible  <bruno@clisp.org>
73939         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
73940         * modules/glob (Depends-on): Add stdbool.
73942 2008-04-11  Bruno Haible  <bruno@clisp.org>
73944         * lib/trim.c: Include <string.h>.
73946 2008-04-11  Eric Blake  <ebb9@byu.net>
73948         Avoid compile failure on OS/2.
73949         * lib/regex_internal.h (internal_function): Disable optimization
73950         on OS/2 (__EMX__), where it caused compiler error.
73951         Reported by Elbert Pol.
73953 2008-04-11  Bruno Haible  <bruno@clisp.org>
73955         Flush the standard error stream before aborting. Needed on mingw.
73956         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
73957         * tests/test-array_list.c (ASSERT): Likewise.
73958         * tests/test-array_oset.c (ASSERT): Likewise.
73959         * tests/test-avltree_list.c (ASSERT): Likewise.
73960         * tests/test-avltree_oset.c (ASSERT): Likewise.
73961         * tests/test-avltreehash_list.c (ASSERT): Likewise.
73962         * tests/test-binary-io.c (ASSERT): Likewise.
73963         * tests/test-byteswap.c (ASSERT): Likewise.
73964         * tests/test-c-ctype.c (ASSERT): Likewise.
73965         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
73966         * tests/test-c-strcasestr.c (ASSERT): Likewise.
73967         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
73968         * tests/test-c-strstr.c (ASSERT): Likewise.
73969         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
73970         * tests/test-canonicalize.c (ASSERT): Likewise.
73971         * tests/test-carray_list.c (ASSERT): Likewise.
73972         * tests/test-ceilf1.c (ASSERT): Likewise.
73973         * tests/test-ceilf2.c (ASSERT): Likewise.
73974         * tests/test-ceill.c (ASSERT): Likewise.
73975         * tests/test-count-one-bits.c (ASSERT): Likewise.
73976         * tests/test-fbufmode.c (ASSERT): Likewise.
73977         * tests/test-fflush2.c (ASSERT): Likewise.
73978         * tests/test-floorf1.c (ASSERT): Likewise.
73979         * tests/test-floorf2.c (ASSERT): Likewise.
73980         * tests/test-floorl.c (ASSERT): Likewise.
73981         * tests/test-fopen.c (ASSERT): Likewise.
73982         * tests/test-fpending.c (ASSERT): Likewise.
73983         * tests/test-fprintf-posix.c (ASSERT): Likewise.
73984         * tests/test-fpurge.c (ASSERT): Likewise.
73985         * tests/test-freadable.c (ASSERT): Likewise.
73986         * tests/test-freadahead.c (ASSERT): Likewise.
73987         * tests/test-freading.c (ASSERT): Likewise.
73988         * tests/test-freadptr.c (ASSERT): Likewise.
73989         * tests/test-freadptr2.c (ASSERT): Likewise.
73990         * tests/test-freadseek.c (ASSERT): Likewise.
73991         * tests/test-freopen.c (ASSERT): Likewise.
73992         * tests/test-frexp.c (ASSERT): Likewise.
73993         * tests/test-frexpl.c (ASSERT): Likewise.
73994         * tests/test-fseek.c (ASSERT): Likewise.
73995         * tests/test-fseeko.c (ASSERT): Likewise.
73996         * tests/test-fstrcmp.c (ASSERT): Likewise.
73997         * tests/test-ftell.c (ASSERT): Likewise.
73998         * tests/test-ftello.c (ASSERT): Likewise.
73999         * tests/test-func.c (ASSERT): Likewise.
74000         * tests/test-fwritable.c (ASSERT): Likewise.
74001         * tests/test-fwriting.c (ASSERT): Likewise.
74002         * tests/test-getdelim.c (ASSERT): Likewise.
74003         * tests/test-getline.c (ASSERT): Likewise.
74004         * tests/test-i-ring.c (ASSERT): Likewise.
74005         * tests/test-iconv-utf.c (ASSERT): Likewise.
74006         * tests/test-iconv.c (ASSERT): Likewise.
74007         * tests/test-isfinite.c (ASSERT): Likewise.
74008         * tests/test-isnand.c (ASSERT): Likewise.
74009         * tests/test-isnanf.c (ASSERT): Likewise.
74010         * tests/test-isnanl.h (ASSERT): Likewise.
74011         * tests/test-ldexpl.c (ASSERT): Likewise.
74012         * tests/test-linked_list.c (ASSERT): Likewise.
74013         * tests/test-linkedhash_list.c (ASSERT): Likewise.
74014         * tests/test-localename.c (ASSERT): Likewise.
74015         * tests/test-lseek.c (ASSERT): Likewise.
74016         * tests/test-mbscasecmp.c (ASSERT): Likewise.
74017         * tests/test-mbscasestr1.c (ASSERT): Likewise.
74018         * tests/test-mbscasestr2.c (ASSERT): Likewise.
74019         * tests/test-mbscasestr3.c (ASSERT): Likewise.
74020         * tests/test-mbscasestr4.c (ASSERT): Likewise.
74021         * tests/test-mbschr.c (ASSERT): Likewise.
74022         * tests/test-mbscspn.c (ASSERT): Likewise.
74023         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
74024         * tests/test-mbspbrk.c (ASSERT): Likewise.
74025         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
74026         * tests/test-mbsrchr.c (ASSERT): Likewise.
74027         * tests/test-mbsspn.c (ASSERT): Likewise.
74028         * tests/test-mbsstr1.c (ASSERT): Likewise.
74029         * tests/test-mbsstr2.c (ASSERT): Likewise.
74030         * tests/test-mbsstr3.c (ASSERT): Likewise.
74031         * tests/test-memchr2.c (ASSERT): Likewise.
74032         * tests/test-memmem.c (ASSERT): Likewise.
74033         * tests/test-open.c (ASSERT): Likewise.
74034         * tests/test-printf-frexp.c (ASSERT): Likewise.
74035         * tests/test-printf-frexpl.c (ASSERT): Likewise.
74036         * tests/test-printf-posix.c (ASSERT): Likewise.
74037         * tests/test-quotearg.c (ASSERT): Likewise.
74038         * tests/test-rbtree_list.c (ASSERT): Likewise.
74039         * tests/test-rbtree_oset.c (ASSERT): Likewise.
74040         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
74041         * tests/test-round1.c (ASSERT): Likewise.
74042         * tests/test-roundf1.c (ASSERT): Likewise.
74043         * tests/test-roundl.c (ASSERT): Likewise.
74044         * tests/test-signbit.c (ASSERT): Likewise.
74045         * tests/test-sleep.c (ASSERT): Likewise.
74046         * tests/test-snprintf-posix.c (ASSERT): Likewise.
74047         * tests/test-snprintf.c (ASSERT): Likewise.
74048         * tests/test-sprintf-posix.c (ASSERT): Likewise.
74049         * tests/test-stat-time.c (ASSERT): Likewise.
74050         * tests/test-strcasestr.c (ASSERT): Likewise.
74051         * tests/test-strerror.c (ASSERT): Likewise.
74052         * tests/test-striconv.c (ASSERT): Likewise.
74053         * tests/test-striconveh.c (ASSERT): Likewise.
74054         * tests/test-striconveha.c (ASSERT): Likewise.
74055         * tests/test-strsignal.c (ASSERT): Likewise.
74056         * tests/test-strstr.c (ASSERT): Likewise.
74057         * tests/test-strtod.c (ASSERT): Likewise.
74058         * tests/test-trunc1.c (ASSERT): Likewise.
74059         * tests/test-trunc2.c (ASSERT): Likewise.
74060         * tests/test-truncf1.c (ASSERT): Likewise.
74061         * tests/test-truncf2.c (ASSERT): Likewise.
74062         * tests/test-truncl.c (ASSERT): Likewise.
74063         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
74064         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
74065         * tests/test-vasnprintf.c (ASSERT): Likewise.
74066         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
74067         * tests/test-vasprintf.c (ASSERT): Likewise.
74068         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
74069         * tests/test-vprintf-posix.c (ASSERT): Likewise.
74070         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
74071         * tests/test-vsnprintf.c (ASSERT): Likewise.
74072         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
74073         * tests/test-wcwidth.c (ASSERT): Likewise.
74074         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
74075         * tests/test-xprintf-posix.c (ASSERT): Likewise.
74076         * tests/test-xvasprintf.c (ASSERT): Likewise.
74077         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
74078         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
74079         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
74080         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
74081         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
74082         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
74083         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
74084         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
74085         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
74086         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
74087         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
74088         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
74089         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
74090         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
74091         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
74092         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
74093         * tests/unictype/test-block_list.c (ASSERT): Likewise.
74094         * tests/unictype/test-block_of.c (ASSERT): Likewise.
74095         * tests/unictype/test-block_test.c (ASSERT): Likewise.
74096         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
74097         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
74098         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
74099         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
74100         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
74101         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
74102         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
74103         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
74104         * tests/unictype/test-combining.c (ASSERT): Likewise.
74105         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
74106         * tests/unictype/test-digit.c (ASSERT): Likewise.
74107         * tests/unictype/test-mirror.c (ASSERT): Likewise.
74108         * tests/unictype/test-numeric.c (ASSERT): Likewise.
74109         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
74110         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
74111         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
74112         * tests/unictype/test-scripts.c (ASSERT): Likewise.
74113         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
74114         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
74115         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
74116         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
74117         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
74118         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
74119         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
74120         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
74121         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
74122         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
74123         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
74124         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
74125         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
74126         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
74127         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
74128         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
74129         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
74130         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
74131         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
74132         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
74133         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
74134         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
74135         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
74136         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
74137         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
74138         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
74139         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
74140         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
74141         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
74142         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
74143         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
74144         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
74145         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
74146         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
74147         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
74148         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
74149         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
74150         Reported by Eric Blake.
74152 2008-04-11  Bruno Haible  <bruno@clisp.org>
74154         * lib/wchar.in.h: Tweak comment.
74156 2008-04-11  Bruno Haible  <bruno@clisp.org>
74158         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
74159         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
74160         gl_COMMON.
74161         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
74163 2008-04-11  Bruno Haible  <bruno@clisp.org>
74165         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
74167 2008-04-11  Simon Josefsson  <simon@josefsson.org>
74169         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
74170         of attempting to use non-existing /dev/*random.  Based on patch
74171         from Adam Strzelecki <ono@java.pl> in
74172         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
74174 2008-04-08  Bruno Haible  <bruno@clisp.org>
74176         Add tentative support for emx+gcc.
74177         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
74178         * lib/fpurge.c (fpurge): Likewise.
74179         * lib/freadable.c (freadable): Likewise.
74180         * lib/freadahead.c (freadahead): Likewise.
74181         * lib/freading.c (freading): Likewise.
74182         * lib/freadptr.c (freadptr): Likewise.
74183         * lib/freadseek.c (freadptrinc): Likewise.
74184         * lib/fseeko.c (rpl_fseeko): Likewise.
74185         * lib/fseterr.c (fseterr): Likewise.
74186         * lib/fwritable.c (fwritable): Likewise.
74187         * lib/fwriting.c (fwriting): Likewise.
74188         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
74190 2008-04-09  Eric Blake  <ebb9@byu.net>
74192         Avoid some autoconf warnings.
74193         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
74194         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
74195         * m4/afs.m4 (gl_AFS): Likewise.
74196         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
74197         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
74198         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74199         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
74200         (gl_INTEGER_TYPE_SUFFIX): Likewise.
74201         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
74202         (AC_CHECK_DECLS_ONCE): Likewise.
74203         Rename file...
74204         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
74205         gnulib-tool requires autoconf 2.59 or better.
74206         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
74208 2008-04-08  Eric Blake  <ebb9@byu.net>
74210         Use 'git describe --match' if present (added in git 1.5.5).
74211         * build-aux/git-version-gen: Limit result to tags that match 'v*'
74212         if possible.
74214 2008-04-08  Bruno Haible  <bruno@clisp.org>
74216         Add tentative support for OpenServer.
74217         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
74218         _ptr, _cnt.
74219         * lib/fpurge.c (fpurge): Likewise.
74220         * lib/freadable.c (freadable): Likewise.
74221         * lib/freadahead.c (freadahead): Likewise.
74222         * lib/freading.c (freading): Likewise.
74223         * lib/freadptr.c (freadptr): Likewise.
74224         * lib/freadseek.c (freadptrinc): Likewise.
74225         * lib/fseeko.c (rpl_fseeko): Likewise.
74226         * lib/fseterr.c (fseterr): Likewise.
74227         * lib/fwritable.c (fwritable): Likewise.
74228         * lib/fwriting.c (fwriting): Likewise.
74229         Reported by Roger Cornelius <rac@tenzing.org> and
74230         Brian K. White <brian@aljex.com>.
74232 2008-04-06  Jim Meyering  <meyering@redhat.com>
74234         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
74236 2008-04-06  Bruno Haible  <bruno@clisp.org>
74238         Avoid possible error with non-ASCII bytes in UTF-8 locales.
74239         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
74240         * tests/test-printf-posix.sh: Likewise.
74241         * tests/test-vfprintf-posix.sh: Likewise.
74242         * tests/test-vprintf-posix.sh: Likewise.
74243         * tests/test-xprintf-posix.sh: Likewise.
74245 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74247         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
74248         hide error from 'ls', needed on OS/2.
74249         Report by Elbert Pol <elbert.pol@gmail.com>.
74251 2008-04-04  Eric Blake  <ebb9@byu.net>
74253         Make test-fseeko.c failures meaningful.
74254         * tests/test-fseeko.c: Print line number on failure.
74255         * tests/test-fseek.c: Likewise.
74256         Reported by Nelson H. F. Beebe.
74258         Improve strtod bug detection check.
74259         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
74260         required for Solaris 10.
74261         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
74263 2008-04-04  Bruno Haible  <bruno@clisp.org>
74265         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
74266         by m4/setenv.m4.
74268 2008-04-03  Eric Blake  <ebb9@byu.net>
74270         Ensure sane .version contents.
74271         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
74272         version string.
74273         * build-aux/git-version-gen: Improve documentation.
74275         Make GNU make output nicer.
74276         * top/GNUmakefile [!_have-Makefile]: Add dependency on
74277         MAKECMDGOALS to enforce message for all command line targets.  Set
74278         srcdir for use in maint.mk.
74280         Another maintainer tweak.
74281         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
74282         a target that regenerates version.
74284 2008-04-03  Jim Meyering  <meyering@redhat.com>
74286         vc-list-files: don't cause coreutils "make po-check" failure
74287         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
74289 2008-04-03  Eric Blake  <ebb9@byu.net>
74291         Allow VPATH usage of vc-list-files.
74292         * build-aux/vc-list-files (scriptversion): Add timestamp.
74293         (options): Add --help, --version, -C.
74294         (CVS): Support installed cvsu.
74296 2008-04-02  Bruno Haible  <bruno@clisp.org>
74298         Avoid some "statement with no effect" warnings from gcc.
74299         * tests/test-wctype.c (main): Explicitly ignore unused values.
74300         Reported by Jim Meyering.
74302 2008-04-02  Jim Meyering  <meyering@redhat.com>
74304         Avoid some warnings from "gcc -Wshadow".
74305         * tests/test-frexp.c (exp): Define to a different identifier.
74306         * tests/test-frexpl.c (exp): Likewise.
74308 2008-04-03  Jim Meyering  <meyering@redhat.com>
74310         bootstrap: remove dangling *.[ch] symlinks from lib
74311         * build-aux/bootstrap [dangling symlink removal]: Move find's
74312         -depth option to precede all others, to avoid a warning.
74313         Remove *.[ch] files too, and from "$source_base" (usually lib/).
74315 2008-04-02  Bruno Haible  <bruno@clisp.org>
74317         Avoid some warnings from "gcc -Wshadow".
74318         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
74319         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
74320         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
74321         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
74322         Reported by Jim Meyering.
74324 2008-04-01  Bruno Haible  <bruno@clisp.org>
74326         Fix test to work on IRIX 6.5 with cc.
74327         * tests/test-math.c (numeric_equal): New function.
74328         (main): Use it.
74330 2008-04-01  Bruno Haible  <bruno@clisp.org>
74332         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
74334 2008-04-01  Bruno Haible  <bruno@clisp.org>
74336         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
74337         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74338         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
74339         (Depends-on): Remove math.
74341         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
74342         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74343         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
74344         (Depends-on): Remove math.
74346         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
74347         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74348         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
74349         (Depends-on): Remove math.
74350         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
74351         (Depends-on): Remove math.
74353         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
74354         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74355         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
74356         (Depends-on): Remove math.
74357         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
74358         (Depends-on): Remove math.
74360         * tests/test-round1.c: Include nan.h.
74361         (main): Use NaNd instead of NAN.
74362         * modules/round-tests (Files): Add tests/nan.h.
74364         * tests/test-trunc1.c: Include nan.h.
74365         (main): Use NaNd instead of NAN.
74366         * modules/trunc-tests (Files): Add tests/nan.h.
74368         * tests/test-roundf1.c: Include nan.h.
74369         (main): Use NaNf instead of NAN.
74370         * modules/roundf-tests (Files): Add tests/nan.h.
74372         * tests/test-truncf1.c: Include nan.h.
74373         (main): Use NaNf instead of NAN.
74374         * modules/truncf-tests (Files): Add tests/nan.h.
74376         * tests/test-ceilf1.c: Include nan.h.
74377         (main): Use NaNf instead of NAN.
74378         * modules/ceilf-tests (Files): Add tests/nan.h.
74380         * tests/test-floorf1.c: Include nan.h.
74381         (main): Use NaNf instead of NAN.
74382         * modules/floorf-tests (Files): Add tests/nan.h.
74384         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
74385         (main): Use NaNf instead of NAN.
74386         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
74388         * tests/test-isnand.c: Include nan.h instead of <math.h>.
74389         (main): Use NaNd instead of NAN.
74390         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
74392         * tests/test-frexp.c: Include nan.h.
74393         (main): Use NaNd instead of NAN.
74394         * modules/frexp-tests (Files): Add tests/nan.h.
74396         * lib/isnan.c: Don't include <math.h>.
74397         (FUNC): Don't use NAN macro.
74398         * modules/isnand-nolibm (Depends-on): Remove math.
74399         * modules/isnanf-nolibm (Depends-on): Remove math.
74400         * modules/isnanl (Depends-on): Remove math.
74401         * modules/isnanl-nolibm (Depends-on): Remove math.
74403         * tests/nan.h: New file.
74405 2008-04-01  Eric Blake  <ebb9@byu.net>
74407         Fix typos.
74408         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
74409         values to be the right type.
74411         For now, cater to gnulib strtod inaccuracies.
74412         * tests/test-strtod.c (main): Allow 1-ulp error on expected
74413         fractional results.  While not as nice from a QoI perspective, it
74414         is a quicker patch than correctly implementing decimal to binary
74415         rounding.
74417 2008-03-31  Eric Blake  <ebb9@byu.net>
74419         Guarantee a definition of NAN.
74420         * lib/math.in.h (NAN): Define if missing.
74421         * tests/test-math.c (main): Test it.
74422         * doc/posix-headers/math.texi (math.h): Document this.
74423         * lib/isnan.c (rpl_isnand): Use it.
74424         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
74425         * tests/test-floorf1.c (NaN): Likewise.
74426         * tests/test-frexp.c (NaN): Likewise.
74427         * tests/test-isnand.c (NaN): Likewise.
74428         * tests/test-isnanf.c (NaN): Likewise.
74429         * tests/test-round1.c (NaN): Likewise.
74430         * tests/test-roundf1.c (NaN): Likewise.
74431         * tests/test-snprintf-posix.h (NaN): Likewise.
74432         * tests/test-sprintf-posix.h (NaN): Likewise.
74433         * tests/test-trunc1.c (NaN): Likewise.
74434         * tests/test-truncf1.c (NaN): Likewise.
74435         * tests/test-vasnprintf-posix.c (NaN): Likewise.
74436         * tests/test-vasprintf-posix.c (NaN): Likewise.
74437         * modules/isnand-nolibm (Depends-on): Add math.
74438         * modules/isnanf-nolibm (Depends-on): Likewise.
74439         * modules/isnanl (Depends-on): Likewise.
74440         * modules/isnanl-nolibm (Depends-on): Likewise.
74441         * modules/snprintf-posix-tests (Depends-on): Likewise.
74442         * modules/sprintf-posix-tests (Depends-on): Likewise.
74443         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
74444         * modules/vsprintf-posix-tests (Depends-on): Likewise.
74445         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
74446         * modules/vasprintf-posix-tests (Depends-on): Likewise.
74448 2008-03-31  Bruno Haible  <bruno@clisp.org>
74450         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
74451         * doc/posix-functions/strtod.texi: Likewise.
74453 2008-03-31  Bruno Haible  <bruno@clisp.org>
74455         * tests/test-strtod.c (main): Don't use C99 syntax.
74457 2008-03-31  Bruno Haible  <bruno@clisp.org>
74459         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
74460         Reported by Eric Blake.
74462 2008-03-31  Jim Meyering  <meyering@redhat.com>
74464         Don't compare actual signbit return values.
74465         * tests/test-strtod.c (main): Rather, compare only their
74466         zero/non-zero nature.
74468 2008-03-31  Eric Blake  <ebb9@byu.net>
74470         More strtod documentation.
74471         * doc/posix-functions/strtod.texi (strtod): Interpret more test
74472         failures as distinct bugs.
74474 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
74476         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
74477         Problem reported by Erik Benada in
74478         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
74480 2008-03-30  Bruno Haible  <bruno@clisp.org>
74482         * tests/test-strtod.c: Add comments about which assertion fails on which
74483         platform.
74484         * doc/posix-functions/strtod.texi: Add info about many more platforms.
74486 2008-03-30  Eric Blake  <ebb9@byu.net>
74488         Test signbit behavior on zeros.
74489         * tests/test-signbit.c (test_signbitf): Add tests for zero.
74490         (test_signbitd, test_signbitl): Likewise.
74492         More strtod touchups.
74493         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
74494         sign of negative underflow, for now.  Use .5, not .1.
74495         * doc/posix-functions/strtod.texi (strtod): Mention these
74496         limitations.
74497         Reported by Jim Meyering.
74499 2008-03-30  Bruno Haible  <bruno@clisp.org>
74501         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
74502         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
74504 2008-03-30  Bruno Haible  <bruno@clisp.org>
74506         Avoid failure when attempting to return empty iconv results on some
74507         platforms.
74508         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
74509         allocation, don't report ENOMEM when the resulting string is empty.
74511 2008-03-30  Bruno Haible  <bruno@clisp.org>
74513         Fix buffer overrun.
74514         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
74515         Don't consider the width for tmp_length. Check count against tmp_length
74516         before doing the padding. Ensure enough allocation during padding.
74518 2008-03-30  Eric Blake  <ebb9@byu.net>
74520         strtod touchups.
74521         * lib/strtod.c (strtod): Avoid compiler warnings.
74522         Reported by Jim Meyering.
74524 2008-03-30  Bruno Haible  <bruno@clisp.org>
74526         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
74527         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
74528         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
74529         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
74530         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
74531         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
74532         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
74533         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
74535         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
74536         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
74537         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
74538         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
74539         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
74540         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
74541         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
74542         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
74544         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
74545         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
74546         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
74547         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
74548         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
74549         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
74550         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
74551         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
74553         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
74554         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
74556         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
74557         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
74559         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
74560         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
74562         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
74563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
74564         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
74566         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
74567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
74568         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
74570         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
74571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
74572         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
74574         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
74575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
74576         * modules/vasprintf (Depends-on): Add EOVERFLOW.
74578         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
74579         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
74580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
74581         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
74582         (Depends-on): Add EOVERFLOW.
74583         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
74584         (Depends-on): Add EOVERFLOW.
74585         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
74586         (Depends-on): Add EOVERFLOW.
74587         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
74588         (Depends-on): Add EOVERFLOW.
74589         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
74590         (Depends-on): Add EOVERFLOW.
74591         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
74592         (Depends-on): Add EOVERFLOW.
74593         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
74594         (Depends-on): Add EOVERFLOW.
74595         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
74596         (Depends-on): Add EOVERFLOW.
74598         * lib/sprintf.c (EOVERFLOW): Remove fallback.
74599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
74600         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
74602         * lib/snprintf.c (EOVERFLOW): Remove fallback.
74603         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
74604         * modules/snprintf (Depends-on): Add EOVERFLOW.
74606         * lib/poll.c (EOVERFLOW): Remove fallback.
74607         * modules/poll (Depends-on): Add EOVERFLOW.
74609         * lib/getugroups.c (EOVERFLOW): Remove fallback.
74610         * modules/getugroups (Depends-on): Add EOVERFLOW.
74612         * lib/getdelim.c (EOVERFLOW): Remove fallback.
74613         * modules/getdelim (Depends-on): Add EOVERFLOW.
74615         * lib/ftell.c (EOVERFLOW): Remove fallback.
74616         * modules/ftell (Depends-on): Add EOVERFLOW.
74618         * lib/fprintf.c (EOVERFLOW): Remove fallback.
74619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
74620         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
74622         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
74624         * modules/EOVERFLOW-tests: New file.
74625         * tests/test-EOVERFLOW.c: New file.
74627         * modules/EOVERFLOW: New file.
74628         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
74630 2008-03-30  Bruno Haible  <bruno@clisp.org>
74632         Fix bug introduced on 2007-06-10.
74633         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
74634         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
74636 2008-03-30  Bruno Haible  <bruno@clisp.org>
74638         Improve freadseek's efficiency after ungetc.
74639         * lib/freadseek.c: Include freadahead.h.
74640         (freadptrinc): New function, extracted from freadseek.
74641         (freadseek): Use it in a loop. Use freadahead to determine the number
74642         of loop iterations.
74643         * modules/freadseek (Depends-on): Add freadahead.
74644         (configure.ac): Require AC_C_INLINE.
74646 2008-03-30  Bruno Haible  <bruno@clisp.org>
74648         * lib/freadseek.c (freadseek): Don't ignore the return value of
74649         freadptr.
74651 2008-03-29  Eric Blake  <ebb9@byu.net>
74653         Add hex float support.
74654         * modules/strtod (Depends-on): Add c-ctype.
74655         (Link): Mention POW_LIB.
74656         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
74657         whitespace between 'e' and exponent.
74658         * tests/test-strtod.c (main): Enable hex float tests.
74659         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
74660         now provides.
74662         Document various strtod bugs, with some fixes.
74663         * doc/posix-functions/strtod.texi (strtod): Document bugs with
74664         "-0x", "inf", "nan", and hex constants.
74665         * doc/posix-functions/atof.texi (atof): Likewise.
74666         * modules/stdlib (Makefile.am): Support strtod.
74667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
74668         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
74669         detect additional strtod bugs.
74670         * lib/stdlib.in.h (rpl_strtod): Add declarations.
74671         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
74672         bool where appropriate.  Parse 'inf' and 'nan'.
74673         * tests/test-strtod.c: New file.
74674         * modules/strtod (Depends-on): Add stdbool, stdlib.
74675         (configure.ac): Turn on module indicator.
74676         * modules/strtod-tests: New module.
74678 2008-03-29  Eric Blake  <ebb9@byu.net>
74680         Fix ftell on mingw.
74681         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
74682         * modules/ftell-tests (Depends-on): Add binary-io.
74683         * modules/ftello-tests (Depends-on): Likewise.
74684         * tests/test-ftell.c (main): Enhance test to cover behavior after
74685         ungetc.  Enforce binary mode.
74686         * tests/test-ftello.c (main): Likewise.
74688         Pass test-freadseek on cygwin.
74689         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
74690         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
74691         ungetc buffer.
74693         * tests/test-fflush2.c (main): Fix typo.
74695 2008-03-29  Bruno Haible  <bruno@clisp.org>
74697         * tests/test-fflush2.c (main): Temporarily disable the contents of
74698         this test.
74699         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
74700         Reported by Eric Blake.
74702 2008-03-28  Simon Josefsson  <simon@josefsson.org>
74704         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
74705         (GC_SHA224_DIGEST_SIZE): Add.
74707         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
74708         (gc_hash_digest_length): Likewise.
74709         (gc_hash_buffer): Likewise.
74711 2008-03-25  Bruno Haible  <bruno@clisp.org>
74713         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
74714         detail which gettext release to use.
74715         Reported by Simon Josefsson.
74717 2008-03-26  Jim Meyering  <meyering@redhat.com>
74719         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
74720         * modules/gnumakefile (clean-GNUmakefile): Also, use
74721         test ... && ... || : syntax rather than if-then ... fi.
74723         gnumakefile: Don't double-quote-expand $(VPATH) value.
74724         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
74726 2008-03-24  Eric Blake  <ebb9@byu.net>
74728         Alter GNUmakefile to install into top directory.
74729         * modules/maintainer-makefile: Split, and add dependency...
74730         * modules/gnumakefile: to this new module.
74731         * build-aux/GNUmakefile: Move...
74732         * top/GNUmakefile: ...here.
74733         * build-aux/maint.mk: Move...
74734         * top/maint.mk: ...here.
74735         * MODULES.html.sh (Support for maintaining...): Document new
74736         module.
74738 2008-03-23  Bruno Haible  <bruno@clisp.org>
74740         * gnulib-tool: New options --vc-files, --no-vc-files.
74741         (func_usage): Document them.
74742         (vc_files): New variable.
74743         (func_import): Consider vc_files.
74744         (func_create_testdir): Set vc_files to empty.
74745         Suggested by Jim Meyering and Karl Berry.
74747 2008-03-23  Bruno Haible  <bruno@clisp.org>
74749         Fix regex compilation error on HP-UX 11.
74750         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
74751         * modules/regex (Files): Add m4/mbstate_t.m4.
74752         Reported by Ton Voon <ton.voon@altinity.com>.
74754 2008-03-23  Bruno Haible  <bruno@clisp.org>
74756         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
74758 2008-03-23  Eric Blake  <ebb9@byu.net>
74759             Bruno Haible  <bruno@clisp.org>
74761         Install files from top/ in the destination directory.
74762         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
74763         augmentation also for the files from top/.
74764         (func_import, func_create_testdir): Rewrite file names:
74765         top/filename -> filename.
74767 2008-03-23  Bruno Haible  <bruno@clisp.org>
74769         Tweak "gnulib --version" output.
74770         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
74772 2008-03-23  Bruno Haible  <bruno@clisp.org>
74774         Tweak "gnulib --version" output.
74775         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
74776         rather than contents of ChangeLog, when possible.
74778 2008-03-21  Eric Blake  <ebb9@byu.net>
74780         More --version tweaks.
74781         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
74782         date of last ChangeLog entry.
74784 2008-03-21  Jim Meyering  <meyering@redhat.com>
74786         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
74788 2008-03-20  Eric Blake  <ebb9@byu.net>
74790         VPATH fix.
74791         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
74793 2008-03-20  Simon Josefsson  <simon@josefsson.org>
74795         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
74796         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
74798 2008-03-20  Eric Blake  <ebb9@byu.net>
74800         Sync GNUmakefile with coreutils.
74801         * build-aux/GNUmakefile (have-Makefile): Rename...
74802         (_have-Makefile): ...to this, for namespace consideration.
74803         (GNUmakefile.cfg): Include, if present.
74804         (_autoreconf): Define a default.
74805         (_is-dist-target): New rule for rebuilds to pick up intra-release
74806         version.
74807         (maint-cfg.mk): Rename...
74808         (cfg.mk): ...to this.
74810 2008-03-18  Jim Meyering  <meyering@redhat.com>
74812         New script and module: mktempd
74813         * MODULES.html.sh (maint+release support): Add mktempd.
74814         * build-aux/mktempd: New file.
74815         * modules/mktempd: New file.
74817 2008-03-15  Jim Meyering  <meyering@redhat.com>
74819         Undo last change.
74820         * lib/sha1.c, lib/md5.c: 63 != ~63.
74821         Reported by Andreas Schwab.
74823         sha1.c, md5.c: Hoist a redundant expression.
74824         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
74825         "ctx->buflen" only once, before calling *_process_block.
74826         * lib/md5.c (md5_process_bytes): Likewise.
74828 2008-03-14  Eric Blake  <ebb9@byu.net>
74830         Bump copyright year in files generated by gnulib-tool.
74831         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
74832         gnulib-tool, rather than hard-coding it.
74834         Fix 'gnulib-tool --version' output to work with git.
74835         * gnulib-tool (func_gnulib_dir): New function, extracted from...
74836         (startup): ...here.
74837         (func_version): Use it to invoke git-version-gen, rather than
74838         relying on CVS keyword expansion.  Modernize wording.
74839         (cvsdatestamp, last_checkin_date, version): Kill unused
74840         variables.
74842 2008-03-12  Jim Meyering  <meyering@redhat.com>
74844         Recognize optional cast of the argument to free.
74845         * build-aux/useless-if-before-free: Update regexps.
74847         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
74849 2008-03-11  Bruno Haible  <bruno@clisp.org>
74851         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
74852         by a single package.
74853         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
74854         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
74855         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
74856         Reported by Sam Steingold <sds@gnu.org>.
74858 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74860         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
74861         repositories.
74863 2008-03-11  Bruno Haible  <bruno@clisp.org>
74865         Avoid conflicts between local macro definitions.
74866         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74867         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
74869 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
74870             Bruno Haible  <bruno@clisp.org>
74872         Make va_copy work with some version of xlc on AIX 5.1.
74873         * lib/stdarg.in.h: New file.
74874         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
74875         On AIX, use a <stdarg.h> file substitute.
74876         * modules/stdarg (Files): Add lib/stdarg.in.h.
74877         (Depends-on): Add include_next.
74878         (Makefile.am): Build a stdarg.h substitute if requested.
74879         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
74881 2008-03-10  Bruno Haible  <bruno@clisp.org>
74883         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
74884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74885         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
74887 2008-03-10  Bruno Haible  <bruno@clisp.org>
74889         * modules/stdlib (Depends-on): Add include_next, remove
74890         absolute-header.
74892 2008-03-09  Bruno Haible  <bruno@clisp.org>
74894         * lib/freadahead.h (freadahead): Document more precisely.
74895         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
74896         the sum of both buffer sizes.
74897         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
74898         * NEWS: Document the change.
74900 2008-03-09  Bruno Haible  <bruno@clisp.org>
74902         Extend freadptr to return also the buffer size.
74903         * lib/freadptr.h (freadptr): Add sizep argument.
74904         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
74905         (freadptr): Add sizep argument. Determine buffer size like freadahead
74906         does.
74907         * tests/test-freadptr.c: Don't include freadahead.h.
74908         (main): Adapt for new calling convention of freadptr.
74909         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
74910         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
74911         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
74912         tests/test-freadptr2.sh.
74913         (Depends): Remove freadahead.
74914         (TESTS): Add test-freadptr2.sh.
74915         (check_PROGRAMS): Add test-freadptr2.
74917 2008-03-09  Bruno Haible  <bruno@clisp.org>
74919         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
74920         Report and solution by Simon Josefsson.
74922 2008-03-06  Bruno Haible  <bruno@clisp.org>
74924         Make fflush after ungetc work on BSD platforms.
74925         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
74926         * tests/test-fflush2.c: New file.
74927         * tests/test-fflush2.sh: New file.
74928         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
74929         tests/test-fflush2.c.
74930         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
74931         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
74933 2008-03-06  Eric Blake  <ebb9@byu.net>
74935         Likewise for ftello.
74936         * modules/ftello (Dependencies): Add extensions.
74937         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
74939 2008-03-06  Bruno Haible  <bruno@clisp.org>
74941         * modules/fseeko (Dependencies): Add extensions.
74942         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
74943         Needed on glibc systems.
74945 2008-03-06  Bruno Haible  <bruno@clisp.org>
74947         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
74948         email address.
74949         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74951 2008-03-06  Bruno Haible  <bruno@clisp.org>
74953         * users.txt: Add libgnupdf.
74955 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
74957         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
74958         (Header File Substitutes, Function Substitutes,
74959         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
74960         (Build robot for gnulib): Fix typo.
74962 2008-03-06  Bruno Haible  <bruno@clisp.org>
74964         * doc/gnulib-tool.texi (VCS Issues): Small updates.
74965         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74967 2008-03-06  Bruno Haible  <bruno@clisp.org>
74969         * doc/func.texi: New file, extracted from doc/gnulib.texi.
74970         * doc/gnulib.texi: Include it.
74972 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74974         * modules/func (License): Change license to unlimited; there was
74975         no LGPL parts in the module anyway.
74977 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74979         * modules/__func__: Renamed to modules/func.
74980         * modules/__func__-tests: Renamed to modules/func-tests.
74981         * tests/test-__func__.c: Renamed to tests/test-func.c.
74982         * m4/__func__.m4: Renamed to m4/func.m4.
74983         * doc/gnulib.texi (__func__): Section renamed to func.
74984         Suggested by Eric Blake <ebb9@byu.net>.
74986 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74988         * doc/gnulib.texi (__func__): Use C99 terminology when talking
74989         about __func__.  Make example self-contained.  Suggested by Eric
74990         Blake <ebb9@byu.net>.
74992         * tests/test-__func__.c (main): Avoid extraneous () around __func.
74993         Suggested by Eric Blake <ebb9@byu.net>.
74995 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74997         * modules/__func__: New file.
74998         * modules/__func__-tests: New file.
74999         * tests/test-__func__.c: New file.
75000         * m4/__func__.m4: New file.
75001         * doc/gnulib.texi (__func__): Document __func__ module.
75003 2008-03-05  Simon Josefsson  <simon@josefsson.org>
75005         * modules/byteswap (License): Re-license as LGPLv2+.
75007 2008-03-05  Simon Josefsson  <simon@josefsson.org>
75009         * doc/Makefile: Add pdf target.
75011 2008-03-05  Simon Josefsson  <simon@josefsson.org>
75013         * modules/inline (License): Use 'unlimited', since there are only
75014         *.m4 files in this module.
75016 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
75017             Bruno Haible  <bruno@clisp.org>
75019         Add support for HP C 7.1 on OpenVMS 8.3.
75020         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
75022 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
75024         Update VMS specifics.
75025         * lib/getopt.c [VMS]: Remove include of unixlib.h.
75027 2008-03-02  Jim Meyering  <meyering@redhat.com>
75029         Remove the last dependency on the "free" module.
75030         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
75031         Reported by Bob Proulx.
75033         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
75035         Remove useless "if" tests before free.  Deprecate "free" module.
75036         * doc/posix-functions/free.texi: Mention that this
75037         module is no longer useful.
75038         * modules/free (Notice): Say this module is obsolete.
75039         * modules/readutmp (Depends-on): Remove free.
75040         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
75041         * lib/putenv.c (putenv): Likewise.
75042         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
75043         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
75044         * tests/test-c-strcasestr.c (main): Likewise.
75045         * tests/test-c-strstr.c (main): Likewise.
75046         * tests/test-mbscasestr1.c (main): Likewise.
75047         * tests/test-mbscasestr2.c (main): Likewise.
75048         * tests/test-mbsstr1.c (main): Likewise.
75049         * tests/test-mbsstr2.c (main): Likewise.
75050         * tests/test-memmem.c (main): Likewise.
75051         * tests/test-strcasestr.c (main): Likewise.
75052         * tests/test-striconv.c (main): Likewise.
75053         * tests/test-striconveh.c (main): Likewise.
75054         * tests/test-striconveha.c (main): Likewise.
75055         * tests/test-strstr.c (main): Likewise.
75057         * build-aux/git-version-gen: Adjust a comment and the Usage string.
75059         bootstrap: sync from coreutils again
75060         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
75062 2008-03-01  Jim Meyering  <meyering@redhat.com>
75064         bootstrap: sync from coreutils
75065         * build-aux/bootstrap (update_po_files): Copy a .po file into place
75066         also when the target doesn't exist.
75068 2008-03-01  Eric Blake  <ebb9@byu.net>
75070         Fix bugs in last patch.
75071         * lib/memchr2.c (memchr2): Fix typo.
75072         * tests/test-memchr2.c: Test previous bug, and don't use GNU
75073         extension.
75074         Reported by Bruce Korb.
75076         New module 'memchr2'.
75077         * modules/memchr2: New file.
75078         * modules/memchr2-tests: Likewise.
75079         * lib/memchr2.h: Likewise.
75080         * lib/memchr2.c: Likewise, based on memchr.c.
75081         * tests/test-memchr2.c: New test.
75082         * MODULES.html.sh (String handling): Add memchr2.
75084 2008-02-29  Bruno Haible  <bruno@clisp.org>
75086         * modules/freadseek-tests: New file.
75087         * tests/test-freadseek.sh: New file.
75088         * tests/test-freadseek.c: New file.
75090         New module 'freadseek'.
75091         * modules/freadseek: New file.
75092         * lib/freadseek.h: New file.
75093         * lib/freadseek.c: New file.
75094         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
75096 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
75098         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
75099         wydawca.
75101         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
75102         program_invocation_name and program_invocation_short_name are
75103         present.
75105 2008-02-28  Bruno Haible  <bruno@clisp.org>
75107         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
75108         * tests/test-freadptr.sh: Also test non-seekable stdin.
75110 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
75112         * build-aux/bootstrap (source_base, m4_base)
75113         (doc_base, tests_base): New variables.
75114         (gnulib_tool_options): Do not hardcode base directories, use
75115         the above variables instead.
75117 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
75119         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
75121 2008-02-28  Bruno Haible  <bruno@clisp.org>
75123         * modules/freadptr-tests: New file.
75124         * tests/test-freadptr.sh: New file.
75125         * tests/test-freadptr.c: New file.
75127         New module 'freadptr'.
75128         * modules/freadptr: New file.
75129         * lib/freadptr.h: New file.
75130         * lib/freadptr.c: New file.
75131         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
75133 2008-02-26  Karl Berry  <karl@freefriends.org>
75135         Sync from Libtool:
75136         * libltdl/argz.c (argz_add, argz_count): New functions.
75137         * libltdl/argz.in.h: Declare them.
75138         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
75140 2008-02-22  Bruno Haible  <bruno@clisp.org>
75142         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
75143         is a pointer type.  Needed for HP-UX 10.
75144         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
75145         * doc/posix-functions/gmtime_r.texi: Likewise.
75146         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
75148 2008-02-24  Bruno Haible  <bruno@clisp.org>
75150         * modules/environ-tests: New file.
75151         * tests/test-environ.c: New file.
75153         New module 'environ'.
75154         * modules/environ: New file.
75155         * lib/unistd.in.h (environ): New declaration.
75156         * m4/environ.m4: New file.
75157         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
75158         after use.
75159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
75160         HAVE_DECL_ENVIRON.
75161         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
75162         HAVE_DECL_ENVIRON.
75163         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
75164         wrong claim that 'environ' is missing on some systems.
75165         * modules/execute (Depends-on): Add environ.
75166         * lib/execute.c (environ): Remove fallback declaration.
75167         * modules/pipe (Depends-on): Add environ.
75168         * lib/pipe.c (environ): Remove fallback declaration.
75169         * modules/setenv (Depends-on): Add environ.
75170         * lib/setenv.c (environ): Remove fallback declaration.
75171         * modules/unsetenv (Depends-on): Add environ.
75172         * lib/unsetenv.c (environ): Remove fallback declaration.
75173         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
75174         m4/environ.m4.
75175         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
75176         (gl_PREREQ_UNSETENV): Likewise.
75178 2008-02-24  Bruno Haible  <bruno@clisp.org>
75180         * doc/posix-functions/environ.texi: Document the MacOS X problem.
75182 2008-02-20  Bob Proulx  <bob@proulx.com>
75184         Enable use of older two part flavor 'git describe'.
75185         * build-aux/git-version-gen: If using the older two part flavor of
75186         git version then recreate the third part now present in the
75187         newer three part flavor of git describe.
75189 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
75191         * lib/fts.c (fts_build): Typo correction to comment.
75193 2008-02-17  Bruno Haible  <bruno@clisp.org>
75195         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
75196         generating no-op conflicts.
75198 2008-02-17  Bruno Haible  <bruno@clisp.org>
75200         Speed up by 10%.
75201         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
75202         result_entries, rather than an index-based loop.
75204 2008-02-17  Bruno Haible  <bruno@clisp.org>
75206         Speed up by 25%.
75207         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
75208         'hashcode_cached'.
75209         (entry_create): New function.
75210         (entry_hashcode): Use the cached hashcode if possible.
75211         (read_changelog_file, try_split_merged_entry): Use entry_create.
75213 2008-02-17  Bruno Haible  <bruno@clisp.org>
75215         Speed up from O(n^2) to O(n) for long ChangeLog files.
75216         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
75217         (read_changelog_file): Change implementation of entries_reversed list
75218         to rbtreehash.
75219         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
75221 2008-02-17  Bruno Haible  <bruno@clisp.org>
75223         New option --split-merged-entry.
75224         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
75225         (find_paragraph_end, try_split_merged_entry): New functions.
75226         (long_options): Add option --split-merged-entry.
75227         (usage): Document option --split-merged-entry.
75228         (main): Implement option --split-merged-entry.
75229         Reported by Eric Blake.
75231 2008-02-17  Bruno Haible  <bruno@clisp.org>
75233         * lib/git-merge-changelog.c: Include c-strstr.h.
75234         (main): Support the "git pull --rebase" situation.
75235         * modules/git-merge-changelog (Depends-on): Add c-strstr.
75236         Reported by Eric Blake.
75238 2008-02-16  Eric Blake  <ebb9@byu.net>
75240         Avoid doubling \ in common case of "c-maybe" quoting style.
75241         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
75242         eliding outer quotes.
75243         * lib/quotearg.h: Document this.
75244         * tests/test-quotearg.c (result_strings, inputs, results_g)
75245         (flag_results, locale_results): Test it by adding a new string to
75246         each test group.
75247         (compare_strings): Test new string.
75249 2008-02-13  Eric Blake  <ebb9@byu.net>
75251         Avoid trigraph quoting in default output.
75252         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
75253         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
75254         unless explicitly requested.
75255         * tests/test-quotearg.c (flag_results, main): Add additional tests.
75257 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
75259         Don't rely on signed integer overflowing to negative value.
75260         * lib/getugroups.c (getugroups): Include <limits.h>.
75261         Instead, compare against INT_MAX, and increment only if the test passes.
75263 2008-02-13  Jim Meyering  <meyering@redhat.com>
75264         and Eric Blake  <ebb9@byu.net>
75266         Avoid shadowing warning and compile errors on Linux.
75267         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
75268         forwarding macros on Linux.
75269         (dcgettext): Define a stub, for Linux.
75270         (results_g, main): Avoid warnings.
75272 2008-02-12  Eric Blake  <ebb9@byu.net>
75274         Silence warning in last patch.
75275         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
75277         Quotearg part 4: add tests, fix c-maybe colon quoting.
75278         * lib/quotearg.h: Improve documentation.
75279         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
75280         escapes when adding outer quotes.  When quoting trigraphs, use
75281         valid C notation.  When quoting NUL, omit extra characters if next
75282         character is not digit.  Alter prototype.
75283         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
75284         callers.
75285         * modules/quotearg-tests: New module.
75286         * tests/test-quotearg.c: New test.
75288 2008-02-07  Eric Blake  <ebb9@byu.net>
75290         Quotearg part 3: add flag to control outer quote elision.
75291         * lib/quotearg.h (c_maybe_quoting_style): New style.
75292         (enum quoting_flags): Better documentation of flags.
75293         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
75294         c-maybe style.
75295         (quotearg_buffer_restyled): Handle new flag to elide outer
75296         quotes.
75298         Quotearg part 2: add flag that can control NUL elision.
75299         * lib/quotearg.h (set_quoting_flags): New prototype.
75300         * lib/quotearg.c (struct quoting_options): Add flag field.
75301         (set_quoting_flags): New function.
75302         (quotearg_buffer_restyled): Add flags parameter.
75303         (quotearg_alloc_mem): Set the flag if length cannot be returned.
75304         (quotearg_n_options): Set the flag, since length cannot be
75305         returned.
75306         (quoting_options_from_style): Default flags correctly.
75308         Quotearg part 1: more wrappers, restore quotearg_char state.
75309         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
75310         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
75311         (quotearg_colon_mem): New wrappers.
75312         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
75313         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
75314         functions.
75315         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
75316         (quotearg_colon_mem): New functions.
75318 2008-02-11  Bruno Haible  <bruno@clisp.org>
75320         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
75321         library in the current directory: it does not work with parallel make.
75322         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75324 2008-02-11  Bruno Haible  <bruno@clisp.org>
75326         * .gitattributes: New file.
75328 2008-02-11  Jim Meyering  <meyering@redhat.com>
75330         useless-if-before-free: Fix reversed exit values.
75331         * build-aux/useless-if-before-free: Use correct values
75332         for EXIT_MATCH and EXIT_NO_MATCH.
75334         * build-aux/useless-if-before-free: Close stdout carefully.
75336 2008-02-10  Bruno Haible  <bruno@clisp.org>
75338         New module 'git-merge-changelog'.
75339         * modules/git-merge-changelog: New file.
75340         * lib/git-merge-changelog.c: New file.
75342 2008-02-10  Jim Meyering  <meyering@redhat.com>
75344         useless-if-before-free: New option: --list (-l).
75346         useless-if-before-free: Don't exit immediately upon open failure.
75347         * build-aux/useless-if-before-free: Exit 2 for errors.
75348         Upon failure to open a file, don't exit immediately.
75349         Rather, just warn and continue with any remaining files.
75351 2008-02-10  Bruno Haible  <bruno@clisp.org>
75353         New abstract list operation 'node_set_value'.
75354         * lib/gl_list.h (gl_list_node_set_value): New function.
75355         (struct gl_list_implementation): New field node_set_value.
75356         * lib/gl_list.c (gl_list_node_set_value): New function.
75357         * lib/gl_array_list.c (gl_array_node_set_value): New function.
75358         (gl_array_list_implementation): Update.
75359         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
75360         (gl_carray_list_implementation): Update.
75361         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
75362         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75363         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75364         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
75365         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75366         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75367         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75368         Update.
75369         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75370         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
75371         (gl_sublist_list_implementation): Update.
75373 2008-02-10  Bruno Haible  <bruno@clisp.org>
75375         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
75376         Needed when ELEMENT is #defined to 'some_type *'.
75378 2008-02-10  Jim Meyering  <meyering@redhat.com>
75380         New script and module: useless-if-before-free
75381         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
75382         * build-aux/useless-if-before-free: New file.
75383         * modules/useless-if-before-free: New file.
75385         * build-aux/gitlog-to-changelog: Use committer date, not author date.
75387         xstrtol_error: Fix typo.
75388         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
75389         s/exit_failure/exit_status/.
75391 2008-02-09  Jim Meyering  <meyering@redhat.com>
75393         New script and module: gitlog-to-changelog
75394         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
75395         * modules/gitlog-to-changelog: New file.
75396         * build-aux/gitlog-to-changelog: New file.
75398 2008-02-08  Jim Meyering  <meyering@redhat.com>
75400         Avoid two "parameter unused" warnings.
75401         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
75402         Mark "st" as used.
75404         Use "git COMMAND", not "git-COMMAND".
75405         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
75406         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
75407         * build-aux/git-version-gen: Use "git status", not "git-status".
75409 2008-02-07  Bruno Haible  <bruno@clisp.org>
75411         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
75412         Avoids a crash on Windows Vista.
75413         Reported by Adam Strzelecki <ono@java.pl> via
75414         Simon Josefsson <simon@josefsson.org>.
75416 2008-02-06  Bruno Haible  <bruno@clisp.org>
75418         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
75419         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
75420         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
75421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
75422         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75424         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
75425         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
75426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75429         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75430         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75432         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75433         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
75434         left-adjust flag.
75435         * tests/test-snprintf-posix.h (test_function): Likewise.
75436         * tests/test-sprintf-posix.h (test_function): Likewise.
75437         * tests/test-vasprintf-posix.c (test_function): Likewise.
75438         * doc/posix-functions/fprintf.texi: Update.
75439         * doc/posix-functions/printf.texi: Update.
75440         * doc/posix-functions/snprintf.texi: Update.
75441         * doc/posix-functions/sprintf.texi: Update.
75442         * doc/posix-functions/vfprintf.texi: Update.
75443         * doc/posix-functions/vprintf.texi: Update.
75444         * doc/posix-functions/vsnprintf.texi: Update.
75445         * doc/posix-functions/vsprintf.texi: Update.
75446         Reported by Peter Fales <psfales@alcatel-lucent.com>.
75448 2008-02-06  Bruno Haible  <bruno@clisp.org>
75450         Fix bug introduced on 2008-01-26.
75451         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
75453 2008-02-06  Bruno Haible  <bruno@clisp.org>
75455         Fix bug introduced on 2007-06-10.
75456         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
75457         !NEED_PRINTF_FLAG_ZERO.
75459 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
75461         getloadavg: use libperfstat on AIX5
75462         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
75464 2008-02-03  Bruno Haible  <bruno@clisp.org>
75466         * lib/diffseq.h: Add comments about required #includes.
75467         Reported by Michael Biggs <gnulib@doubleplum.net>.
75469 2008-02-01  Bruno Haible  <bruno@clisp.org>
75471         * users.txt: Add gnuit.
75473 2008-01-31  Bruno Haible  <bruno@clisp.org>
75475         * lib/md4.c (set_uint32): Mark as inline.
75476         * lib/md5.c (set_uint32): Likewise.
75477         * lib/sha1.c (set_uint32): Likewise.
75478         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
75479         * m4/md5.m4 (gl_MD5): Likewise.
75480         * m4/sha1.m4 (gl_SHA1): Likewise.
75482 2008-01-31  Jim Meyering  <meyering@redhat.com>
75484         Use "sizeof VAR", rather than a literal "4".
75485         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
75486         * lib/md4.c (md4_read_ctx): Likewise.
75487         * lib/sha1.c (sha1_read_ctx): Likewise.
75489 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75491         * tests/test-sha1.c: New file, based on test-md5.c.
75493         * modules/crypto/sha1-tests: New file.
75495 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75497         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
75499 2008-01-31  Jim Meyering  <meyering@redhat.com>
75501         Prefer "sizeof v" over the equivalent "4".
75502         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
75503         * lib/md5.c (set_uint32): Likewise.
75504         * lib/sha1.c (set_uint32): Likewise.
75506 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75508         * lib/sha1.c (set_uint32): Mark function as static.
75510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75512         md2: clarify comments to say that alignment is not required.
75513         * lib/md2.h: Remove warning about alignment in comment.
75514         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
75515         never been required.
75517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75519         md4: adapt alignment constraint fix from sha1.
75520         * lib/md4.c (set_uint32): New function, from sha1.c
75521         (md4_read_ctx): Use it.
75522         (md4_finish_ctx): Doc fix.
75523         * lib/md4.h: Doc fix.
75525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75527         md5: adapt alignment constraint fix from sha1.
75528         * lib/md5.c (set_uint32): New function, from sha1.c
75529         (md5_read_ctx): Use it.
75530         (md5_finish_ctx): Doc fix.
75531         * lib/md5.h: Doc fix.
75533 2008-01-30  Peter Palfrader  <weasel@debian.org>
75535         sha1: remove the result buffer alignment constraint
75536         * lib/sha1.c (set_uint32): New function.
75537         (sha1_read_ctx): Rewrite to remove the result buffer alignment
75538         constraint.
75539         (sha1_finish_ctx): Remove comment warning about alignment constraint.
75540         * lib/sha1.h: Likewise.
75542 2008-01-30  Andreas Schwab  <schwab@suse.de>
75543             Bruno Haible  <bruno@clisp.org>
75545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
75546         correct definition of LDBL_MIN_EXP.
75548 2008-01-30  Karl Berry  <karl@gnu.org>
75550         * config/srclist-update: try to preserve x bit on updates.
75551         * config/srclistvars.sh: update for karl.
75553 2008-01-29  Jim Meyering  <meyering@redhat.com>
75555         vasnprintf.c: Avoid warning about unused label
75556         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
75557         "overflow" label definition and associated code with the
75558         same cpp condition that guards the sole use of that label.
75560 2008-01-26  Bruno Haible  <bruno@clisp.org>
75562         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
75563         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
75564         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
75565         * lib/isnanl-nolibm.h (isnanl): Likewise.
75566         Reported by Paul Eggert <eggert@cs.ucla.edu>.
75568 2008-01-26  Bruno Haible  <bruno@clisp.org>
75570         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
75571         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
75573 2008-01-26  Bruno Haible  <bruno@clisp.org>
75575         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
75576         GCC >= 4.0 built-in.
75577         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
75579 2008-01-26  Bruno Haible  <bruno@clisp.org>
75581         Rename isnan, applicable to 'double' only, to isnand.
75582         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
75583         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
75584         (configure.ac): Update.
75585         (Include): Replace "isnan.h" with "isnand.h".
75586         * m4/isnand.m4: Renamed from m4/isnan.m4.
75587         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
75588         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
75589         instead of isnan.c.
75590         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
75591         instead of HAVE_ISNAN_IN_LIBC.
75592         (isnand): Renamed from isnan.
75593         * lib/isnand.c: New file.
75594         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
75595         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
75596         (Makefile.am): Update.
75597         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
75598         Include isnand.h instead of isnan.h.
75599         (main): Test isnand instead of isnan.
75600         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
75601         isnan-nolibm.
75602         * modules/frexp (Depends-on): Likewise.
75603         * modules/frexp-tests (Depends-on): Likewise.
75604         * modules/frexp-nolibm (Depends-on): Likewise.
75605         * modules/frexp-nolibm-tests (Depends-on): Likewise.
75606         * modules/isfinite (Depends-on): Likewise.
75607         * modules/round-tests (Depends-on): Likewise.
75608         * modules/signbit (Depends-on): Likewise.
75609         * modules/signbit-tests (Depends-on): Likewise.
75610         * modules/snprintf-posix (Depends-on): Likewise.
75611         * modules/sprintf-posix (Depends-on): Likewise.
75612         * modules/trunc-tests (Depends-on): Likewise.
75613         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75614         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75615         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75616         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75617         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75618         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75619         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75620         * modules/vasnprintf-posix (Depends-on): Likewise.
75621         * modules/vasprintf-posix (Depends-on): Likewise.
75622         * modules/vfprintf-posix (Depends-on): Likewise.
75623         * modules/vsnprintf-posix (Depends-on): Likewise.
75624         * modules/vsprintf-posix (Depends-on): Likewise.
75625         * lib/frexp.c: Include isnand.h instead of isnan.h.
75626         (ISNAN): Set to isnand instead of isnan.
75627         * lib/isfinite.c: Include isnand.h instead of isnan.h.
75628         (gl_isfinited): Use isnand instead of isnan.
75629         * lib/signbitd.c: Include isnand.h instead of isnan.h.
75630         (gl_signbitd): Use isnand instead of isnan.
75631         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
75632         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
75633         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
75634         (main): Use isnand instead of isnan.
75635         * tests/test-round1.c: Include isnand.h.
75636         (main): Use isnand instead of isnan.
75637         * tests/test-round2.c: Include isnand.h instead of isnan.h.
75638         (ISNAN): Set to isnand instead of isnan.
75639         * tests/test-trunc1.c: Include isnand.h.
75640         (main): Use isnand instead of isnan.
75641         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
75642         (equal): Use isnand instead of isnan.
75643         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
75644         isnand-nolibm.
75645         * NEWS: Mention the change.
75647 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75648             Bruno Haible  <bruno@clisp.org>
75650         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
75651         the GCC builtins for signbits are present and set
75652         REPLACE_SIGNBIT_USING_GCC if so.
75653         * lib/math.in.h (signbit): Define using GCC builtins if
75654         REPLACE_SIGNBIT_USING_GCC is set.
75655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
75656         REPLACE_SIGNBIT_USING_GCC.
75657         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
75659 2008-01-25  Jim Meyering  <meyering@redhat.com>
75661         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
75662         * lib/poll.c: Include <config.h>, not "config.h".
75663         * tests/test-getaddrinfo.c: Likewise.
75665 2008-01-25  Simon Josefsson  <simon@josefsson.org>
75667         * modules/sockets-tests: New file.
75669 2008-01-24  Simon Josefsson  <simon@josefsson.org>
75671         * modules/sockets: New module, can be used to call WSA_Startup and
75672         WSA_Cleanup when needed.
75674         * lib/sockets.h, lib/sockets.c: New files.
75676         * m4/sockets.m4: New file.
75678         * tests/test-sockets.c: New file.
75680 2008-01-19  Bruno Haible  <bruno@clisp.org>
75682         * doc/posix-headers: Renamed from doc/headers.
75683         * doc/posix-functions: Renamed from doc/functions.
75684         * doc/gnulib.texi: Update.
75686 2008-01-19  Bruno Haible  <bruno@clisp.org>
75688         * doc/glibc-functions/strcasestr.texi: Include contents of
75689         doc/functions/strcasestr.texi, fixing the list of platforms.
75690         * doc/functions/strcasestr.texi: Remove file.
75692 2008-01-19  Bruno Haible  <bruno@clisp.org>
75694         * doc/glibc-functions/memmem.texi: Include contents of
75695         doc/functions/memmem.texi.
75696         * doc/functions/memmem.texi: Remove file.
75698 2008-01-18  Bruno Haible  <bruno@clisp.org>
75700         * doc/glibc-functions/*.texi: New files.
75701         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
75702         to use the new files.
75704 2008-01-17  Bruno Haible  <bruno@clisp.org>
75706         * tests/test-gethostname.c (main): Fix printf statement.
75708 2008-01-17  Simon Josefsson  <simon@josefsson.org>
75710         * modules/gethostname-tests: New file.
75712         * tests/test-gethostname.c: New file.
75714 2008-01-17  Simon Josefsson  <simon@josefsson.org>
75716         * lib/gethostname.c: Include string.h unconditionally, strncpy is
75717         used by the UNAME case.  Reported by Bruno Haible
75718         <bruno@clisp.org>.
75720 2008-01-17  Eric Blake  <ebb9@byu.net>
75722         Convert c-strcasestr to be more efficient.
75723         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
75724         (Depends-on): Add c-strcase, remove malloca, strnlen.
75725         * tests/test-c-strcasestr.c (main): Enhance test.
75726         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
75728 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75730         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
75731         Use it in creating po/Makevars.
75733 2008-01-15  Simon Josefsson  <simon@josefsson.org>
75735         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
75736         Applications that requires it should initialize libgcrypt
75737         manually.
75739 2008-01-16  Simon Josefsson  <simon@josefsson.org>
75741         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
75743 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
75745         Fix problem with getdate on mingw32 reported by Simon Josefsson
75746         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
75747         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
75748         tzname", when deciding whether to declare tzname.
75749         * lib/strftime.c (tzname): Likewise.
75751 2008-01-15  Bruno Haible  <bruno@clisp.org>
75753         Work around a MacOS X 10.5 bug in frexpl().
75754         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
75755         * doc/functions/frexpl.texi: Document the bug.
75756         Reported by Elias Pipping <pipping@gentoo.org>.
75758 2008-01-14  Eric Blake  <ebb9@byu.net>
75760         Touch up previous patch.
75761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
75762         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
75764         Convert strcasestr module to use Two-Way algorithm.
75765         * modules/strcasestr-simple: New module, based on the old
75766         strcasestr, but with Two-Way rather than KMP.
75767         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
75768         * lib/string.in.h (rpl_strcasestr): Declare.
75769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
75770         performance.
75771         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
75772         * modules/string (Makefile.am): Support strcasestr.
75773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
75774         * modules/strcasestr-tests (Depends-on): Check for alarm.
75775         * tests/test-strcasestr.c: Augment test.
75776         * lib/str-two-way.h: Clean up stray macro.
75777         * NEWS: Document new module.
75778         * MODULES.html.sh (string handling): Likewise.
75779         * doc/functions/strcasestr.texi: New file.
75780         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
75781         here, since it is not a POSIX function.
75783 2008-01-14  Colin Watson  <cjwatson@debian.org>
75784             Bruno Haible  <bruno@clisp.org>
75786         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
75787         works fine; if not, set REPLACE_STRSIGNAL.
75788         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
75789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75790         REPLACE_STRSIGNAL.
75791         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
75792         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
75793         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
75795 2008-01-14  Bruno Haible  <bruno@clisp.org>
75797         * modules/strsignal (Include): Change to <string.h>.
75799 2008-01-14  Colin Watson  <cjwatson@debian.org>
75801         * modules/argp (Notice): Add a notice recommending to change
75802         XGETTEXT_OPTIONS.
75803         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
75805 2008-01-13  Colin Watson  <cjwatson@debian.org>
75807         * modules/strsignal-tests: New file.
75808         * tests/test-strsignal.c: New file.
75810         * lib/strsignal.c: New file, from glibc with modifications.
75811         * lib/siglist.h: New file, from glibc with modifications.
75812         * lib/string.in.h (strsignal): New declaration.
75813         * m4/strsignal.m4: New file.
75814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75815         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
75816         * modules/strsignal: New file.
75817         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
75818         HAVE_DECL_STRSIGNAL.
75820 2008-01-13  Bruno Haible  <bruno@clisp.org>
75822         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
75823         locale encoding is not ASCII. Needed for OpenBSD 4.0.
75824         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
75825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
75827 2008-01-13  Bruno Haible  <bruno@clisp.org>
75829         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
75830         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
75831         * lib/argp.h (__attribute__): Likewise.
75832         * lib/c-stack.c (__attribute__): Likewise.
75833         * lib/error.h (__attribute__): Likewise.
75834         * lib/fts.c (__attribute__): Likewise.
75835         * lib/openat.h (__attribute__): Likewise.
75836         * lib/stdio.in.h (__attribute__): Likewise.
75837         * lib/string.in.h (__attribute__): Likewise.
75838         * lib/utimens.c (__attribute__): Likewise.
75839         * lib/vasnprintf.h (__attribute__): Likewise.
75840         * lib/xalloc.h (__attribute__): Likewise.
75841         * lib/xprintf.h (__attribute__): Likewise.
75842         * lib/xstrtol.h (__attribute__): Likewise.
75843         * lib/xvasprintf.h (__attribute__): Likewise.
75845 2008-01-12  Bruno Haible  <bruno@clisp.org>
75847         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
75848         * doc/glibc-headers/a.out.texi: New file.
75849         * doc/glibc-headers/aliases.texi: New file.
75850         * doc/glibc-headers/alloca.texi: New file.
75851         * doc/glibc-headers/ar.texi: New file.
75852         * doc/glibc-headers/argp.texi: New file.
75853         * doc/glibc-headers/argz.texi: New file.
75854         * doc/glibc-headers/byteswap.texi: New file.
75855         * doc/glibc-headers/crypt.texi: New file.
75856         * doc/glibc-headers/endian.texi: New file.
75857         * doc/glibc-headers/envz.texi: New file.
75858         * doc/glibc-headers/err.texi: New file.
75859         * doc/glibc-headers/error.texi: New file.
75860         * doc/glibc-headers/execinfo.texi: New file.
75861         * doc/glibc-headers/fpu_control.texi: New file.
75862         * doc/glibc-headers/fstab.texi: New file.
75863         * doc/glibc-headers/fts.texi: New file.
75864         * doc/glibc-headers/getopt.texi: New file.
75865         * doc/glibc-headers/ieee754.texi: New file.
75866         * doc/glibc-headers/ifaddrs.texi: New file.
75867         * doc/glibc-headers/libintl.texi: New file.
75868         * doc/glibc-headers/mcheck.texi: New file.
75869         * doc/glibc-headers/mntent.texi: New file.
75870         * doc/glibc-headers/obstack.texi: New file.
75871         * doc/glibc-headers/paths.texi: New file.
75872         * doc/glibc-headers/printf.texi: New file.
75873         * doc/glibc-headers/pty.texi: New file.
75874         * doc/glibc-headers/resolv.texi: New file.
75875         * doc/glibc-headers/shadow.texi: New file.
75876         * doc/glibc-headers/sysexits.texi: New file.
75877         * doc/glibc-headers/ttyent.texi: New file.
75879 2008-01-12  Jim Meyering  <meyering@redhat.com>
75881         announce-gen: emit Gnulib's git-based version string.
75882         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
75883         New option --gnulib-version=V, where V is expected to be
75884         the output of running git describe in the gnulib directory.
75885         (get_tool_versions): Request feedback on xdelta.  I suspect it's
75886         not useful, and plan to stop publishing an xdelta file with each
75887         coreutils release.
75889         * build-aux/announce-gen: Also check for lzma-compressed files.
75891 2008-01-11  Bruno Haible  <bruno@clisp.org>
75893         * tests/test-memmem.c (main): Increase maximum allowed time.
75894         * tests/test-strstr.c (main): Likewise.
75896 2008-01-11  Bruno Haible  <bruno@clisp.org>
75898         * doc/functions/memmem.texi: Add more precisions about platforms.
75899         * doc/functions/strstr.texi: Likewise.
75901 2008-01-10  Eric Blake  <ebb9@byu.net>
75903         * m4/strstr.m4: Delete cruft from copy-n-paste.
75904         Reported by Bruno Haible.
75906 2008-01-10  Bruno Haible  <bruno@clisp.org>
75908         Make c-strstr rely on strstr.
75909         * lib/c-strstr.c: Don't include str-kmp.h.
75910         (c_strstr): Define in terms of strstr.
75911         * modules/c-strstr (Files): Remove lib/str-kmp.h.
75912         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
75914 2008-01-10  Bruno Haible  <bruno@clisp.org>
75916         * doc/gnulib.texi (String Functions in C Locale): New section.
75917         * doc/c-ctype.texi: New file.
75918         * doc/c-strcase.texi: New file.
75919         * doc/c-strcaseeq.texi: New file.
75920         * doc/c-strcasestr.texi: New file.
75921         * doc/c-strstr.texi: New file.
75922         * doc/c-strtod.texi: New file.
75923         * doc/c-strtold.texi: New file.
75925 2008-01-10  Eric Blake  <ebb9@byu.net>
75927         * lib/relocatable.h: Fix a comment.
75929 2008-01-10  Eric Blake  <ebb9@byu.net>
75931         Share two-way algorithm.
75932         * lib/str-two-way.h: New file, merged from...
75933         * lib/memmem.c: ...here...
75934         * lib/strstr.c: ...and here.
75935         * modules/memmem (Files): Use it.
75936         * modules/strstr (Files): Likewise.
75938         Avoid quadratic strstr implementations.
75939         * lib/strstr.c: New file.
75940         * m4/strstr.m4: Likewise.
75941         * modules/strstr: Likewise.
75942         * modules/strstr-tests: Likewise.
75943         * tests/test-strstr.c: Likewise.
75944         * lib/string.in.h (rpl_strstr): Declare.
75945         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
75946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
75947         * modules/string (Makefile.am): Likewise.
75948         * MODULES.html.sh (string handling): Mention new module.
75949         * doc/functions/strstr.texi (strstr): Document the bug.
75951 2008-01-10  Bruno Haible  <bruno@clisp.org>
75953         * lib/relocatable.h (relocate): State whether result is freshly
75954         allocated or not.
75955         * lib/relocatable.c (relocate): Return a freshly allocated string
75956         instead of a pointer to a privately held string.
75957         Reported by Sylvain Beucler <beuc@gnu.org>.
75959 2008-01-10  Colin Watson  <cjwatson@debian.org>
75961         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
75962         s/S_ISNLK/S_ISLNK/.
75964 2008-01-09  Bruno Haible  <bruno@clisp.org>
75966         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
75967         and other files.
75968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
75969         if it's only a guess.
75970         * modules/memmem: Simplify by depending on memmem-simple.
75972 2008-01-09  Bruno Haible  <bruno@clisp.org>
75974         Work around OpenBSD 4.0 tdelete() bug.
75975         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
75976         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
75977         macros and don't redefine the enum values.
75978         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
75979         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
75980         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
75982 2008-01-09  Bruno Haible  <bruno@clisp.org>
75984         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
75985         (main): Don't perform the tests if setlocale did not install a UTF-8
75986         locale. Needed on OpenBSD 4.0.
75987         * modules/wcwidth-tests (Depends-on): Add localcharset.
75989 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75991         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
75992         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
75993         * NEWS: announce this.
75994         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
75996 2008-01-09  Simon Josefsson  <simon@josefsson.org>
75997         and Eric Blake  <ebb9@byu.net>
75999         Add memmem-simple module.
76000         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
76001         (gl_FUNC_MEMMEM): Separate performance from presence checks.
76002         * modules/memmem-simple: New file.
76003         * modules/memmem (Description): Tweak.
76004         * MODULES.html.sh (string handling): Mention new module.
76005         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
76006         addressed by memmem-simple.
76007         * NEWS: Document the difference.
76009 2008-01-09  Eric Blake  <ebb9@byu.net>
76011         Give gcc some memmem optimization hints.
76012         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
76013         (strcasestr): Declare as pure.
76014         * modules/memmem (Maintainer): Claim my implementation.
76016 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76018         Support AIX 6.1 and higher.
76019         * build-aux/config.libpath: Likewise.
76020         * build-aux/config.rpath: Likewise.
76022 2008-01-08  Jim Meyering  <meyering@redhat.com>
76023             Bruno Haible  <bruno@clisp.org>
76025         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
76026         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
76027         Reported by Peter Fales in
76028         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
76030 2008-01-08  Bruno Haible  <bruno@clisp.org>
76032         * modules/unictype/category-of (Depends-on): Add
76033         unictype/category-none.
76034         * modules/unictype/category-and-tests (Depends-on): Add
76035         unictype/category-{L,N,Lu,Nd}.
76036         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
76037         * modules/unictype/category-or-tests (Depends-on): Add
76038         unictype/category-{L,N}.
76039         * modules/unictype/category-name-tests (Depends-on): Add
76040         unictype/category-{Z,Nl}.
76041         Reported by Simon Josefsson.
76043 2008-01-08  Bruno Haible  <bruno@clisp.org>
76045         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
76046         convention better.
76047         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
76048         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
76049         Reported by Peter Miller <millerp@canb.auug.org.au>.
76051 2008-01-08  Eric Blake  <ebb9@byu.net>
76053         Rewrite memmem to guarantee linear complexity without malloc.
76054         * lib/memmem.c (memmem): Use Two-Way rather than
76055         Knuth-Morris-Pratt, to allow O(1) space usage.
76056         (critical_factorization, two_way_short_needle)
76057         (two_way_long_needle): New functions.
76058         (knuth_morris_pratt): Delete.
76059         * modules/memmem (Depends-on): No longer need malloca or stdbool.
76060         Add stdint.
76061         * tests/test-memmem.c (main): Add tests for periodic needle and
76062         sublinear performance.
76063         * doc/functions/memmem.texi (memmem): Document other deficiencies
76064         in cygwin and older glibc.
76066 2008-01-08  Bruno Haible  <bruno@clisp.org>
76068         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
76069         augmentation.
76071 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
76073         Add a configure time option: --disable-acl.
76074         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
76075         AC_ARG_ENABLE(acl).
76077 2008-01-06  Simon Josefsson  <simon@josefsson.org>
76079         * tests/test-localename.c: Don't include obsolete "setenv.h".
76081         * modules/localename-tests (Depends-on): Need unsetenv.
76083 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76085         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
76087 2008-01-06  Colin Watson  <cjwatson@debian.org>
76089         * users.txt: Add man-db.
76091 2008-01-07  Bruno Haible  <bruno@clisp.org>
76093         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
76094         previous section name.
76096 2008-01-07  Bruno Haible  <bruno@clisp.org>
76098         * lib/progname.c (set_program_name): Don't strip off a leading
76099         "lt-" prefix outside a .libs directory.
76100         Suggested by Paul Eggert.
76102 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
76103             Bruno Haible  <bruno@clisp.org>
76105         Improve memory cleanup in 'relocatable' module.
76106         * lib/relocatable.h (compute_curr_prefix): Change return type to
76107         'char *'.
76108         * lib/relocatable.c (compute_curr_prefix): Change return type to
76109         'char *'. Free curr_installdir after use.
76110         (relocate): Free curr_prefix_better after use.
76111         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
76113 2008-01-01  Bruno Haible  <bruno@clisp.org>
76115         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
76116         failure on older glibc systems.
76117         Reported by Peter Fales <psfales@alcatel-lucent.com>.
76119 2008-01-05  Eric Blake  <ebb9@byu.net>
76121         Avoid quadratic system memmem.
76122         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
76123         Reported by Ralf Wildenhues.
76125         Fix memmem test for mingw.
76126         * modules/memmem-tests (configure.ac): Check for alarm.
76127         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
76128         it.
76129         * doc/functions/memmem.texi: New file.
76130         * doc/gnulib.texi (Function Substitutes): Add memmem.
76131         Reported by Bruno Haible.
76133 2008-01-04  Bruno Haible  <bruno@clisp.org>
76135         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
76136         Require gl_HEADER_STRINGS_H_DEFAULTS, not
76137         gl_HEADER_STRING_H_DEFAULTS.
76139 2008-01-04  Eric Blake  <ebb9@byu.net>
76141         Shorten duration of memmem test.
76142         * tests/test-memmem.c (main): Use alarm to declare failure if test
76143         is taking too long.
76144         Reported by Ralf Wildenhues.
76146 2007-12-21  Simon Josefsson  <simon@josefsson.org>
76148         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
76149         string, needed by strerror.
76151 2008-01-03  Colin Watson  <cjwatson@debian.org>
76152             Bruno Haible  <bruno@clisp.org>
76154         * doc/gnulib-tool.texi (Localization): New section.
76156 2008-01-02  Bruno Haible  <bruno@clisp.org>
76158         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
76159         variables to 'unsigned char *' type.
76160         Reported by Paul Eggert.
76162 2008-01-02  Jim Meyering  <jim@meyering.net>
76164         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
76166 2007-12-31  Jim Meyering  <jim@meyering.net>
76168         Avoid use of private FTS type name.
76169         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
76171 2007-12-30  Karl Berry  <karl@gnu.org>
76173         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
76174         work around defect in Texinfo and/or the standalone Info browser.
76176 2007-12-30  Bruno Haible  <bruno@clisp.org>
76178         Unify 5 copies of the KMP code.
76179         * lib/str-kmp.h: New file.
76180         * lib/c-strcasestr.c: Include str-kmp.h.
76181         (knuth_morris_pratt): Remove function.
76182         (c_strcasestr): Update.
76183         * lib/c-strstr.c: Include str-kmp.h.
76184         (knuth_morris_pratt): Remove function.
76185         (c_strcasestr): Update.
76186         * lib/mbscasestr.c: Include str-kmp.h.
76187         (knuth_morris_pratt_unibyte): Remove function.
76188         * lib/mbsstr.c: Include str-kmp.h.
76189         (knuth_morris_pratt_unibyte): Remove function.
76190         * lib/strcasestr.c: Include str-kmp.h.
76191         (knuth_morris_pratt): Remove function.
76192         (strcasestr): Update.
76193         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
76194         * modules/c-strstr (Files): Likewise.
76195         * modules/mbscasestr (Files): Likewise.
76196         * modules/mbsstr (Files): Likewise.
76197         * modules/strcasestr (Files): Likewise.
76198         Suggested by Paul Eggert.
76200 2007-12-30  Bruno Haible  <bruno@clisp.org>
76202         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
76203         defined.
76205 2007-12-30  Bruno Haible  <bruno@clisp.org>
76207         * lib/xmalloca.h: Include xalloc.h.
76208         (xnmalloca): New macro.
76210 2007-12-30  Bruno Haible  <bruno@clisp.org>
76212         * lib/malloca.h (nmalloca): New macro.
76213         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
76214         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
76215         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
76216         knuth_morris_pratt_multibyte): Likewise.
76217         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
76218         knuth_morris_pratt_multibyte): Likewise.
76219         * lib/memmem.c (knuth_morris_pratt): Likewise.
76220         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
76222 2007-12-25  Bruno Haible  <bruno@clisp.org>
76224         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
76225         * lib/glob.c: Don't include openat.h.
76226         (link_exists2_p): Add back the code that deals with the
76227         !GLOB_ALTDIRFUNC case.
76228         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
76229         let it do the filename concatenation.
76230         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
76231         * modules/glob (Depends-on): Remove openat.
76233 2007-12-31  Bruno Haible  <bruno@clisp.org>
76235         * modules/dirfd (License): Change to LGPLv2+.
76236         Approved by Jim Meyering.
76238 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76240         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
76241         when multiplying M by sizeof (size_t).
76243 2007-12-10  Martin Lambers  <marlam@marlam.de>
76245         Override getpagesize on mingw.
76246         * lib/getpagesize.c: New file.
76247         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
76248         * modules/getpagesize (Files): Add lib/getpagesize.c.
76249         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
76250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76251         REPLACE_GETPAGESIZE.
76252         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
76254 2007-12-25  Bruno Haible  <bruno@clisp.org>
76256         * modules/localcharset (Notice): New field.
76257         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
76258         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
76260 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76261             Bruno Haible  <bruno@clisp.org>
76263         Avoid using the syntax symbol() in formatted documentation.
76264         * MODULES.html.sh (func_module): When replacing symbol() with a
76265         hyperlink, remove the parentheses. Show an error if some remain.
76266         Recognize and render the '...' syntax.
76267         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
76268         Rework. Add paragraph about GCC's inlining.
76269         * doc/alloca.texi: Likewise.
76270         * doc/error.texi: Remove parentheses from symbol reference.
76271         * doc/gnulib-intro.texi: Likewise.
76272         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
76273         * modules/fnmatch (Description): Reword to say "the ... function".
76274         * modules/full-read (Description): Likewise.
76275         * modules/full-write (Description): Likewise.
76276         * modules/safe-read (Description): Likewise.
76277         * modules/safe-write (Description): Likewise.
76278         * modules/strchrnul (Description): Likewise.
76279         * modules/trim (Description): Likewise.
76280         * modules/error (Description): Remove parentheses from symbol
76281         references.
76282         * modules/verror (Description): Likewise.
76283         Reported by Karl Berry.
76285 2007-12-25  Bruno Haible  <bruno@clisp.org>
76287         Fixup after 2007-10-16 commit.
76288         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
76290 2007-12-24  Bruno Haible  <bruno@clisp.org>
76292         Make --enable-relocatable work with DESTDIR.
76293         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
76294         to compute installdir from destprog.
76295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
76296         also set the RELOC_DESTDIR variable.
76297         Reported by Левашев Иван <octagram@bluebottle.com>.
76299 2007-12-24  Bruno Haible  <bruno@clisp.org>
76301         Fix link error due to xalloc_die().
76302         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
76303         of xreadlink.
76304         * lib/relocwrapper.c: Update comments.
76305         * build-aux/install-reloc: Remove xreadlink.c from file list.
76306         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
76307         xreadlink.c.
76308         Reported by Левашев Иван <octagram@bluebottle.com>.
76310 2007-12-24  Bruno Haible  <bruno@clisp.org>
76312         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
76313         * lib/setenv.h: Remove file.
76314         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
76315         lib/setenv.h.
76316         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
76317         (Depends-on): Add stdlib.
76318         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
76319         gl_FUNC_UNSETENV.
76320         (Include): Replace setenv.h with <stdlib.h>.
76321         * modules/unsetenv: New file.
76322         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
76323         * lib/unsetenv.c: Include <stdlib.h> first.
76324         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
76325         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
76326         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
76327         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
76328         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
76329         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
76330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
76331         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
76332         * doc/functions/unsetenv.texi: Update.
76333         * modules/xsetenv (Depends-on): Add unsetenv.
76334         * modules/getdate (Depends-on): Likewise.
76335         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
76336         * lib/xsetenv.c: Don't include setenv.h.
76337         * lib/getdate.y: Likewise.
76338         * lib/relocwrapper.c: Likewise.
76339         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
76340         (Depends-on): Add stdlib.
76341         * NEWS: Mention the changes.
76342         Reported by Левашев Иван <octagram@bluebottle.com>.
76344 2007-12-23  Bruno Haible  <bruno@clisp.org>
76346         * lib/memmem.c (memmem): Use lowercase variable names. Tab
76347         indentation.
76349 2007-12-23  Bruno Haible  <bruno@clisp.org>
76351         * lib/c-strcasestr.c: Add more comments.
76352         * lib/c-strstr.c: Likewise.
76353         * lib/mbscasestr.c: Likewise.
76354         * lib/mbsstr.c: Likewise.
76355         * lib/strcasestr.c: Likewise.
76356         * lib/memmem.c: Likewise.
76358 2007-12-23  Bruno Haible  <bruno@clisp.org>
76360         * tests/test-memmem.c: Include <string.h> first.
76362 2007-12-22  Bruno Haible  <bruno@clisp.org>
76364         * gnulib-tool (func_create_testdir): Change $auxdir while generating
76365         the contents of $testsbase.
76366         Reported by Ralf Wildenhues.
76368 2007-12-22  Bruno Haible  <bruno@clisp.org>
76370         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
76371         two variables local_ldadd_before, local_ldadd_last.
76373 2007-12-20  Eric Blake  <ebb9@byu.net>
76375         Work around circular library issue when cross-compiling.
76376         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
76377         that progname.o does not need to pull in rpl_memcmp.
76379 2007-12-19  Eric Blake  <ebb9@byu.net>
76381         Fix memmem to avoid O(n^2) worst-case complexity.
76382         * lib/memmem.c (knuth_morris_pratt): New function.
76383         (memmem): Use it if first few naive iterations fail.
76384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
76385         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
76386         * modules/memchr (License): Likewise.
76387         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
76388         malloca.
76389         * tests/test-memmem.c: Rewrite, borrowing ideas from
76390         test-mbsstr1.c; the old version wouldn't even compile!
76391         * modules/memmem-tests: New file.
76392         * lib/string.in.h (rpl_memmem): Add declaration.
76393         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
76394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
76395         REPLACE_MEMMEM.
76397 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76399         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
76400         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
76401         before any system include files, and undef after them all.  This
76402         should fix a problem on VMS reported by John E. Malmberg in
76403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
76405 2007-12-17  Eric Blake  <ebb9@byu.net>
76407         Revert addition of verify, for BSD/OS.
76408         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
76409         can't handle large files, for the sake of obsolete platforms.
76410         * modules/fseeko (Depends-on): Remove verify.
76411         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
76412         * doc/functions/ftello.texi (ftello): Likewise.
76413         * doc/functions/fgetpos.texi (fgetpos): Likewise.
76414         Reported by Larry Jones.
76416 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
76418         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
76419         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
76421 2007-12-17  Jim Meyering  <meyering@redhat.com>
76423         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
76424         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
76425         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
76426         * modules/getcwd (Depends-on): Add openat.
76427         Reported by Petr Salinger.
76429 2007-12-17  Bruno Haible  <bruno@clisp.org>
76431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
76432         avoid a segmentation fault of the configure test on x86_64 systems.
76434 2007-12-15  Jim Meyering  <meyering@redhat.com>
76436         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
76438 2007-12-13  Eric Blake  <ebb9@byu.net>
76440         Another fseek test.
76441         * tests/test-fseek.c (main): Also test ungetc handling.
76442         * tests/test-fseeko.c (main): Likewise.
76443         * modules/fseeko (Depends-on): Add verify.
76444         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
76445         large.
76446         Reported by Larry Jones.
76448         Fix fseeko on mingw.
76449         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
76450         seek.
76452         Beef up fseek tests.
76453         * tests/test-fseek.c (main): Also test eof handling.
76454         * tests/test-fseeko.c (main): Likewise.
76455         Reported by Larry Jones.
76457 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
76459         Fix fseeko on BSD-based platforms.
76460         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
76461         successful seek.
76463 2007-12-12  Eric Blake  <ebb9@byu.net>
76465         Allow circular dependency of separate libtests.a
76466         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
76467         when use_libtests.
76469 2007-12-11  Eric Blake  <ebb9@byu.net>
76471         Fix bug with -0.0L in previous patch.
76472         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
76473         * tests/test-isnan.c (main): Also test on zeroes.
76474         * tests/test-isnanf.c (main): Likewise.
76475         * tests/test-isnanl.h (main): Likewise.
76477         Detect pseudo-denormals on x86 even when cross-compiling.
76478         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
76479         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
76480         invalid bit patterns that happen to satisfy ==.
76482         Avoid link failures with separate libtests.a.
76483         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
76484         last, to satisfy circular dependencies.
76486 2007-12-11  Eric Blake  <ebb9@byu.net>
76487         and Bruno Haible  <bruno@clisp.org>
76489         Fix OpenBSD 4.0 <float.h> handling of long double.
76490         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
76491         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
76492         * doc/headers/float.texi (float.h): Document OpenBSD bug.
76494 2007-12-11  Jim Meyering  <meyering@redhat.com>
76496         * users.txt: Add libvirt.
76498         Support versions of autoconf prior to 2.59c.
76499         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
76500         if it is not already defined.
76502 2007-12-09  Bruno Haible  <bruno@clisp.org>
76504         Let 'gnulib-tool --import' collect sources needed for the tests in
76505         tests/ rather than in lib/.
76506         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
76507         argument. If true, add rules to generate libtests.a, and put libtests.a
76508         into $(LDADD). Consider source files in subdirectories and set
76509         uses_subdirs.
76510         (func_emit_initmacro_start, func_emit_initmacro_end,
76511         func_emit_initmacro_done): Pass all arguments explicitly.
76512         (func_import): Determine two module lists main_modules,
76513         testsrelated_modules. Determine use_libtests. Determine two variables
76514         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
76515         instead of just sed_transform_lib_file. Determine two variables
76516         main_files and testsrelated_files. Compute 'files' as the union of
76517         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
76518         func_add_or_update. In the generated gnulib-comp.m4, collect the
76519         object files for tests/ in different variables than those for lib/.
76520         Substitute LIBTESTS_LIBDEPS.
76521         (func_create_testdir): Combine the uses_subdirs results from
76522         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
76524 2007-12-09  Bruno Haible  <bruno@clisp.org>
76526         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
76527         the build-aux directory.
76529 2007-12-09  Bruno Haible  <bruno@clisp.org>
76531         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
76532         introduced on 2006-09-09.
76534 2007-12-07  Jim Meyering  <meyering@redhat.com>
76536         Let these macros work also with autoconf-2.59.
76537         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
76538         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
76539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
76541 2007-12-06  Jim Meyering  <meyering@redhat.com>
76543         Avoid a configure-time syntax error in gl_FUNC_ACL.
76544         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
76545         function in each branch, before testing the cache variable.
76547 2007-12-04  Eric Blake  <ebb9@byu.net>
76549         Make scripts executable.
76550         * build-aux/config.guess: Add execute permissions.
76551         * build-aux/config.sub: Likewise.
76552         * build-aux/gendocs.sh: Likewise.
76554         Fix frexp on mingw.
76555         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
76556         cross-compiling.
76557         * doc/functions/frexp.texi (frexp): Document the bug.
76559         Make cygwin fseeko check more reliable.
76560         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
76561         version numbers, rather than unrelated feature check.
76562         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
76563         * doc/functions/ftello.texi (ftello): Likewise.
76564         Reported by Bruno Haible.
76566         * m4/strerror.m4: Bump version number.
76568 2007-12-03  Bruno Haible  <bruno@clisp.org>
76570         * doc/functions/mprotect.texi: Mention the mingw problem.
76572 2007-12-03  Eric Blake  <ebb9@byu.net>
76574         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
76575         REPLACE_STRERROR is initialized before this macro.
76577 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76579         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
76580         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
76581         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
76582         put -lsec in even for programs other than 'ls'.  This fixes a problem
76583         for gettext reported by Bruno Haible in
76584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
76585         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
76586         Add support for Solaris 10.  This isn't efficient, but should get the
76587         job done for now.
76589 2007-12-03  James Youngman  <jay@gnu.org>
76591         * doc/regexprops-generic.texi: change "an close-group" to "a
76592         close-group" and "illegal" to "not allowed".
76594 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76596         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
76597         pr_byname.h. Needed for the rare case when the maintainer has done
76598         "make maintainer-clean" in the source directory and then attempts a
76599         build outside the source directory.
76600         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
76601         scripts_byname.h.
76603 2007-12-02  Martin Lambers  <marlam@marlam.de>
76604             Bruno Haible  <bruno@clisp.org>
76606         * lib/getpagesize.h: Remove file.
76607         * lib/unistd.in.h: Include declaration of getpagesize here.
76608         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
76609         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
76610         HAVE_SYS_PARAM_H.
76611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
76612         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
76613         * modules/getpagesize (Files): Remove lib/getpagesize.h.
76614         (Depends-on): Add unistd.
76615         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
76616         (Include): Use <unistd.h> instead of getpagesize.h.
76617         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
76618         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
76619         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
76620         gl_GETPAGESIZE invocation, already handled by module dependency.
76621         * lib/pagealign_alloc.c: Don't include getpagesize.h.
76623 2007-12-02  Bruno Haible  <bruno@clisp.org>
76625         * modules/strings-tests: New file.
76626         * tests/test-strings.c: New file.
76628         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
76629         * lib/strings.in.h: New file.
76630         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
76631         * m4/strings_h.m4: New file.
76632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
76633         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
76634         * modules/strings: New file.
76635         * modules/string (Makefile.am): Update.
76636         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
76637         Reported by Karl Berry.
76639 2007-12-01  Eric Blake  <ebb9@byu.net>
76641         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
76642         accommodate fix in cygwin 1.5.25.
76644 2007-12-01  Jim Meyering  <meyering@redhat.com>
76646         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
76647         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
76648         that would inhibit utf8-optimization of a regexp containing line-
76649         or buffer-anchors, e.g., `^', `$'.
76651 2007-11-30  Bruno Haible  <bruno@clisp.org>
76653         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
76654         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
76655         glthread_recursive_lock_init.
76656         * lib/lock.c (glthread_recursive_lock_init)
76657         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
76658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76660 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
76662         New function qset_acl, like set_acl but with syscall semantics.
76663         * lib/acl.h (qset_acl): New decl.
76664         * lib/acl.c (qset_acl): New function.
76665         (set_acl): Use new function.  Use more-consistent diagnostics.
76667 2007-11-28  Jim Meyering  <meyering@redhat.com>
76669         * modules/physmem (License): Change from GPL to LGPLv2+.
76671 2007-11-26  Bruno Haible  <bruno@clisp.org>
76673         * lib/vasnprintf.c (decode_long_double): Don't abort if the
76674         'long double' type has excess precision.
76675         Reported by Jim Meyering in
76676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
76678 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76680         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
76681         Sync from <http://gnu.org/licenses>.
76682         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
76683         with license text from same location.
76684         * doc/maintain.texi, doc/standards.texi:  Sync from
76685         <http://savannah.gnu.org/projects/gnustandards>.
76687 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
76688         and Jim Meyering  <meyering@redhat.com>
76690         Adjust getdate' grammar to accept a slightly more regular language.
76691         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
76692         Before, the former was rejected.
76693         * lib/getdate.y (digits_to_date_time): New function, factored
76694         out of ...
76695         (number): ...here.  Just call digits_to_date_time.
76696         (hybrid): New non-terminal to handle an <unsigned number,
76697         signed relative offset> sequence consistently.
76699 2007-11-18  Jim Meyering  <meyering@redhat.com>
76701         Pull my changes from coreutils:
76702         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
76703         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
76704         use of $gnulib_tool_option_extras, so that it's separated from the
76705         preceding argument.
76707         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
76708         * build-aux/bootstrap (cp_mark_as_generated): Create any required
76709         parent destination directories before copying a file into place.
76711 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76713         bootstrap: work also with 4-argument variant of AC_INIT
76714         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
76716 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76718         Port test-getaddrinfo to Solaris.
76719         Problem reported by Bruno Haible in
76720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
76721         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
76722         explanation of setting 'hints'.
76723         Don't reject an implementation merely because it returns EAI_SERVICE.
76724         (EAI_SERVICE): Define to 0 if not defined.
76726 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76728         The license of gnu-make and posix-shell is now "GPLed build tool".
76729         * modules/gnu-make (License): Likewise.
76730         * modules/posix-shell (License): Likewise.
76732         New module posix-shell, for determining a POSIX shell
76733         or perhaps something that is close enough to a POSIX shell.
76734         * m4/posix-shell.m4: New file.
76735         * modules/posix-shell: New file.
76737         * MODULES.html.sh: Mention new module.
76739         New module gnu-make, for determining whether we're using GNU Make.
76740         * m4/gnu-make.m4: New file.
76741         * modules/gnu-make: New file.
76742         * MODULES.html.sh: Mention new module.
76744 2007-11-14  Jim Meyering  <meyering@redhat.com>
76746         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
76747         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
76748         use this macro to create a function _definition_.
76749         Remove useless "#undef ARGMATCH_DIE".
76751 2007-11-14  Bruno Haible  <bruno@clisp.org>
76753         * lib/config.charset: Update for OpenBSD 4.1.
76754         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
76756 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
76758         Document 64-bit #if problems in stdint.texi.
76759         * doc/headers/stdint.texi (stdint.h): Mention problems with
76760         64-bit-#if, and how to work around them.
76762         Don't insist on 'long long int' support in the preprocessor.  It
76763         breaks too many things.  For example, PRIdMAX still uses a 'long
76764         long int' format with the latest Sun compiler, even though
76765         HAVE_LONG_LONG_INT isn't defined due to that compiler's
76766         preprocessor problem.  This causes the latest coreutils to dump
76767         core on Solaris 10 sparc with the Sun C compiler.
76768         Instead, fix the 2007-10-16 problem in a different way, by evaluating
76769         the troublesome expressions at configure-time, not at #if-time.
76770         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
76771         preprocessor.
76772         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
76773         compile-time C checks, done at 'configure'-time.
76774         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
76775         * modules/inttypes (Makefile): Substitute the new symbols that
76776         gl_INTTYPES_H now generates.
76777         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
76779 2007-11-12  Bruno Haible  <bruno@clisp.org>
76781         Tests for Unicode character classification functions.
76783         * modules/unictype/bidicategory-byname-tests: New file.
76784         * modules/unictype/bidicategory-name-tests: New file.
76785         * modules/unictype/bidicategory-of-tests: New file.
76786         * modules/unictype/bidicategory-test-tests: New file.
76787         * modules/unictype/block-list-tests: New file.
76788         * modules/unictype/block-of-tests: New file.
76789         * modules/unictype/block-test-tests: New file.
76790         * modules/unictype/category-C-tests: New file.
76791         * modules/unictype/category-Cc-tests: New file.
76792         * modules/unictype/category-Cf-tests: New file.
76793         * modules/unictype/category-Cn-tests: New file.
76794         * modules/unictype/category-Co-tests: New file.
76795         * modules/unictype/category-Cs-tests: New file.
76796         * modules/unictype/category-L-tests: New file.
76797         * modules/unictype/category-Ll-tests: New file.
76798         * modules/unictype/category-Lm-tests: New file.
76799         * modules/unictype/category-Lo-tests: New file.
76800         * modules/unictype/category-Lt-tests: New file.
76801         * modules/unictype/category-Lu-tests: New file.
76802         * modules/unictype/category-M-tests: New file.
76803         * modules/unictype/category-Mc-tests: New file.
76804         * modules/unictype/category-Me-tests: New file.
76805         * modules/unictype/category-Mn-tests: New file.
76806         * modules/unictype/category-N-tests: New file.
76807         * modules/unictype/category-Nd-tests: New file.
76808         * modules/unictype/category-Nl-tests: New file.
76809         * modules/unictype/category-No-tests: New file.
76810         * modules/unictype/category-P-tests: New file.
76811         * modules/unictype/category-Pc-tests: New file.
76812         * modules/unictype/category-Pd-tests: New file.
76813         * modules/unictype/category-Pe-tests: New file.
76814         * modules/unictype/category-Pf-tests: New file.
76815         * modules/unictype/category-Pi-tests: New file.
76816         * modules/unictype/category-Po-tests: New file.
76817         * modules/unictype/category-Ps-tests: New file.
76818         * modules/unictype/category-S-tests: New file.
76819         * modules/unictype/category-Sc-tests: New file.
76820         * modules/unictype/category-Sk-tests: New file.
76821         * modules/unictype/category-Sm-tests: New file.
76822         * modules/unictype/category-So-tests: New file.
76823         * modules/unictype/category-Z-tests: New file.
76824         * modules/unictype/category-Zl-tests: New file.
76825         * modules/unictype/category-Zp-tests: New file.
76826         * modules/unictype/category-Zs-tests: New file.
76827         * modules/unictype/category-and-not-tests: New file.
76828         * modules/unictype/category-and-tests: New file.
76829         * modules/unictype/category-byname-tests: New file.
76830         * modules/unictype/category-name-tests: New file.
76831         * modules/unictype/category-none-tests: New file.
76832         * modules/unictype/category-of-tests: New file.
76833         * modules/unictype/category-or-tests: New file.
76834         * modules/unictype/category-test-withtable-tests: New file.
76835         * modules/unictype/combining-class-tests: New file.
76836         * modules/unictype/ctype-alnum-tests: New file.
76837         * modules/unictype/ctype-alpha-tests: New file.
76838         * modules/unictype/ctype-blank-tests: New file.
76839         * modules/unictype/ctype-cntrl-tests: New file.
76840         * modules/unictype/ctype-digit-tests: New file.
76841         * modules/unictype/ctype-graph-tests: New file.
76842         * modules/unictype/ctype-lower-tests: New file.
76843         * modules/unictype/ctype-print-tests: New file.
76844         * modules/unictype/ctype-punct-tests: New file.
76845         * modules/unictype/ctype-space-tests: New file.
76846         * modules/unictype/ctype-upper-tests: New file.
76847         * modules/unictype/ctype-xdigit-tests: New file.
76848         * modules/unictype/decimal-digit-tests: New file.
76849         * modules/unictype/digit-tests: New file.
76850         * modules/unictype/mirror-tests: New file.
76851         * modules/unictype/numeric-tests: New file.
76852         * modules/unictype/property-alphabetic-tests: New file.
76853         * modules/unictype/property-ascii-hex-digit-tests: New file.
76854         * modules/unictype/property-bidi-arabic-digit-tests: New file.
76855         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
76856         * modules/unictype/property-bidi-block-separator-tests: New file.
76857         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
76858         * modules/unictype/property-bidi-common-separator-tests: New file.
76859         * modules/unictype/property-bidi-control-tests: New file.
76860         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
76861         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
76862         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
76863         * modules/unictype/property-bidi-european-digit-tests: New file.
76864         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
76865         * modules/unictype/property-bidi-left-to-right-tests: New file.
76866         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
76867         * modules/unictype/property-bidi-other-neutral-tests: New file.
76868         * modules/unictype/property-bidi-pdf-tests: New file.
76869         * modules/unictype/property-bidi-segment-separator-tests: New file.
76870         * modules/unictype/property-bidi-whitespace-tests: New file.
76871         * modules/unictype/property-byname-tests: New file.
76872         * modules/unictype/property-combining-tests: New file.
76873         * modules/unictype/property-composite-tests: New file.
76874         * modules/unictype/property-currency-symbol-tests: New file.
76875         * modules/unictype/property-dash-tests: New file.
76876         * modules/unictype/property-decimal-digit-tests: New file.
76877         * modules/unictype/property-default-ignorable-code-point-tests: New file.
76878         * modules/unictype/property-deprecated-tests: New file.
76879         * modules/unictype/property-diacritic-tests: New file.
76880         * modules/unictype/property-extender-tests: New file.
76881         * modules/unictype/property-format-control-tests: New file.
76882         * modules/unictype/property-grapheme-base-tests: New file.
76883         * modules/unictype/property-grapheme-extend-tests: New file.
76884         * modules/unictype/property-grapheme-link-tests: New file.
76885         * modules/unictype/property-hex-digit-tests: New file.
76886         * modules/unictype/property-hyphen-tests: New file.
76887         * modules/unictype/property-id-continue-tests: New file.
76888         * modules/unictype/property-id-start-tests: New file.
76889         * modules/unictype/property-ideographic-tests: New file.
76890         * modules/unictype/property-ids-binary-operator-tests: New file.
76891         * modules/unictype/property-ids-trinary-operator-tests: New file.
76892         * modules/unictype/property-ignorable-control-tests: New file.
76893         * modules/unictype/property-iso-control-tests: New file.
76894         * modules/unictype/property-join-control-tests: New file.
76895         * modules/unictype/property-left-of-pair-tests: New file.
76896         * modules/unictype/property-line-separator-tests: New file.
76897         * modules/unictype/property-logical-order-exception-tests: New file.
76898         * modules/unictype/property-lowercase-tests: New file.
76899         * modules/unictype/property-math-tests: New file.
76900         * modules/unictype/property-non-break-tests: New file.
76901         * modules/unictype/property-not-a-character-tests: New file.
76902         * modules/unictype/property-numeric-tests: New file.
76903         * modules/unictype/property-other-alphabetic-tests: New file.
76904         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
76905         * modules/unictype/property-other-grapheme-extend-tests: New file.
76906         * modules/unictype/property-other-id-continue-tests: New file.
76907         * modules/unictype/property-other-id-start-tests: New file.
76908         * modules/unictype/property-other-lowercase-tests: New file.
76909         * modules/unictype/property-other-math-tests: New file.
76910         * modules/unictype/property-other-uppercase-tests: New file.
76911         * modules/unictype/property-paired-punctuation-tests: New file.
76912         * modules/unictype/property-paragraph-separator-tests: New file.
76913         * modules/unictype/property-pattern-syntax-tests: New file.
76914         * modules/unictype/property-pattern-white-space-tests: New file.
76915         * modules/unictype/property-private-use-tests: New file.
76916         * modules/unictype/property-punctuation-tests: New file.
76917         * modules/unictype/property-quotation-mark-tests: New file.
76918         * modules/unictype/property-radical-tests: New file.
76919         * modules/unictype/property-sentence-terminal-tests: New file.
76920         * modules/unictype/property-soft-dotted-tests: New file.
76921         * modules/unictype/property-space-tests: New file.
76922         * modules/unictype/property-terminal-punctuation-tests: New file.
76923         * modules/unictype/property-test-tests: New file.
76924         * modules/unictype/property-titlecase-tests: New file.
76925         * modules/unictype/property-unassigned-code-value-tests: New file.
76926         * modules/unictype/property-unified-ideograph-tests: New file.
76927         * modules/unictype/property-uppercase-tests: New file.
76928         * modules/unictype/property-variation-selector-tests: New file.
76929         * modules/unictype/property-white-space-tests: New file.
76930         * modules/unictype/property-xid-continue-tests: New file.
76931         * modules/unictype/property-xid-start-tests: New file.
76932         * modules/unictype/property-zero-width-tests: New file.
76933         * modules/unictype/scripts-tests: New file.
76934         * modules/unictype/syntax-c-ident-tests: New file.
76935         * modules/unictype/syntax-c-whitespace-tests: New file.
76936         * modules/unictype/syntax-java-ident-tests: New file.
76937         * modules/unictype/syntax-java-whitespace-tests: New file.
76938         * tests/unictype/test-bidi_byname.c: New file.
76939         * tests/unictype/test-bidi_name.c: New file.
76940         * tests/unictype/test-bidi_of.c: New file.
76941         * tests/unictype/test-bidi_test.c: New file.
76942         * tests/unictype/test-block_list.c: New file.
76943         * tests/unictype/test-block_of.c: New file.
76944         * tests/unictype/test-block_test.c: New file.
76945         * tests/unictype/test-categ_and.c: New file.
76946         * tests/unictype/test-categ_and_not.c: New file.
76947         * tests/unictype/test-categ_byname.c: New file.
76948         * tests/unictype/test-categ_name.c: New file.
76949         * tests/unictype/test-categ_none.c: New file.
76950         * tests/unictype/test-categ_of.c: New file.
76951         * tests/unictype/test-categ_or.c: New file.
76952         * tests/unictype/test-categ_test_withtable.c: New file.
76953         * tests/unictype/test-combining.c: New file.
76954         * tests/unictype/test-decdigit.c: New file.
76955         * tests/unictype/test-digit.c: New file.
76956         * tests/unictype/test-mirror.c: New file.
76957         * tests/unictype/test-numeric.c: New file.
76958         * tests/unictype/test-pr_byname.c: New file.
76959         * tests/unictype/test-pr_test.c: New file.
76960         * tests/unictype/test-predicate-part1.h: New file.
76961         * tests/unictype/test-predicate-part2.h: New file.
76962         * tests/unictype/test-scripts.c: New file.
76963         * tests/unictype/test-sy_c_ident.c: New file.
76964         * tests/unictype/test-sy_java_ident.c: New file.
76966         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
76967         for Unicode 5.0.0.
76968         * tests/unictype/test-categ_Cc.c: Likewise.
76969         * tests/unictype/test-categ_Cf.c: Likewise.
76970         * tests/unictype/test-categ_Cn.c: Likewise.
76971         * tests/unictype/test-categ_Co.c: Likewise.
76972         * tests/unictype/test-categ_Cs.c: Likewise.
76973         * tests/unictype/test-categ_L.c: Likewise.
76974         * tests/unictype/test-categ_Ll.c: Likewise.
76975         * tests/unictype/test-categ_Lm.c: Likewise.
76976         * tests/unictype/test-categ_Lo.c: Likewise.
76977         * tests/unictype/test-categ_Lt.c: Likewise.
76978         * tests/unictype/test-categ_Lu.c: Likewise.
76979         * tests/unictype/test-categ_M.c: Likewise.
76980         * tests/unictype/test-categ_Mc.c: Likewise.
76981         * tests/unictype/test-categ_Me.c: Likewise.
76982         * tests/unictype/test-categ_Mn.c: Likewise.
76983         * tests/unictype/test-categ_N.c: Likewise.
76984         * tests/unictype/test-categ_Nd.c: Likewise.
76985         * tests/unictype/test-categ_Nl.c: Likewise.
76986         * tests/unictype/test-categ_No.c: Likewise.
76987         * tests/unictype/test-categ_P.c: Likewise.
76988         * tests/unictype/test-categ_Pc.c: Likewise.
76989         * tests/unictype/test-categ_Pd.c: Likewise.
76990         * tests/unictype/test-categ_Pe.c: Likewise.
76991         * tests/unictype/test-categ_Pf.c: Likewise.
76992         * tests/unictype/test-categ_Pi.c: Likewise.
76993         * tests/unictype/test-categ_Po.c: Likewise.
76994         * tests/unictype/test-categ_Ps.c: Likewise.
76995         * tests/unictype/test-categ_S.c: Likewise.
76996         * tests/unictype/test-categ_Sc.c: Likewise.
76997         * tests/unictype/test-categ_Sk.c: Likewise.
76998         * tests/unictype/test-categ_Sm.c: Likewise.
76999         * tests/unictype/test-categ_So.c: Likewise.
77000         * tests/unictype/test-categ_Z.c: Likewise.
77001         * tests/unictype/test-categ_Zl.c: Likewise.
77002         * tests/unictype/test-categ_Zp.c: Likewise.
77003         * tests/unictype/test-categ_Zs.c: Likewise.
77004         * tests/unictype/test-ctype_alnum.c: Likewise.
77005         * tests/unictype/test-ctype_alpha.c: Likewise.
77006         * tests/unictype/test-ctype_blank.c: Likewise.
77007         * tests/unictype/test-ctype_cntrl.c: Likewise.
77008         * tests/unictype/test-ctype_digit.c: Likewise.
77009         * tests/unictype/test-ctype_graph.c: Likewise.
77010         * tests/unictype/test-ctype_lower.c: Likewise.
77011         * tests/unictype/test-ctype_print.c: Likewise.
77012         * tests/unictype/test-ctype_punct.c: Likewise.
77013         * tests/unictype/test-ctype_space.c: Likewise.
77014         * tests/unictype/test-ctype_upper.c: Likewise.
77015         * tests/unictype/test-ctype_xdigit.c: Likewise.
77016         * tests/unictype/test-decdigit.h: Likewise.
77017         * tests/unictype/test-digit.h: Likewise.
77018         * tests/unictype/test-numeric.h: Likewise.
77019         * tests/unictype/test-pr_alphabetic.c: Likewise.
77020         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
77021         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
77022         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
77023         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
77024         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
77025         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
77026         * tests/unictype/test-pr_bidi_control.c: Likewise.
77027         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
77028         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
77029         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
77030         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
77031         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
77032         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
77033         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
77034         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
77035         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
77036         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
77037         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
77038         * tests/unictype/test-pr_combining.c: Likewise.
77039         * tests/unictype/test-pr_composite.c: Likewise.
77040         * tests/unictype/test-pr_currency_symbol.c: Likewise.
77041         * tests/unictype/test-pr_dash.c: Likewise.
77042         * tests/unictype/test-pr_decimal_digit.c: Likewise.
77043         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
77044         * tests/unictype/test-pr_deprecated.c: Likewise.
77045         * tests/unictype/test-pr_diacritic.c: Likewise.
77046         * tests/unictype/test-pr_extender.c: Likewise.
77047         * tests/unictype/test-pr_format_control.c: Likewise.
77048         * tests/unictype/test-pr_grapheme_base.c: Likewise.
77049         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
77050         * tests/unictype/test-pr_grapheme_link.c: Likewise.
77051         * tests/unictype/test-pr_hex_digit.c: Likewise.
77052         * tests/unictype/test-pr_hyphen.c: Likewise.
77053         * tests/unictype/test-pr_id_continue.c: Likewise.
77054         * tests/unictype/test-pr_id_start.c: Likewise.
77055         * tests/unictype/test-pr_ideographic.c: Likewise.
77056         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
77057         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
77058         * tests/unictype/test-pr_ignorable_control.c: Likewise.
77059         * tests/unictype/test-pr_iso_control.c: Likewise.
77060         * tests/unictype/test-pr_join_control.c: Likewise.
77061         * tests/unictype/test-pr_left_of_pair.c: Likewise.
77062         * tests/unictype/test-pr_line_separator.c: Likewise.
77063         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
77064         * tests/unictype/test-pr_lowercase.c: Likewise.
77065         * tests/unictype/test-pr_math.c: Likewise.
77066         * tests/unictype/test-pr_non_break.c: Likewise.
77067         * tests/unictype/test-pr_not_a_character.c: Likewise.
77068         * tests/unictype/test-pr_numeric.c: Likewise.
77069         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
77070         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
77071         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
77072         * tests/unictype/test-pr_other_id_continue.c: Likewise.
77073         * tests/unictype/test-pr_other_id_start.c: Likewise.
77074         * tests/unictype/test-pr_other_lowercase.c: Likewise.
77075         * tests/unictype/test-pr_other_math.c: Likewise.
77076         * tests/unictype/test-pr_other_uppercase.c: Likewise.
77077         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
77078         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
77079         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
77080         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
77081         * tests/unictype/test-pr_private_use.c: Likewise.
77082         * tests/unictype/test-pr_punctuation.c: Likewise.
77083         * tests/unictype/test-pr_quotation_mark.c: Likewise.
77084         * tests/unictype/test-pr_radical.c: Likewise.
77085         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
77086         * tests/unictype/test-pr_soft_dotted.c: Likewise.
77087         * tests/unictype/test-pr_space.c: Likewise.
77088         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
77089         * tests/unictype/test-pr_titlecase.c: Likewise.
77090         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
77091         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
77092         * tests/unictype/test-pr_uppercase.c: Likewise.
77093         * tests/unictype/test-pr_variation_selector.c: Likewise.
77094         * tests/unictype/test-pr_white_space.c: Likewise.
77095         * tests/unictype/test-pr_xid_continue.c: Likewise.
77096         * tests/unictype/test-pr_xid_start.c: Likewise.
77097         * tests/unictype/test-pr_zero_width.c: Likewise.
77098         * tests/unictype/test-sy_c_whitespace.c: Likewise.
77099         * tests/unictype/test-sy_java_whitespace.c: Likewise.
77101 2007-11-12  Bruno Haible  <bruno@clisp.org>
77103         Unicode character classification functions.
77104         * lib/unictype.h: New file.
77105         * modules/unictype/base: New file.
77106         * modules/unictype/category-L: New file.
77107         * modules/unictype/category-Lu: New file.
77108         * modules/unictype/category-Ll: New file.
77109         * modules/unictype/category-Lt: New file.
77110         * modules/unictype/category-Lm: New file.
77111         * modules/unictype/category-Lo: New file.
77112         * modules/unictype/category-M: New file.
77113         * modules/unictype/category-Mn: New file.
77114         * modules/unictype/category-Mc: New file.
77115         * modules/unictype/category-Me: New file.
77116         * modules/unictype/category-N: New file.
77117         * modules/unictype/category-Nd: New file.
77118         * modules/unictype/category-Nl: New file.
77119         * modules/unictype/category-No: New file.
77120         * modules/unictype/category-P: New file.
77121         * modules/unictype/category-Pc: New file.
77122         * modules/unictype/category-Pd: New file.
77123         * modules/unictype/category-Ps: New file.
77124         * modules/unictype/category-Pe: New file.
77125         * modules/unictype/category-Pi: New file.
77126         * modules/unictype/category-Pf: New file.
77127         * modules/unictype/category-Po: New file.
77128         * modules/unictype/category-S: New file.
77129         * modules/unictype/category-Sm: New file.
77130         * modules/unictype/category-Sc: New file.
77131         * modules/unictype/category-Sk: New file.
77132         * modules/unictype/category-So: New file.
77133         * modules/unictype/category-Z: New file.
77134         * modules/unictype/category-Zs: New file.
77135         * modules/unictype/category-Zl: New file.
77136         * modules/unictype/category-Zp: New file.
77137         * modules/unictype/category-C: New file.
77138         * modules/unictype/category-Cc: New file.
77139         * modules/unictype/category-Cf: New file.
77140         * modules/unictype/category-Cs: New file.
77141         * modules/unictype/category-Co: New file.
77142         * modules/unictype/category-Cn: New file.
77143         * modules/unictype/category-or: New file.
77144         * modules/unictype/category-of: New file.
77145         * modules/unictype/category-test: New file.
77146         * modules/unictype/category-test-withtable: New file.
77147         * modules/unictype/category-byname: New file.
77148         * modules/unictype/category-none: New file.
77149         * modules/unictype/category-and: New file.
77150         * modules/unictype/category-and-not: New file.
77151         * modules/unictype/category-name: New file.
77152         * modules/unictype/combining-class: New file.
77153         * modules/unictype/category-all: New file.
77154         * modules/unictype/bidicategory-all: New file.
77155         * modules/unictype/bidicategory-byname: New file.
77156         * modules/unictype/bidicategory-name: New file.
77157         * modules/unictype/bidicategory-of: New file.
77158         * modules/unictype/bidicategory-test: New file.
77159         * modules/unictype/decimal-digit: New file.
77160         * modules/unictype/digit: New file.
77161         * modules/unictype/numeric: New file.
77162         * modules/unictype/mirror: New file.
77163         * modules/unictype/property-white-space: New file.
77164         * modules/unictype/property-alphabetic: New file.
77165         * modules/unictype/property-other-alphabetic: New file.
77166         * modules/unictype/property-not-a-character: New file.
77167         * modules/unictype/property-default-ignorable-code-point: New file.
77168         * modules/unictype/property-other-default-ignorable-code-point: New
77169         file.
77170         * modules/unictype/property-deprecated: New file.
77171         * modules/unictype/property-logical-order-exception: New file.
77172         * modules/unictype/property-variation-selector: New file.
77173         * modules/unictype/property-private-use: New file.
77174         * modules/unictype/property-unassigned-code-value: New file.
77175         * modules/unictype/property-uppercase: New file.
77176         * modules/unictype/property-other-uppercase: New file.
77177         * modules/unictype/property-lowercase: New file.
77178         * modules/unictype/property-other-lowercase: New file.
77179         * modules/unictype/property-titlecase: New file.
77180         * modules/unictype/property-soft-dotted: New file.
77181         * modules/unictype/property-id-start: New file.
77182         * modules/unictype/property-other-id-start: New file.
77183         * modules/unictype/property-id-continue: New file.
77184         * modules/unictype/property-other-id-continue: New file.
77185         * modules/unictype/property-xid-start: New file.
77186         * modules/unictype/property-xid-continue: New file.
77187         * modules/unictype/property-pattern-white-space: New file.
77188         * modules/unictype/property-pattern-syntax: New file.
77189         * modules/unictype/property-join-control: New file.
77190         * modules/unictype/property-grapheme-base: New file.
77191         * modules/unictype/property-grapheme-extend: New file.
77192         * modules/unictype/property-other-grapheme-extend: New file.
77193         * modules/unictype/property-grapheme-link: New file.
77194         * modules/unictype/property-bidi-control: New file.
77195         * modules/unictype/property-bidi-left-to-right: New file.
77196         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
77197         * modules/unictype/property-bidi-arabic-right-to-left: New file.
77198         * modules/unictype/property-bidi-european-digit: New file.
77199         * modules/unictype/property-bidi-eur-num-separator: New file.
77200         * modules/unictype/property-bidi-eur-num-terminator: New file.
77201         * modules/unictype/property-bidi-arabic-digit: New file.
77202         * modules/unictype/property-bidi-common-separator: New file.
77203         * modules/unictype/property-bidi-block-separator: New file.
77204         * modules/unictype/property-bidi-segment-separator: New file.
77205         * modules/unictype/property-bidi-whitespace: New file.
77206         * modules/unictype/property-bidi-non-spacing-mark: New file.
77207         * modules/unictype/property-bidi-boundary-neutral: New file.
77208         * modules/unictype/property-bidi-pdf: New file.
77209         * modules/unictype/property-bidi-embedding-or-override: New file.
77210         * modules/unictype/property-bidi-other-neutral: New file.
77211         * modules/unictype/property-hex-digit: New file.
77212         * modules/unictype/property-ascii-hex-digit: New file.
77213         * modules/unictype/property-ideographic: New file.
77214         * modules/unictype/property-unified-ideograph: New file.
77215         * modules/unictype/property-radical: New file.
77216         * modules/unictype/property-ids-binary-operator: New file.
77217         * modules/unictype/property-ids-trinary-operator: New file.
77218         * modules/unictype/property-zero-width: New file.
77219         * modules/unictype/property-space: New file.
77220         * modules/unictype/property-non-break: New file.
77221         * modules/unictype/property-iso-control: New file.
77222         * modules/unictype/property-format-control: New file.
77223         * modules/unictype/property-dash: New file.
77224         * modules/unictype/property-hyphen: New file.
77225         * modules/unictype/property-punctuation: New file.
77226         * modules/unictype/property-line-separator: New file.
77227         * modules/unictype/property-paragraph-separator: New file.
77228         * modules/unictype/property-quotation-mark: New file.
77229         * modules/unictype/property-sentence-terminal: New file.
77230         * modules/unictype/property-terminal-punctuation: New file.
77231         * modules/unictype/property-currency-symbol: New file.
77232         * modules/unictype/property-math: New file.
77233         * modules/unictype/property-other-math: New file.
77234         * modules/unictype/property-paired-punctuation: New file.
77235         * modules/unictype/property-left-of-pair: New file.
77236         * modules/unictype/property-combining: New file.
77237         * modules/unictype/property-composite: New file.
77238         * modules/unictype/property-decimal-digit: New file.
77239         * modules/unictype/property-numeric: New file.
77240         * modules/unictype/property-diacritic: New file.
77241         * modules/unictype/property-extender: New file.
77242         * modules/unictype/property-ignorable-control: New file.
77243         * modules/unictype/property-test: New file.
77244         * modules/unictype/property-byname: New file.
77245         * modules/unictype/property-all: New file.
77246         * modules/unictype/scripts: New file.
77247         * modules/unictype/scripts-all: New file.
77248         * modules/unictype/block-of: New file.
77249         * modules/unictype/block-test: New file.
77250         * modules/unictype/block-list: New file.
77251         * modules/unictype/block-all: New file.
77252         * modules/unictype/syntax-c-whitespace: New file.
77253         * modules/unictype/syntax-java-whitespace: New file.
77254         * modules/unictype/syntax-c-ident: New file.
77255         * modules/unictype/syntax-java-ident: New file.
77256         * modules/unictype/ctype-alnum: New file.
77257         * modules/unictype/ctype-alpha: New file.
77258         * modules/unictype/ctype-cntrl: New file.
77259         * modules/unictype/ctype-digit: New file.
77260         * modules/unictype/ctype-graph: New file.
77261         * modules/unictype/ctype-lower: New file.
77262         * modules/unictype/ctype-print: New file.
77263         * modules/unictype/ctype-punct: New file.
77264         * modules/unictype/ctype-space: New file.
77265         * modules/unictype/ctype-upper: New file.
77266         * modules/unictype/ctype-xdigit: New file.
77267         * modules/unictype/ctype-blank: New file.
77268         * lib/unictype/bidi_byname.c: New file.
77269         * lib/unictype/bidi_name.c: New file.
77270         * lib/unictype/bidi_of.c: New file.
77271         * lib/unictype/bidi_test.c: New file.
77272         * lib/unictype/bitmap.h: New file.
77273         * lib/unictype/block_test.c: New file.
77274         * lib/unictype/blocks.c: New file.
77275         * lib/unictype/categ_C.c: New file.
77276         * lib/unictype/categ_Cc.c: New file.
77277         * lib/unictype/categ_Cf.c: New file.
77278         * lib/unictype/categ_Cn.c: New file.
77279         * lib/unictype/categ_Co.c: New file.
77280         * lib/unictype/categ_Cs.c: New file.
77281         * lib/unictype/categ_L.c: New file.
77282         * lib/unictype/categ_Ll.c: New file.
77283         * lib/unictype/categ_Lm.c: New file.
77284         * lib/unictype/categ_Lo.c: New file.
77285         * lib/unictype/categ_Lt.c: New file.
77286         * lib/unictype/categ_Lu.c: New file.
77287         * lib/unictype/categ_M.c: New file.
77288         * lib/unictype/categ_Mc.c: New file.
77289         * lib/unictype/categ_Me.c: New file.
77290         * lib/unictype/categ_Mn.c: New file.
77291         * lib/unictype/categ_N.c: New file.
77292         * lib/unictype/categ_Nd.c: New file.
77293         * lib/unictype/categ_Nl.c: New file.
77294         * lib/unictype/categ_No.c: New file.
77295         * lib/unictype/categ_P.c: New file.
77296         * lib/unictype/categ_Pc.c: New file.
77297         * lib/unictype/categ_Pd.c: New file.
77298         * lib/unictype/categ_Pe.c: New file.
77299         * lib/unictype/categ_Pf.c: New file.
77300         * lib/unictype/categ_Pi.c: New file.
77301         * lib/unictype/categ_Po.c: New file.
77302         * lib/unictype/categ_Ps.c: New file.
77303         * lib/unictype/categ_S.c: New file.
77304         * lib/unictype/categ_Sc.c: New file.
77305         * lib/unictype/categ_Sk.c: New file.
77306         * lib/unictype/categ_Sm.c: New file.
77307         * lib/unictype/categ_So.c: New file.
77308         * lib/unictype/categ_Z.c: New file.
77309         * lib/unictype/categ_Zl.c: New file.
77310         * lib/unictype/categ_Zp.c: New file.
77311         * lib/unictype/categ_Zs.c: New file.
77312         * lib/unictype/categ_and.c: New file.
77313         * lib/unictype/categ_and_not.c: New file.
77314         * lib/unictype/categ_byname.c: New file.
77315         * lib/unictype/categ_name.c: New file.
77316         * lib/unictype/categ_none.c: New file.
77317         * lib/unictype/categ_of.c: New file.
77318         * lib/unictype/categ_or.c: New file.
77319         * lib/unictype/categ_test.c: New file.
77320         * lib/unictype/combining.c: New file.
77321         * lib/unictype/ctype_alnum.c: New file.
77322         * lib/unictype/ctype_alpha.c: New file.
77323         * lib/unictype/ctype_blank.c: New file.
77324         * lib/unictype/ctype_cntrl.c: New file.
77325         * lib/unictype/ctype_digit.c: New file.
77326         * lib/unictype/ctype_graph.c: New file.
77327         * lib/unictype/ctype_lower.c: New file.
77328         * lib/unictype/ctype_print.c: New file.
77329         * lib/unictype/ctype_punct.c: New file.
77330         * lib/unictype/ctype_space.c: New file.
77331         * lib/unictype/ctype_upper.c: New file.
77332         * lib/unictype/ctype_xdigit.c: New file.
77333         * lib/unictype/decdigit.c: New file.
77334         * lib/unictype/digit.c: New file.
77335         * lib/unictype/identsyntaxmap.h: New file.
77336         * lib/unictype/mirror.c: New file.
77337         * lib/unictype/numeric.c: New file.
77338         * lib/unictype/pr_alphabetic.c: New file.
77339         * lib/unictype/pr_ascii_hex_digit.c: New file.
77340         * lib/unictype/pr_bidi_arabic_digit.c: New file.
77341         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
77342         * lib/unictype/pr_bidi_block_separator.c: New file.
77343         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
77344         * lib/unictype/pr_bidi_common_separator.c: New file.
77345         * lib/unictype/pr_bidi_control.c: New file.
77346         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
77347         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
77348         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
77349         * lib/unictype/pr_bidi_european_digit.c: New file.
77350         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
77351         * lib/unictype/pr_bidi_left_to_right.c: New file.
77352         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
77353         * lib/unictype/pr_bidi_other_neutral.c: New file.
77354         * lib/unictype/pr_bidi_pdf.c: New file.
77355         * lib/unictype/pr_bidi_segment_separator.c: New file.
77356         * lib/unictype/pr_bidi_whitespace.c: New file.
77357         * lib/unictype/pr_byname.c: New file.
77358         * lib/unictype/pr_byname.gperf: New file.
77359         * lib/unictype/pr_combining.c: New file.
77360         * lib/unictype/pr_composite.c: New file.
77361         * lib/unictype/pr_currency_symbol.c: New file.
77362         * lib/unictype/pr_dash.c: New file.
77363         * lib/unictype/pr_decimal_digit.c: New file.
77364         * lib/unictype/pr_default_ignorable_code_point.c: New file.
77365         * lib/unictype/pr_deprecated.c: New file.
77366         * lib/unictype/pr_diacritic.c: New file.
77367         * lib/unictype/pr_extender.c: New file.
77368         * lib/unictype/pr_format_control.c: New file.
77369         * lib/unictype/pr_grapheme_base.c: New file.
77370         * lib/unictype/pr_grapheme_extend.c: New file.
77371         * lib/unictype/pr_grapheme_link.c: New file.
77372         * lib/unictype/pr_hex_digit.c: New file.
77373         * lib/unictype/pr_hyphen.c: New file.
77374         * lib/unictype/pr_id_continue.c: New file.
77375         * lib/unictype/pr_id_start.c: New file.
77376         * lib/unictype/pr_ideographic.c: New file.
77377         * lib/unictype/pr_ids_binary_operator.c: New file.
77378         * lib/unictype/pr_ids_trinary_operator.c: New file.
77379         * lib/unictype/pr_ignorable_control.c: New file.
77380         * lib/unictype/pr_iso_control.c: New file.
77381         * lib/unictype/pr_join_control.c: New file.
77382         * lib/unictype/pr_left_of_pair.c: New file.
77383         * lib/unictype/pr_line_separator.c: New file.
77384         * lib/unictype/pr_logical_order_exception.c: New file.
77385         * lib/unictype/pr_lowercase.c: New file.
77386         * lib/unictype/pr_math.c: New file.
77387         * lib/unictype/pr_non_break.c: New file.
77388         * lib/unictype/pr_not_a_character.c: New file.
77389         * lib/unictype/pr_numeric.c: New file.
77390         * lib/unictype/pr_other_alphabetic.c: New file.
77391         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
77392         * lib/unictype/pr_other_grapheme_extend.c: New file.
77393         * lib/unictype/pr_other_id_continue.c: New file.
77394         * lib/unictype/pr_other_id_start.c: New file.
77395         * lib/unictype/pr_other_lowercase.c: New file.
77396         * lib/unictype/pr_other_math.c: New file.
77397         * lib/unictype/pr_other_uppercase.c: New file.
77398         * lib/unictype/pr_paired_punctuation.c: New file.
77399         * lib/unictype/pr_paragraph_separator.c: New file.
77400         * lib/unictype/pr_pattern_syntax.c: New file.
77401         * lib/unictype/pr_pattern_white_space.c: New file.
77402         * lib/unictype/pr_private_use.c: New file.
77403         * lib/unictype/pr_punctuation.c: New file.
77404         * lib/unictype/pr_quotation_mark.c: New file.
77405         * lib/unictype/pr_radical.c: New file.
77406         * lib/unictype/pr_sentence_terminal.c: New file.
77407         * lib/unictype/pr_soft_dotted.c: New file.
77408         * lib/unictype/pr_space.c: New file.
77409         * lib/unictype/pr_terminal_punctuation.c: New file.
77410         * lib/unictype/pr_test.c: New file.
77411         * lib/unictype/pr_titlecase.c: New file.
77412         * lib/unictype/pr_unassigned_code_value.c: New file.
77413         * lib/unictype/pr_unified_ideograph.c: New file.
77414         * lib/unictype/pr_uppercase.c: New file.
77415         * lib/unictype/pr_variation_selector.c: New file.
77416         * lib/unictype/pr_white_space.c: New file.
77417         * lib/unictype/pr_xid_continue.c: New file.
77418         * lib/unictype/pr_xid_start.c: New file.
77419         * lib/unictype/pr_zero_width.c: New file.
77420         * lib/unictype/scripts.c: New file.
77421         * lib/unictype/sy_c_ident.c: New file.
77422         * lib/unictype/sy_c_whitespace.c: New file.
77423         * lib/unictype/sy_java_ident.c: New file.
77424         * lib/unictype/sy_java_whitespace.c: New file.
77426         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
77427         Unicode 5.0.0.
77428         * lib/unictype/blocks.h: Likewise.
77429         * lib/unictype/categ_C.h: Likewise.
77430         * lib/unictype/categ_Cc.h: Likewise.
77431         * lib/unictype/categ_Cf.h: Likewise.
77432         * lib/unictype/categ_Cn.h: Likewise.
77433         * lib/unictype/categ_Co.h: Likewise.
77434         * lib/unictype/categ_Cs.h: Likewise.
77435         * lib/unictype/categ_L.h: Likewise.
77436         * lib/unictype/categ_Ll.h: Likewise.
77437         * lib/unictype/categ_Lm.h: Likewise.
77438         * lib/unictype/categ_Lo.h: Likewise.
77439         * lib/unictype/categ_Lt.h: Likewise.
77440         * lib/unictype/categ_Lu.h: Likewise.
77441         * lib/unictype/categ_M.h: Likewise.
77442         * lib/unictype/categ_Mc.h: Likewise.
77443         * lib/unictype/categ_Me.h: Likewise.
77444         * lib/unictype/categ_Mn.h: Likewise.
77445         * lib/unictype/categ_N.h: Likewise.
77446         * lib/unictype/categ_Nd.h: Likewise.
77447         * lib/unictype/categ_Nl.h: Likewise.
77448         * lib/unictype/categ_No.h: Likewise.
77449         * lib/unictype/categ_P.h: Likewise.
77450         * lib/unictype/categ_Pc.h: Likewise.
77451         * lib/unictype/categ_Pd.h: Likewise.
77452         * lib/unictype/categ_Pe.h: Likewise.
77453         * lib/unictype/categ_Pf.h: Likewise.
77454         * lib/unictype/categ_Pi.h: Likewise.
77455         * lib/unictype/categ_Po.h: Likewise.
77456         * lib/unictype/categ_Ps.h: Likewise.
77457         * lib/unictype/categ_S.h: Likewise.
77458         * lib/unictype/categ_Sc.h: Likewise.
77459         * lib/unictype/categ_Sk.h: Likewise.
77460         * lib/unictype/categ_Sm.h: Likewise.
77461         * lib/unictype/categ_So.h: Likewise.
77462         * lib/unictype/categ_Z.h: Likewise.
77463         * lib/unictype/categ_Zl.h: Likewise.
77464         * lib/unictype/categ_Zp.h: Likewise.
77465         * lib/unictype/categ_Zs.h: Likewise.
77466         * lib/unictype/categ_of.h: Likewise.
77467         * lib/unictype/combining.h: Likewise.
77468         * lib/unictype/ctype_alnum.h: Likewise.
77469         * lib/unictype/ctype_alpha.h: Likewise.
77470         * lib/unictype/ctype_blank.h: Likewise.
77471         * lib/unictype/ctype_cntrl.h: Likewise.
77472         * lib/unictype/ctype_digit.h: Likewise.
77473         * lib/unictype/ctype_graph.h: Likewise.
77474         * lib/unictype/ctype_lower.h: Likewise.
77475         * lib/unictype/ctype_print.h: Likewise.
77476         * lib/unictype/ctype_punct.h: Likewise.
77477         * lib/unictype/ctype_space.h: Likewise.
77478         * lib/unictype/ctype_upper.h: Likewise.
77479         * lib/unictype/ctype_xdigit.h: Likewise.
77480         * lib/unictype/decdigit.h: Likewise.
77481         * lib/unictype/digit.h: Likewise.
77482         * lib/unictype/mirror.h: Likewise.
77483         * lib/unictype/numeric.h: Likewise.
77484         * lib/unictype/pr_alphabetic.h: Likewise.
77485         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
77486         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
77487         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
77488         * lib/unictype/pr_bidi_block_separator.h: Likewise.
77489         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
77490         * lib/unictype/pr_bidi_common_separator.h: Likewise.
77491         * lib/unictype/pr_bidi_control.h: Likewise.
77492         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
77493         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
77494         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
77495         * lib/unictype/pr_bidi_european_digit.h: Likewise.
77496         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
77497         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
77498         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
77499         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
77500         * lib/unictype/pr_bidi_pdf.h: Likewise.
77501         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
77502         * lib/unictype/pr_bidi_whitespace.h: Likewise.
77503         * lib/unictype/pr_combining.h: Likewise.
77504         * lib/unictype/pr_composite.h: Likewise.
77505         * lib/unictype/pr_currency_symbol.h: Likewise.
77506         * lib/unictype/pr_dash.h: Likewise.
77507         * lib/unictype/pr_decimal_digit.h: Likewise.
77508         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
77509         * lib/unictype/pr_deprecated.h: Likewise.
77510         * lib/unictype/pr_diacritic.h: Likewise.
77511         * lib/unictype/pr_extender.h: Likewise.
77512         * lib/unictype/pr_format_control.h: Likewise.
77513         * lib/unictype/pr_grapheme_base.h: Likewise.
77514         * lib/unictype/pr_grapheme_extend.h: Likewise.
77515         * lib/unictype/pr_grapheme_link.h: Likewise.
77516         * lib/unictype/pr_hex_digit.h: Likewise.
77517         * lib/unictype/pr_hyphen.h: Likewise.
77518         * lib/unictype/pr_id_continue.h: Likewise.
77519         * lib/unictype/pr_id_start.h: Likewise.
77520         * lib/unictype/pr_ideographic.h: Likewise.
77521         * lib/unictype/pr_ids_binary_operator.h: Likewise.
77522         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
77523         * lib/unictype/pr_ignorable_control.h: Likewise.
77524         * lib/unictype/pr_iso_control.h: Likewise.
77525         * lib/unictype/pr_join_control.h: Likewise.
77526         * lib/unictype/pr_left_of_pair.h: Likewise.
77527         * lib/unictype/pr_line_separator.h: Likewise.
77528         * lib/unictype/pr_logical_order_exception.h: Likewise.
77529         * lib/unictype/pr_lowercase.h: Likewise.
77530         * lib/unictype/pr_math.h: Likewise.
77531         * lib/unictype/pr_non_break.h: Likewise.
77532         * lib/unictype/pr_not_a_character.h: Likewise.
77533         * lib/unictype/pr_numeric.h: Likewise.
77534         * lib/unictype/pr_other_alphabetic.h: Likewise.
77535         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
77536         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
77537         * lib/unictype/pr_other_id_continue.h: Likewise.
77538         * lib/unictype/pr_other_id_start.h: Likewise.
77539         * lib/unictype/pr_other_lowercase.h: Likewise.
77540         * lib/unictype/pr_other_math.h: Likewise.
77541         * lib/unictype/pr_other_uppercase.h: Likewise.
77542         * lib/unictype/pr_paired_punctuation.h: Likewise.
77543         * lib/unictype/pr_paragraph_separator.h: Likewise.
77544         * lib/unictype/pr_pattern_syntax.h: Likewise.
77545         * lib/unictype/pr_pattern_white_space.h: Likewise.
77546         * lib/unictype/pr_private_use.h: Likewise.
77547         * lib/unictype/pr_punctuation.h: Likewise.
77548         * lib/unictype/pr_quotation_mark.h: Likewise.
77549         * lib/unictype/pr_radical.h: Likewise.
77550         * lib/unictype/pr_sentence_terminal.h: Likewise.
77551         * lib/unictype/pr_soft_dotted.h: Likewise.
77552         * lib/unictype/pr_space.h: Likewise.
77553         * lib/unictype/pr_terminal_punctuation.h: Likewise.
77554         * lib/unictype/pr_titlecase.h: Likewise.
77555         * lib/unictype/pr_unassigned_code_value.h: Likewise.
77556         * lib/unictype/pr_unified_ideograph.h: Likewise.
77557         * lib/unictype/pr_uppercase.h: Likewise.
77558         * lib/unictype/pr_variation_selector.h: Likewise.
77559         * lib/unictype/pr_white_space.h: Likewise.
77560         * lib/unictype/pr_xid_continue.h: Likewise.
77561         * lib/unictype/pr_xid_start.h: Likewise.
77562         * lib/unictype/pr_zero_width.h: Likewise.
77563         * lib/unictype/scripts.h: Likewise.
77564         * lib/unictype/scripts_byname.gperf: Likewise.
77565         * lib/unictype/sy_c_ident.h: Likewise.
77566         * lib/unictype/sy_c_whitespace.h: Likewise.
77567         * lib/unictype/sy_java_ident.h: Likewise.
77568         * lib/unictype/sy_java_whitespace.h: Likewise.
77570         * lib/unictype/Makefile: New file.
77571         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
77572         glibc.
77573         * lib/unictype/3level.h: New file, copied from glibc.
77574         * lib/unictype/3levelbit.h: New file.
77576 2007-11-11  Bruno Haible  <bruno@clisp.org>
77578         * modules/gperf: New file.
77579         * modules/iconv_open (Depends-on): Add it.
77580         (Makefile.am): Remove the GPERF definition.
77582 2007-11-11  Bruno Haible  <bruno@clisp.org>
77584         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
77585         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
77587 2007-11-11  Bruno Haible  <bruno@clisp.org>
77589         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
77590         (usage): Remove function.
77592 2007-11-11  Bruno Haible  <bruno@clisp.org>
77594         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
77595         gl_FUNC_CEILF_LIBS.
77596         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
77597         gl_FUNC_CEIL_LIBS.
77598         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
77599         gl_FUNC_CEILL_LIBS.
77600         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
77601         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
77602         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
77604 2007-11-11  Bruno Haible  <bruno@clisp.org>
77606         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
77607         roundf were declared but do not exist on functions.
77608         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
77609         roundl were declared but do not exist on functions.
77610         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
77611         HAVE_FLOORL_AND_CEILL, respectively.
77612         Needed for Sun C on Solaris 10.
77614 2007-11-11  Bruno Haible  <bruno@clisp.org>
77616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
77617         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
77618         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
77619         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
77620         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
77621         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
77622         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
77623         HAVE_DECL_ROUNDF.
77624         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
77625         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
77626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
77627         of HAVE_DECL_ROUND*.
77628         * modules/math (Makefile.am): Update.
77630 2007-11-10  Bruno Haible  <bruno@clisp.org>
77632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
77633         ptrdiff_t as m4/intl.m4.
77635 2007-11-10  Jim Meyering  <meyering@redhat.com>
77637         Avoid link failure for the argmatch test.
77638         * tests/test-argmatch.c (usage): Define function to avoid a link
77639         failure: argmatch_die requires a usage function.
77641 2007-11-09  Bruno Haible  <bruno@clisp.org>
77643         * doc/functions/snprintf.texi: Mention BeOS deficiency.
77644         * doc/functions/vsnprintf.texi: Likewise.
77645         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
77646         with a size argument < 2.
77648 2007-11-09  Bruno Haible  <bruno@clisp.org>
77650         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
77651         buffer. Fixes an inefficiency introduced on 2007-11-03.
77653 2007-11-09  Bruno Haible  <bruno@clisp.org>
77655         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
77656         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
77658 2007-11-08  Jim Meyering  <meyering@redhat.com>
77660         Change cache variable name prefix "jm_" to "gl_" everywhere.
77661         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
77662         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
77663         * m4/uptime.m4: s/gl_/jm_/
77665 2007-11-07  Bruno Haible  <bruno@clisp.org>
77667         Update to GNU gettext 0.17.
77668         * m4/intl.m4: Update to GNU gettext 0.17.
77669         * m4/po.m4: Likewise.
77670         * modules/gettext (Files): Remove m4/ulonglong.m4.
77671         (configure.ac): Require gettext infrastructure from version 0.17.
77673 2007-11-06  Bruno Haible  <bruno@clisp.org>
77675         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
77676         symbolic values are not defined in a public header.
77677         * lib/freadable.c (freadable) [QNX]: Likewise.
77678         * lib/freadahead.c (freadahead) [QNX]: Likewise.
77679         * lib/freading.c (freading) [QNX]: Likewise.
77680         * lib/fseterr.c (fseterr) [QNX]: Likewise.
77681         * lib/fwritable.c (fwritable) [QNX]: Likewise.
77682         * lib/fwriting.c (fwriting) [QNX]: Likewise.
77683         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
77684         Reported by Alain Magloire.
77686         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
77688 2007-11-05  Bruno Haible  <bruno@clisp.org>
77690         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
77691         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
77692         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
77693         Reported by Eric Blake.
77695 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77696             Bruno Haible  <bruno@clisp.org>
77698         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
77699         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
77700         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
77701         (malloc): Undefine also before including <stdlib.h>.
77702         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
77703         Needed on OSF/1 4.0.
77705 2007-11-05  Jim Meyering  <meyering@redhat.com>
77707         git-version-gen: sync from coreutils.
77708         * build-aux/git-version-gen: Add comments.
77709         Change the first '-' to '.' in the snapshot version string,
77710         e.g., 6.9-377-08144 -> 6.9.377-08144
77711         Remove first parameter.
77712         Don't declare a version "-dirty" merely because a time
77713         stamp has changed.
77715 2007-11-04  Bruno Haible  <bruno@clisp.org>
77717         * lib/lock.h: Protect all macro definitions containing an 'if'
77718         statement through a "do { ... } while (0)".
77719         * lib/tls.h: Likewise.
77721 2007-11-04  Bruno Haible  <bruno@clisp.org>
77723         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
77725 2007-11-04  Bruno Haible  <bruno@clisp.org>
77727         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
77728         * modules/fprintf-posix (Depends-on): Add nocrash.
77729         * modules/snprintf-posix (Depends-on): Likewise.
77730         * modules/sprintf-posix (Depends-on): Likewise.
77731         * modules/vasnprintf-posix (Depends-on): Likewise.
77732         * modules/vasprintf-posix (Depends-on): Likewise.
77733         * modules/vfprintf-posix (Depends-on): Likewise.
77734         * modules/vsnprintf-posix (Depends-on): Likewise.
77735         * modules/vsprintf-posix (Depends-on): Likewise.
77736         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77737         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77738         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77739         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77740         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77741         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77742         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77744 2007-11-04  Bruno Haible  <bruno@clisp.org>
77746         * modules/nocrash: New file.
77747         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
77748         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
77750 2007-11-04  Bruno Haible  <bruno@clisp.org>
77752         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
77753         precision handling.
77754         * tests/test-vasprintf-posix.c (test_function): Likewise.
77755         * tests/test-snprintf-posix.h (test_function): Likewise.
77756         * tests/test-sprintf-posix.h (test_function): Likewise.
77758         Fix *printf behaviour for large precisions on mingw and BeOS.
77759         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
77760         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
77761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
77762         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77764         gl_PRINTF_PRECISION and test its result. Invoke
77765         gl_PREREQ_VASNPRINTF_PRECISION.
77766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77773         * doc/functions/fprintf.texi: Update.
77774         * doc/functions/printf.texi: Update.
77775         * doc/functions/snprintf.texi: Update.
77776         * doc/functions/sprintf.texi: Update.
77777         * doc/functions/vfprintf.texi: Update.
77778         * doc/functions/vprintf.texi: Update.
77779         * doc/functions/vsnprintf.texi: Update.
77780         * doc/functions/vsprintf.texi: Update.
77782 2007-11-04  Bruno Haible  <bruno@clisp.org>
77784         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
77786 2007-11-04  Bruno Haible  <bruno@clisp.org>
77788         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
77789         Reported by Sylvain Beucler <beuc@gnu.org>.
77791 2007-11-03  Bruno Haible  <bruno@clisp.org>
77793         * tests/test-fprintf-posix2.sh: New file.
77794         * tests/test-fprintf-posix2.c: New file.
77795         * modules/fprintf-posix-tests (Files): Add them.
77796         (TESTS): Add test-fprintf-posix2.sh.
77797         (configure.ac): Check for getrlimit and setrlimit.
77798         (check_PROGRAMS): Add test-fprintf-posix2.
77800         * tests/test-printf-posix2.sh: New file.
77801         * tests/test-printf-posix2.c: New file.
77802         * modules/printf-posix-tests (Files): Add them.
77803         (TESTS): Add test-printf-posix2.sh.
77804         (configure.ac): Check for getrlimit and setrlimit.
77805         (check_PROGRAMS): Add test-printf-posix2.
77807         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
77808         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
77809         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
77810         (decode_double): New function, copied from decode_long_double.
77811         (scale10_round_decimal_decoded): New function, extracted from
77812         scale10_round_decimal_long_double.
77813         (scale10_round_decimal_long_double): Use it.
77814         (scale10_round_decimal_double): New function.
77815         (floorlog10): New function.
77816         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
77817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
77818         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77820         gl_PRINTF_ENOMEM and test its result. Invoke
77821         gl_PREREQ_VASNPRINTF_ENOMEM.
77822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77824         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77825         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77829         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
77830         * modules/snprintf-posix (Depends-on): Likewise.
77831         * modules/sprintf-posix (Depends-on): Likewise.
77832         * modules/vasnprintf-posix (Depends-on): Likewise.
77833         * modules/vasprintf-posix (Depends-on): Likewise.
77834         * modules/vfprintf-posix (Depends-on): Likewise.
77835         * modules/vsnprintf-posix (Depends-on): Likewise.
77836         * modules/vsprintf-posix (Depends-on): Likewise.
77837         * doc/functions/fprintf.texi: Update.
77838         * doc/functions/printf.texi: Update.
77839         * doc/functions/snprintf.texi: Update.
77840         * doc/functions/sprintf.texi: Update.
77841         * doc/functions/vfprintf.texi: Update.
77842         * doc/functions/vprintf.texi: Update.
77843         * doc/functions/vsnprintf.texi: Update.
77844         * doc/functions/vsprintf.texi: Update.
77846 2007-11-03  Bruno Haible  <bruno@clisp.org>
77848         * modules/frexp-nolibm-tests: New file.
77850         * modules/frexp-nolibm: New file.
77851         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
77853 2007-11-03  Bruno Haible  <bruno@clisp.org>
77855         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
77856         value is C99 compliant.
77857         Needed for OSF/1 5.1.
77859 2007-11-03  Bruno Haible  <bruno@clisp.org>
77861         Fix out-of-memory handling of vasnprintf.
77862         * lib/printf-parse.c: Include <errno.h>.
77863         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
77864         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
77865         is already set.
77867 2007-11-02  Eric Blake  <ebb9@byu.net>
77869         Fix tests on cygwin.
77870         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
77872 2007-11-01  Bruno Haible  <bruno@clisp.org>
77874         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
77875         warning.
77876         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
77877         needed for POSIX compatibility.
77879 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77881         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
77882         for compatibility with GNU.
77884 2007-11-01  Bruno Haible  <bruno@clisp.org>
77886         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
77887         (putenv): Renamed from rpl_putenv. Change argument type from
77888         'const char *' to 'char *'.
77889         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
77890         of defining putenv in config.h, just set REPLACE_PUTENV.
77891         * modules/putenv (Depends-on): Add stdlib.
77892         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
77893         (Include): Use <stdlib.h>.
77894         * lib/stdlib.in.h (putenv): New declaration.
77895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
77896         REPLACE_PUTENV.
77897         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
77898         REPLACE_PUTENV.
77899         Needed for MacOS X 10.5.0.
77900         Reported by Peter O'Gorman <peter@pogma.com>.
77902 2007-11-01  Jim Meyering  <meyering@redhat.com>
77904         Treat an empty date string exactly like "0".
77905         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
77906         if the remaining date string (to be parsed) is empty, use "0".
77907         Reported by Mischa Molhoek and discussed in this thread:
77908         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
77910 2007-10-31  Bruno Haible  <bruno@clisp.org>
77912         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
77913         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
77914         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
77915         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
77916         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
77917         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
77919 2007-10-31  Bruno Haible  <bruno@clisp.org>
77921         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
77922         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
77923         (AC_TYPE_LONG_LONG_INT): Use it.
77924         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
77925         it as well.
77926         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
77927         to m4/longlong.m4.
77928         * modules/stdint (Files): Remove m4/ulonglong.m4.
77929         * modules/strtoull (Files): Use m4/longlong.m4 instead of
77930         m4/ulonglong.m4.
77931         * modules/strtoumax (Files): Likewise.
77933 2007-10-30  Bruno Haible  <bruno@clisp.org>
77935         * modules/xvasprintf-posix: New file.
77936         Suggested by Eric Blake.
77938 2007-10-30  Bruno Haible  <bruno@clisp.org>
77940         * modules/xprintf-posix-tests: New file.
77941         * tests/test-xprintf-posix.sh: New file.
77942         * tests/test-xprintf-posix.c: New file.
77943         * tests/test-xfprintf-posix.c: New file.
77945         * modules/xprintf-posix: New file.
77947 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77949         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
77950         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
77951         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
77953 2007-10-29  Bruno Haible  <bruno@clisp.org>
77955         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
77956         contain the special marker '_cv_'.
77957         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
77958         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
77959         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
77960         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
77961         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
77962         Reported by Ralf Wildenhues.
77964 2007-10-29  Bruno Haible  <bruno@clisp.org>
77966         * gnulib-tool (func_import): When --lgpl is not specified, set
77967         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
77968         GPLv3.
77969         Reported by Simon Josefsson.
77971 2007-10-28  Bruno Haible  <bruno@clisp.org>
77973         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
77974         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
77975         HAVE_DECL_ISFINITE.
77976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77977         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
77978         HAVE_DECL_ISFINITE.
77980 2007-10-28  Bruno Haible  <bruno@clisp.org>
77982         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
77983         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
77985 2007-10-28  Bruno Haible  <bruno@clisp.org>
77987         Fix link errors with Sun C 5.0 on Solaris 10.
77988         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
77989         function is declared but not present in the compiler's libm.
77990         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
77991         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
77992         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
77993         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
77994         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
77995         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
77996         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
77997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77998         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
77999         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
78000         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
78001         HAVE_DECL_FLOORL.
78003 2007-10-28  Bruno Haible  <bruno@clisp.org>
78005         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
78006         gl_FUNC_FLOORL. Cache the result.
78007         (gl_FUNC_FLOORL): Use it.
78008         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
78009         gl_FUNC_CEILL. Cache the result.
78010         (gl_FUNC_CEILL): Use it.
78012         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
78013         gl_FUNC_FLOOR. Cache the result.
78014         (gl_FUNC_FLOOR): Use it.
78015         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
78016         gl_FUNC_CEIL. Cache the result.
78017         (gl_FUNC_CEIL): Use it.
78019         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
78020         gl_FUNC_FLOORF. Cache the result.
78021         (gl_FUNC_FLOORF): Use it.
78022         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
78023         gl_FUNC_CEILF. Cache the result.
78024         (gl_FUNC_CEILF): Use it.
78026 2007-10-28  Bruno Haible  <bruno@clisp.org>
78028         * gnulib-tool: Allow specifying the LGPL version number through
78029         --lgpl=2 or --lgpl=3.
78030         (func_usage): Document --lgpl with argument.
78031         Handle --lgpl=... arguments.
78032         (func_import): Recognize also gl_LGPL calls with an argument. When
78033         --lgpl=2 is used and the module's license is just LGPL, report an
78034         error. Set sed_transform_lib_file according to the lgpl variable. In
78035         the generated files, use --lgpl or gl_LGPL invocations with argument,
78036         if necessary.
78037         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
78038         an LGPv2+ license.
78039         * doc/gnulib-tool.texi (Modified imports): Update explanation of
78040         gl_LGPL macro.
78042 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78043             Bruno Haible  <bruno@clisp.org>
78045         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
78046         (u16_uctomb_aux): Likewise.
78047         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
78048         !HAVE_INLINE.
78049         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
78051 2007-10-28  Bruno Haible  <bruno@clisp.org>
78053         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
78054         Invoke AM_GETTEXT_OPTION if it exists.
78055         * modules/vasprintf: Likewise.
78056         * modules/verror: Likewise.
78057         * modules/xprintf: Likewise.
78058         * modules/xvasprintf: Likewise.
78060 2007-10-27  Ben Pfaff  <blp@gnu.org>
78062         * lib/math.in.h: Define isfinite macro and prototypes for
78063         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
78064         implementations.
78065         * m4/math_h.m4: New substitutions for isfinite module.
78066         * lib/isfinite.c: New file.
78067         * m4/isfinite.m4: New file.
78068         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
78069         * modules/isfinite: New file.
78070         * modules/isfinite-tests: New file.
78071         * tests/tests-isfinite.c: New file.
78072         * doc/functions/isfinite.texi: Mention isfinite module.
78073         * MODULES.html.sh: Mention new module.
78075 2007-10-27  Ben Pfaff  <blp@gnu.org>
78077         Ralf Wildenhues reported that Tru64 4.0D declares the round
78078         functions but does not have definitions.
78079         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
78080         cannot be found in any library, set the output variable to
78081         "missing" instead of "".
78082         * m4/round.m4: Also use our substitute if we cannot find round in
78083         any library, even if it is declared.
78084         * m4/roundf.m4: Likewise for roundf.
78085         * m4/roundl.m4: Likewise for roundl.
78086         * lib/math.in.h: Undefine roundf, round, roundl before defining
78087         their replacements, to allow for hypothetical systems where these
78088         may be defined as macros but not available in libraries.
78090 2007-10-27  Bruno Haible  <bruno@clisp.org>
78092         * doc/gnulib.texi: Invoke @firstparagraphindent.
78093         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
78094         changes in gnulib.
78095         (Source changes): New section.
78097 2007-10-26  Bruno Haible  <bruno@clisp.org>
78099         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
78100         borrowed from autoconf.
78102 2007-10-26  Bruno Haible  <bruno@clisp.org>
78104         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
78105         strerror returned the empty string. Needed on HP-UX 11.00.
78107 2007-10-24  Micah Cowan  <micah@cowan.name>
78109         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
78110         * build-aux/bootstrap: Remove support for now-unnecessary option,
78111         --cvs-user, and envvars CVS_USER, CVS_RSH.
78113 2007-10-24  Jim Meyering  <meyering@redhat.com>
78115         Avoid diagnostics from sha1sum when there is no cached checksum.
78116         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
78117         if the po.s1 file hasn't been created yet.
78119         * build-aux/bootstrap: Sync from coreutils:
78120         2007-10-24  Jim Meyering  <meyering@redhat.com>
78121         Get gnulib from the git repository, not from an obsolete cvs one.
78122         * build-aux/bootstrap: Suggestion from Micah Cowan.
78123         2007-10-04  Jim Meyering  <jim@meyering.net>
78124         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
78125         (update_po_files): Work also when there are no .po files in po/.
78127 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78129         * README: Append ".git" to git and cg examples.
78130         Problem reported by Benoit Sigoure.
78132 2007-10-23  Micah Cowan  <micah@cowan.name>
78134         * users.txt: Add wget.
78136 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78138         Fix linking of some unistdio tests on FreeBSD.
78139         * modules/unistdio/u16-vsnprintf-tests
78140         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
78141         * modules/unistdio/u16-vsprintf-tests
78142         (test_u16_vsnprintf1_LDADD): Likewise.
78143         * modules/unistdio/u32-vsnprintf-tests
78144         (test_u32_vsnprintf1_LDADD): Likewise.
78145         * modules/unistdio/u32-vsprintf-tests
78146         (test_u32_vsprintf1_LDADD): Likewise.
78147         * modules/unistdio/u8-vsnprintf-tests
78148         (test_u8_vsnprintf1_LDADD): Likewise.
78149         * modules/unistdio/u8-vsprintf-tests
78150         (test_u8_vsprintf1_LDADD): Likewise.
78151         * modules/unistdio/ulc-vsnprintf-tests
78152         (test_ulc_vsnprintf1_LDADD): Likewise.
78153         * modules/unistdio/ulc-vsprintf-tests
78154         (test_ulc_vsprintf1_LDADD): Likewise.
78156         Fix linking of some uniconv tests on FreeBSD.
78157         * modules/uniconv/u16-conv-from-enc-tests
78158         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
78159         * modules/uniconv/u16-conv-to-enc-tests
78160         (test_u16_conv_to_enc_LDADD): Likewise.
78161         * modules/uniconv/u16-strconv-from-enc-tests
78162         (test_u16_strconv_from_enc_LDADD): Likewise.
78163         * modules/uniconv/u16-strconv-to-enc-tests
78164         (test_u16_strconv_to_enc_LDADD): Likewise.
78165         * modules/uniconv/u32-conv-from-enc-tests
78166         (test_u32_conv_from_enc_LDADD): Likewise.
78167         * modules/uniconv/u32-conv-to-enc-tests
78168         (test_u32_conv_to_enc_LDADD): Likewise.
78169         * modules/uniconv/u32-strconv-from-enc-tests
78170         (test_u32_strconv_from_enc_LDADD): Likewise.
78171         * modules/uniconv/u32-strconv-to-enc-tests
78172         (test_u32_strconv_to_enc_LDADD): Likewise.
78173         * modules/uniconv/u8-conv-from-enc-tests
78174         (test_u8_conv_from_enc_LDADD): Likewise.
78175         * modules/uniconv/u8-conv-to-enc-tests
78176         (test_u8_conv_to_enc_LDADD): Likewise.
78177         * modules/uniconv/u8-strconv-from-enc-tests
78178         (test_u8_strconv_from_enc_LDADD): Likewise.
78179         * modules/uniconv/u8-strconv-to-enc-tests
78180         (test_u8_strconv_to_enc_LDADD): Likewise.
78182 2007-10-22  Bruno Haible  <bruno@clisp.org>
78184         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
78185         size.
78187 2007-10-22  Eric Blake  <ebb9@byu.net>
78189         Tweak x*printf documentation.
78190         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
78191         variable name and comments.
78192         Suggested by Bruno Haible.
78194 2007-10-22  Bruno Haible  <bruno@clisp.org>
78196         * lib/acl.c (copy_acl): Fix file name in comment.
78198 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78200         Fix Tru64 problem with stdbool.h.
78201         * lib/stdbool.in.h (false, true):
78202         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
78203         Don't declare as an enum in this situation; it runs afoul of Tru64.
78204         Problem reported by Steven M. Schweda in
78205         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
78207 2007-10-22  Eric Blake  <ebb9@byu.net>
78209         Also wrap vf?printf.
78210         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
78211         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
78212         (xvprintf, xvfprintf): New functions.
78214 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78216         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
78217         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
78219         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
78220         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
78222 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78224         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
78225         by Bruno Haible.
78227 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78229         * lib/getloadavg.c
78230         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
78231         Undef `sys' after including sys/table.h, for Tru64 4.0D.
78233         * tests/test-i-ring.c: Work for C89.
78235 2007-10-22  Bruno Haible  <bruno@clisp.org>
78237         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
78238         -1u, in preprocessor expression, so that we don't test for the bug
78239         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
78240         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
78242 2007-10-22  Eric Blake  <ebb9@byu.net>
78244         * tests/test-yesno.sh: Silence stderr during test.
78246 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78248         * modules/crypto/gc-camellia: New file.
78250         * m4/gc-camellia.m4: New file.
78252         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
78254         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
78256 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78258         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
78259         --help to stdout.  Reported by sms@antinode.org (Steven
78260         M. Schweda).
78262 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78264         * users.txt: Fix link to libksba.
78266 2007-10-21  Ben Pfaff  <blp@gnu.org>
78268         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
78269         round.c roundf implementation that depends on floorf and ceilf to
78270         be tested unconditionally.
78272 2007-10-21  Ben Pfaff  <blp@gnu.org>
78274         * m4/check-libm-func.m4: Removed.
78275         * m4/check-math-lib.m4: New file.
78276         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
78277         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
78278         definition and lack of AC_LIBOBJ([roundf]).
78279         * m4/roundl.m4: Ditto, and similarly for roundl.
78280         * modules/round: Reference new m4 file.
78281         * modules/roundf: Ditto.
78282         * modules/roundl: Ditto.
78283         * tests/test-round2.c (main): Use ROUND instead of round.
78284         Bug report from Bruno Haible.
78286 2007-10-21  Bruno Haible  <bruno@clisp.org>
78288         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
78289         context.
78291 2007-10-21  Bruno Haible  <bruno@clisp.org>
78293         * tests/test-wcwidth.c (main): Allow negative result for some control
78294         characters.
78296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
78297         Needed on OSF/1 5.1.
78299 2007-10-21  Bruno Haible  <bruno@clisp.org>
78301         * tests/test-floorf1.c: Include isnanf.h.
78302         (main): Use isnanf() instead of isnan().
78303         * tests/test-ceilf1.c: Include isnanf.h.
78304         (main): Use isnanf() instead of isnan().
78305         * tests/test-truncf1.c: Include isnanf.h.
78306         (main): Use isnanf() instead of isnan().
78307         * tests/test-roundf1.c: Include isnanf.h.
78308         (main): Use isnanf() instead of isnan().
78310 2007-10-21  Eric Blake  <ebb9@byu.net>
78312         * users.txt: Update URL for m4.
78314 2007-10-21  Bruno Haible  <bruno@clisp.org>
78316         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
78318 2007-10-21  Bruno Haible  <bruno@clisp.org>
78320         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
78321         Git's management files if the CVS files are not present.
78323 2007-10-20  Bruno Haible  <bruno@clisp.org>
78325         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
78326         gcc-3.4.x.
78328 2007-10-20  Ben Pfaff  <blp@gnu.org>
78330         * lib/math.in.h: Declare round, roundf, roundl if we are providing
78331         implementations.
78332         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
78333         * lib/round.c: New file.
78334         * lib/roundf.c: New file.
78335         * lib/roundl.c: New file.
78336         * m4/round.m4: New file.
78337         * m4/roundf.m4: New file.
78338         * m4/roundl.m4: New file.
78339         * m4/check-libm-func-m4: New file.
78340         * modules/math: Replace round, roundf, roundl related @VARS@ in
78341         math.in.h.
78342         * modules/round: New file.
78343         * modules/round-tests: New file.
78344         * modules/roundf: New file.
78345         * modules/roundf-tests: New file.
78346         * modules/roundl: New file.
78347         * modules/roundl-tests: New file.
78348         * tests/test-round1.c: New file.
78349         * tests/test-round2.c: New file.
78350         * tests/test-roundf1.c: New file.
78351         * tests/test-roundf2.c: New file.
78352         * tests/test-roundl.c: New file.
78353         * doc/functions/round.texi: Mention round module.
78354         * doc/functions/roundf.texi: Mention roundf module.
78355         * doc/functions/roundl.texi: Mention roundl module.
78356         * MODULES.html.sh: Mention new modules.
78357         Thanks to Bruno Haible for suggestions.
78359 2007-10-20  Jim Meyering  <meyering@redhat.com>
78361         * lib/xprintf.c: Include <config.h> unconditionally.
78363         Change xprintf's license to GPL.
78364         * modules/xprintf (License): s/LGPL/GPL/, since this module
78365         depends on modules (exit and exitfail) which are GPL.
78366         Suggestion from Bruno Haible.
78368         xprintf fixes.
78369         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
78370         Use a clearer diagnostic.
78371         Patch from Bruno Haible.
78373 2007-10-20  Bruno Haible  <bruno@clisp.org>
78375         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
78376         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
78377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78379 2007-10-20  Bruno Haible  <bruno@clisp.org>
78381         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
78382         precision in the comparison result > x - 1 or similar.
78383         * tests/test-ceilf2.c (correct_result_p): Likewise.
78384         * tests/test-truncf2.c (correct_result_p): Likewise.
78385         * tests/test-trunc2.c (correct_result_p): Likewise.
78386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78388 2007-10-20  Bruno Haible  <bruno@clisp.org>
78390         * modules/ceil: New file.
78391         * m4/ceil.m4: New file.
78392         * doc/functions/ceil.texi: Mention the 'ceil' module.
78394 2007-10-20  Bruno Haible  <bruno@clisp.org>
78396         * modules/floor: New file.
78397         * m4/floor.m4: New file.
78398         * doc/functions/floor.texi: Mention the 'floor' module.
78400 2007-10-20  Bruno Haible  <bruno@clisp.org>
78402         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
78403         of %a.
78404         * modules/floorf-tests (Depends-on): Likewise.
78405         * modules/truncf-tests (Depends-on): Likewise.
78406         * modules/trunc-tests (Depends-on): Likewise.
78407         Reported by Ben Pfaff.
78409 2007-10-19  Jim Meyering  <meyering@redhat.com>
78411         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
78412         Don't bother testing specific errno values.  Just test ferror.
78414         New module: xprintf
78415         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
78417 2007-10-19  Bruno Haible  <bruno@clisp.org>
78419         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
78420         syntax.
78421         * modules/javaexec (Makefile.am): Likewise.
78422         * modules/relocatable-prog (Makefile.am): Likewise.
78423         Suggested by Jim Meyering.
78425 2007-10-18  Bruno Haible  <bruno@clisp.org>
78427         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
78428         Reported by Jim Meyering.
78430 2007-10-18  Eric Blake  <ebb9@byu.net>
78432         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
78434 2007-10-18  Bruno Haible  <bruno@clisp.org>
78436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
78437         the format string into writable memory. Needed in Fortify conditions.
78439 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
78440             Bruno Haible  <bruno@clisp.org>
78442         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
78443         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
78444         * modules/trim (Depends-on): Add mbchar.
78445         (configure.ac): Add gl_FUNC_MBRTOWC.
78446         (Makefile.am): Augment lib_SOURCES.
78448 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78450         Modify glob.c to use fstatat and dirfd, to simplify it.
78451         Suggested by Eric Blake.
78452         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
78453         Don't include <stdbool.h>; not used.
78454         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
78455         (link_exists_p): Simplify implementation, since we can now assume
78456         dirfd and fstatat.
78457         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
78459 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78461         * gnulib-tool (func_get_dependencies): Fix sed script to
78462         match only tests.
78464 2007-10-17  Bruno Haible  <bruno@clisp.org>
78466         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
78467         allow locale names without encoding suffix.
78468         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78469         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78471 2007-10-16  Bruno Haible  <bruno@clisp.org>
78473         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
78474         * lib/getgroups.c (getgroups): Likewise.
78475         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
78477 2007-10-16  Bruno Haible  <bruno@clisp.org>
78479         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
78480         * modules/malloc-posix (License): Likewise.
78481         * modules/realloc-posix (License): Likewise.
78482         * modules/calloc-posix (License): Likewise.
78483         * modules/intprops (License): Change from GPL to LGPL, with
78484         Paul Eggert's approval.
78486 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78488         Merge glibc changes into lib/glob.c.
78490         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
78491         2007-10-15 04:59:03 UTC.  Here are the changes:
78493         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
78495         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
78497         * lib/glob.c: Add some branch prediction throughout.
78499         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
78501         [BZ #5103]
78502         * lib/glob.c (glob): Recognize patterns starting \/.
78504         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
78506         [BZ #3996]
78507         * lib/glob.c (attribute_hidden): Define if not defined.
78508         (glob): Unescape dirname, filename or username when needed and not
78509         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
78510         is NULL.  Handle unescaped [ in pattern without closing ].
78511         Don't pass GLOB_CHECK down to recursive glob for directories.
78512         (__glob_pattern_type): New function.
78513         (__glob_pattern_p): Implement using __glob_pattern_type.
78514         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
78515         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
78516         Remove unreachable code.
78518         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
78520         * lib/glob.c (glob_in_dir): Add some comments and asserts to
78521         explain why there are no leaks.
78523         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
78525         [BZ #3253]
78526         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
78527         time, rather allocate increasingly bigger arrays of pointers, if
78528         possible with alloca, if too large with malloc.
78530 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78532         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
78533         Problem reported by H.Merijn Brand in
78534         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
78535         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
78536         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78538 2007-10-15  Bruno Haible  <bruno@clisp.org>
78540         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
78541         with explicit rpl_ prefix.
78542         * lib/fopen.c (fopen): Likewise.
78543         * lib/freopen.c (freopen): Likewise.
78544         * lib/iconv.c (iconv): Likewise.
78545         * lib/iconv_close.c (iconv_close): Likewise.
78547 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78549         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
78551 2007-10-15  Bruno Haible  <bruno@clisp.org>
78553         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
78554         <stddef.h> instead of <stdlib.h> since we only need NULL.
78555         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78557 2007-10-15  Bruno Haible  <bruno@clisp.org>
78559         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
78560         Replace paragraph talking about LIBOBJS.
78561         Reported by Colin Watson <cjwatson@debian.org>.
78563 2007-10-15  Bruno Haible  <bruno@clisp.org>
78565         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
78566         <stdlib.h> before using NULL.
78568 2007-10-15  Simon Josefsson  <simon@josefsson.org>
78570         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
78571         Reported by Albert Chin <china@thewrittenword.com>.
78573 2007-10-14  Bruno Haible  <bruno@clisp.org>
78575         * modules/iconv_open-utf-tests: New file.
78576         * tests/test-iconv-utf.c: New file.
78578         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
78579         * modules/iconv_open-utf: New file.
78580         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
78581         (iconv, iconv_close): New declarations.
78582         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
78583         be defined.
78584         (iconv_open): Add special handling of conversion between UTF-8 and
78585         UTF-{16,32}{BE,LE}.
78586         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
78587         * lib/iconv_close.c: New file.
78588         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
78589         gl_FUNC_ICONV_OPEN.
78590         (gl_FUNC_ICONV_OPEN): Use it.
78591         (gl_FUNC_ICONV_OPEN_UTF): New macro.
78592         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
78593         and REPLACE_ICONV_UTF.
78594         * modules/iconv_open (Depends-on): Add c-strcase.
78595         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
78596         ICONV_CONST.
78597         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
78599 2007-10-13  Albert Chin  <china@thewrittenword.com>
78600             Bruno Haible  <bruno@clisp.org>
78602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
78603         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
78605 2007-10-13  Bruno Haible  <bruno@clisp.org>
78607         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
78608         defined, use the ISO C99 inline semantics.
78609         * lib/argp.h (ARGP_EI): Likewise.
78611 2007-10-13  Bruno Haible  <bruno@clisp.org>
78613         Handle 'inline' change in gcc 4.3.0.
78614         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
78615         argp_fmtstream_write, argp_fmtstream_set_lmargin,
78616         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
78617         argp_fmtstream_point): Disable 'extern' declaration if the function
78618         definition is going to be provided inline.
78619         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
78620         semantics, not the ISO C99 inline semantics.
78621         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
78622         'extern' declaration if the function definition is going to be provided
78623         inline.
78624         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
78625         the GNU C inline semantics, not the ISO C99 inline semantics. With
78626         GCC 4.2, avoid a warning.
78628 2007-10-13  Bruno Haible  <bruno@clisp.org>
78630         * lib/freading.h (freading): Enable the use of __freading for
78631         glibc >= 2.7.
78632         * lib/freading.c (freading): Likewise.
78634 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78636         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
78637         "warning: C99 inline functions are not supported; using GNU89".
78639 2007-10-12  Bruno Haible  <bruno@clisp.org>
78641         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
78642         of 2.
78643         * tests/test-ceilf2.c: New file.
78644         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
78646         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
78647         * modules/ceilf-tests: Update.
78649 2007-10-12  Bruno Haible  <bruno@clisp.org>
78651         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
78652         of 2.
78653         * tests/test-floorf2.c: New file.
78654         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
78656         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
78657         * modules/floorf-tests: Update.
78659 2007-10-12  Bruno Haible  <bruno@clisp.org>
78661         * tests/test-trunc2.c: New file.
78662         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
78664         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
78665         * modules/trunc-tests: Update.
78667 2007-10-12  Bruno Haible  <bruno@clisp.org>
78669         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
78670         of 2.
78671         * tests/test-truncf2.c: New file.
78672         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
78674         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
78675         * modules/truncf-tests: Update.
78677 2007-10-11  Eric Blake  <ebb9@byu.net>
78679         Don't claim strerror is broken on Interix.
78680         * doc/functions/strerror.texi (strerror): Known broken systems are
78681         now Solaris 8, and not Interix.
78682         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
78683         Interix on cross-compile.
78684         Reported by Martin Koeppe in
78685         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
78687 2007-10-11  Bruno Haible  <bruno@clisp.org>
78689         * modules/i-ring-tests: New file.
78690         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
78691         instead of assert.
78693 2007-10-11  Bruno Haible  <bruno@clisp.org>
78695         * modules/filenamecat-tests: New file.
78696         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
78697         * lib/filenamecat.c: Remove test code.
78699 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78701         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
78703         * lib/strerror.c: Include <string.h> always, to test interface,
78704         and to remove the need for the dummy.
78705         Include intprops.h to compute width instead of doing it ourselves
78706         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
78707         (strerror): Define it to return NULL if there's no system strerror.
78708         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
78709         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
78710         ancient pre-strerror Unix systems well any more.  Saying "unknown
78711         system error" is enough.
78712         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
78713         simpler strerror.c implementation.
78714         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
78715         Simplify the tests to reflect the simpler strerror implementation.
78716         * modules/strerror (Depends-on): Add intprops.
78718 2007-10-09  Eric Blake  <ebb9@byu.net>
78720         Silence test-fpending.
78721         * modules/fpending-tests (Files): Add wrapper script.
78722         * tests/test-fpending.sh: New file.
78724 2007-10-09  Bruno Haible  <bruno@clisp.org>
78726         * MODULES.html.sh (func_module): Don't create a hyperlink for
78727         function names like 'printf_frexp'.
78728         (Misc): Add crc, memxor.
78729         (Characteristics of floating types): New section.
78730         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
78731         isnanf-nolibm, signbit, trunc, truncf, truncl.
78732         (Enhancements for ISO C 99 functions): New subsection Input/output.
78733         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
78734         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
78735         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
78736         (Compatibility checks for POSIX:2001 functions): Add clock-time.
78737         (Enhancements for POSIX:2001 functions): Add chdir-long.
78738         (File system functions): Add areadlink, chdir-safer, read-file.
78739         Remove cycle-check.
78740         (File system as inode set): New section.
78741         (Date and time): Add gethrxtime.
78742         (Multithreading): Add openmp.
78743         (Internationalization functions): Add localename.
78744         (Unicode string functions): Add unistr/u*-mbsnlen.
78745         (Support for maintaining and releasing projects): Add git-version-gen.
78746         (Lone files): Remove directories.
78748 2007-10-08  Ben Pfaff  <blp@gnu.org>
78750         * lib/xmalloca.h: Fix typo in comment.
78752 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78754         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
78755         when avoiding problems with integer overflow.  Use a portable test
78756         instead.
78758 2007-10-08  Simon Josefsson  <simon@josefsson.org>
78760         * modules/dummy (License): Change to LGPLv2+.
78761         * modules/float (License): Likewise
78762         * modules/realloc (License): Likewise
78763         * modules/stdlib (License): Likewise
78765 2007-10-07  Bruno Haible  <bruno@clisp.org>
78767         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
78768         * floor.c (TWO_MANT_DIG): Likewise.
78769         * ceil.c (TWO_MANT_DIG): Likewise.
78770         Reported by Ben Pfaff.
78772 2007-10-07  Bruno Haible  <bruno@clisp.org>
78774         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
78775         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
78776         * lib/frexp.c (FUNC): Likewise.
78777         * lib/printf-frexp.h (printf_frexp): Likewise.
78778         * lib/printf-frexpl.h (printf_frexpl): Likewise.
78779         * lib/printf-frexp.c (FUNC): Likewise.
78780         Suggested by Jim Meyering.
78782 2007-10-07  Jim Meyering  <meyering@redhat.com>
78784         Make xnanosleep's integer overflow test more robust.
78785         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
78786         so that gcc-4.3.0 doesn't optimize away this test for overflow.
78788 2007-10-07  Bruno Haible  <bruno@clisp.org>
78790         * NEWS: Mention the license change.
78792         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
78793         abbreviations in the modules files.
78795         Change copyright notice from GPLv2+ to GPLv3+.
78796         * README: Change copyright notice.
78797         * MODULES.html.sh: Likewise.
78798         * build-aux/bootstrap.conf: Likewise.
78799         * build-aux/config.libpath: Likewise.
78800         * build-aux/csharpcomp.sh.in: Likewise.
78801         * build-aux/csharpexec.sh.in: Likewise.
78802         * build-aux/install-reloc: Likewise.
78803         * build-aux/javacomp.sh.in: Likewise.
78804         * build-aux/javaexec.sh.in: Likewise.
78805         * build-aux/ldd.sh.in: Likewise.
78806         * build-aux/reloc-ldflags: Likewise.
78807         * build-aux/relocatable.sh.in: Likewise.
78808         * build-aux/x-to-1.in: Likewise.
78809         * check-module: Likewise.
78810         * config/srclistvars.sh: Likewise.
78811         * gnulib-tool: Likewise.
78812         * lib/acl-internal.h: Likewise.
78813         * lib/acl.c: Likewise.
78814         * lib/acl.h: Likewise.
78815         * lib/acl_entries.c: Likewise.
78816         * lib/areadlink-with-size.c: Likewise.
78817         * lib/areadlink.c: Likewise.
78818         * lib/areadlink.h: Likewise.
78819         * lib/argmatch.c: Likewise.
78820         * lib/argmatch.h: Likewise.
78821         * lib/argp-ba.c: Likewise.
78822         * lib/argp-eexst.c: Likewise.
78823         * lib/argp-fmtstream.c: Likewise.
78824         * lib/argp-fmtstream.h: Likewise.
78825         * lib/argp-fs-xinl.c: Likewise.
78826         * lib/argp-help.c: Likewise.
78827         * lib/argp-namefrob.h: Likewise.
78828         * lib/argp-parse.c: Likewise.
78829         * lib/argp-pin.c: Likewise.
78830         * lib/argp-pv.c: Likewise.
78831         * lib/argp-pvh.c: Likewise.
78832         * lib/argp-xinl.c: Likewise.
78833         * lib/argp.h: Likewise.
78834         * lib/at-func.c: Likewise.
78835         * lib/atanl.c: Likewise.
78836         * lib/backupfile.c: Likewise.
78837         * lib/backupfile.h: Likewise.
78838         * lib/basename.c: Likewise.
78839         * lib/binary-io.h: Likewise.
78840         * lib/byteswap.in.h: Likewise.
78841         * lib/c-stack.c: Likewise.
78842         * lib/c-stack.h: Likewise.
78843         * lib/c-strcasestr.c: Likewise.
78844         * lib/c-strcasestr.h: Likewise.
78845         * lib/c-strstr.c: Likewise.
78846         * lib/c-strstr.h: Likewise.
78847         * lib/c-strtod.c: Likewise.
78848         * lib/calloc.c: Likewise.
78849         * lib/canon-host.c: Likewise.
78850         * lib/canon-host.h: Likewise.
78851         * lib/canonicalize-lgpl.c: Likewise.
78852         * lib/canonicalize.c: Likewise.
78853         * lib/canonicalize.h: Likewise.
78854         * lib/ceil.c: Likewise.
78855         * lib/ceilf.c: Likewise.
78856         * lib/ceill.c: Likewise.
78857         * lib/chdir-long.c: Likewise.
78858         * lib/chdir-long.h: Likewise.
78859         * lib/chdir-safer.c: Likewise.
78860         * lib/chdir-safer.h: Likewise.
78861         * lib/chown.c: Likewise.
78862         * lib/classpath.c: Likewise.
78863         * lib/classpath.h: Likewise.
78864         * lib/clean-temp.c: Likewise.
78865         * lib/clean-temp.h: Likewise.
78866         * lib/cloexec.c: Likewise.
78867         * lib/close-stream.c: Likewise.
78868         * lib/closein.c: Likewise.
78869         * lib/closein.h: Likewise.
78870         * lib/closeout.c: Likewise.
78871         * lib/closeout.h: Likewise.
78872         * lib/concat-filename.c: Likewise.
78873         * lib/copy-file.c: Likewise.
78874         * lib/copy-file.h: Likewise.
78875         * lib/count-one-bits.h: Likewise.
78876         * lib/crc.c: Likewise.
78877         * lib/crc.h: Likewise.
78878         * lib/creat-safer.c: Likewise.
78879         * lib/csharpcomp.c: Likewise.
78880         * lib/csharpcomp.h: Likewise.
78881         * lib/csharpexec.c: Likewise.
78882         * lib/csharpexec.h: Likewise.
78883         * lib/cycle-check.c: Likewise.
78884         * lib/cycle-check.h: Likewise.
78885         * lib/diacrit.c: Likewise.
78886         * lib/diacrit.h: Likewise.
78887         * lib/diffseq.h: Likewise.
78888         * lib/dirchownmod.c: Likewise.
78889         * lib/dirent.in.h: Likewise.
78890         * lib/dirfd.c: Likewise.
78891         * lib/dirfd.h: Likewise.
78892         * lib/dirname.c: Likewise.
78893         * lib/dirname.h: Likewise.
78894         * lib/dummy.c: Likewise.
78895         * lib/dup-safer.c: Likewise.
78896         * lib/dup2.c: Likewise.
78897         * lib/eealloc.h: Likewise.
78898         * lib/error.c: Likewise.
78899         * lib/error.h: Likewise.
78900         * lib/euidaccess.c: Likewise.
78901         * lib/exclude.c: Likewise.
78902         * lib/exclude.h: Likewise.
78903         * lib/execute.c: Likewise.
78904         * lib/execute.h: Likewise.
78905         * lib/exitfail.c: Likewise.
78906         * lib/exitfail.h: Likewise.
78907         * lib/expl.c: Likewise.
78908         * lib/fatal-signal.c: Likewise.
78909         * lib/fatal-signal.h: Likewise.
78910         * lib/fbufmode.c: Likewise.
78911         * lib/fbufmode.h: Likewise.
78912         * lib/fchdir.c: Likewise.
78913         * lib/fchmodat.c: Likewise.
78914         * lib/fchownat.c: Likewise.
78915         * lib/fcntl--.h: Likewise.
78916         * lib/fcntl-safer.h: Likewise.
78917         * lib/fcntl.in.h: Likewise.
78918         * lib/fd-safer.c: Likewise.
78919         * lib/fflush.c: Likewise.
78920         * lib/file-has-acl.c: Likewise.
78921         * lib/file-set.c: Likewise.
78922         * lib/file-type.c: Likewise.
78923         * lib/file-type.h: Likewise.
78924         * lib/fileblocks.c: Likewise.
78925         * lib/filemode.c: Likewise.
78926         * lib/filemode.h: Likewise.
78927         * lib/filename.h: Likewise.
78928         * lib/filenamecat.c: Likewise.
78929         * lib/filenamecat.h: Likewise.
78930         * lib/findprog.c: Likewise.
78931         * lib/findprog.h: Likewise.
78932         * lib/float.in.h: Likewise.
78933         * lib/floor.c: Likewise.
78934         * lib/floorf.c: Likewise.
78935         * lib/floorl.c: Likewise.
78936         * lib/fopen-safer.c: Likewise.
78937         * lib/fopen.c: Likewise.
78938         * lib/fpending.c: Likewise.
78939         * lib/fpending.h: Likewise.
78940         * lib/fprintf.c: Likewise.
78941         * lib/fprintftime.h: Likewise.
78942         * lib/fpucw.h: Likewise.
78943         * lib/fpurge.c: Likewise.
78944         * lib/fpurge.h: Likewise.
78945         * lib/freadable.c: Likewise.
78946         * lib/freadable.h: Likewise.
78947         * lib/freadahead.c: Likewise.
78948         * lib/freadahead.h: Likewise.
78949         * lib/freading.c: Likewise.
78950         * lib/freading.h: Likewise.
78951         * lib/free.c: Likewise.
78952         * lib/freopen.c: Likewise.
78953         * lib/frexp.c: Likewise.
78954         * lib/frexpl.c: Likewise.
78955         * lib/fseek.c: Likewise.
78956         * lib/fseterr.c: Likewise.
78957         * lib/fseterr.h: Likewise.
78958         * lib/fstatat.c: Likewise.
78959         * lib/fstrcmp.c: Likewise.
78960         * lib/fstrcmp.h: Likewise.
78961         * lib/fsusage.c: Likewise.
78962         * lib/fsusage.h: Likewise.
78963         * lib/ftell.c: Likewise.
78964         * lib/ftello.c: Likewise.
78965         * lib/fts-cycle.c: Likewise.
78966         * lib/fts.c: Likewise.
78967         * lib/fts_.h: Likewise.
78968         * lib/full-read.c: Likewise.
78969         * lib/full-read.h: Likewise.
78970         * lib/full-write.c: Likewise.
78971         * lib/full-write.h: Likewise.
78972         * lib/fwritable.c: Likewise.
78973         * lib/fwritable.h: Likewise.
78974         * lib/fwriteerror.c: Likewise.
78975         * lib/fwriteerror.h: Likewise.
78976         * lib/fwriting.c: Likewise.
78977         * lib/fwriting.h: Likewise.
78978         * lib/gcd.c: Likewise.
78979         * lib/gcd.h: Likewise.
78980         * lib/getcwd.c: Likewise.
78981         * lib/getdate.h: Likewise.
78982         * lib/getdate.y: Likewise.
78983         * lib/getdomainname.c: Likewise.
78984         * lib/getdomainname.h: Likewise.
78985         * lib/getgroups.c: Likewise.
78986         * lib/gethostname.c: Likewise.
78987         * lib/gethrxtime.c: Likewise.
78988         * lib/gethrxtime.h: Likewise.
78989         * lib/getloadavg.c: Likewise.
78990         * lib/getndelim2.c: Likewise.
78991         * lib/getndelim2.h: Likewise.
78992         * lib/getnline.c: Likewise.
78993         * lib/getnline.h: Likewise.
78994         * lib/getopt.c: Likewise.
78995         * lib/getopt.in.h: Likewise.
78996         * lib/getopt1.c: Likewise.
78997         * lib/getopt_int.h: Likewise.
78998         * lib/getpagesize.h: Likewise.
78999         * lib/getsubopt.c: Likewise.
79000         * lib/gettime.c: Likewise.
79001         * lib/getugroups.c: Likewise.
79002         * lib/getugroups.h: Likewise.
79003         * lib/getusershell.c: Likewise.
79004         * lib/gl_anyavltree_list1.h: Likewise.
79005         * lib/gl_anyavltree_list2.h: Likewise.
79006         * lib/gl_anyhash_list1.h: Likewise.
79007         * lib/gl_anyhash_list2.h: Likewise.
79008         * lib/gl_anylinked_list1.h: Likewise.
79009         * lib/gl_anylinked_list2.h: Likewise.
79010         * lib/gl_anyrbtree_list1.h: Likewise.
79011         * lib/gl_anyrbtree_list2.h: Likewise.
79012         * lib/gl_anytree_list1.h: Likewise.
79013         * lib/gl_anytree_list2.h: Likewise.
79014         * lib/gl_anytree_oset.h: Likewise.
79015         * lib/gl_anytreehash_list1.h: Likewise.
79016         * lib/gl_anytreehash_list2.h: Likewise.
79017         * lib/gl_array_list.c: Likewise.
79018         * lib/gl_array_list.h: Likewise.
79019         * lib/gl_array_oset.c: Likewise.
79020         * lib/gl_array_oset.h: Likewise.
79021         * lib/gl_avltree_list.c: Likewise.
79022         * lib/gl_avltree_list.h: Likewise.
79023         * lib/gl_avltree_oset.c: Likewise.
79024         * lib/gl_avltree_oset.h: Likewise.
79025         * lib/gl_avltreehash_list.c: Likewise.
79026         * lib/gl_avltreehash_list.h: Likewise.
79027         * lib/gl_carray_list.c: Likewise.
79028         * lib/gl_carray_list.h: Likewise.
79029         * lib/gl_linked_list.c: Likewise.
79030         * lib/gl_linked_list.h: Likewise.
79031         * lib/gl_linkedhash_list.c: Likewise.
79032         * lib/gl_linkedhash_list.h: Likewise.
79033         * lib/gl_list.c: Likewise.
79034         * lib/gl_list.h: Likewise.
79035         * lib/gl_oset.c: Likewise.
79036         * lib/gl_oset.h: Likewise.
79037         * lib/gl_rbtree_list.c: Likewise.
79038         * lib/gl_rbtree_list.h: Likewise.
79039         * lib/gl_rbtree_oset.c: Likewise.
79040         * lib/gl_rbtree_oset.h: Likewise.
79041         * lib/gl_rbtreehash_list.c: Likewise.
79042         * lib/gl_rbtreehash_list.h: Likewise.
79043         * lib/gl_sublist.c: Likewise.
79044         * lib/gl_sublist.h: Likewise.
79045         * lib/group-member.c: Likewise.
79046         * lib/group-member.h: Likewise.
79047         * lib/hard-locale.c: Likewise.
79048         * lib/hard-locale.h: Likewise.
79049         * lib/hash-pjw.c: Likewise.
79050         * lib/hash-pjw.h: Likewise.
79051         * lib/hash-triple.c: Likewise.
79052         * lib/hash.c: Likewise.
79053         * lib/hash.h: Likewise.
79054         * lib/human.c: Likewise.
79055         * lib/human.h: Likewise.
79056         * lib/i-ring.c: Likewise.
79057         * lib/i-ring.h: Likewise.
79058         * lib/idcache.c: Likewise.
79059         * lib/imaxabs.c: Likewise.
79060         * lib/imaxdiv.c: Likewise.
79061         * lib/inet_pton.c: Likewise.
79062         * lib/inet_pton.h: Likewise.
79063         * lib/intprops.h: Likewise.
79064         * lib/inttostr.c: Likewise.
79065         * lib/inttostr.h: Likewise.
79066         * lib/inttypes.in.h: Likewise.
79067         * lib/isapipe.c: Likewise.
79068         * lib/isdir.c: Likewise.
79069         * lib/isnan.c: Likewise.
79070         * lib/isnan.h: Likewise.
79071         * lib/isnanf.c: Likewise.
79072         * lib/isnanf.h: Likewise.
79073         * lib/isnanl-nolibm.h: Likewise.
79074         * lib/isnanl.c: Likewise.
79075         * lib/isnanl.h: Likewise.
79076         * lib/javacomp.c: Likewise.
79077         * lib/javacomp.h: Likewise.
79078         * lib/javaexec.c: Likewise.
79079         * lib/javaexec.h: Likewise.
79080         * lib/javaversion.c: Likewise.
79081         * lib/javaversion.h: Likewise.
79082         * lib/javaversion.java: Likewise.
79083         * lib/lbrkprop.h: Likewise.
79084         * lib/lchmod.h: Likewise.
79085         * lib/lchown.c: Likewise.
79086         * lib/ldexpl.c: Likewise.
79087         * lib/linebreak.c: Likewise.
79088         * lib/linebreak.h: Likewise.
79089         * lib/linebuffer.c: Likewise.
79090         * lib/linebuffer.h: Likewise.
79091         * lib/locale.in.h: Likewise.
79092         * lib/logl.c: Likewise.
79093         * lib/long-options.c: Likewise.
79094         * lib/long-options.h: Likewise.
79095         * lib/lstat.c: Likewise.
79096         * lib/lstat.h: Likewise.
79097         * lib/math.in.h: Likewise.
79098         * lib/mbchar.c: Likewise.
79099         * lib/mbchar.h: Likewise.
79100         * lib/mbfile.h: Likewise.
79101         * lib/mbiter.h: Likewise.
79102         * lib/mbscasecmp.c: Likewise.
79103         * lib/mbscasestr.c: Likewise.
79104         * lib/mbschr.c: Likewise.
79105         * lib/mbscspn.c: Likewise.
79106         * lib/mbslen.c: Likewise.
79107         * lib/mbsncasecmp.c: Likewise.
79108         * lib/mbsnlen.c: Likewise.
79109         * lib/mbspbrk.c: Likewise.
79110         * lib/mbspcasecmp.c: Likewise.
79111         * lib/mbsrchr.c: Likewise.
79112         * lib/mbssep.c: Likewise.
79113         * lib/mbsspn.c: Likewise.
79114         * lib/mbsstr.c: Likewise.
79115         * lib/mbstok_r.c: Likewise.
79116         * lib/mbswidth.c: Likewise.
79117         * lib/mbswidth.h: Likewise.
79118         * lib/mbuiter.h: Likewise.
79119         * lib/memcasecmp.c: Likewise.
79120         * lib/memcasecmp.h: Likewise.
79121         * lib/memchr.c: Likewise.
79122         * lib/memcmp.c: Likewise.
79123         * lib/memcoll.c: Likewise.
79124         * lib/memcoll.h: Likewise.
79125         * lib/memcpy.c: Likewise.
79126         * lib/memrchr.c: Likewise.
79127         * lib/mkancesdirs.c: Likewise.
79128         * lib/mkdir-p.c: Likewise.
79129         * lib/mkdir-p.h: Likewise.
79130         * lib/mkdir.c: Likewise.
79131         * lib/mkdirat.c: Likewise.
79132         * lib/mkdtemp.c: Likewise.
79133         * lib/mkstemp-safer.c: Likewise.
79134         * lib/mkstemp.c: Likewise.
79135         * lib/modechange.c: Likewise.
79136         * lib/modechange.h: Likewise.
79137         * lib/mountlist.c: Likewise.
79138         * lib/mountlist.h: Likewise.
79139         * lib/mpsort.c: Likewise.
79140         * lib/nanosleep.c: Likewise.
79141         * lib/obstack.c: Likewise.
79142         * lib/obstack.h: Likewise.
79143         * lib/open-safer.c: Likewise.
79144         * lib/open.c: Likewise.
79145         * lib/openat-die.c: Likewise.
79146         * lib/openat-priv.h: Likewise.
79147         * lib/openat-proc.c: Likewise.
79148         * lib/openat.c: Likewise.
79149         * lib/openat.h: Likewise.
79150         * lib/pagealign_alloc.c: Likewise.
79151         * lib/pagealign_alloc.h: Likewise.
79152         * lib/physmem.c: Likewise.
79153         * lib/physmem.h: Likewise.
79154         * lib/pipe-safer.c: Likewise.
79155         * lib/pipe.c: Likewise.
79156         * lib/pipe.h: Likewise.
79157         * lib/posixtm.c: Likewise.
79158         * lib/posixtm.h: Likewise.
79159         * lib/posixver.c: Likewise.
79160         * lib/printf-frexp.c: Likewise.
79161         * lib/printf-frexp.h: Likewise.
79162         * lib/printf-frexpl.c: Likewise.
79163         * lib/printf-frexpl.h: Likewise.
79164         * lib/printf.c: Likewise.
79165         * lib/progname.c: Likewise.
79166         * lib/progname.h: Likewise.
79167         * lib/progreloc.c: Likewise.
79168         * lib/putenv.c: Likewise.
79169         * lib/quote.c: Likewise.
79170         * lib/quote.h: Likewise.
79171         * lib/quotearg.c: Likewise.
79172         * lib/quotearg.h: Likewise.
79173         * lib/raise.c: Likewise.
79174         * lib/readline.c: Likewise.
79175         * lib/readline.h: Likewise.
79176         * lib/readlink.c: Likewise.
79177         * lib/readtokens.c: Likewise.
79178         * lib/readtokens.h: Likewise.
79179         * lib/readtokens0.c: Likewise.
79180         * lib/readtokens0.h: Likewise.
79181         * lib/readutmp.c: Likewise.
79182         * lib/readutmp.h: Likewise.
79183         * lib/realloc.c: Likewise.
79184         * lib/relocwrapper.c: Likewise.
79185         * lib/rename-dest-slash.c: Likewise.
79186         * lib/rename.c: Likewise.
79187         * lib/rmdir.c: Likewise.
79188         * lib/rpmatch.c: Likewise.
79189         * lib/safe-read.c: Likewise.
79190         * lib/safe-read.h: Likewise.
79191         * lib/safe-write.c: Likewise.
79192         * lib/safe-write.h: Likewise.
79193         * lib/same-inode.h: Likewise.
79194         * lib/same.c: Likewise.
79195         * lib/same.h: Likewise.
79196         * lib/save-cwd.c: Likewise.
79197         * lib/save-cwd.h: Likewise.
79198         * lib/savedir.c: Likewise.
79199         * lib/savedir.h: Likewise.
79200         * lib/savewd.c: Likewise.
79201         * lib/savewd.h: Likewise.
79202         * lib/search.in.h: Likewise.
79203         * lib/setenv.c: Likewise.
79204         * lib/setenv.h: Likewise.
79205         * lib/settime.c: Likewise.
79206         * lib/sh-quote.c: Likewise.
79207         * lib/sh-quote.h: Likewise.
79208         * lib/sig2str.c: Likewise.
79209         * lib/sig2str.h: Likewise.
79210         * lib/signal.in.h: Likewise.
79211         * lib/signbitd.c: Likewise.
79212         * lib/signbitf.c: Likewise.
79213         * lib/signbitl.c: Likewise.
79214         * lib/sigprocmask.c: Likewise.
79215         * lib/sincosl.c: Likewise.
79216         * lib/sleep.c: Likewise.
79217         * lib/sprintf.c: Likewise.
79218         * lib/sqrtl.c: Likewise.
79219         * lib/stat-time.h: Likewise.
79220         * lib/stdio--.h: Likewise.
79221         * lib/stdio-safer.h: Likewise.
79222         * lib/stdlib--.h: Likewise.
79223         * lib/stdlib-safer.h: Likewise.
79224         * lib/stdlib.in.h: Likewise.
79225         * lib/stpcpy.c: Likewise.
79226         * lib/stpncpy.c: Likewise.
79227         * lib/strchrnul.c: Likewise.
79228         * lib/strcspn.c: Likewise.
79229         * lib/strerror.c: Likewise.
79230         * lib/strftime.c: Likewise.
79231         * lib/strftime.h: Likewise.
79232         * lib/striconveh.c: Likewise.
79233         * lib/striconveh.h: Likewise.
79234         * lib/striconveha.c: Likewise.
79235         * lib/striconveha.h: Likewise.
79236         * lib/stripslash.c: Likewise.
79237         * lib/strnlen1.c: Likewise.
79238         * lib/strnlen1.h: Likewise.
79239         * lib/strtod.c: Likewise.
79240         * lib/strtoimax.c: Likewise.
79241         * lib/strtok_r.c: Likewise.
79242         * lib/strtol.c: Likewise.
79243         * lib/strtoll.c: Likewise.
79244         * lib/strtoul.c: Likewise.
79245         * lib/strtoull.c: Likewise.
79246         * lib/sysexits.in.h: Likewise.
79247         * lib/tempname.c: Likewise.
79248         * lib/tempname.h: Likewise.
79249         * lib/timespec.h: Likewise.
79250         * lib/tls.c: Likewise.
79251         * lib/tls.h: Likewise.
79252         * lib/tmpdir.c: Likewise.
79253         * lib/tmpdir.h: Likewise.
79254         * lib/tmpfile-safer.c: Likewise.
79255         * lib/tmpfile.c: Likewise.
79256         * lib/trigl.c: Likewise.
79257         * lib/trigl.h: Likewise.
79258         * lib/trim.c: Likewise.
79259         * lib/trim.h: Likewise.
79260         * lib/trunc.c: Likewise.
79261         * lib/truncf.c: Likewise.
79262         * lib/truncl.c: Likewise.
79263         * lib/tsearch.c: Likewise.
79264         * lib/unicodeio.c: Likewise.
79265         * lib/unicodeio.h: Likewise.
79266         * lib/unistd--.h: Likewise.
79267         * lib/unistd-safer.h: Likewise.
79268         * lib/unistdio/ulc-fprintf.c: Likewise.
79269         * lib/unistdio/ulc-vfprintf.c: Likewise.
79270         * lib/unlinkdir.c: Likewise.
79271         * lib/unlinkdir.h: Likewise.
79272         * lib/unlocked-io.h: Likewise.
79273         * lib/unsetenv.c: Likewise.
79274         * lib/userspec.c: Likewise.
79275         * lib/utime.c: Likewise.
79276         * lib/utimecmp.c: Likewise.
79277         * lib/utimecmp.h: Likewise.
79278         * lib/utimens.c: Likewise.
79279         * lib/verify.h: Likewise.
79280         * lib/verror.c: Likewise.
79281         * lib/verror.h: Likewise.
79282         * lib/version-etc-fsf.c: Likewise.
79283         * lib/version-etc.c: Likewise.
79284         * lib/version-etc.h: Likewise.
79285         * lib/vfprintf.c: Likewise.
79286         * lib/vprintf.c: Likewise.
79287         * lib/vsprintf.c: Likewise.
79288         * lib/w32spawn.h: Likewise.
79289         * lib/wait-process.c: Likewise.
79290         * lib/wait-process.h: Likewise.
79291         * lib/wcwidth.c: Likewise.
79292         * lib/write-any-file.c: Likewise.
79293         * lib/xalloc-die.c: Likewise.
79294         * lib/xalloc.h: Likewise.
79295         * lib/xasprintf.c: Likewise.
79296         * lib/xgetcwd.c: Likewise.
79297         * lib/xgetcwd.h: Likewise.
79298         * lib/xgetdomainname.c: Likewise.
79299         * lib/xgetdomainname.h: Likewise.
79300         * lib/xgethostname.c: Likewise.
79301         * lib/xmalloc.c: Likewise.
79302         * lib/xmalloca.c: Likewise.
79303         * lib/xmalloca.h: Likewise.
79304         * lib/xmemcoll.c: Likewise.
79305         * lib/xnanosleep.c: Likewise.
79306         * lib/xreadlink.c: Likewise.
79307         * lib/xreadlink.h: Likewise.
79308         * lib/xsetenv.c: Likewise.
79309         * lib/xsetenv.h: Likewise.
79310         * lib/xstriconv.c: Likewise.
79311         * lib/xstriconv.h: Likewise.
79312         * lib/xstrndup.c: Likewise.
79313         * lib/xstrndup.h: Likewise.
79314         * lib/xstrtod.c: Likewise.
79315         * lib/xstrtod.h: Likewise.
79316         * lib/xstrtol-error.c: Likewise.
79317         * lib/xstrtol.c: Likewise.
79318         * lib/xstrtol.h: Likewise.
79319         * lib/xtime.h: Likewise.
79320         * lib/xvasprintf.c: Likewise.
79321         * lib/xvasprintf.h: Likewise.
79322         * lib/yesno.c: Likewise.
79323         * lib/yesno.h: Likewise.
79324         * posix-modules: Likewise.
79325         * tests/test-alloca-opt.c: Likewise.
79326         * tests/test-arcfour.c: Likewise.
79327         * tests/test-arctwo.c: Likewise.
79328         * tests/test-argmatch.c: Likewise.
79329         * tests/test-argp-2.sh: Likewise.
79330         * tests/test-argp.c: Likewise.
79331         * tests/test-arpa_inet.c: Likewise.
79332         * tests/test-array_list.c: Likewise.
79333         * tests/test-array_oset.c: Likewise.
79334         * tests/test-atexit.c: Likewise.
79335         * tests/test-avltree_list.c: Likewise.
79336         * tests/test-avltree_oset.c: Likewise.
79337         * tests/test-avltreehash_list.c: Likewise.
79338         * tests/test-base64.c: Likewise.
79339         * tests/test-binary-io.c: Likewise.
79340         * tests/test-byteswap.c: Likewise.
79341         * tests/test-c-ctype.c: Likewise.
79342         * tests/test-c-strcasecmp.c: Likewise.
79343         * tests/test-c-strcasestr.c: Likewise.
79344         * tests/test-c-strncasecmp.c: Likewise.
79345         * tests/test-c-strstr.c: Likewise.
79346         * tests/test-canonicalize-lgpl.c: Likewise.
79347         * tests/test-canonicalize.c: Likewise.
79348         * tests/test-carray_list.c: Likewise.
79349         * tests/test-ceilf.c: Likewise.
79350         * tests/test-ceill.c: Likewise.
79351         * tests/test-count-one-bits.c: Likewise.
79352         * tests/test-crc.c: Likewise.
79353         * tests/test-dirname.c: Likewise.
79354         * tests/test-fbufmode.c: Likewise.
79355         * tests/test-fcntl.c: Likewise.
79356         * tests/test-fflush.c: Likewise.
79357         * tests/test-floorf.c: Likewise.
79358         * tests/test-floorl.c: Likewise.
79359         * tests/test-fopen.c: Likewise.
79360         * tests/test-fprintf-posix.c: Likewise.
79361         * tests/test-fprintf-posix.h: Likewise.
79362         * tests/test-fpurge.c: Likewise.
79363         * tests/test-freadable.c: Likewise.
79364         * tests/test-freadahead.c: Likewise.
79365         * tests/test-freading.c: Likewise.
79366         * tests/test-freopen.c: Likewise.
79367         * tests/test-frexp.c: Likewise.
79368         * tests/test-frexpl.c: Likewise.
79369         * tests/test-fseek.c: Likewise.
79370         * tests/test-fseeko.c: Likewise.
79371         * tests/test-fseterr.c: Likewise.
79372         * tests/test-fstrcmp.c: Likewise.
79373         * tests/test-ftell.c: Likewise.
79374         * tests/test-ftello.c: Likewise.
79375         * tests/test-fwritable.c: Likewise.
79376         * tests/test-fwriting.c: Likewise.
79377         * tests/test-getaddrinfo.c: Likewise.
79378         * tests/test-getpass.c: Likewise.
79379         * tests/test-gettimeofday.c: Likewise.
79380         * tests/test-hmac-md5.c: Likewise.
79381         * tests/test-hmac-sha1.c: Likewise.
79382         * tests/test-iconv.c: Likewise.
79383         * tests/test-iconvme.c: Likewise.
79384         * tests/test-inttypes.c: Likewise.
79385         * tests/test-isnan.c: Likewise.
79386         * tests/test-isnanf.c: Likewise.
79387         * tests/test-isnanl-nolibm.c: Likewise.
79388         * tests/test-isnanl.c: Likewise.
79389         * tests/test-isnanl.h: Likewise.
79390         * tests/test-ldexpl.c: Likewise.
79391         * tests/test-linked_list.c: Likewise.
79392         * tests/test-linkedhash_list.c: Likewise.
79393         * tests/test-locale.c: Likewise.
79394         * tests/test-localename.c: Likewise.
79395         * tests/test-lock.c: Likewise.
79396         * tests/test-lseek.c: Likewise.
79397         * tests/test-malloca.c: Likewise.
79398         * tests/test-math.c: Likewise.
79399         * tests/test-mbscasecmp.c: Likewise.
79400         * tests/test-mbscasestr1.c: Likewise.
79401         * tests/test-mbscasestr2.c: Likewise.
79402         * tests/test-mbscasestr3.c: Likewise.
79403         * tests/test-mbscasestr4.c: Likewise.
79404         * tests/test-mbschr.c: Likewise.
79405         * tests/test-mbscspn.c: Likewise.
79406         * tests/test-mbsncasecmp.c: Likewise.
79407         * tests/test-mbspbrk.c: Likewise.
79408         * tests/test-mbspcasecmp.c: Likewise.
79409         * tests/test-mbsrchr.c: Likewise.
79410         * tests/test-mbsspn.c: Likewise.
79411         * tests/test-mbsstr1.c: Likewise.
79412         * tests/test-mbsstr2.c: Likewise.
79413         * tests/test-mbsstr3.c: Likewise.
79414         * tests/test-md5.c: Likewise.
79415         * tests/test-memmem.c: Likewise.
79416         * tests/test-netinet_in.c: Likewise.
79417         * tests/test-open.c: Likewise.
79418         * tests/test-printf-frexp.c: Likewise.
79419         * tests/test-printf-frexpl.c: Likewise.
79420         * tests/test-printf-posix.c: Likewise.
79421         * tests/test-printf-posix.h: Likewise.
79422         * tests/test-rbtree_list.c: Likewise.
79423         * tests/test-rbtree_oset.c: Likewise.
79424         * tests/test-rbtreehash_list.c: Likewise.
79425         * tests/test-read-file.c: Likewise.
79426         * tests/test-rijndael.c: Likewise.
79427         * tests/test-search.c: Likewise.
79428         * tests/test-signbit.c: Likewise.
79429         * tests/test-sleep.c: Likewise.
79430         * tests/test-snprintf-posix.c: Likewise.
79431         * tests/test-snprintf-posix.h: Likewise.
79432         * tests/test-snprintf.c: Likewise.
79433         * tests/test-sprintf-posix.c: Likewise.
79434         * tests/test-sprintf-posix.h: Likewise.
79435         * tests/test-stat-time.c: Likewise.
79436         * tests/test-stdbool.c: Likewise.
79437         * tests/test-stdint.c: Likewise.
79438         * tests/test-stdio.c: Likewise.
79439         * tests/test-stdlib.c: Likewise.
79440         * tests/test-stpncpy.c: Likewise.
79441         * tests/test-strcasestr.c: Likewise.
79442         * tests/test-striconv.c: Likewise.
79443         * tests/test-striconveh.c: Likewise.
79444         * tests/test-striconveha.c: Likewise.
79445         * tests/test-string.c: Likewise.
79446         * tests/test-sys_select.c: Likewise.
79447         * tests/test-sys_socket.c: Likewise.
79448         * tests/test-sys_stat.c: Likewise.
79449         * tests/test-sys_time.c: Likewise.
79450         * tests/test-sysexits.c: Likewise.
79451         * tests/test-time.c: Likewise.
79452         * tests/test-tls.c: Likewise.
79453         * tests/test-trunc.c: Likewise.
79454         * tests/test-truncf.c: Likewise.
79455         * tests/test-truncl.c: Likewise.
79456         * tests/test-unistd.c: Likewise.
79457         * tests/test-vasnprintf-posix.c: Likewise.
79458         * tests/test-vasnprintf-posix2.c: Likewise.
79459         * tests/test-vasnprintf.c: Likewise.
79460         * tests/test-vasprintf-posix.c: Likewise.
79461         * tests/test-vasprintf.c: Likewise.
79462         * tests/test-verify.c: Likewise.
79463         * tests/test-vfprintf-posix.c: Likewise.
79464         * tests/test-vprintf-posix.c: Likewise.
79465         * tests/test-vsnprintf-posix.c: Likewise.
79466         * tests/test-vsnprintf.c: Likewise.
79467         * tests/test-vsprintf-posix.c: Likewise.
79468         * tests/test-wchar.c: Likewise.
79469         * tests/test-wctype.c: Likewise.
79470         * tests/test-wcwidth.c: Likewise.
79471         * tests/test-xstrtol.c: Likewise.
79472         * tests/test-xvasprintf.c: Likewise.
79473         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
79474         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
79475         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
79476         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
79477         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
79478         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
79479         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
79480         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
79481         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
79482         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
79483         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
79484         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
79485         * tests/uniname/test-uninames.c: Likewise.
79486         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
79487         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
79488         * tests/unistdio/test-u16-printf1.h: Likewise.
79489         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
79490         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
79491         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
79492         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
79493         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
79494         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
79495         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
79496         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
79497         * tests/unistdio/test-u32-printf1.h: Likewise.
79498         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
79499         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
79500         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
79501         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
79502         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
79503         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
79504         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
79505         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
79506         * tests/unistdio/test-u8-printf1.h: Likewise.
79507         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
79508         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
79509         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
79510         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
79511         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
79512         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
79513         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
79514         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
79515         * tests/unistdio/test-ulc-printf1.h: Likewise.
79516         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
79517         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
79518         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
79519         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
79520         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
79521         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
79522         * tests/uniwidth/test-u16-strwidth.c: Likewise.
79523         * tests/uniwidth/test-u16-width.c: Likewise.
79524         * tests/uniwidth/test-u32-strwidth.c: Likewise.
79525         * tests/uniwidth/test-u32-width.c: Likewise.
79526         * tests/uniwidth/test-u8-strwidth.c: Likewise.
79527         * tests/uniwidth/test-u8-width.c: Likewise.
79528         * tests/uniwidth/test-uc_width.c: Likewise.
79529         * config/srclist-update: Likewise.
79530         (fixlicense): Update to GPLv3+.
79532         Change copyright notice from LGPLv2.1+ to LGPLv3+.
79533         * tests/test-tsearch.c: Change copyright notice.
79535         Change copyright notice from LGPLv2.0+ to LGPLv3+.
79536         * lib/c-strcaseeq.h: Change copyright notice.
79537         * lib/streq.h: Likewise.
79538         * lib/uniconv.h: Likewise.
79539         * lib/uniconv/u-conv-from-enc.h: Likewise.
79540         * lib/uniconv/u-conv-to-enc.h: Likewise.
79541         * lib/uniconv/u-strconv-from-enc.h: Likewise.
79542         * lib/uniconv/u-strconv-to-enc.h: Likewise.
79543         * lib/uniconv/u16-conv-from-enc.c: Likewise.
79544         * lib/uniconv/u16-conv-to-enc.c: Likewise.
79545         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
79546         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
79547         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
79548         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
79549         * lib/uniconv/u32-conv-from-enc.c: Likewise.
79550         * lib/uniconv/u32-conv-to-enc.c: Likewise.
79551         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
79552         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
79553         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
79554         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
79555         * lib/uniconv/u8-conv-from-enc.c: Likewise.
79556         * lib/uniconv/u8-conv-to-enc.c: Likewise.
79557         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
79558         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
79559         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
79560         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
79561         * lib/uniname.h: Likewise.
79562         * lib/uniname/uniname.c: Likewise.
79563         * lib/unistdio.h: Likewise.
79564         * lib/unistdio/u-asnprintf.h: Likewise.
79565         * lib/unistdio/u-asprintf.h: Likewise.
79566         * lib/unistdio/u-printf-args.c: Likewise.
79567         * lib/unistdio/u-printf-args.h: Likewise.
79568         * lib/unistdio/u-printf-parse.h: Likewise.
79569         * lib/unistdio/u-snprintf.h: Likewise.
79570         * lib/unistdio/u-sprintf.h: Likewise.
79571         * lib/unistdio/u-vasprintf.h: Likewise.
79572         * lib/unistdio/u-vsnprintf.h: Likewise.
79573         * lib/unistdio/u-vsprintf.h: Likewise.
79574         * lib/unistdio/u16-asnprintf.c: Likewise.
79575         * lib/unistdio/u16-asprintf.c: Likewise.
79576         * lib/unistdio/u16-printf-parse.c: Likewise.
79577         * lib/unistdio/u16-snprintf.c: Likewise.
79578         * lib/unistdio/u16-sprintf.c: Likewise.
79579         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
79580         * lib/unistdio/u16-u16-asprintf.c: Likewise.
79581         * lib/unistdio/u16-u16-snprintf.c: Likewise.
79582         * lib/unistdio/u16-u16-sprintf.c: Likewise.
79583         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
79584         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
79585         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
79586         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
79587         * lib/unistdio/u16-vasnprintf.c: Likewise.
79588         * lib/unistdio/u16-vasprintf.c: Likewise.
79589         * lib/unistdio/u16-vsnprintf.c: Likewise.
79590         * lib/unistdio/u16-vsprintf.c: Likewise.
79591         * lib/unistdio/u32-asnprintf.c: Likewise.
79592         * lib/unistdio/u32-asprintf.c: Likewise.
79593         * lib/unistdio/u32-printf-parse.c: Likewise.
79594         * lib/unistdio/u32-snprintf.c: Likewise.
79595         * lib/unistdio/u32-sprintf.c: Likewise.
79596         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
79597         * lib/unistdio/u32-u32-asprintf.c: Likewise.
79598         * lib/unistdio/u32-u32-snprintf.c: Likewise.
79599         * lib/unistdio/u32-u32-sprintf.c: Likewise.
79600         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
79601         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
79602         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
79603         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
79604         * lib/unistdio/u32-vasnprintf.c: Likewise.
79605         * lib/unistdio/u32-vasprintf.c: Likewise.
79606         * lib/unistdio/u32-vsnprintf.c: Likewise.
79607         * lib/unistdio/u32-vsprintf.c: Likewise.
79608         * lib/unistdio/u8-asnprintf.c: Likewise.
79609         * lib/unistdio/u8-asprintf.c: Likewise.
79610         * lib/unistdio/u8-printf-parse.c: Likewise.
79611         * lib/unistdio/u8-snprintf.c: Likewise.
79612         * lib/unistdio/u8-sprintf.c: Likewise.
79613         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
79614         * lib/unistdio/u8-u8-asprintf.c: Likewise.
79615         * lib/unistdio/u8-u8-snprintf.c: Likewise.
79616         * lib/unistdio/u8-u8-sprintf.c: Likewise.
79617         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
79618         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
79619         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
79620         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
79621         * lib/unistdio/u8-vasnprintf.c: Likewise.
79622         * lib/unistdio/u8-vasprintf.c: Likewise.
79623         * lib/unistdio/u8-vsnprintf.c: Likewise.
79624         * lib/unistdio/u8-vsprintf.c: Likewise.
79625         * lib/unistdio/ulc-asnprintf.c: Likewise.
79626         * lib/unistdio/ulc-asprintf.c: Likewise.
79627         * lib/unistdio/ulc-printf-parse.c: Likewise.
79628         * lib/unistdio/ulc-snprintf.c: Likewise.
79629         * lib/unistdio/ulc-sprintf.c: Likewise.
79630         * lib/unistdio/ulc-vasnprintf.c: Likewise.
79631         * lib/unistdio/ulc-vasprintf.c: Likewise.
79632         * lib/unistdio/ulc-vsnprintf.c: Likewise.
79633         * lib/unistdio/ulc-vsprintf.c: Likewise.
79634         * lib/unistr.h: Likewise.
79635         * lib/unistr/u-cpy-alloc.h: Likewise.
79636         * lib/unistr/u-cpy.h: Likewise.
79637         * lib/unistr/u-endswith.h: Likewise.
79638         * lib/unistr/u-move.h: Likewise.
79639         * lib/unistr/u-set.h: Likewise.
79640         * lib/unistr/u-startswith.h: Likewise.
79641         * lib/unistr/u-stpcpy.h: Likewise.
79642         * lib/unistr/u-stpncpy.h: Likewise.
79643         * lib/unistr/u-strcat.h: Likewise.
79644         * lib/unistr/u-strcpy.h: Likewise.
79645         * lib/unistr/u-strcspn.h: Likewise.
79646         * lib/unistr/u-strdup.h: Likewise.
79647         * lib/unistr/u-strlen.h: Likewise.
79648         * lib/unistr/u-strncat.h: Likewise.
79649         * lib/unistr/u-strncpy.h: Likewise.
79650         * lib/unistr/u-strnlen.h: Likewise.
79651         * lib/unistr/u-strpbrk.h: Likewise.
79652         * lib/unistr/u-strspn.h: Likewise.
79653         * lib/unistr/u-strstr.h: Likewise.
79654         * lib/unistr/u-strtok.h: Likewise.
79655         * lib/unistr/u16-check.c: Likewise.
79656         * lib/unistr/u16-chr.c: Likewise.
79657         * lib/unistr/u16-cmp.c: Likewise.
79658         * lib/unistr/u16-cpy-alloc.c: Likewise.
79659         * lib/unistr/u16-cpy.c: Likewise.
79660         * lib/unistr/u16-endswith.c: Likewise.
79661         * lib/unistr/u16-mblen.c: Likewise.
79662         * lib/unistr/u16-mbsnlen.c: Likewise.
79663         * lib/unistr/u16-mbtouc-aux.c: Likewise.
79664         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
79665         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
79666         * lib/unistr/u16-mbtouc.c: Likewise.
79667         * lib/unistr/u16-mbtoucr.c: Likewise.
79668         * lib/unistr/u16-move.c: Likewise.
79669         * lib/unistr/u16-next.c: Likewise.
79670         * lib/unistr/u16-prev.c: Likewise.
79671         * lib/unistr/u16-set.c: Likewise.
79672         * lib/unistr/u16-startswith.c: Likewise.
79673         * lib/unistr/u16-stpcpy.c: Likewise.
79674         * lib/unistr/u16-stpncpy.c: Likewise.
79675         * lib/unistr/u16-strcat.c: Likewise.
79676         * lib/unistr/u16-strchr.c: Likewise.
79677         * lib/unistr/u16-strcmp.c: Likewise.
79678         * lib/unistr/u16-strcpy.c: Likewise.
79679         * lib/unistr/u16-strcspn.c: Likewise.
79680         * lib/unistr/u16-strdup.c: Likewise.
79681         * lib/unistr/u16-strlen.c: Likewise.
79682         * lib/unistr/u16-strmblen.c: Likewise.
79683         * lib/unistr/u16-strmbtouc.c: Likewise.
79684         * lib/unistr/u16-strncat.c: Likewise.
79685         * lib/unistr/u16-strncmp.c: Likewise.
79686         * lib/unistr/u16-strncpy.c: Likewise.
79687         * lib/unistr/u16-strnlen.c: Likewise.
79688         * lib/unistr/u16-strpbrk.c: Likewise.
79689         * lib/unistr/u16-strrchr.c: Likewise.
79690         * lib/unistr/u16-strspn.c: Likewise.
79691         * lib/unistr/u16-strstr.c: Likewise.
79692         * lib/unistr/u16-strtok.c: Likewise.
79693         * lib/unistr/u16-to-u32.c: Likewise.
79694         * lib/unistr/u16-to-u8.c: Likewise.
79695         * lib/unistr/u16-uctomb-aux.c: Likewise.
79696         * lib/unistr/u16-uctomb.c: Likewise.
79697         * lib/unistr/u32-check.c: Likewise.
79698         * lib/unistr/u32-chr.c: Likewise.
79699         * lib/unistr/u32-cmp.c: Likewise.
79700         * lib/unistr/u32-cpy-alloc.c: Likewise.
79701         * lib/unistr/u32-cpy.c: Likewise.
79702         * lib/unistr/u32-endswith.c: Likewise.
79703         * lib/unistr/u32-mblen.c: Likewise.
79704         * lib/unistr/u32-mbsnlen.c: Likewise.
79705         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
79706         * lib/unistr/u32-mbtouc.c: Likewise.
79707         * lib/unistr/u32-mbtoucr.c: Likewise.
79708         * lib/unistr/u32-move.c: Likewise.
79709         * lib/unistr/u32-next.c: Likewise.
79710         * lib/unistr/u32-prev.c: Likewise.
79711         * lib/unistr/u32-set.c: Likewise.
79712         * lib/unistr/u32-startswith.c: Likewise.
79713         * lib/unistr/u32-stpcpy.c: Likewise.
79714         * lib/unistr/u32-stpncpy.c: Likewise.
79715         * lib/unistr/u32-strcat.c: Likewise.
79716         * lib/unistr/u32-strchr.c: Likewise.
79717         * lib/unistr/u32-strcmp.c: Likewise.
79718         * lib/unistr/u32-strcpy.c: Likewise.
79719         * lib/unistr/u32-strcspn.c: Likewise.
79720         * lib/unistr/u32-strdup.c: Likewise.
79721         * lib/unistr/u32-strlen.c: Likewise.
79722         * lib/unistr/u32-strmblen.c: Likewise.
79723         * lib/unistr/u32-strmbtouc.c: Likewise.
79724         * lib/unistr/u32-strncat.c: Likewise.
79725         * lib/unistr/u32-strncmp.c: Likewise.
79726         * lib/unistr/u32-strncpy.c: Likewise.
79727         * lib/unistr/u32-strnlen.c: Likewise.
79728         * lib/unistr/u32-strpbrk.c: Likewise.
79729         * lib/unistr/u32-strrchr.c: Likewise.
79730         * lib/unistr/u32-strspn.c: Likewise.
79731         * lib/unistr/u32-strstr.c: Likewise.
79732         * lib/unistr/u32-strtok.c: Likewise.
79733         * lib/unistr/u32-to-u16.c: Likewise.
79734         * lib/unistr/u32-to-u8.c: Likewise.
79735         * lib/unistr/u32-uctomb.c: Likewise.
79736         * lib/unistr/u8-check.c: Likewise.
79737         * lib/unistr/u8-chr.c: Likewise.
79738         * lib/unistr/u8-cmp.c: Likewise.
79739         * lib/unistr/u8-cpy-alloc.c: Likewise.
79740         * lib/unistr/u8-cpy.c: Likewise.
79741         * lib/unistr/u8-endswith.c: Likewise.
79742         * lib/unistr/u8-mblen.c: Likewise.
79743         * lib/unistr/u8-mbsnlen.c: Likewise.
79744         * lib/unistr/u8-mbtouc-aux.c: Likewise.
79745         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
79746         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
79747         * lib/unistr/u8-mbtouc.c: Likewise.
79748         * lib/unistr/u8-mbtoucr.c: Likewise.
79749         * lib/unistr/u8-move.c: Likewise.
79750         * lib/unistr/u8-next.c: Likewise.
79751         * lib/unistr/u8-prev.c: Likewise.
79752         * lib/unistr/u8-set.c: Likewise.
79753         * lib/unistr/u8-startswith.c: Likewise.
79754         * lib/unistr/u8-stpcpy.c: Likewise.
79755         * lib/unistr/u8-stpncpy.c: Likewise.
79756         * lib/unistr/u8-strcat.c: Likewise.
79757         * lib/unistr/u8-strchr.c: Likewise.
79758         * lib/unistr/u8-strcmp.c: Likewise.
79759         * lib/unistr/u8-strcpy.c: Likewise.
79760         * lib/unistr/u8-strcspn.c: Likewise.
79761         * lib/unistr/u8-strdup.c: Likewise.
79762         * lib/unistr/u8-strlen.c: Likewise.
79763         * lib/unistr/u8-strmblen.c: Likewise.
79764         * lib/unistr/u8-strmbtouc.c: Likewise.
79765         * lib/unistr/u8-strncat.c: Likewise.
79766         * lib/unistr/u8-strncmp.c: Likewise.
79767         * lib/unistr/u8-strncpy.c: Likewise.
79768         * lib/unistr/u8-strnlen.c: Likewise.
79769         * lib/unistr/u8-strpbrk.c: Likewise.
79770         * lib/unistr/u8-strrchr.c: Likewise.
79771         * lib/unistr/u8-strspn.c: Likewise.
79772         * lib/unistr/u8-strstr.c: Likewise.
79773         * lib/unistr/u8-strtok.c: Likewise.
79774         * lib/unistr/u8-to-u16.c: Likewise.
79775         * lib/unistr/u8-to-u32.c: Likewise.
79776         * lib/unistr/u8-uctomb-aux.c: Likewise.
79777         * lib/unistr/u8-uctomb.c: Likewise.
79778         * lib/unitypes.h: Likewise.
79779         * lib/uniwidth.h: Likewise.
79780         * lib/uniwidth/cjk.h: Likewise.
79781         * lib/uniwidth/u16-strwidth.c: Likewise.
79782         * lib/uniwidth/u16-width.c: Likewise.
79783         * lib/uniwidth/u32-strwidth.c: Likewise.
79784         * lib/uniwidth/u32-width.c: Likewise.
79785         * lib/uniwidth/u8-strwidth.c: Likewise.
79786         * lib/uniwidth/u8-width.c: Likewise.
79787         * lib/uniwidth/width.c: Likewise.
79789 2007-10-07  Bruno Haible  <bruno@clisp.org>
79791         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
79792         The file is still under LGPL (see modules/inttypes).
79794 2007-10-06  Bruno Haible  <bruno@clisp.org>
79796         * modules/trunc (Dependencies): Add 'extensions'.
79797         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
79798         Reported by Ben Pfaff <blp@gnu.org>.
79800 2007-10-06  Bruno Haible  <bruno@clisp.org>
79802         * modules/freopen-tests: New file.
79803         * tests/test-freopen.c: New file.
79805         * modules/fopen-tests: New file.
79806         * tests/test-fopen.c: New file.
79808         * modules/fopen: New file.
79809         * lib/fopen.c: New file.
79810         * m4/fopen.m4: New file.
79811         * modules/freopen: New file.
79812         * lib/freopen.c: New file.
79813         * m4/freopen.m4: New file.
79814         * lib/stdio.in.h (fopen, freopen): New declarations.
79815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
79816         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
79817         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
79818         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
79819         * doc/functions/fopen.texi: Mention the 'fopen' module.
79820         * doc/functions/freopen.texi: Mention the 'freopen' module.
79822 2007-10-06  Bruno Haible  <bruno@clisp.org>
79824         * modules/open-tests: New file.
79825         * tests/test-open.c: New file.
79827         * modules/open: New file.
79828         * lib/open.c: New file.
79829         * m4/open.m4: New file.
79830         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
79831         lib/open.c does.
79832         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
79833         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
79834         macros.
79835         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
79836         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
79837         REPLACE_OPEN.
79838         * doc/functions/open.texi: Mention the 'open' module.
79840 2007-10-04  Bruno Haible  <bruno@clisp.org>
79842         * modules/ceill-tests: New file.
79843         * tests/test-ceill.c: New file.
79845         * modules/ceill: New file.
79846         * lib/ceill.c: Replace entire file.
79847         * m4/ceill.m4: New file.
79848         * lib/math.in.h (ceill): Replace declaration.
79849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
79850         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
79851         * doc/functions/ceill.texi: Mention the 'ceill' module.
79852         * modules/mathl (Files): Remove lib/ceill.c.
79853         (Depends-on): Add ceill.
79855 2007-10-04  Bruno Haible  <bruno@clisp.org>
79857         * modules/ceilf-tests: New file.
79858         * tests/test-ceilf.c: New file.
79860         * modules/ceilf: New file.
79861         * lib/ceil.c: New file.
79862         * lib/ceilf.c: New file.
79863         * m4/ceilf.m4: New file.
79864         * lib/math.in.h (ceilf): New declaration.
79865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
79866         HAVE_DECL_CEILF.
79867         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
79868         HAVE_DECL_CEILF.
79869         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
79871 2007-10-04  Bruno Haible  <bruno@clisp.org>
79873         * modules/floorl-tests: New file.
79874         * tests/test-floorl.c: New file.
79876         * modules/floorl: New file.
79877         * lib/floorl.c: Replace entire file.
79878         * m4/floorl.m4: New file.
79879         * lib/math.in.h (floorl): Replace declaration.
79880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
79881         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
79882         * doc/functions/floorl.texi: Mention the 'floorl' module.
79883         * modules/mathl (Files): Remove lib/floorl.c.
79884         (Depends-on): Add floorl.
79886 2007-10-04  Bruno Haible  <bruno@clisp.org>
79888         * modules/floorf-tests: New file.
79889         * tests/test-floorf.c: New file.
79891         * modules/floorf: New file.
79892         * lib/floor.c: New file.
79893         * lib/floorf.c: New file.
79894         * m4/floorf.m4: New file.
79895         * lib/math.in.h (floorf): New declaration.
79896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
79897         HAVE_DECL_FLOORF.
79898         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
79899         HAVE_DECL_FLOORF.
79900         * doc/functions/floorf.texi: Mention the 'floorf' module.
79902 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
79903             Bruno Haible  <bruno@clisp.org>
79905         Advertise for the Git server instead of the CVS server.
79906         * doc/gnulib-intro.texi (Steady Development): Mention the Git
79907         repository instead of the CVS one.
79908         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
79909         about all VCS systems generically.
79910         * doc/gnulib.texi (Introduction): Capitalize `Git'.
79912 2007-10-04  Bruno Haible  <bruno@clisp.org>
79914         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
79915         means.
79916         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
79918 2007-10-04  Bruno Haible  <bruno@clisp.org>
79920         * modules/truncl-tests: New file.
79921         * tests/test-truncl.c: New file.
79923         * modules/truncl: New file.
79924         * lib/truncl.c: New file.
79925         * m4/truncl.m4: New file.
79926         * lib/math.in.h (truncl): New declaration.
79927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
79928         HAVE_DECL_TRUNCL.
79929         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
79930         HAVE_DECL_TRUNCL.
79931         * doc/functions/truncl.texi: Mention the 'truncl' module.
79933 2007-10-04  Bruno Haible  <bruno@clisp.org>
79935         * modules/truncf-tests: New file.
79936         * tests/test-truncf.c: New file.
79938         * modules/truncf: New file.
79939         * lib/trunc.c: Make paramerizable through USE_* macros.
79940         * lib/truncf.c: New file.
79941         * m4/truncf.m4: New file.
79942         * lib/math.in.h (truncf): New declaration.
79943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
79944         HAVE_DECL_TRUNCF.
79945         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
79946         HAVE_DECL_TRUNCF.
79947         * doc/functions/truncf.texi: Mention the 'truncf' module.
79949 2007-10-03  Bruno Haible  <bruno@clisp.org>
79951         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
79952         augmentation also for tests modules.
79953         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
79954         * modules/atexit-tests (Makefile.am): Likewise.
79955         * modules/binary-io-tests (Makefile.am): Likewise.
79956         * modules/c-strcase-tests (Makefile.am): Likewise.
79957         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
79958         * modules/canonicalize-tests (Makefile.am): Likewise.
79959         * modules/closein-tests (Makefile.am): Likewise.
79960         * modules/fprintf-posix-tests (Makefile.am): Likewise.
79961         * modules/freadahead-tests (Makefile.am): Likewise.
79962         * modules/fseek-tests (Makefile.am): Likewise.
79963         * modules/fseeko-tests (Makefile.am): Likewise.
79964         * modules/ftell-tests (Makefile.am): Likewise.
79965         * modules/ftello-tests (Makefile.am): Likewise.
79966         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
79967         * modules/isnanl-tests (Makefile.am): Likewise.
79968         * modules/lseek-tests (Makefile.am): Likewise.
79969         * modules/mbscasecmp-tests (Makefile.am): Likewise.
79970         * modules/mbscasestr-tests (Makefile.am): Likewise.
79971         * modules/mbschr-tests (Makefile.am): Likewise.
79972         * modules/mbscspn-tests (Makefile.am): Likewise.
79973         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
79974         * modules/mbspbrk-tests (Makefile.am): Likewise.
79975         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
79976         * modules/mbsrchr-tests (Makefile.am): Likewise.
79977         * modules/mbsspn-tests (Makefile.am): Likewise.
79978         * modules/mbsstr-tests (Makefile.am): Likewise.
79979         * modules/printf-posix-tests (Makefile.am): Likewise.
79980         * modules/snprintf-posix-tests (Makefile.am): Likewise.
79981         * modules/sprintf-posix-tests (Makefile.am): Likewise.
79982         * modules/tsearch-tests (Makefile.am): Likewise.
79983         * modules/uniname/uniname-tests (Makefile.am): Likewise.
79984         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
79985         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
79986         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
79987         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
79988         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
79989         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
79990         * modules/vprintf-posix-tests (Makefile.am): Likewise.
79991         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
79992         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
79993         * modules/xstrtoimax-tests (Makefile.am): Likewise.
79994         * modules/xstrtol-tests (Makefile.am): Likewise.
79995         * modules/xstrtoumax-tests (Makefile.am): Likewise.
79996         * modules/yesno-tests (Makefile.am): Likewise.
79998 2007-10-03  Bruno Haible  <bruno@clisp.org>
80000         * modules/trunc-tests: New file.
80001         * tests/test-trunc.c: New file.
80003         * modules/trunc: New file.
80004         * lib/trunc.c: New file.
80005         * m4/trunc.m4: New file.
80006         * lib/math.in.h (trunc): New declaration.
80007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
80008         HAVE_DECL_TRUNC.
80009         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
80010         HAVE_DECL_TRUNC.
80011         * doc/functions/trunc.texi: Mention the 'trunc' module.
80013 2007-10-03  Bruno Haible  <bruno@clisp.org>
80015         * tests/test-fpending.c: New file, mostly copied
80016         from coreutils/lib/t-fpending.c.
80017         * modules/fpending-tests: New file.
80019 2007-10-03  Bruno Haible  <bruno@clisp.org>
80021         Port the stdio extensions to QNX (untested).
80022         * lib/fseterr.c (fseterr): Add support for QNX.
80023         * lib/fbufmode.c (fbufmode): Likewise.
80024         * lib/freadable.c (freadable): Likewise.
80025         * lib/fwritable.c (fwritable): Likewise.
80026         * lib/freading.c (freading): Likewise.
80027         * lib/fwriting.c (fwriting): Likewise.
80028         * lib/freadahead.c (freadahed): Likewise.
80029         * lib/fpurge.c (fpurge): Likewise.
80030         * lib/fseeko.c (rpl_fseeko): Likewise.
80032 2007-10-03  Bruno Haible  <bruno@clisp.org>
80033             Jim Meyering  <jim@meyering.net>
80034             Eric Blake  <ebb9@byu.net>
80036         * doc/relocatable.texi: Use @command instead of @program.
80038 2007-10-02  Jim Meyering  <jim@meyering.net>
80040         Perform one more "_.h" -> ".in.h" substitution.
80041         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
80042         instead of unistd_.h here, too.
80044 2007-10-01  Bruno Haible  <bruno@clisp.org>
80046         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
80047         Needed for the alloca-opt module.
80049 2007-09-30  Bruno Haible  <bruno@clisp.org>
80051         * lib/alloca.in.h: Renamed from lib/alloca_.h.
80052         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
80053         alloca_.h.
80054         * lib/argz.in.h: Renamed from lib/argz_.h.
80055         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
80056         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
80057         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
80058         byteswap_.h.
80059         * lib/dirent.in.h: Renamed from lib/dirent_.h.
80060         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
80061         dirent_.h.
80062         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
80063         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
80064         fcntl_.h.
80065         * lib/float.in.h: Renamed from lib/float_.h.
80066         * modules/float (Files, Makefile.am): Use float.in.h instead of
80067         float_.h.
80068         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
80069         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
80070         fnmatch_.h.
80071         * lib/getopt.in.h: Renamed from lib/getopt_.h.
80072         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
80073         getopt_.h.
80074         * lib/glob.in.h: Renamed from lib/glob_.h.
80075         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
80076         * lib/iconv.in.h: Renamed from lib/iconv_.h.
80077         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
80078         iconv_.h.
80079         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
80080         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
80081         inttypes_.h.
80082         * lib/locale.in.h: Renamed from lib/locale_.h.
80083         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
80084         locale_.h.
80085         * lib/math.in.h: Renamed from lib/math_.h.
80086         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
80087         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
80088         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
80089         of netinet_in_.h. Add dependency.
80090         * lib/poll.in.h: Renamed from lib/poll_.h.
80091         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
80092         * lib/search.in.h: Renamed from lib/search_.h.
80093         * modules/search (Files, Makefile.am): Use search.in.h instead of
80094         search_.h.
80095         * lib/signal.in.h: Renamed from lib/signal_.h.
80096         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
80097         _signal.h.
80098         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
80099         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
80100         stdbool_.h.
80101         * lib/stdint.in.h: Renamed from lib/stdint_.h.
80102         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
80103         stdint_.h.
80104         * lib/stdio.in.h: Renamed from lib/stdio_.h.
80105         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
80106         stdio_.h.
80107         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
80108         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
80109         stdlib_.h.
80110         * lib/string.in.h: Renamed from lib/string_.h.
80111         * modules/string (Files, Makefile.am): Use string.in.h instead of
80112         string_.h.
80113         * doc/gnulib-tool.texi (Initial import): Update.
80114         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
80115         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
80116         of sys_select_.h. Add dependency.
80117         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
80118         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
80119         of sys_socket_.h.
80120         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
80121         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
80122         sys_stat_.h.
80123         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
80124         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
80125         sys_time_.h.
80126         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
80127         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
80128         sysexits_.h.
80129         * lib/time.in.h: Renamed from lib/time_.h.
80130         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
80131         * lib/unistd.in.h: Renamed from lib/unistd_.h.
80132         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
80133         unistd_.h.
80134         * lib/wchar.in.h: Renamed from lib/wchar_.h.
80135         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
80136         wchar_.h.
80137         * lib/wctype.in.h: Renamed from lib/wctype_.h.
80138         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
80139         wctype_.h.
80140         * build-aux/bootstrap (slurp): Update.
80141         * lib/.cppi-disable: Update.
80143 2007-09-30  Bruno Haible  <bruno@clisp.org>
80145         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
80146         Needed on BeOS.
80148 2007-09-30  Bruno Haible  <bruno@clisp.org>
80150         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
80152 2007-09-29  Bruno Haible  <bruno@clisp.org>
80154         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
80156 2007-09-29  Bruno Haible  <bruno@clisp.org>
80158         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
80159         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
80160         * build-aux/install-reloc: Compile also areadlink.c.
80161         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
80163 2007-09-29  Bruno Haible  <bruno@clisp.org>
80165         * gnulib-tool (func_emit_initmacro_done): Indentation.
80167 2007-09-29  Bruno Haible  <bruno@clisp.org>
80169         * README: Add CVS checkout update instructions.
80170         Info from Bob Proulx <bob@proulx.com>.
80172 2007-09-28  Eric Blake  <ebb9@byu.net>
80174         Provide move-if-change.
80175         * build-aux/move-if-change: New file, based on best practice
80176         rather than any canonical upstream location.
80178 2007-09-28  Jim Meyering  <jim@meyering.net>
80180         Fix canonicalize loop-detection corner case.
80181         Do not attempt to stat the symlink values stored via seen_triple.
80182         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
80183         on linux-2.6.18, (but not 2.6.22).
80184         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
80185         triple_compare.  The former compares dev,ino,filename, while the latter
80186         would actually stat dirname(filename) when dev and ino were equal.
80187         * lib/hash-triple.c: Install <string.h>.
80188         (STREQ): Define.
80189         (triple_compare_ino_str): New function.
80190         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
80192 2007-09-28  Eric Blake  <ebb9@byu.net>
80194         Enforce that AC_REPLACE_FUNCS files exist.
80195         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
80196         override check for typos.
80198         Fix test-closein on Solaris 10.
80199         * tests/test-closein.c (main): Don't assume stdin can be inherited
80200         closed on all systems.
80201         * tests/test-closein.sh: Likewise.
80202         Reported by Piotr Tarnowski.
80204 2007-09-28  Jim Meyering  <jim@meyering.net>
80206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
80208 2007-09-27  Jim Meyering  <jim@meyering.net>
80210         canonicalize: Avoid a false-positive cycle failure.
80211         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
80212         Sort.  Remove cycle-check.
80213         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
80214         not cycle-check.h.
80215         (seen_triple): New function.
80216         (canonicalize_filename_mode): Use it instead of cycle-check.
80217         * tests/test-canonicalize.c: Add a test for this bug.
80218         * tests/test-canonicalize.sh: Set up and run the test.
80220         New module, file-set, from coreutils.
80221         * modules/file-set: Define it.
80222         * lib/file-set.c, lib/file-set.h: Implement.
80224         New module, hash-triple, from coreutils.
80225         * modules/hash-triple: Define it.
80226         * lib/hash-triple.c, lib/hash-triple.h: Implement.
80228 2007-09-25  Eric Blake  <ebb9@byu.net>
80230         Fix strerror on Interix.
80231         * lib/string_.h (strerror): Declare replacement.
80232         * doc/functions/strerror.texi (strerror): Document the Interix
80233         shortcoming.
80234         * modules/string (Makefile.am): Support new hooks.
80235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
80236         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
80237         gl_FUNC_STRERROR_SEPARATE.
80238         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
80239         * lib/strerror.c (rpl_strerror): Provide replacement.
80240         * modules/strerror (Depends-on): Add string.
80241         (configure.ac): Detect use of module.
80242         * tests/test-strerror.c: New file.
80243         * modules/strerror-tests: New test module.
80244         * modules/argp (Depends-on): Add strerror.
80245         * modules/error (Depends-on): Likewise.
80246         Reported by Martin Koeppe.
80248 2007-09-24  Bruno Haible  <bruno@clisp.org>
80250         * README: Update git instructions.
80252 2007-09-24  Eric Blake  <ebb9@byu.net>
80254         Revert fpending breakage from 2007-09-08.
80255         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
80256         __fpending.c.
80258 2007-09-24  Jim Meyering  <jim@meyering.net>
80260         filenamecat.c: Add a test.
80261         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
80262         showing how the function works when DIR is the empty string.
80264 2007-09-21  Simon Josefsson  <simon@josefsson.org>
80266         * tests/test-canonicalize.sh: Turn on executable bit.
80268 2007-09-19  Eric Blake  <ebb9@byu.net>
80270         * README: Update CVS instructions.
80272 2007-09-18  Bruno Haible  <bruno@clisp.org>
80274         * modules/areadlink: New file.
80275         * lib/areadlink.h (areadlink): New declaration.
80276         * lib/areadlink.c: New file, based on lib/xreadlink.c.
80278 2007-09-17  Jim Meyering  <jim@meyering.net>
80280         * lib/savewd.c (ESTALE) [!defined]: Define.
80281         Reported to be required on Interix by Martin Koeppe.
80283 2007-09-17  Bruno Haible  <bruno@clisp.org>
80285         * gnulib-tool (func_version): Use $version.
80287 2007-09-16  Bruno Haible  <bruno@clisp.org>
80289         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
80290         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
80291         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
80292         Reported by Greg Schafer <gschafer@zip.com.au>.
80294 2007-09-15  Bruno Haible  <bruno@clisp.org>
80296         * gnulib-tool (sed): Try a little harder to make bash understand the
80297         alias.
80298         Reported by Bruce Korb <bruce.korb@gmail.com>.
80300 2007-09-13  Eric Blake  <ebb9@byu.net>
80302         * ChangeLog: Remove conflict markers.
80304 2007-09-13  Simon Josefsson  <simon@josefsson.org>
80306         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
80307         Reported by Bruno Haible <bruno@clisp.org>.
80309 2007-09-12  Bruno Haible  <bruno@clisp.org>
80311         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
80312         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
80313         is not defined.
80315 2007-09-12  Eric Blake  <ebb9@byu.net>
80317         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
80318         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
80319         Autoconf definition.
80320         * modules/euidaccess (Depends-on): Add extensions, for
80321         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
80322         * modules/fnmatch (Depends-on): Likewise.
80323         * modules/getaddrinfo (Depends-on): Likewise.
80324         * modules/getdelim (Depends-on): Likewise.
80325         * modules/getline (Depends-on): Likewise.
80326         * modules/getsubopt (Depends-on): Likewise.
80327         * modules/gettext (Depends-on): Likewise.
80328         * modules/group-member (Depends-on): Likewise.
80329         * modules/mbchar (Depends-on): Likewise.
80330         * modules/memmem (Depends-on): Likewise.
80331         * modules/mempcpy (Depends-on): Likewise.
80332         * modules/memrchr (Depends-on): Likewise.
80333         * modules/pagealign_alloc (Depends-on): Likewise.
80334         * modules/readutmp (Depends-on): Likewise.
80335         * modules/stpcpy (Depends-on): Likewise.
80336         * modules/stpncpy (Depends-on): Likewise.
80337         * modules/strchrnul (Depends-on): Likewise.
80338         * modules/strndup (Depends-on): Likewise.
80339         * modules/strsep (Depends-on): Likewise.
80340         * modules/strverscmp (Depends-on): Likewise.
80341         * modules/vasprintf (Depends-on): Likewise.
80342         * modules/wcwidth (Depends-on): Likewise.
80343         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
80344         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
80345         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
80346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
80347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80348         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80349         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
80350         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80351         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
80352         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
80353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
80354         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
80355         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
80356         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
80357         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
80358         * m4/readutmp.m4 (gl_READUTMP): Likewise.
80359         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
80360         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
80361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
80362         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
80363         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
80364         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
80365         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
80366         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
80367         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
80368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
80369         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
80370         so that lock.m4 can be used in gettext without extensions module.
80372 2007-09-11  Bruno Haible  <bruno@clisp.org>
80374         * m4/isc-posix.m4: Remove file.
80375         Suggested by Eric Blake.
80377 2007-09-11  Eric Blake  <ebb9@byu.net>
80379         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
80381 2007-09-10  Bruno Haible  <bruno@clisp.org>
80383         * posix-modules: Fix typo in error message.
80384         Reported by Matt <mkraai@beckman.com>.
80386 2007-09-09  Bruno Haible  <bruno@clisp.org>
80388         * doc/functions/getdelim.texi: Update list of platforms lacking the
80389         function.
80390         * doc/functions/getline.texi: Likewise.
80392 2007-09-09  Jim Meyering  <jim@meyering.net>
80394         * lib/hash.c (hash_initialize): Detect calloc failure.
80395         Reported by Bruno Haible.
80397 2007-09-09  Bruno Haible  <bruno@clisp.org>
80399         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
80400         malloc or realloc fails.
80402 2007-09-09  Bruno Haible  <bruno@clisp.org>
80404         * modules/getcwd (Depends-on): Add malloc-posix.
80405         * modules/glob (Depends-on): Likewise.
80406         * modules/putenv (Depends-on): Likewise.
80407         * modules/strdup (Depends-on): Likewise.
80408         * modules/getdelim (Depends-on): Add realloc-posix.
80409         * modules/read-file (Depends-on): Likewise.
80411 2007-09-09  Bruno Haible  <bruno@clisp.org>
80413         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
80414         (gl_FUNC_MALLOC_POSIX): Require it.
80415         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
80416         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
80417         * modules/realloc (Files): Add m4/malloc.m4.
80418         * modules/calloc (Files): Likewise.
80420 2007-09-09  Bruno Haible  <bruno@clisp.org>
80422         * modules/malloc-posix: New file.
80423         * modules/malloc (Depends-on): Add malloc-posix.
80424         * lib/malloc.c: Include errno.h.
80425         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
80426         and a POSIX-compatible malloc into a single function. Set ENOMEM
80427         when returning NULL.
80428         * m4/malloc.m4: New file.
80429         * doc/functions/malloc.texi: Mention the malloc-posix module.
80430         * lib/stdlib_.h (malloc): New declaration.
80431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80432         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
80433         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
80434         and HAVE_MALLOC_POSIX.
80436 2007-09-09  Bruno Haible  <bruno@clisp.org>
80438         * modules/realloc-posix: New file.
80439         * modules/realloc (Depends-on): Add realloc-posix.
80440         * lib/realloc.c: Include errno.h.
80441         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
80442         and a POSIX-compatible realloc into a single function. Set ENOMEM
80443         when returning NULL.
80444         * m4/realloc.m4: New file.
80445         * doc/functions/realloc.texi: Mention the realloc-posix module.
80446         * lib/stdlib_.h (realloc): New declaration.
80447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80448         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
80449         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
80450         and HAVE_REALLOC_POSIX.
80452 2007-09-09  Bruno Haible  <bruno@clisp.org>
80454         * modules/calloc-posix: New file.
80455         * modules/calloc (Depends-on): Add calloc-posix.
80456         * lib/calloc.c: Include errno.h.
80457         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
80458         and a POSIX-compatible calloc into a single function. Set ENOMEM
80459         when returning NULL.
80460         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
80461         * doc/functions/calloc.texi: Mention the calloc-posix module.
80462         * lib/stdlib_.h (calloc): New declaration.
80463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80464         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
80465         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
80466         and HAVE_CALLOC_POSIX.
80468 2007-09-09  Bruno Haible  <bruno@clisp.org>
80470         Allow for modules to show an arbitrary notice.
80471         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
80472         * gnulib-tool: New option --extract-notice.
80473         (func_usage): Document it.
80474         (sed_extract_prog): Update.
80475         (func_get_notice): New function.
80476         (func_modules_notice): New function.
80477         (func_import, func_create_testdir): Invoke it.
80478         Suggested by Jim Meyering.
80480 2007-09-09  Bruno Haible  <bruno@clisp.org>
80482         * gnulib-tool: New options --verbose, --quiet.
80483         (func_usage): Document them.
80484         (verbose): New variable.
80485         (func_execute_command): New function.
80486         (func_import): Don't show the module list and the file list if
80487         $verbose < 0.
80488         (func_create_testdir): Likewise. Use func_execute_command.
80489         (func_create_megatestdir): Use func_execute_command.
80491 2007-09-08  Bruno Haible  <bruno@clisp.org>
80493         * gnulib-tool (func_import): Prefer rsync over wget when available,
80494         for fetching the PO files.
80496 2007-09-08  Bruno Haible  <bruno@clisp.org>
80498         * posix-modules: New file. Portions copied from gnulib-tool.
80499         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
80501 2007-09-08  Jim Meyering  <jim@meyering.net>
80503         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
80504         * lib/fpending.h: Rename from __fpending.h.
80505         * lib/fpending.c: Rename from __fpending.c.
80506         Include "fpending.h", not "__fpending.h".
80507         * lib/__fpending.h, lib/__fpending.c: Remove files.
80508         * modules/fpending (Files): Reflect new file names.
80509         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
80511 2007-09-08  Bruno Haible  <bruno@clisp.org>
80513         * m4/inttypes-h.m4: Remove stub file.
80515 2007-09-07  Simon Josefsson  <simon@josefsson.org>
80517         * doc/headers/stdint.texi: Discuss #include_next issue.
80519 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80521         * build-aux/bootstrap: Remove obsolete comment about wget --help.
80523 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80525         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
80526         in variable name.
80528 2007-09-03  Jim Meyering  <jim@meyering.net>
80530         New module: git-version-gen.
80531         * modules/git-version-gen: New file.
80533         Import changes from coreutils for bootstrap script.
80535         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
80537         bootstrap: uses rsync to download the .po files
80538         * build-aux/bootstrap (po_download_command_format): New global.
80539         (download_po_files): Use rsync.
80540         (update_po_files): Don't remove .po files after download,
80541         so future rsync runs can take advantage of the copies.
80543         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
80545         Solve the unnecessary-.po-file-regeneration problem once and for all.
80546         * build-aux/bootstrap (download_po_files): New function, renamed from
80547         get_translations.  Now, downloads, but doesn't update LINGUAS.
80548         (update_po_files): New function.
80550         bootstrap: Ignore more.
80551         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
80552         uniwidth to e.g., lib/.gitignore.
80553         (slurp): Handle the sys_stat_.h -> sys mapping, too.
80555         * build-aux/bootstrap: New setting: vc_ignore.
80556         (insert_sorted_if_absent): Create $file if absent.
80557         Adapt to new, possibly empty, list: $vc_ignore.
80559         bootstrap: generate more ignorable names
80560         * build-aux/bootstrap (slurp): When generating ignorable names,
80561         also map .sin to .sed, .gperf to .c, and .y to .c.
80563 2007-09-03  Jim Meyering  <jim@meyering.net>
80565         * build-aux/git-version-gen: New file, from coreutils.  For details, see
80566         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
80568 2007-09-02  Bruno Haible  <bruno@clisp.org>
80570         Fix mis-recognition of 'mcs' on QNX 6.
80571         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
80572         output contains the string "Mono".
80573         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
80574         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
80576 2007-09-01  Bruno Haible  <bruno@clisp.org>
80578         Fix collision between uniwidth/* and linebreak modules.
80579         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
80580         u32_width): Remove declarations.
80581         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
80582         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
80583         streq3, streq2, streq1, streq0): Remove functions.
80584         (STREQ): Remove macro.
80585         (is_cjk_encoding): Remove function.
80586         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
80587         (uc_width, u8_width, u16_width, u32_width): Remove functions.
80588         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
80589         * NEWS: Document the change.
80591 2007-09-01  Bruno Haible  <bruno@clisp.org>
80593         * lib/streq.h: Add double-inclusion guard.
80595 2007-09-01  Karl Berry  <karl@gnu.org>
80597         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
80599 2007-08-28  Jim Meyering  <jim@meyering.net>
80601         Rename mreadlink_with_size to areadlink_with_size.
80602         * NEWS: Document the change.
80603         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
80604         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
80605         * lib/mreadlink.h: Rename this to...
80606         * lib/areadlink.h: ...this.
80607         * modules/mreadlink-with-size: Rename this to...
80608         * modules/areadlink-with-size: ...this.
80609         * lib/canonicalize.c: Reflect the renaming.
80610         * modules/canonicalize: Likewise.
80612 2007-08-26  Bruno Haible  <bruno@clisp.org>
80614         * gnulib-tool (func_import): When deciding which files to remove,
80615         consider also dangling symbolic links.
80616         Reported by Eric Blake.
80618 2007-08-26  Bruno Haible  <bruno@clisp.org>
80620         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
80622 2007-08-23  Simon Josefsson  <simon@josefsson.org>
80624         * lib/readline.c: Don't include getline.h, the prototype is now
80625         found in stdio.h.
80627 2007-08-23  Jim Meyering  <jim@meyering.net>
80629         Getdelim touchup.
80630         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
80631         around the funlockfile call, since funlockfile never sets errno.
80632         Don't set errno upon failed realloc.
80634 2007-08-22  Eric Blake  <ebb9@byu.net>
80636         Getline touchups.
80637         * lib/getdelim.c (getdelim): Revert regression that required *n to
80638         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
80639         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
80640         getdelim, rather than whether implementation is missing.
80641         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
80642         * lib/stdio_.h (getline): Also declare if replacement is
80643         required.
80644         * doc/functions/getdelim.texi: New file.
80645         * doc/functions/getline.texi: Likewise.
80646         * doc/gnulib.texi (Function Substitutes): Add new files.
80647         Reported by Bruno Haible.
80649 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
80651         * users.txt: Add Guile.
80653 2007-08-22  Eric Blake  <ebb9@byu.net>
80655         * tests/test-getdelim.c (main): Use remove, not unlink.
80656         * tests/test-getline.c (main): Likewise.
80658         Move getline and getdelim into stdio.h, per POSIX 200x.
80659         * modules/getline (Files): Remove getline.h.
80660         (Depends-on): Add stdio.
80661         (configure.ac): Add module indicator.
80662         * modules/getdelim (Files): Remove getdelim.h.
80663         (Depends-on): Add stdio.
80664         (configure.ac): Add module indicator.
80665         * modules/stdio (Makefile.am): Work with new indicators.
80666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80667         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
80668         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80669         * lib/getdelim.h: Delete.
80670         * lib/getline.h: Delete.
80671         * lib/stdio_.h (getdelim, getline): Declare.
80672         * modules/getdelim-tests: New module.
80673         * modules/getline-tests: Likewise.
80674         * tests/test-getdelim.c: New file.
80675         * tests/test-getline.c: Likewise.
80676         * NEWS: Document the change.
80677         * lib/getline.c: Update choice of header.
80678         * lib/csharpcomp.c: Likewise.
80679         * lib/getpass.c: Likewise.
80680         * lib/javacomp.c: Likewise.
80681         * lib/javaversion.c: Likewise.
80682         * lib/yesno.c: Likewise.
80683         * lib/getdelim.c: Likewise.
80684         (getdelim): Set errno on failure, and avoid memory leak.
80686 2007-08-19  Bruno Haible  <bruno@clisp.org>
80688         * modules/closein (Depends-on): Add freadahead.
80689         * lib/closein.c: Include freadahead.h.
80690         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
80691         is zero.
80693 2007-08-19  Bruno Haible  <bruno@clisp.org>
80695         * modules/freadahead-tests: New file.
80696         * tests/test-freadahead.sh: New file.
80697         * tests/test-freadahead.c: New file.
80699         * modules/freadahead: New file.
80700         * lib/freadahead.h: New file.
80701         * lib/freadahead.c: New file.
80702         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
80703         fbufmode, fpurge, freadable, fwritable.
80705 2007-08-19  Eric Blake  <ebb9@byu.net>
80707         Test yesno in combination with closein.
80708         * lib/yesno.c (yesno): Document use of stdin.
80709         * modules/yesno-tests (Files): New module.
80710         * tests/test-yesno.c (main): New file.
80711         * tests/test-yesno.sh: Likewise.
80713 2007-08-19  Bruno Haible  <bruno@clisp.org>
80715         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
80716         * lib/fseeko.c (rpl_fseeko): Likewise.
80717         * lib/fseterr.c (fseterr): Likewise.
80719 2007-08-19  Bruno Haible  <bruno@clisp.org>
80721         * tests/test-lseek.c (main): Disable a test for BeOS.
80722         * doc/functions/lseek.texi: Document the BeOS bug.
80724 2007-08-19  Bruno Haible  <bruno@clisp.org>
80725             Eric Blake  <ebb9@byu.net>
80727         * lib/lseek.c: Include <sys/stat.h>.
80728         (rpl_lseek): Add workaround code also for Unix platforms.
80729         Needed for BeOS.
80730         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
80731         * doc/functions/lseek.texi: Document BeOS definiency.
80733 2007-08-18  Bruno Haible  <bruno@clisp.org>
80735         * modules/fstrcmp-tests: New file.
80736         * tests/test-fstrcmp.c: New file.
80738 2007-08-18  Bruno Haible  <bruno@clisp.org>
80740         * modules/fstrcmp: New file, from GNU gettext with modifications.
80741         * lib/fstrcmp.h: New file, from GNU gettext.
80742         * lib/fstrcmp.c: New file, from GNU gettext.
80743         * MODULES.html.sh (String handling): Add fstrcmp.
80745 2007-08-18  Bruno Haible  <bruno@clisp.org>
80747         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
80748         'bool'.
80749         (diag, compareseq): Remove const from the ctxt argument.
80750         (USE_HEURISTIC): Undefine at the end.
80752 2007-08-18  Jim Meyering  <jim@meyering.net>
80754         New file: lib/idcache.h
80755         * NEWS: Mention the addition.
80756         * modules/idcache (Files): Add lib/idcache.h
80757         * lib/idcache.c: Include "idcache.h".
80758         Don't include <sys/types.h>.
80759         Add a FIXME comment.
80760         Move file-scoped "static" declarations to the top.
80761         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
80763 2007-08-17  Bruno Haible  <bruno@clisp.org>
80764         and Paul Eggert  <eggert@cs.ucla.edu>
80766         * MODULES.html.sh: Add diffseq.
80767         * modules/diffseq: New file.
80768         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
80769         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
80771 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80773         Import changes from coreutils for bootstrap script.
80775         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
80777         * build-aux/bootstrap (slurp): Work even in environments where
80778         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
80779         current code does not slurp files whose names start with ".", and
80780         this looks like it might be a troublesome area.
80782         2007-07-11  Jim Meyering  <jim@meyering.net>
80784         If there's a GPL vN copyright comment, require that N == 3.
80786         2007-07-08  Jim Meyering  <jim@meyering.net>
80788         Run the coreutils-specific code only if tests/Makefile.am.in exists.
80789         * build-aux/bootstrap (mam_template): Move definition out of loop.
80791         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
80793         * build-aux/bootstrap (symlink_to_dir): Rename function from
80794         symlink_to_gnulib.  Add a directory parameter.  Update all
80795         callers.
80796         (cp_mark_as_generated): Also check for -- and link to -- files in
80797         gl/.
80799         2007-07-08  Jim Meyering  <jim@meyering.net>
80801         Adapt to deeper hierarchy in gnulib.
80802         * build-aux/bootstrap (symlink_to_dir): If the destination
80803         directory doesn't exist, create it. This is required at least for
80804         "lib/uniwidth/cjk.h".
80806         2007-05-15  Jim Meyering  <jim@meyering.net>
80808         * build-aux/bootstrap: Now that generated Makefile.am files
80809         are no longer under version control, they must be created at
80810         bootstrap time.
80812 2007-08-14  Ben Pfaff  <blp@gnu.org>
80814         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
80816 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80818         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
80819         given the changes below.
80820         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
80821         even on hosts that have padding bits beyond the supported 64.
80823 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80825         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
80826         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
80827         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
80828         depends on it.
80829         (xstrtol_error): Remove.
80830         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
80831         but with a different signature.
80832         (ATTRIBUTE_NORETURN, __attribute__): New macros.
80833         * lib/xstrtol-error.c: Include exitfail.h.
80834         (xstrtol_fatal): New function, with a different signature from the
80835         old xstrtol_error, so that the caller need not worry about passing
80836         in an exit status, or about storage management of the option argument.
80837         (xstrtol_error): Now a static function.  Redo signature to
80838         implement xstrtol_fatal.  Output the correct number of hyphens in
80839         front of the option so that the caller need not worry about
80840         storage management.
80841         (N_): New macro.
80842         (_): Remove; not used now.
80843         * modules/xstrtol: Depend on getopt.
80844         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
80845         of old STRTOL_FATAL_ERROR macro.
80846         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
80847         of test program.
80848         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
80849         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
80851 2007-08-08  Eric Blake  <ebb9@byu.net>
80853         * lib/xstrtol-error.c: Add missing include.
80855         Move xstrtol messages into gnulib domain, when --pobase is used.
80856         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
80857         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
80858         * modules/xstrtol (Files): Distribute new file.
80859         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
80860         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
80861         * tests/test-xstrtol.c: ...into new file.
80862         * tests/test-xstrtoul.c: Also test xstrtoul.
80863         * tests/test-xstrtoimax.c: Also test xstrtoimax.
80864         * tests/test-xstrtoumax.c: Also test xstrtoumax.
80865         * tests/test-xstrtol.sh: Drive the tests.
80866         * tests/test-xstrtoimax.sh: Likewise.
80867         * tests/test-xstrtoumax.sh: Likewise.
80868         * modules/xstrtol-tests: New module.
80869         * modules/xstrtoimax-tests: Likewise.
80870         * modules/xstrtoumax-tests: Likewise.
80872 2007-08-08  Jim Meyering  <jim@meyering.net>
80874         New function: mfile_name_concat.
80875         * lib/filenamecat.c (mfile_name_concat): New function, just like
80876         file_name_concat, but return NULL upon failure rather than exiting
80877         with a diagnostic.
80878         * lib/filenamecat.h: Declare it.
80880 2007-08-07  Bruno Haible  <bruno@clisp.org>
80882         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
80883         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
80884         warning from gcc.
80885         Reported by Eric Blake.
80887 2007-08-07  Simon Josefsson  <simon@josefsson.org>
80889         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
80890         * modules/crypto/arcfour (License): Likewise.
80891         * modules/crypto/des-tests (License): Likewise.
80892         * modules/crypto/gc-arctwo-tests (License): Likewise.
80893         * modules/crypto/gc-des-tests (License): Likewise.
80894         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
80895         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
80896         * modules/crypto/gc-md2-tests (License): Likewise.
80897         * modules/crypto/gc-md4-tests (License): Likewise.
80898         * modules/crypto/gc-md5-tests (License): Likewise.
80899         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
80900         * modules/crypto/gc-rijndael-tests (License): Likewise.
80901         * modules/crypto/gc-sha1-tests (License): Likewise.
80902         * modules/crypto/gc-tests (License): Likewise.
80903         * modules/crypto/hmac-md5 (License): Likewise.
80904         * modules/crypto/hmac-sha1 (License): Likewise.
80905         * modules/crypto/md2-tests (License): Likewise.
80906         * modules/crypto/md4-tests (License): Likewise.
80907         * modules/crypto/md5 (License): Likewise.
80908         * modules/crypto/rijndael (License): Likewise.
80909         * modules/crypto/sha1 (License): Likewise.
80910         * modules/memxor (License): Likewise.
80912 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80913         and Bruno Haible  <bruno@clisp.org>
80915         * NEWS: Describe interface changes to human, xstrtol.
80916         * lib/human.h: Include <xstrtol.h>.
80917         (human_options): Return enum strtol_error, not int.  Remove
80918         bool arg; take int * instead.
80919         * lib/human.c: Don't include "gettext.h".
80920         (_): Remove; no longer used.
80921         Don't include <xstrtol.h>, since human.h does it.
80922         (human_options): Adjust to abovementioned interface changes.
80923         Do not report error to stderr; that's now the caller's
80924         responsibility.
80925         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
80926         interface change.
80927         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
80928         Str, Argument_type_string.  All uses changed.  Put " argument"
80929         in diagnostics to make them clearer.  Change wording of suffix
80930         message for clarity.
80931         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
80932         Argument_type_string.
80933         (STRTOL_FATAL_WARN): Remove; no longer used.
80934         * modules/human (Depends-on): Remove gettext-h.
80936 2007-08-06  Simon Josefsson  <simon@josefsson.org>
80938         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
80940 2007-07-31  Bruno Haible  <bruno@clisp.org>
80942         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
80943         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
80944         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
80946 2007-07-31  Bruno Haible  <bruno@clisp.org>
80948         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
80949         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
80951 2007-07-30  Bruno Haible  <bruno@clisp.org>
80953         * modules/base64 (License): Use the synonymous term "LGPLv2+".
80954         * modules/c-ctype (License): Likewise.
80955         * modules/c-strcase (License): Likewise.
80956         * modules/check-version (License): Likewise.
80957         * modules/iconv (License): Likewise.
80958         * modules/iconv_open (License): Likewise.
80959         * modules/read-file (License): Likewise.
80960         * modules/striconv (License): Likewise.
80961         * modules/strverscmp (License): Likewise.
80962         * modules/vasprintf (License): Likewise.
80963         * modules/crypto/des (License): Likewise.
80964         * modules/crypto/gc (License): Likewise.
80965         * modules/crypto/gc-arcfour (License): Likewise.
80966         * modules/crypto/gc-arctwo (License): Likewise.
80967         * modules/crypto/gc-des (License): Likewise.
80968         * modules/crypto/gc-hmac-md5 (License): Likewise.
80969         * modules/crypto/gc-hmac-sha1 (License): Likewise.
80970         * modules/crypto/gc-md2 (License): Likewise.
80971         * modules/crypto/gc-md4 (License): Likewise.
80972         * modules/crypto/gc-md5 (License): Likewise.
80973         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
80974         * modules/crypto/gc-random (License): Likewise.
80975         * modules/crypto/gc-rijndael (License): Likewise.
80976         * modules/crypto/gc-sha1 (License): Likewise.
80977         * modules/crypto/md2 (License): Likewise.
80978         * modules/crypto/md4 (License): Likewise.
80980 2007-07-30  Jim Meyering  <jim@meyering.net>
80982         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
80983         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
80984         it has valid stat data.  This bug would cause du not to count the
80985         sizes of inaccessible directories.
80986         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
80987         in <http://bugzilla.redhat.com/250077>.
80989 2007-07-25  Peter O'Gorman  <peter@pogma.com>
80990             Bruno Haible  <bruno@clisp.org>
80992         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
80993         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
80994         #include_next, gives a diagnostic about it, but reports no error in
80995         the exit code.
80996         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
80998 2007-07-24  Ben Pfaff  <blp@gnu.org>
81000         Improve name: "count-one-bits" is better than "popcount".
81001         * MODULES.html.sh: Update name.
81002         * lib/popcount.h: Renamed lib/count-one-bits.h.
81003         (popcount): Renamed count_one_bits.
81004         (popcountl): Renamed count_one_bits_l.
81005         (popcountll): Renamed count_one_bits_ll.
81006         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
81007         * modules/popcount: Renamed module/count-one-bits.
81008         * modules/popcount-tests: Renamed module/count-one-bits-tests.
81009         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
81011 2007-07-23  Ben Pfaff  <blp@gnu.org>
81013         * lib/popcount.h (popcount32): Reduce size of constants, to allow
81014         better code generation, and add U to large constants to avoid
81015         warnings, in non-GCC case.
81016         Suggested by Bruno Haible.
81018 2007-07-23  Ben Pfaff  <blp@gnu.org>
81020         * lib/popcount.h: Use verify_true instead of if...abort.
81021         * modules/popcount: Depend on verify module.
81022         Suggested by Jim Meyering.
81024 2007-07-23  Bruno Haible  <bruno@clisp.org>
81026         * gnulib-tool (func_import): Create a .cvsignore file also when the
81027         directory is not yet in CVS but the toplevel directory is. When
81028         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
81029         Reported by Karl Berry.
81031 2007-07-22  Ben Pfaff  <blp@gnu.org>
81033         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
81034         case.
81035         Suggested by Eric Blake.
81037 2007-07-22  Ben Pfaff  <blp@gnu.org>
81039         New module: popcount.
81040         * MODULES.html.sh: Add popcount.
81041         * modules/popcount: New file.
81042         * modules/popcount-tests: New file.
81043         * tests/test-popcount.c: New file.
81044         * lib/popcount.h: New file.
81045         * m4/popcount.m4: New file.
81047 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81049         * build-aux/announce-gen: Update to GPLv3.
81051         * build-aux/config.guess: Update from config.
81053 2007-07-21  Bruno Haible  <bruno@clisp.org>
81055         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
81056         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
81058 2007-07-20  Jim Meyering  <jim@meyering.net>
81060         * check-module: Diagnose a self-dependency.
81062 2007-07-19  Bruno Haible  <bruno@clisp.org>
81064         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
81065         empty.
81066         Reported by Eric Blake.
81068 2007-07-18  Bruno Haible  <bruno@clisp.org>
81070         * gnulib-tool: New options --po-base, --po-domain.
81071         (func_usage): Document them.
81072         (pobase, po_domain): New variables.
81073         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
81074         DEFAULT_TEXT_DOMAIN.
81075         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
81076         (func_import): Consider pobase and po_domain. Create a po/ directory.
81077         (func_create_testdir): Set pobase and po_domain to empty.
81078         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
81079         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
81081 2007-07-18  Bruno Haible  <bruno@clisp.org>
81083         * gnulib-tool (func_get_automake_snippet): Synthesize also an
81084         EXTRA_DIST augmentation for files in build-aux/.
81086 2007-07-16  Bruno Haible  <bruno@clisp.org>
81088         * modules/lseek (License): Use the synonymous term "LGPLv2+".
81089         * modules/getdelim (License): Likewise.
81091 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81093         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
81094         * modules/d-type (License): Likewise.
81095         * modules/extensions (License): Likewise.
81096         * modules/fnmatch (License): Likewise.
81097         * modules/fseeko (License): Likewise.
81098         * modules/getaddrinfo (License): Likewise.
81099         * modules/getline (License): Likewise.
81100         * modules/getlogin_r (License): Likewise.
81101         * modules/getpass (License): Likewise.
81102         * modules/gettimeofday (License): Likewise.
81103         * modules/glob (License): Likewise.
81104         * modules/inet_ntop (License): Likewise.
81105         * modules/malloc (License): Likewise.
81106         * modules/malloca (License): Likewise.
81107         * modules/memmem (License): Likewise.
81108         * modules/mempcpy (License): Likewise.
81109         * modules/memset (License): Likewise.
81110         * modules/minmax (License): Likewise.
81111         * modules/mktime (License): Likewise.
81112         * modules/netinet_in (License): Likewise.
81113         * modules/pathmax (License): Likewise.
81114         * modules/poll (License): Likewise.
81115         * modules/regex (License): Likewise.
81116         * modules/snprintf (License): Likewise.
81117         * modules/stdbool (License): Likewise.
81118         * modules/stdint (License): Likewise.
81119         * modules/stdio (License): Likewise.
81120         * modules/strcase (License): Likewise.
81121         * modules/strcasestr (License): Likewise.
81122         * modules/strdup (License): Likewise.
81123         * modules/string (License): Likewise.
81124         * modules/strndup (License): Likewise.
81125         * modules/strnlen (License): Likewise.
81126         * modules/strpbrk (License): Likewise.
81127         * modules/strptime (License): Likewise.
81128         * modules/strsep (License): Likewise.
81129         * modules/sys_select (License): Likewise.
81130         * modules/sys_socket (License): Likewise.
81131         * modules/sys_stat (License): Likewise.
81132         * modules/sys_time (License): Likewise.
81133         * modules/time (License): Likewise.
81134         * modules/time_r (License): Likewise.
81135         * modules/timegm (License): Likewise.
81136         * modules/unistd (License): Likewise.
81137         * modules/vsnprintf (License): Likewise.
81138         * modules/wctype (License): Likewise.
81140 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81142         * modules/argz (License): LGPLv2+.
81144 2007-07-15  Karl Berry  <karl@gnu.org>
81146         * doc/gnulib.texi: revise node structure per new fdl.texi.
81148 2007-07-14  Bruno Haible  <bruno@clisp.org>
81150         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
81151         the output file.
81152         * lib/uniname/uninames.h: Regenerated.
81154 2007-07-14  Karl Berry  <karl@gnu.org>
81156         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
81157         omitting sectioning and index commands.
81159 2007-07-13  Bruno Haible  <bruno@clisp.org>
81161         New gnulib-tool option --more-symlinks.
81162         * gnulib-tool (func_usage): Document --more-symlinks.
81163         (do_copyrights): New variable.
81164         Recognize option --more-symlinks.
81165         (func_import): Don't add a copyright notice transform to
81166         sed_transform_lib_file if do_copyrights is empty.
81168 2007-07-13  Bruno Haible  <bruno@clisp.org>
81170         * lib/vasnprintf.c (decimal_point_char): Define also if
81171         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
81172         && !NEED_PRINTF_DIRECTIVE_A.
81173         Reported by Clemens Koller <clemens.koller@anagramm.de> via
81174         Gary V. Vaughan <gary@gnu.org>.
81176 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
81178         * lib/inttypes_.h: Undo previous change, since it was fixed
81179         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
81181 2007-07-13  Bruno Haible  <bruno@clisp.org>
81183         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
81184         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
81186 2007-07-13  Jim Meyering  <jim@meyering.net>
81188         df: Don't fail for Tru64's "file-on-file mount".
81189         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
81190         so we fall through and use statfs instead.  Details here:
81191         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
81192         Reported by Albert Chin.
81194 2007-07-13  Bruno Haible  <bruno@clisp.org>
81196         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
81197         * modules/configmake (License): Likewise.
81198         * modules/gettext (License): Likewise.
81199         * modules/gettext-h (License): Likewise.
81200         * modules/include_next (License): Likewise.
81201         * modules/link-warning (License): Likewise.
81202         * modules/localcharset (License): Likewise.
81203         * modules/localename (License): Likewise.
81204         * modules/lock (License): Likewise.
81205         * modules/relocatable-lib-lgpl (License): Likewise.
81206         * modules/size_max (License): Likewise.
81207         * modules/vasnprintf (License): Likewise.
81208         * modules/wchar (License): Likewise.
81209         * modules/xsize (License): Likewise.
81211 2007-07-13  Bruno Haible  <bruno@clisp.org>
81213         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
81214         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
81216 2007-07-12  Bruno Haible  <bruno@clisp.org>
81218         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
81219         in the modules files.
81221 2007-07-11  Karl Berry  <karl@gnu.org>
81223         * MODULES.html.sh (func_module): use
81224          sed -e '\|^'"${includefile}"'$|d'
81225          instead of /.../d, to avoid errors on $includefile's containing /.
81227 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81229         * gnulib-tool (func_import): Avoid duplication of --avoid
81230         statements
81231         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
81232         names to `_' in variable names.
81234 2007-07-10  Eric Blake  <ebb9@byu.net>
81236         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
81237         * NEWS: Document this change.
81239 2007-07-08  Bruno Haible  <bruno@clisp.org>
81241         Update to Unicode 5.0.
81242         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
81243         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
81244         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
81245         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
81246         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
81247         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
81248         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
81249         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
81250         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
81251         U+10A3F, U+1D242..U+1D244.
81252         (nonspacing_table_ind): Update.
81253         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
81254         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
81256 2007-07-08  Bruno Haible  <bruno@clisp.org>
81258         Update to Unicode 5.0.
81259         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
81260         code transform. Extend the name index field of unicode_name_to_code and
81261         unicode_code_to_name from 16 to 24 bits.
81262         * lib/uniname/uniname.c (unicode_character_name,
81263         unicode_name_character): Add the range 0x12xxx to the code transform.
81264         * lib/uniname/uninames.h: Regenerated.
81265         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
81267 2007-07-07  Bruno Haible  <bruno@clisp.org>
81269         * modules/wcwidth-tests: New file.
81270         * tests/test-wcwidth.c: New file.
81272         Work around MacOS X wcwidth() bug.
81273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
81274         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
81275         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
81276         original wcwidth in non-UTF-8 locales.
81277         * modules/wcwidth (Depends-on): Add localcharset, streq,
81278         uniwidth/width.
81279         * doc/functions/wcwidth.texi: Update.
81281 2007-07-07  Bruno Haible  <bruno@clisp.org>
81283         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
81284         (wcwidth): New declaration.
81285         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
81286         macros.
81287         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
81288         here. Prepare for creating <wchar.h> unconditionally.
81289         * modules/wchar (Depends-on): Add link-warning.
81290         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
81291         REPLACE_WCWIDTH, and GL_LINK_WARNING.
81292         * lib/wcwidth.h: Remove file.
81293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
81294         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
81295         * modules/wcwidth (Files): Remove lib/wcwidth.h.
81296         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
81297         (Include): Replace wcwidth.h with <wchar.h>.
81298         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
81299         * lib/mbchar.h: Don't include wcwidth.h.
81300         * lib/mbswidth.c: Likewise.
81301         * NEWS: Mention the change.
81303 2007-07-07  Bruno Haible  <bruno@clisp.org>
81305         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
81306         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
81307         definition with an external declaration.
81308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
81309         defined as a function. Remove AC_C_INLINE requirement.
81310         * modules/wcwidth (Files): Add lib/wcwidth.c.
81311         (Makefile.am): Remove redundant statement.
81313 2007-07-07  Bruno Haible  <bruno@clisp.org>
81315         * MODULES.html.sh (Unicode string functions): Add the new modules.
81317         * tests/uniwidth/test-u32-strwidth.c: New file.
81318         * modules/uniwidth/u32-strwidth-tests: New file.
81320         * lib/uniwidth/u32-strwidth.c: New file.
81321         * modules/uniwidth/u32-strwidth: New file.
81323         * tests/uniwidth/test-u16-strwidth.c: New file.
81324         * modules/uniwidth/u16-strwidth-tests: New file.
81326         * lib/uniwidth/u16-strwidth.c: New file.
81327         * modules/uniwidth/u16-strwidth: New file.
81329         * tests/uniwidth/test-u8-strwidth.c: New file.
81330         * modules/uniwidth/u8-strwidth-tests: New file.
81332         * lib/uniwidth/u8-strwidth.c: New file.
81333         * modules/uniwidth/u8-strwidth: New file.
81335         * tests/uniwidth/test-u32-width.c: New file.
81336         * modules/uniwidth/u32-width-tests: New file.
81338         * lib/uniwidth/u32-width.c: New file.
81339         * modules/uniwidth/u32-width: New file.
81341         * tests/uniwidth/test-u16-width.c: New file.
81342         * modules/uniwidth/u16-width-tests: New file.
81344         * lib/uniwidth/u16-width.c: New file.
81345         * modules/uniwidth/u16-width: New file.
81347         * tests/uniwidth/test-u8-width.c: New file.
81348         * modules/uniwidth/u8-width-tests: New file.
81350         * lib/uniwidth/u8-width.c: New file.
81351         * modules/uniwidth/u8-width: New file.
81353         * tests/uniwidth/test-uc_width.c: New file.
81354         * modules/uniwidth/width-tests: New file.
81356         * lib/uniwidth/width.c: New file, from GNU libiconv.
81357         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
81358         * modules/uniwidth/width: New file.
81360         * lib/uniwidth.h: New file, from GNU libiconv.
81361         * modules/uniwidth/base: New file.
81363 2007-07-07  Bruno Haible  <bruno@clisp.org>
81365         * lib/uniname.h: New file, from GNU gettext.
81366         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
81367         * lib/uniname/uninames.h: New file, from GNU gettext.
81368         * lib/uniname/uniname.c: New file, from GNU gettext.
81369         * tests/uniname/test-uninames.sh: New file.
81370         * tests/uniname/test-uninames.c: New file, from GNU gettext.
81371         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
81372         * modules/uniname/base: New file.
81373         * modules/uniname/uniname: New file.
81374         * modules/uniname/uniname-tests: New file.
81375         * MODULES.html.sh (Unicode string functions): Add the new modules.
81377 2007-07-06  Bruno Haible  <bruno@clisp.org>
81379         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
81381 2007-07-06  Bruno Haible  <bruno@clisp.org>
81383         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
81384         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
81385         includes <cygwin/sys_time.h> which includes <sys/select.h> which
81386         include <sys/time.h>.
81387         Reported by Eric Blake.
81389 2007-07-06  Eric Blake  <ebb9@byu.net>
81391         Fix testing canonicalize on cygwin.
81392         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81393         Revert patch from 2007-06-19.
81394         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
81395         canonicalize module is also in use.
81396         * tests/test-canonicalize.c: New file.
81397         * tests/test-canonicalize.sh: Likewise.
81398         * modules/canonicalize-tests: Likewise.
81400 2007-07-06  Jim Meyering  <jim@meyering.net>
81402         * lib/getugroups.c (getugroups): Detect getgrent failure.
81403         Adjust comment to reflect reality: this function may return -1.
81405 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
81407         * build-aux/bootstrap (TP_URL,get_translations): Update to use
81408         the new TP address.
81409         (usage): Fix typo
81410         (gnulib_mk): New variable.
81412 2007-07-05  Jim Meyering  <jim@meyering.net>
81414         Don't let endgrent clobber errno, no matter how improbable.
81415         * lib/getugroups.c (getugroups): Save and restore errno around
81416         endgrent call.
81418         Close the group DB even when failing with 2^31 or more members.
81419         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
81421 2007-07-04  Jim Meyering  <jim@meyering.net>
81423         * lib/getugroups.h: New file.
81424         * lib/getugroups.c: Include "getugroups.h".
81425         Remove uses of "register" keyword.
81426         Move local variable, "cp", down into scope where used.
81427         Give "username" parameter the "const" attribute.
81428         * modules/getugroups (Files): Add lib/getugroups.h
81430 2007-07-04  Karl Berry  <karl@gnu.org>
81432         * MODULES.html.sh (func_all_modules): Complete rename of
81433         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
81435 2007-07-02  Bruno Haible  <bruno@clisp.org>
81437         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
81438         mode, when inttypes.h comes from gnulib.
81439         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
81441 2007-07-02  Simon Josefsson  <simon@josefsson.org>
81443         * NEWS: Mention lgpl module name change.
81445         * modules/lgpl-2.1: Renamed from lgpl.
81447         * NEWS: Mention gpl module name change.
81449         * modules/gpl-3.0: New file, based on gpl-2.0.
81451         * modules/gpl-2.0: Renamed from gpl.
81453         * modules/gpl: Fix filename, doc/gpl.texi is now found at
81454         doc/gpl-2.0.texi.
81456 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81458         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
81459         #define __STDC_LIMIT_MACROS temporarily while including
81460         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
81461         Problem reported by Joel E. Denny in
81462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
81464 2007-07-01  Bruno Haible  <bruno@clisp.org>
81466         * lib/unistdio.h: New file.
81467         * lib/unistdio/u-asnprintf.h: New file.
81468         * lib/unistdio/u-asprintf.h: New file.
81469         * lib/unistdio/u-printf-args.c: New file.
81470         * lib/unistdio/u-printf-args.h: New file.
81471         * lib/unistdio/u-printf-parse.h: New file.
81472         * lib/unistdio/u-snprintf.h: New file.
81473         * lib/unistdio/u-sprintf.h: New file.
81474         * lib/unistdio/u-vasprintf.h: New file.
81475         * lib/unistdio/u-vsnprintf.h: New file.
81476         * lib/unistdio/u-vsprintf.h: New file.
81477         * lib/unistdio/ulc-asnprintf.c: New file.
81478         * lib/unistdio/ulc-asprintf.c: New file.
81479         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
81480         * lib/unistdio/ulc-printf-parse.c: New file.
81481         * lib/unistdio/ulc-snprintf.c: New file.
81482         * lib/unistdio/ulc-sprintf.c: New file.
81483         * lib/unistdio/ulc-vasnprintf.c: New file.
81484         * lib/unistdio/ulc-vasprintf.c: New file.
81485         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
81486         * lib/unistdio/ulc-vsnprintf.c: New file.
81487         * lib/unistdio/ulc-vsprintf.c: New file.
81488         * lib/unistdio/u8-asnprintf.c: New file.
81489         * lib/unistdio/u8-asprintf.c: New file.
81490         * lib/unistdio/u8-printf-parse.c: New file.
81491         * lib/unistdio/u8-snprintf.c: New file.
81492         * lib/unistdio/u8-sprintf.c: New file.
81493         * lib/unistdio/u8-vasnprintf.c: New file.
81494         * lib/unistdio/u8-vasprintf.c: New file.
81495         * lib/unistdio/u8-vsnprintf.c: New file.
81496         * lib/unistdio/u8-vsprintf.c: New file.
81497         * lib/unistdio/u8-u8-asnprintf.c: New file.
81498         * lib/unistdio/u8-u8-asprintf.c: New file.
81499         * lib/unistdio/u8-u8-snprintf.c: New file.
81500         * lib/unistdio/u8-u8-sprintf.c: New file.
81501         * lib/unistdio/u8-u8-vasnprintf.c: New file.
81502         * lib/unistdio/u8-u8-vasprintf.c: New file.
81503         * lib/unistdio/u8-u8-vsnprintf.c: New file.
81504         * lib/unistdio/u8-u8-vsprintf.c: New file.
81505         * lib/unistdio/u16-asnprintf.c: New file.
81506         * lib/unistdio/u16-asprintf.c: New file.
81507         * lib/unistdio/u16-printf-parse.c: New file.
81508         * lib/unistdio/u16-snprintf.c: New file.
81509         * lib/unistdio/u16-sprintf.c: New file.
81510         * lib/unistdio/u16-vasnprintf.c: New file.
81511         * lib/unistdio/u16-vasprintf.c: New file.
81512         * lib/unistdio/u16-vsnprintf.c: New file.
81513         * lib/unistdio/u16-vsprintf.c: New file.
81514         * lib/unistdio/u16-u16-asnprintf.c: New file.
81515         * lib/unistdio/u16-u16-asprintf.c: New file.
81516         * lib/unistdio/u16-u16-snprintf.c: New file.
81517         * lib/unistdio/u16-u16-sprintf.c: New file.
81518         * lib/unistdio/u16-u16-vasnprintf.c: New file.
81519         * lib/unistdio/u16-u16-vasprintf.c: New file.
81520         * lib/unistdio/u16-u16-vsnprintf.c: New file.
81521         * lib/unistdio/u16-u16-vsprintf.c: New file.
81522         * lib/unistdio/u32-asnprintf.c: New file.
81523         * lib/unistdio/u32-asprintf.c: New file.
81524         * lib/unistdio/u32-printf-parse.c: New file.
81525         * lib/unistdio/u32-snprintf.c: New file.
81526         * lib/unistdio/u32-sprintf.c: New file.
81527         * lib/unistdio/u32-vasnprintf.c: New file.
81528         * lib/unistdio/u32-vasprintf.c: New file.
81529         * lib/unistdio/u32-vsnprintf.c: New file.
81530         * lib/unistdio/u32-vsprintf.c: New file.
81531         * lib/unistdio/u32-u32-asnprintf.c: New file.
81532         * lib/unistdio/u32-u32-asprintf.c: New file.
81533         * lib/unistdio/u32-u32-snprintf.c: New file.
81534         * lib/unistdio/u32-u32-sprintf.c: New file.
81535         * lib/unistdio/u32-u32-vasnprintf.c: New file.
81536         * lib/unistdio/u32-u32-vasprintf.c: New file.
81537         * lib/unistdio/u32-u32-vsnprintf.c: New file.
81538         * lib/unistdio/u32-u32-vsprintf.c: New file.
81539         * tests/unistdio/test-ulc-asnprintf1.c: New file.
81540         * tests/unistdio/test-ulc-asnprintf1.h: New file.
81541         * tests/unistdio/test-ulc-printf1.h: New file.
81542         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
81543         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
81544         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
81545         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
81546         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
81547         * tests/unistdio/test-ulc-vasprintf1.c: New file.
81548         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
81549         * tests/unistdio/test-ulc-vsprintf1.c: New file.
81550         * tests/unistdio/test-u8-asnprintf1.c: New file.
81551         * tests/unistdio/test-u8-asnprintf1.h: New file.
81552         * tests/unistdio/test-u8-printf1.h: New file.
81553         * tests/unistdio/test-u8-vasnprintf1.c: New file.
81554         * tests/unistdio/test-u8-vasnprintf2.c: New file.
81555         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
81556         * tests/unistdio/test-u8-vasnprintf3.c: New file.
81557         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
81558         * tests/unistdio/test-u8-vasprintf1.c: New file.
81559         * tests/unistdio/test-u8-vsnprintf1.c: New file.
81560         * tests/unistdio/test-u8-vsprintf1.c: New file.
81561         * tests/unistdio/test-u16-asnprintf1.c: New file.
81562         * tests/unistdio/test-u16-asnprintf1.h: New file.
81563         * tests/unistdio/test-u16-printf1.h: New file.
81564         * tests/unistdio/test-u16-vasnprintf1.c: New file.
81565         * tests/unistdio/test-u16-vasnprintf2.c: New file.
81566         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
81567         * tests/unistdio/test-u16-vasnprintf3.c: New file.
81568         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
81569         * tests/unistdio/test-u16-vasprintf1.c: New file.
81570         * tests/unistdio/test-u16-vsnprintf1.c: New file.
81571         * tests/unistdio/test-u16-vsprintf1.c: New file.
81572         * tests/unistdio/test-u32-asnprintf1.c: New file.
81573         * tests/unistdio/test-u32-asnprintf1.h: New file.
81574         * tests/unistdio/test-u32-printf1.h: New file.
81575         * tests/unistdio/test-u32-vasnprintf1.c: New file.
81576         * tests/unistdio/test-u32-vasnprintf2.c: New file.
81577         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
81578         * tests/unistdio/test-u32-vasnprintf3.c: New file.
81579         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
81580         * tests/unistdio/test-u32-vasprintf1.c: New file.
81581         * tests/unistdio/test-u32-vsnprintf1.c: New file.
81582         * tests/unistdio/test-u32-vsprintf1.c: New file.
81583         * modules/unistdio/base: New file.
81584         * modules/unistdio/u-printf-args: New file.
81585         * modules/unistdio/ulc-asnprintf: New file.
81586         * modules/unistdio/ulc-asprintf: New file.
81587         * modules/unistdio/ulc-fprintf: New file.
81588         * modules/unistdio/ulc-printf-parse: New file.
81589         * modules/unistdio/ulc-snprintf: New file.
81590         * modules/unistdio/ulc-sprintf: New file.
81591         * modules/unistdio/ulc-vasnprintf: New file.
81592         * modules/unistdio/ulc-vasprintf: New file.
81593         * modules/unistdio/ulc-vfprintf: New file.
81594         * modules/unistdio/ulc-vsnprintf: New file.
81595         * modules/unistdio/ulc-vsprintf: New file.
81596         * modules/unistdio/u8-asnprintf: New file.
81597         * modules/unistdio/u8-asprintf: New file.
81598         * modules/unistdio/u8-printf-parse: New file.
81599         * modules/unistdio/u8-snprintf: New file.
81600         * modules/unistdio/u8-sprintf: New file.
81601         * modules/unistdio/u8-vasnprintf: New file.
81602         * modules/unistdio/u8-vasprintf: New file.
81603         * modules/unistdio/u8-vsnprintf: New file.
81604         * modules/unistdio/u8-vsprintf: New file.
81605         * modules/unistdio/u8-u8-asnprintf: New file.
81606         * modules/unistdio/u8-u8-asprintf: New file.
81607         * modules/unistdio/u8-u8-snprintf: New file.
81608         * modules/unistdio/u8-u8-sprintf: New file.
81609         * modules/unistdio/u8-u8-vasnprintf: New file.
81610         * modules/unistdio/u8-u8-vasprintf: New file.
81611         * modules/unistdio/u8-u8-vsnprintf: New file.
81612         * modules/unistdio/u8-u8-vsprintf: New file.
81613         * modules/unistdio/u16-asnprintf: New file.
81614         * modules/unistdio/u16-asprintf: New file.
81615         * modules/unistdio/u16-printf-parse: New file.
81616         * modules/unistdio/u16-snprintf: New file.
81617         * modules/unistdio/u16-sprintf: New file.
81618         * modules/unistdio/u16-vasnprintf: New file.
81619         * modules/unistdio/u16-vasprintf: New file.
81620         * modules/unistdio/u16-vsnprintf: New file.
81621         * modules/unistdio/u16-vsprintf: New file.
81622         * modules/unistdio/u16-u16-asnprintf: New file.
81623         * modules/unistdio/u16-u16-asprintf: New file.
81624         * modules/unistdio/u16-u16-snprintf: New file.
81625         * modules/unistdio/u16-u16-sprintf: New file.
81626         * modules/unistdio/u16-u16-vasnprintf: New file.
81627         * modules/unistdio/u16-u16-vasprintf: New file.
81628         * modules/unistdio/u16-u16-vsnprintf: New file.
81629         * modules/unistdio/u16-u16-vsprintf: New file.
81630         * modules/unistdio/u32-asnprintf: New file.
81631         * modules/unistdio/u32-asprintf: New file.
81632         * modules/unistdio/u32-printf-parse: New file.
81633         * modules/unistdio/u32-snprintf: New file.
81634         * modules/unistdio/u32-sprintf: New file.
81635         * modules/unistdio/u32-vasnprintf: New file.
81636         * modules/unistdio/u32-vasprintf: New file.
81637         * modules/unistdio/u32-vsnprintf: New file.
81638         * modules/unistdio/u32-vsprintf: New file.
81639         * modules/unistdio/u32-u32-asnprintf: New file.
81640         * modules/unistdio/u32-u32-asprintf: New file.
81641         * modules/unistdio/u32-u32-snprintf: New file.
81642         * modules/unistdio/u32-u32-sprintf: New file.
81643         * modules/unistdio/u32-u32-vasnprintf: New file.
81644         * modules/unistdio/u32-u32-vasprintf: New file.
81645         * modules/unistdio/u32-u32-vsnprintf: New file.
81646         * modules/unistdio/u32-u32-vsprintf: New file.
81647         * modules/unistdio/ulc-asnprintf-tests: New file.
81648         * modules/unistdio/ulc-vasnprintf-tests: New file.
81649         * modules/unistdio/ulc-vasprintf-tests: New file.
81650         * modules/unistdio/ulc-vsnprintf-tests: New file.
81651         * modules/unistdio/ulc-vsprintf-tests: New file.
81652         * modules/unistdio/u8-asnprintf-tests: New file.
81653         * modules/unistdio/u8-vasnprintf-tests: New file.
81654         * modules/unistdio/u8-vasprintf-tests: New file.
81655         * modules/unistdio/u8-vsnprintf-tests: New file.
81656         * modules/unistdio/u8-vsprintf-tests: New file.
81657         * modules/unistdio/u16-asnprintf-tests: New file.
81658         * modules/unistdio/u16-vasnprintf-tests: New file.
81659         * modules/unistdio/u16-vasprintf-tests: New file.
81660         * modules/unistdio/u16-vsnprintf-tests: New file.
81661         * modules/unistdio/u16-vsprintf-tests: New file.
81662         * modules/unistdio/u32-asnprintf-tests: New file.
81663         * modules/unistdio/u32-vasnprintf-tests: New file.
81664         * modules/unistdio/u32-vasprintf-tests: New file.
81665         * modules/unistdio/u32-vsnprintf-tests: New file.
81666         * modules/unistdio/u32-vsprintf-tests: New file.
81667         * MODULES.html.sh (Unicode string functions): Add the new modules.
81669 2007-07-01  Bruno Haible  <bruno@clisp.org>
81671         * lib/sprintf.c (sprintf): Limit the available length estimation,
81672         to avoid address wraparound.
81673         * lib/vsprintf.c (vsprintf): Likewise.
81674         * modules/sprintf-posix (Dependencies): Add stdint.
81675         * modules/vsprintf-posix (Dependencies): Likewise.
81677 2007-07-01  Bruno Haible  <bruno@clisp.org>
81679         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
81680         Windows PATH as well. Conservative double-quoting. Comments.
81682 2007-07-01  Bruno Haible  <bruno@clisp.org>
81683             Eric Blake  <ebb9@byu.net>
81684             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81686         * gnulib-tool (self_abspathname): Fix algorithm to cope with
81687         empty components in $PATH, denoting '.'.
81689 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81691         * gnulib-tool: Fix indentation.
81692         (func_create_megatestdir): Likewise.
81693         Report by Bruno Haible.
81695 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81697         Sync from Automake.
81698         * build-aux/gnupload: Fix shell portability issues with for loops.
81699         Report by Karl Berry.
81701 2007-06-29  Simon Josefsson  <simon@josefsson.org>
81703         * build-aux/maint.mk (POURL): Use translationproject.org.
81705 2007-06-27  Simon Josefsson  <simon@josefsson.org>
81706             Bruno Haible  <bruno@clisp.org>
81708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
81709         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
81710         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
81711         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
81712         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
81714 2007-06-27  Bruno Haible  <bruno@clisp.org>
81716         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
81717         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
81719 2007-06-26  Karl Berry  <karl@gnu.org>
81721         * MODULES.html.sh: remove xreadlink-with-size.
81723 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81725         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
81726         method that I hope also handles the double-include problem noted
81727         by Bruno Haible in
81728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
81730 2007-06-23  Bruno Haible  <bruno@clisp.org>
81732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81733         Don't let the 'mostlyclean' target fail if the last subdirectory could
81734         not be removed.
81735         Reported by Karl Berry.
81737 2007-06-23  Bruno Haible  <bruno@clisp.org>
81739         * gnulib-tool (echo): Add a speedier workaround for ksh.
81740         * tests/test-echo.sh: Likewise.
81742 2007-06-23  Bruno Haible  <bruno@clisp.org>
81744         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
81745         * tests/test-echo.sh: Likewise.
81747 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81749         * gnulib-tool (IFS): Initialize early, so we don't set it to
81750         empty later.
81751         (self_abspathname): Rewrite algorithm to set it, reindent.
81752         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
81753         (func_create_megatestdir): Merge some sed scripts.
81755 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81757         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
81758         exposed by Sun Studio 11 cc on Solaris 8.
81760 2007-06-22  Bruno Haible  <bruno@clisp.org>
81762         * gnulib-tool (echo): Ensure the echo primitive does not interpret
81763         backslashes.
81764         * tests/test-echo.sh: New file.
81766 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81768         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
81769         simplify `sed_replace_build_aux' scripts, they are portable but
81770         echoing them with `echo' is not.
81771         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
81773 2007-06-21  Karl Berry  <karl@gnu.org>
81775         * config/srclist.txt: guess we can't handle the licenses via
81776         srclist at the moment.
81778 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81780         * MODULES.html.sh: Add include_next.
81781         * modules/include_next: New file.
81783 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81785         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
81786         INCLUDE_NEXT.
81787         (gl_CHECK_NEXT_HEADERS): New macro.
81788         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
81789         the obsolescent gl_ABSOLUTE_HEADER.
81790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
81791         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
81792         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
81793         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
81794         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
81795         * m4/math_h.m4 (gl_MATH_H): Likewise.
81796         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
81797         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
81798         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
81799         * m4/stdint.m4 (gl_STDINT_H): Likewise.
81800         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
81801         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
81802         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
81803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
81804         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
81805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
81806         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
81807         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81808         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
81809         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
81810         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81811         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81812         * m4/inttypes.m4 (gl_INTTYPES_H): Define
81813         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
81814         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
81815         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
81816         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
81817         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
81818         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
81819         * lib/float_.h: Likewise.
81820         * lib/inttypes_.h: Likewise.
81821         * lib/math_.h: Likewise.
81822         * lib/search_.h: Likewise.
81823         * lib/signal_.h: Likewise.
81824         * lib/stdint_.h: Likewise.
81825         * lib/stdio_.h: Likewise.
81826         * lib/stdlib_.h: Likewise.
81827         * lib/string_.h: Likewise.
81828         * lib/sys_stat_.h: Likewise.
81829         * lib/sys_time_.h: Likewise.
81830         * lib/time_.h: Likewise.
81831         * lib/unistd_.h: Likewise.
81832         * lib/wchar_.h: Likewise.
81833         * lib/wctype_.h: Likewise.
81834         * lib/dirent_.h: Likewise.
81835         * lib/iconv_.h: Likewise.
81836         * lib/locale_.h: Likewise.
81837         * lib/netinet_in_.h: Likewise.
81838         * lib/sys_select_.h: Likewise.
81839         * lib/sys_socket_.h: Likewise.
81840         * lib/sysexits_.h: Likewise.
81841         * modules/fcntl (Depends-on): Depend on include_next, not
81842         absolute_header.
81843         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
81844         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
81845         * modules/fchdir: Likewise.
81846         * modules/float: Likewise.
81847         * modules/iconv_open: Likewise.
81848         * modules/inttypes: Likewise.
81849         * modules/locale: Likewise.
81850         * modules/math: Likewise.
81851         * modules/netinet_in: Likewise.
81852         * modules/search: Likewise.
81853         * modules/signal: Likewise.
81854         * modules/stdint: Likewise.
81855         * modules/stdio: Likewise.
81856         * modules/stdlib: Likewise.
81857         * modules/string: Likewise.
81858         * modules/sys_select: Likewise.
81859         * modules/sys_socket: Likewise.
81860         * modules/sys_stat: Likewise.
81861         * modules/sys_time: Likewise.
81862         * modules/sysexits: Likewise.
81863         * modules/time: Likewise.
81864         * modules/unistd: Likewise.
81865         * modules/wchar: Likewise.
81866         * modules/wctype: Likewise.
81867         * modules/sys_stat: Change maintainer to "all".
81868         * modules/unistd: Likewise.
81870 2007-06-20  Karl Berry  <karl@gnu.org>
81872         * config/srclist.txt: track www changes in license files.
81874 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
81876         * build-aux/bootstrap: Remove stray dot.
81877         Make sure build_aux settings are honored when linking
81878         gnulib_extra_files.
81880 2007-06-19  Eric Blake  <ebb9@byu.net>
81882         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81883         Allow compilation on cygwin.
81885 2007-06-19  Jim Meyering  <jim@meyering.net>
81887         xreadlink-with-size: Remove module.  No longer used.
81888         Ex-callers now use xreadlink or mreadlink-with-size.
81889         * modules/xreadlink-with-size: Remove module.
81890         * lib/xreadlink-with-size.c: Remove file.
81891         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
81892         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
81893         just before the function definition *is* accurate.
81895         Eliminate one way canonicalize_filename_mode could exit.
81896         * lib/canonicalize.c (canonicalize_filename_mode):
81897         Use mreadlink_with_size, not xreadlink_with_size.
81899 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
81901         Detect porting problems to FreeBSD/arm, which has time_t wider than
81902         long int.  Original problem reported for GNU diff by Xin Li in
81903         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
81904         * modules/getdate (Depends-on): Add intprops, verify.
81905         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
81906         is an integer type no wider than long int.
81908 2007-06-18  Jim Meyering  <jim@meyering.net>
81910         New module: mreadlink-with-size.
81911         * MODULES.html.sh: Add mreadlink-with-size.
81912         * modules/mreadlink-with-size: New module
81913         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
81914         not xreadlink-with-size.
81915         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
81917 2007-06-16  Bruno Haible  <bruno@clisp.org>
81919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
81920         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
81921         Reported by Gary V. Vaughan <gary@gnu.org>.
81923 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
81925         Revamp lchown so that it lives in unistd.h where it belongs.
81926         * lib/lchown.h: Remove.
81927         * lib/dirchownmod.c: Don't include lib/lchown.h.
81928         * lib/fchownat.c: Likewise.
81929         * lib/openat.c: Likewise.
81930         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
81931         does not follow symlinks.
81932         (EOPNOTSUPP): Define if not defined.
81933         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
81934         is defined to 0.
81935         (lchown): New decl.
81936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
81937         Do not check for lchown decl.
81938         Set REPLACE_LCHOWN.
81939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
81940         REPLACE_LCHOWN.
81941         * modules/chown: Make it clear it follows symlinks.
81942         * modules/lchown: Make it clear it doesn't follow symlinks.
81943         (Files): Remove lib/lchown.h
81944         (Depends-on): Add unistd.
81945         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
81946         (Include): Include <unistd.h>, not "lchown.h".
81947         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
81948         REPLACE_LCHOWN.
81950 2007-06-15  Jim Meyering  <jim@meyering.net>
81952         Change license (GPL to LGPL) of fsusage and dependents.
81953         * modules/fsusage (License): Change to LGPL.
81954         * modules/full-read (License): Likewise.
81955         * modules/full-write (License): Likewise.
81956         * modules/safe-read (License): Likewise.
81957         * modules/safe-write (License): Likewise.
81959 2007-06-14  Ben Pfaff  <blp@gnu.org>
81961         Missing part of allocsa -> malloca transition.
81962         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
81963         gl_MALLOCA.
81965 2007-06-12  Bruno Haible  <bruno@clisp.org>
81967         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
81968         to ia64, x86_64, i386.
81969         Reported by Eric Blake.
81971 2007-06-12  Bruno Haible  <bruno@clisp.org>
81973         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
81974         cross-compiling to x86_64.
81976 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
81978         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
81979         glitch reported by Ralf Wildenhues in
81980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
81982         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
81983         Vin Shelton.
81985 2007-06-11  Bruno Haible  <bruno@clisp.org>
81987         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
81988         replacement string.
81989         Reported by Eric Blake.
81991 2007-06-10  Bruno Haible  <bruno@clisp.org>
81993         Prepare vasnprintf code for use with Unicode strings.
81994         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
81995         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
81996         TYPE_U32_STRING.
81997         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
81998         a_u32_string variants.
81999         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
82000         * lib/printf-args.c: Don't include config.h and the specification
82001         header if PRINTF_FETCHARGS is already defined.
82002         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
82003         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
82004         TYPE_U16_STRING, TYPE_U32_STRING.
82005         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
82006         u16_directive, u16_directives, u32_directive, u32_directives): New
82007         types.
82008         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
82009         New declarations.
82010         * lib/printf-parse.c: Don't include config.h and the specification
82011         header if PRINTF_PARSE is already defined. Eliminate the set of
82012         parameters for WIDE_CHAR_VERSION; the user of this file must provide
82013         them now. Include c-ctype.h.
82014         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
82015         directive and CHAR_T_ONLY_ASCII.
82016         * lib/vasnprintf.c: Don't include config.h and the specification header
82017         if VASNPRINTF is already defined.
82018         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
82019         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
82020         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
82021         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
82022         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
82023         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
82024         code accordingly.
82025         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
82026         pad_ourselves also in this case, with the 'c' and 's' directives, and
82027         with a different notion of "width".
82028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
82030 2007-06-10  Bruno Haible  <bruno@clisp.org>
82032         * modules/unistr/u32-mbsnlen: New file.
82033         * lib/unistr/u32-mbsnlen.c: New file.
82035         * modules/unistr/u16-mbsnlen: New file.
82036         * lib/unistr/u16-mbsnlen.c: New file.
82038         * modules/unistr/u8-mbsnlen: New file.
82039         * lib/unistr/u8-mbsnlen.c: New file.
82041         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
82042         declarations.
82044 2007-06-10  Bruno Haible  <bruno@clisp.org>
82046         * lib/string_.h (mbsnlen): New declaration.
82047         * lib/mbsnlen.c: New file.
82048         * m4/mbsnlen.m4: New file.
82049         * modules/mbsnlen: New file.
82050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
82051         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
82052         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
82054 2007-06-10  Bruno Haible  <bruno@clisp.org>
82056         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
82058 2007-06-10  Bruno Haible  <bruno@clisp.org>
82060         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
82061         * lib/mbuiter.h: Likewise.
82063 2007-06-10  Bruno Haible  <bruno@clisp.org>
82065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
82066         declaration.
82068 2007-06-10  Karl Berry  <karl@gnu.org>
82070         * config/srclist.txt: remove gettext entries, Bruno prefers
82071         to update individually.
82073 2007-06-10  Bruno Haible  <bruno@clisp.org>
82075         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
82076         'maxlen'. Ensure only length + width bytes are allocated, not
82077         length + 1 + width.
82079 2007-06-09  Bruno Haible  <bruno@clisp.org>
82081         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
82082         (CHAR_T): Remove macro.
82083         (VASNPRINTF): Update.
82085 2007-06-09  Bruno Haible  <bruno@clisp.org>
82087         * MODULES.html.sh (Unicode string functions): Add the new modules.
82089         * modules/uniconv/u32-conv-to-enc: New file.
82090         * lib/uniconv/u32-conv-to-enc.c: New file.
82091         * modules/uniconv/u32-conv-to-enc-tests: New file.
82092         * tests/uniconv/test-u32-conv-to-enc.c: New file.
82094         * modules/uniconv/u16-conv-to-enc: New file.
82095         * lib/uniconv/u16-conv-to-enc.c: New file.
82096         * lib/uniconv/u-conv-to-enc.h: New file.
82097         * modules/uniconv/u16-conv-to-enc-tests: New file.
82098         * tests/uniconv/test-u16-conv-to-enc.c: New file.
82100         * modules/uniconv/u8-conv-to-enc: New file.
82101         * lib/uniconv/u8-conv-to-enc.c: New file.
82102         * modules/uniconv/u8-conv-to-enc-tests: New file.
82103         * tests/uniconv/test-u8-conv-to-enc.c: New file.
82105         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
82106         u32_conv_to_encoding): New declarations.
82108 2007-06-09  Bruno Haible  <bruno@clisp.org>
82110         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
82112 2007-06-09  Bruno Haible  <bruno@clisp.org>
82114         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
82115         * modules/malloca: Renamed from modules/allocsa, updated.
82116         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
82117         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
82118         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
82119         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
82120         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
82121         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
82122         * modules/xmalloca: Renamed from modules/xallocsa, updated.
82123         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
82124         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
82125         * modules/c-strcasestr (Depends-on): Update.
82126         * lib/c-strcasestr.c: Update.
82127         * modules/c-strstr (Depends-on): Update.
82128         * lib/c-strstr.c: Update.
82129         * modules/canonicalize-lgpl (Depends-on): Update.
82130         * lib/canonicalize-lgpl.c: Update.
82131         * modules/clean-temp (Depends-on): Update.
82132         * lib/clean-temp.c: Update.
82133         * modules/csharpcomp (Depends-on): Update.
82134         * lib/csharpcomp.c: Update.
82135         * modules/csharpexec (Depends-on): Update.
82136         * lib/csharpexec.c: Update.
82137         * modules/javacomp (Depends-on): Update.
82138         * lib/javacomp.c: Update.
82139         * modules/javaexec (Depends-on): Update.
82140         * lib/javaexec.c: Update.
82141         * modules/mbscasestr (Depends-on): Update.
82142         * lib/mbscasestr.c: Update.
82143         * modules/mbsstr (Depends-on): Update.
82144         * lib/mbsstr.c: Update.
82145         * modules/setenv (Depends-on): Update.
82146         * lib/setenv.c: Update.
82147         * modules/strcasestr (Depends-on): Update.
82148         * lib/strcasestr.c: Update.
82149         * modules/striconveha (Depends-on): Update.
82150         * lib/striconveha.c: Update.
82151         * modules/relocatable-prog-wrapper (Files): Update.
82152         * lib/relocwrapper.c: Update.
82153         * build-aux/install-reloc: Update.
82154         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
82156 2007-06-08  Bruno Haible  <bruno@clisp.org>
82158         Port to uClibc.
82159         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
82160         * lib/fpurge.c (fpurge): Likewise.
82161         * lib/freading.c (freading): Likewise.
82162         * lib/fseeko.c (rpl_fseeko): Likewise.
82163         * lib/fseterr.c (fseterr): Likewise.
82164         * lib/fwriting.c (fwriting): Likewise.
82165         * tests/test-fflush.c (main): Avoid a failure on uClibc.
82167 2007-06-08  Bruno Haible  <bruno@clisp.org>
82169         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
82170         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
82171         * modules/gettext (Files): Add m4/intlmacosx.m4.
82173 2007-06-07  Bruno Haible  <bruno@clisp.org>
82175         * modules/localename-tests: New file.
82176         * tests/test-localename.c: New file.
82178         New module 'localename'.
82179         * lib/localename.h: New file.
82180         * lib/localename.c: New file, from GNU gettext.
82181         * m4/localename.m4: New file.
82182         * modules/localename: New file.
82184 2007-06-07  Bruno Haible  <bruno@clisp.org>
82186         Work around the lack of <wchar.h> on some builds of uClibc.
82187         * doc/headers/wchar.texi: Update.
82188         * lib/wchar_.h: Include <wchar.h> only if it exists.
82189         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
82190         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
82191         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
82192         doesn't exist.
82193         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
82194         * modules/mbfile (Depends-on): Add wchar.
82195         * modules/mbiter (Depends-on): Likewise.
82196         * modules/mbuiter (Depends-on): Likewise.
82197         Reported by Simon Josefsson.
82199 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82201         Work around problem reported by Steven M. Schweda in
82202         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
82203         Tru64 5.1B with the Compaq compiler environment installed declares
82204         an 'isblank' function but does not define it in the C library.
82205         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
82206         * lib/regex_internal.h (isblank): Likewise.
82207         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
82208         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82210 2007-06-05  Bruno Haible  <bruno@clisp.org>
82212         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
82213         ia64.
82214         * modules/printf-safe: New file.
82215         * modules/fprintf-posix (Depends-on): Add printf-safe.
82216         * modules/printf-posix (Depends-on): Likewise.
82217         * modules/snprintf-posix (Depends-on): Likewise.
82218         * modules/sprintf-posix (Depends-on): Likewise.
82219         * modules/vasnprintf-posix (Depends-on): Likewise.
82220         * modules/vasprintf-posix (Depends-on): Likewise.
82221         * modules/vfprintf-posix (Depends-on): Likewise.
82222         * modules/vprintf-posix (Depends-on): Likewise.
82223         * modules/vsnprintf-posix (Depends-on): Likewise.
82224         * modules/vsprintf-posix (Depends-on): Likewise.
82225         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
82226         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
82227         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
82228         "no" on i386, x86_64, ia64.
82229         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
82230         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82231         on i386, x86_64, ia64.
82232         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
82233         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82234         on i386, x86_64, ia64.
82235         * tests/test-vasnprintf-posix.c: Include float.h.
82236         (LDBL80_WORDS): New macro.
82237         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82238         on i386, x86_64, ia64.
82239         * tests/test-vasprintf-posix.c: Include float.h.
82240         (LDBL80_WORDS): New macro.
82241         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82242         on i386, x86_64, ia64.
82243         * tests/test-snprintf-posix.c: Include float.h.
82244         * tests/test-sprintf-posix.c: Likewise.
82245         * tests/test-vsnprintf-posix.c: Likewise.
82246         * tests/test-vsprintf-posix.c: Likewise.
82248 2007-06-05  Bruno Haible  <bruno@clisp.org>
82250         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
82251         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
82252         non-IEEE numbers on i386, x86_64, ia64.
82253         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
82254         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
82255         * tests/test-isnanl.h: Include float.h.
82256         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
82258 2007-06-05  Bruno Haible  <bruno@clisp.org>
82260         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
82261         also the %a / %A. Handle the %a / %A code before this extra handling.
82263 2007-06-05  Bruno Haible  <bruno@clisp.org>
82265         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
82266         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
82268 2007-06-05  Bruno Haible  <bruno@clisp.org>
82270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
82271         typo in variable name.
82273 2007-06-05  Eric Blake  <ebb9@byu.net>
82275         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
82276         Reported by Simon Josefsson.
82278 2007-06-04  Bruno Haible  <bruno@clisp.org>
82280         Avoid test failures on some PowerPC platforms.
82281         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
82282         Define differently for PowerPC.
82283         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
82284         Reported by Gary V. Vaughan <gary@gnu.org>.
82286 2007-06-02  Bruno Haible  <bruno@clisp.org>
82288         Fix test-stdint failure on FreeBSD/ia64.
82289         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
82290         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
82291         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
82292         * doc/headers/stdint.texi: Update.
82294 2007-06-01  Bruno Haible  <bruno@clisp.org>
82296         * tests/test-binary-io.c (main): Pass a third argument to open().
82297         Reported by Gary V. Vaughan <gary@gnu.org>.
82299 2007-06-01  Bruno Haible  <bruno@clisp.org>
82301         * doc/functions/frexpl.texi: Update for mingw.
82303 2007-06-01  Bruno Haible  <bruno@clisp.org>
82305         * tests/test-lseek.c (main): Disable test of errno for invalid third
82306         argument.
82307         * doc/functions/lseek.texi: Update.
82308         Reported by Gary V. Vaughan <gary@gnu.org>.
82310 2007-05-28  Bruno Haible  <bruno@clisp.org>
82312         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
82314 2007-05-31  Eric Blake  <ebb9@byu.net>
82316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
82317         cross compiling.
82319 2007-05-30  Eric Blake  <ebb9@byu.net>
82320         and Bruno Haible  <bruno@clisp.org>
82322         Work around mingw test failures exposed by m4-1.4.9b.
82323         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
82324         * tests/test-unistd.c: Disable uid_t and git_t tests for the
82325         moment.
82327 2007-05-30  Bruno Haible  <bruno@clisp.org>
82329         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
82330         assuming that they are closed. Needed on HP-UX 11.
82332 2007-05-29  Bruno Haible  <bruno@clisp.org>
82334         Fix a problem with #include_next.
82335         * lib/dirent_.h: Split the double-inclusion guard.
82336         * lib/fcntl_.h: Likewise.
82337         * lib/float_.h: Likewise.
82338         * lib/iconv_.h: Likewise.
82339         * lib/inttypes_.h: Likewise.
82340         * lib/locale_.h: Likewise.
82341         * lib/math_.h: Likewise.
82342         * lib/netinet_in_.h: Likewise.
82343         * lib/search_.h: Likewise.
82344         * lib/signal_.h: Likewise.
82345         * lib/stdint_.h: Likewise.
82346         * lib/stdio_.h: Likewise.
82347         * lib/stdlib_.h: Likewise.
82348         * lib/string_.h: Likewise.
82349         * lib/sys_select_.h: Likewise.
82350         * lib/sys_socket_.h: Likewise.
82351         * lib/sys_stat_.h: Likewise.
82352         * lib/sys_time_.h: Likewise.
82353         * lib/sysexits_.h: Likewise.
82354         * lib/time_.h: Likewise.
82355         * lib/unistd_.h: Likewise.
82356         * lib/wchar_.h: Likewise.
82357         * lib/wctype_.h: Likewise.
82359 2007-05-29  Bruno Haible  <bruno@clisp.org>
82361         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
82362         for the moment.
82364 2007-05-29  Bruno Haible  <bruno@clisp.org>
82366         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
82367         invocation.
82368         Reported by Eric Blake.
82370 2007-05-29  Bruno Haible  <bruno@clisp.org>
82372         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
82373         compiling case.
82375 2007-05-29  Eric Blake  <ebb9@byu.net>
82376             Bruno Haible  <bruno@clisp.org>
82378         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
82379         cross compiles.
82381 2007-05-28  Eric Blake  <ebb9@byu.net>
82383         * modules/closein-tests (test_closein_LDADD): Support test on
82384         cygwin with libtool.
82386 2007-05-28  Bruno Haible  <bruno@clisp.org>
82388         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
82389         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82390         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82391         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82392         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82393         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82394         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82395         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82396         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82398 2007-05-28  Eric Blake  <ebb9@byu.net>
82400         Unconditionally include <config.h> in unit tests.
82401         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
82402         * tests/test-allocsa.c, tests/test-arcfour.c,
82403         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
82404         tests/test-array_list.c, tests/test-array_oset.c,
82405         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
82406         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
82407         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
82408         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
82409         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
82410         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
82411         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
82412         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
82413         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
82414         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
82415         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
82416         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
82417         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
82418         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
82419         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
82420         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
82421         test-md5.c, test-memmem.c, test-printf-posix.c,
82422         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
82423         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
82424         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
82425         test-strcasestr.c, test-striconv.c, test-striconveh.c,
82426         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
82427         test-vasnprintf-posix2.c, test-vasnprintf.c,
82428         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
82429         test-vfprintf-posix.c, test-vprintf-posix.c,
82430         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
82431         test-xvasprintf.c: Likewise.
82433 2007-05-28  Bruno Haible  <bruno@clisp.org>
82435         * gnulib-tool (func_import): Remember the --with-tests command-line
82436         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
82437         Reported by Eric Blake.
82439 2007-05-28  Bruno Haible  <bruno@clisp.org>
82441         * modules/ftell-tests: New file.
82442         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
82443         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
82445         * lib/ftell.c: New file.
82446         * modules/ftell: New file.
82447         * m4/ftell.m4: New file.
82448         * doc/functions/ftell.texi: Update.
82449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
82450         REPLACE_FTELL.
82451         * lib/stdio_.h (rpl_ftell): New declaration.
82452         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
82453         REPLACE_FTELL.
82455 2007-05-28  Eric Blake  <ebb9@byu.net>
82457         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
82459 2007-05-28  Bruno Haible  <bruno@clisp.org>
82461         * modules/fseek-tests: New file.
82462         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
82463         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
82465         * lib/fseek.c: New file.
82466         * modules/fseek: New file.
82467         * m4/fseek.m4: New file.
82468         * doc/functions/fseek.texi: Update.
82469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
82470         REPLACE_FSEEK.
82471         * lib/stdio_.h (rpl_fseek): New declaration.
82472         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
82473         REPLACE_FSEEK.
82475 2007-05-28  Bruno Haible  <bruno@clisp.org>
82477         * lib/stdio_.h (fflush): More comments.
82479 2007-05-28  Bruno Haible  <bruno@clisp.org>
82481         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
82482         runtime test.
82484 2007-05-28  Eric Blake  <ebb9@byu.net>
82486         Improve lseek module.
82487         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
82488         * lib/unistd_.h (lseek): Scale back link warning message.
82489         * tests/test-lseek.c: Beef up test.
82490         * tests/test-lseek.sh: Exercise more facets of lseek.
82491         Reported by Bruno Haible.
82493 2007-05-28  Bruno Haible  <bruno@clisp.org>
82495         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
82496         to define.
82498 2007-05-27  Bruno Haible  <bruno@clisp.org>
82500         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
82502 2007-05-27  Bruno Haible  <bruno@clisp.org>
82504         * modules/openmp: New file.
82505         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
82506         Noah Misch.
82508 2007-05-26  Bruno Haible  <bruno@clisp.org>
82510         * modules/chdir-long (Depends-on): Add fchdir.
82511         * modules/chdir-safer (Depends-on): Likewise.
82512         * modules/fts (Depends-on): Likewise.
82513         * modules/fts-lgpl (Depends-on): Likewise.
82514         * modules/openat (Depends-on): Likewise.
82515         * modules/savewd (Depends-on): Likewise.
82517 2007-05-24  Eric Blake  <ebb9@byu.net>
82519         Fix lseek on mingw.
82520         * modules/lseek: New module.
82521         * m4/lseek.m4: New file.
82522         * lib/lseek.c: New file.
82523         * modules/lseek-tests: New file.
82524         * tests/test-lseek.c: New file.
82525         * tests/test-lseek.sh: New file.
82526         * MODULES.html.sh: Document lseek module.
82527         * modules/fflush (Depends-on): Add lseek, fseeko.
82528         * modules/fseeko (Depends-on): Likewise.
82529         * modules/ftello (Depends-on): Likewise.
82530         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
82531         broken.
82532         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
82533         broken.
82534         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
82535         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
82536         * lib/ftello.c (rpl_ftello): Likewise.
82537         * tests/test-fseeko.c (main): Test this.
82538         * tests/test-fseeko.sh: Likewise.
82539         * tests/test-ftello.c (main): Likewise.
82540         * tests/test-ftello.sh: Likewise.
82541         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
82542         implies replacing fseek.
82543         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
82544         HAVE_FTELLO.
82545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
82546         * modules/unistd (Makefile.am): Likewise.
82547         * lib/unistd_.h (lseek): Declare a replacement.
82548         * doc/functions/lseek.texi (lseek): Document this fix.
82549         * doc/functions/fseek.texi (fseek): Likewise.
82550         * doc/functions/ftell.texi (ftell): Likewise.
82552 2007-05-24  Bruno Haible  <bruno@clisp.org>
82554         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
82555         in the printed representation of a NaN.
82556         * tests/test-vasprintf-posix.c (test_function): Likewise.
82557         * tests/test-snprintf-posix.h (test_function): Likewise.
82558         * tests/test-sprintf-posix.h (test_function): Likewise.
82559         Reported by Eric Blake.
82561 2007-05-23  Eric Blake  <ebb9@byu.net>
82563         Fix fseeko/ftello on cygwin 1.5.24.
82564         * doc/functions/fseeko.texi (fseeko): Document the fix.
82565         * doc/functions/ftello.texi (ftello): Document the fix.
82566         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
82567         * doc/functions/stdout.text (stdout): New file.
82568         * doc/functions/stderr.text (stderr): New file.
82569         * doc/gnulib.texi (Function Substitutes): Use new files.
82570         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
82571         prior to 1.7.0.
82572         * tests/test-ftello.c (main): Likewise for ftello.
82573         * tests/test-fseeko.sh: New file.
82574         * tests/test-ftello.sh: New file.
82575         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
82576         with seekable stdin.
82577         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
82578         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
82579         (gl_REPLACE_FSEEKO): New macro.
82580         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
82581         * modules/fseeko (Files): Distribute fseeko.c.
82582         * modules/ftello (Files): Distribute ftello.c.
82583         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
82584         mode.
82585         * lib/ftello.c (rpl_ftello): New file.
82586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
82587         fseeko, ftello.
82588         (gl_STDIN_LARGE_OFFSET): New macro.
82589         * modules/stdio (Makefile.am): Perform the replacement.
82590         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
82592 2007-05-23  Bruno Haible  <bruno@clisp.org>
82594         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
82595         GNULIB_POSIXCHECK is defined.
82597 2007-05-21  Bruno Haible  <bruno@clisp.org>
82599         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
82600         Check also the output for NaN arguments. When cross-compiling, guess
82601         no on IRIX.
82602         * lib/vasnprintf.c: Update comments.
82603         * tests/test-vasnprintf-posix.c (strisnan): New function.
82604         (test_function): Use it.
82605         * tests/test-vasprintf-posix.c (strisnan): New function.
82606         (test_function): Use it.
82607         * tests/test-snprintf-posix.h (strisnan): New function.
82608         (test_function): Use it.
82609         * tests/test-sprintf-posix.h (strisnan): New function.
82610         (test_function): Use it.
82611         Reported by Eric Blake.
82613 2007-05-20  Bruno Haible  <bruno@clisp.org>
82615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
82616         numbers that fails on BeOS.
82617         * doc/functions/frexpl.texi: Update.
82619 2007-05-20  Jim Meyering  <jim@meyering.net>
82621         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
82622         forced upon us by glibc-2.6.
82624 2007-05-20  Bruno Haible  <bruno@clisp.org>
82626         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
82627         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
82628         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
82629         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
82630         NEED_PRINTF_INFINITE.
82631         (is_infinitel): New function.
82632         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
82633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
82634         gl_PREREQ_VASNPRINTF_INFINITE.
82635         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
82636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82637         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
82638         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
82639         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
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-20  Bruno Haible  <bruno@clisp.org>
82659         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
82660         was not found in libc.
82661         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
82663 2007-05-20  Bruno Haible  <bruno@clisp.org>
82665         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
82666         printed as "-nan" instead of "nan".
82667         * tests/test-vasprintf-posix.c (test_function): Likewise.
82668         * tests/test-snprintf-posix.h (test_function): Likewise.
82669         * tests/test-sprintf-posix.h (test_function): Likewise.
82670         Needed for HP-UX 11.
82672 2007-05-20  Jim Meyering  <jim@meyering.net>
82674         Fix buggy test for the fchownat-deref bug.
82675         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
82676         symlink required for the run-test.  Without it, this test would
82677         always declare that fchownat doesn't work, and client code would
82678         unnecessarily use the replacement function with fixed libc.
82679         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
82680         Reported by Greg Schafer.
82682 2007-05-19  Bruno Haible  <bruno@clisp.org>
82684         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
82685         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
82686         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
82687         Needed for IRIX 6.5 and Solaris 2.5.1.
82689 2007-05-19  Bruno Haible  <bruno@clisp.org>
82691         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
82692         (test_function): Skip tests involving -0.0 on platforms where
82693         -0.0 = 0.0.
82694         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
82695         (test_function): Skip tests involving -0.0 on platforms where
82696         -0.0 = 0.0.
82697         * tests/test-snprintf-posix.h (have_minus_zero): New function.
82698         (test_function): Skip tests involving -0.0 on platforms where
82699         -0.0 = 0.0.
82700         * tests/test-sprintf-posix.h (have_minus_zero): New function.
82701         (test_function): Skip tests involving -0.0 on platforms where
82702         -0.0 = 0.0.
82703         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
82704         tests.
82705         * tests/test-printf-posix.h (test_function): Likewise.
82706         * tests/test-printf-posix.output: Remove all -0.0 related results.
82707         Needed for IRIX 6.5.
82709 2007-05-19  Bruno Haible  <bruno@clisp.org>
82711         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
82712         printed as "nan0x7fffffff" instead of "nan".
82713         * tests/test-vasprintf-posix.c (test_function): Likewise.
82714         * tests/test-snprintf-posix.h (test_function): Likewise.
82715         * tests/test-sprintf-posix.h (test_function): Likewise.
82716         * tests/test-fprintf-posix.h (NaN): Remove macro.
82717         (test_function): Remove all NaN related tests.
82718         * tests/test-printf-posix.h (NaN): Remove macro.
82719         (test_function): Remove all NaN related tests.
82720         * tests/test-printf-posix.output: Remove all NaN related results.
82721         Needed for IRIX 6.5.
82723 2007-05-19  Bruno Haible  <bruno@clisp.org>
82725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
82726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
82728 2007-05-19  Bruno Haible  <bruno@clisp.org>
82730         * lib/float_.h: New file.
82731         * m4/float_h.m4: New file.
82732         * modules/float: New file.
82733         * modules/isnanl (Dependencies): Add float.
82734         * modules/isnanl-nolibm (Dependencies): Likewise.
82735         * modules/mathl (Dependencies): Likewise.
82736         * modules/printf-frexpl (Dependencies): Likewise.
82737         * modules/signbit (Dependencies): Likewise.
82738         * modules/vasnprintf (Dependencies): Likewise.
82739         * doc/headers/float.texi: Update.
82741 2007-05-19  Jim Meyering  <jim@meyering.net>
82743         * lib/utimens.c (gl_futimens): Rename from futimens,
82744         now that glibc-2.6 declares futimens.
82745         * lib/utimens.h: Likewise.
82747 2007-05-19  Bruno Haible  <bruno@clisp.org>
82749         Avoid test failures on mingw.
82750         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
82751         * tests/test-printf-posix.sh: Likewise.
82752         * tests/test-vfprintf-posix.sh: Likewise.
82753         * tests/test-vprintf-posix.sh: Likewise.
82755 2007-05-19  Bruno Haible  <bruno@clisp.org>
82757         Fix *printf result for NaN, Inf, -0.0 on mingw.
82758         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
82759         * lib/vasnprintf.c: Include math.h and isnan.h.
82760         (is_infinite_or_zero): New function.
82761         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
82762         values in the %f, %F, %e, %E, %g, %G directives.
82763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
82764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82765         gl_PRINTF_INFINITE and test its result. Invoke
82766         gl_PREREQ_VASNPRINTF_INFINITE.
82767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82773         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82774         * doc/functions/fprintf.texi: Update.
82775         * doc/functions/printf.texi: Update.
82776         * doc/functions/snprintf.texi: Update.
82777         * doc/functions/sprintf.texi: Update.
82778         * doc/functions/vfprintf.texi: Update.
82779         * doc/functions/vprintf.texi: Update.
82780         * doc/functions/vsnprintf.texi: Update.
82781         * doc/functions/vsprintf.texi: Update.
82783 2007-05-19  Bruno Haible  <bruno@clisp.org>
82785         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
82786         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
82787         Instead of multiplying with 10^k, set extra_zeroes to k.
82788         (scale10_round_long_double): Remove function.
82790 2007-05-18  Bruno Haible  <bruno@clisp.org>
82792         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
82793         introduced on 2007-05-06.
82795 2007-05-18  Bruno Haible  <bruno@clisp.org>
82797         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
82798         %g directives.
82799         * tests/test-vasprintf-posix.c (test_function): Likewise.
82800         * tests/test-snprintf-posix.h (test_function): Likewise.
82801         * tests/test-sprintf-posix.h (test_function): Likewise.
82803 2007-05-18  Bruno Haible  <bruno@clisp.org>
82805         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
82806         (strmatch): New function.
82807         (test_function): Test the %f directive on numbers of various exponents.
82808         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
82809         (strmatch): New function.
82810         (test_function): Test the %f directive on numbers of various exponents.
82811         * tests/test-snprintf-posix.h (strmatch): New function.
82812         (test_function): Test the %f directive on numbers of various exponents.
82813         * tests/test-sprintf-posix.h (strmatch): New function.
82814         (test_function): Test the %f directive on numbers of various exponents.
82815         * tests/test-snprintf-posix.c (SIZEOF): New macro.
82816         * tests/test-sprintf-posix.c (SIZEOF): New macro.
82817         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
82818         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
82820 2007-05-18  Bruno Haible  <bruno@clisp.org>
82822         Add support for 'long double' number output.
82823         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
82824         * lib/vasnprintf.c: Include math.h and float+.h.
82825         (mp_limb_t): New type.
82826         (GMP_LIMB_BITS): New macro.
82827         (mp_twolimb_t): New type.
82828         (GMP_TWOLIMB_BITS): New macro.
82829         (mpn_t): New type.
82830         (multiply, divide, convert_to_decimal, decode_long_double,
82831         scale10_round_long_double, scale10_round_decimal_long_double,
82832         floorlog10l): New functions.
82833         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
82834         for the %f, %F, %e, %E, %g, %G directives.
82835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
82836         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82837         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
82838         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
82839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82840         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82841         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82842         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82843         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82844         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82846         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
82847         * modules/snprintf-posix (Depends-on): Likewise.
82848         * modules/sprintf-posix (Depends-on): Likewise.
82849         * modules/vasnprintf-posix (Depends-on): Likewise.
82850         * modules/vasprintf-posix (Depends-on): Likewise.
82851         * modules/vfprintf-posix (Depends-on): Likewise.
82852         * modules/vsnprintf-posix (Depends-on): Likewise.
82853         * modules/vsprintf-posix (Depends-on): Likewise.
82854         * modules/vasnprintf (Files): Add lib/float+.h.
82855         * doc/functions/fprintf.texi: Update.
82856         * doc/functions/printf.texi: Update.
82857         * doc/functions/snprintf.texi: Update.
82858         * doc/functions/sprintf.texi: Update.
82859         * doc/functions/vfprintf.texi: Update.
82860         * doc/functions/vprintf.texi: Update.
82861         * doc/functions/vsnprintf.texi: Update.
82862         * doc/functions/vsprintf.texi: Update.
82864 2007-05-18  Bruno Haible  <bruno@clisp.org>
82866         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
82868 2007-05-18  Bruno Haible  <bruno@clisp.org>
82870         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
82871         for printing 64-bit integers. Needed for mingw.
82873 2007-05-18  Bruno Haible  <bruno@clisp.org>
82875         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
82876         gl_FUNC_FREXPL_WORKS.
82877         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
82879 2007-05-18  Bruno Haible  <bruno@clisp.org>
82881         * modules/frexpl-nolibm-tests: New file.
82883         * modules/frexpl-nolibm: New file.
82884         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
82886 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82888         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
82889         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82890         GCC 4.2, which otherwise issues a lot of warnings.
82891         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
82892         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
82893         Likewise.
82894         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
82895         * modules/iconv_open (iconv.h): Likewise.
82896         * modules/locale (locale.h): Likewise.
82897         * modules/netinet_in (netinet/in.h): Likewise.
82898         * modules/sys_select (sys_select.h): Likewise.
82899         * modules/sys_socket (sys/socket.h): Likewise.
82900         * modules/sys_stat (sys/stat.h): Likewise.
82901         * modules/sysexits (sysexits.h): Likewise.
82902         * modules/unistd (unistd.h): Likewise.
82904 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82906         * modules/closein-tests (Makefile.am): Distribute
82907         `test-closein.sh'.
82909 2007-05-17  Bruno Haible  <bruno@clisp.org>
82911         * tests/test-printf-posix.output: Renamed from
82912         tests/test-fprintf-posix.out.
82913         * modules/fprintf-posix-tests: Update.
82914         * modules/printf-posix-tests: Update.
82915         * modules/vfprintf-posix-tests: Update.
82916         * modules/vprintf-posix-tests: Update.
82917         * tests/test-fprintf-posix.sh: Update.
82918         * tests/test-printf-posix.sh: Update.
82919         * tests/test-vfprintf-posix.sh: Update.
82920         * tests/test-vprintf-posix.sh: Update.
82921         Reported by Ralf Wildenhues.
82923 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82925         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
82926         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82927         GCC 4.2, which otherwise issues a lot of warnings.
82928         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
82929         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
82930         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
82931         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
82932         it should no longer be needed.
82933         * lib/string_.h: Likewise.
82934         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
82935         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
82936         * modules/inttypes (inttypes.h): Likewise.
82937         * modules/math (math.h): Likewise.
82938         * modules/search (search.h): Likewise.
82939         * modules/signal (signal.h): Likewise.
82940         * modules/stdint (stdint.h): Likewise.
82941         * modules/stdio (stdio.h): Likewise.
82942         * modules/stdlib (stdlib.h): Likewise.
82943         * modules/string (string.h): Likewise.
82944         * modules/sys_time (sys/time.h): Likewise.
82945         * modules/time (time.h): Likewise.
82946         * modules/wchar (wchar.h): Likewise.
82947         * modules/wctype (wtype.h): Likewise.
82949 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
82951         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
82953 2007-05-13  Bruno Haible  <bruno@clisp.org>
82955         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
82956         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82957         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
82958         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
82959         (gl_PREREQ_STRTOK_R): Don't require it here.
82961 2007-05-13  Bruno Haible  <bruno@clisp.org>
82963         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
82964         when used in C++ mode.
82966 2007-05-12  Bruno Haible  <bruno@clisp.org>
82968         * lib/linebuffer.h: Tweak doc.
82969         * lib/linebuffer.c: Likewise.
82971 2007-05-12  James Youngman  <jay@gnu.org>
82973         * lib/linebuffer.c (readlinebuffer_delim): New function,
82974         like readlinebuffer, but use a caller-specified delimiter.
82975         (readlinebuffer): Just call readlinebuffer_delim with '\n'
82976         as the delimiter.
82977         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
82979 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82981         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
82982         * modules/openat (Files): Remove openat-die.c.
82983         (Depends-on): Add openat-die.
82984         * modules/openat-die: New module.
82986 2007-05-06  Bruno Haible  <bruno@clisp.org>
82988         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
82989         Update with info about Cygwin.
82990         * doc/functions/fprintf.texi: Update.
82991         * doc/functions/printf.texi: Update.
82992         * doc/functions/snprintf.texi: Update.
82993         * doc/functions/sprintf.texi: Update.
82994         * doc/functions/vfprintf.texi: Update.
82995         * doc/functions/vprintf.texi: Update.
82996         * doc/functions/vsnprintf.texi: Update.
82997         * doc/functions/vsprintf.texi: Update.
82998         Reported by Eric Blake.
83000 2007-05-06  Bruno Haible  <bruno@clisp.org>
83002         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
83003         padding ourselves for the floating-point directives.
83004         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
83005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
83006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83007         gl_PRINTF_FLAG_ZERO and test its result. Invoke
83008         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
83009         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83010         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
83011         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83012         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83013         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83016         * tests/test-snprintf-posix.h (test_function): Also check the width
83017         and some flags in the %f directive.
83018         * tests/test-sprintf-posix.h (test_function): Likewise.
83019         * tests/test-vasnprintf-posix.c (test_function): Likewise.
83020         * tests/test-vasprintf-posix.c (test_function): Likewise.
83021         * doc/functions/fprintf.texi: Update.
83022         * doc/functions/printf.texi: Update.
83023         * doc/functions/snprintf.texi: Update.
83024         * doc/functions/sprintf.texi: Update.
83025         * doc/functions/vfprintf.texi: Update.
83026         * doc/functions/vprintf.texi: Update.
83027         * doc/functions/vsnprintf.texi: Update.
83028         * doc/functions/vsprintf.texi: Update.
83030 2007-05-06  Bruno Haible  <bruno@clisp.org>
83032         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
83033         pass the ' flag character to sprintf or snprintf.
83034         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
83035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
83036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83037         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
83038         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
83039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
83041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83045         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83046         * tests/test-snprintf-posix.h (test_function): Also check the grouping
83047         flag.
83048         * tests/test-sprintf-posix.h (test_function): Likewise.
83049         * tests/test-vasnprintf-posix.c (test_function): Likewise.
83050         * tests/test-vasprintf-posix.c (test_function): Likewise.
83051         * doc/functions/fprintf.texi: Update.
83052         * doc/functions/printf.texi: Update.
83053         * doc/functions/snprintf.texi: Update.
83054         * doc/functions/sprintf.texi: Update.
83055         * doc/functions/vfprintf.texi: Update.
83056         * doc/functions/vprintf.texi: Update.
83057         * doc/functions/vsnprintf.texi: Update.
83058         * doc/functions/vsprintf.texi: Update.
83060 2007-05-01  Bruno Haible  <bruno@clisp.org>
83062         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
83064 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
83066         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
83067         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
83069 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83071         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
83072         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
83073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
83075 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
83077         * lib/argp-help.c (struct hol_entry): New member `ord'.
83078         (HOL_ENTRY_PTRCMP): Use ord for comparison
83079         (hol_sort): Initialize ord.
83081 2007-05-01  Bruno Haible  <bruno@clisp.org>
83083         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
83084         Reported by Eric Blake.
83085         * doc/gnulib.texi (Function Substitutes): Update.
83087 2007-05-01  Bruno Haible  <bruno@clisp.org>
83089         * doc/functions.texi: Remove file, now redundant through
83090         doc/functions/*.texi.
83092 2007-05-01  Bruno Haible  <bruno@clisp.org>
83094         * modules/argp (Depends-on): Add sleep.
83096 2007-05-01  Bruno Haible  <bruno@clisp.org>
83098         * modules/sleep-tests: New file.
83099         * tests/test-sleep.c: New file.
83101         * modules/sleep: New file.
83102         * lib/sleep.c: New file.
83103         * m4/sleep.m4: New file.
83104         * lib/unistd_.h (sleep): New declaration.
83105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
83106         HAVE_SLEEP.
83107         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
83108         * doc/functions/sleep.texi: Document the sleep module.
83110 2007-05-01  Bruno Haible  <bruno@clisp.org>
83112         * lib/sigprocmask.h: Remove file.
83113         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
83114         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
83115         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
83116         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
83117         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
83118         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
83119         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
83120         HAVE_SIGSET_T as a shell variable.
83121         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
83122         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
83123         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
83124         (Depends-on): Add signal. Remove verify.
83125         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
83126         (Include): Mention <signal.h> instead of sigprocmask.h.
83127         * NEWS: Mention the change.
83128         * lib/fatal-signal.c: Don't include sigprocmask.h.
83130 2007-05-01  Bruno Haible  <bruno@clisp.org>
83132         * modules/signal: New file.
83133         * lib/signal_.h: New file.
83134         * m4/signal_h.m4: New file.
83136 2007-05-01  Bruno Haible  <bruno@clisp.org>
83138         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
83139         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
83140         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
83141         HAVE_WCTYPE_CTMP_BUG into wctype.h.
83143 2007-05-01  Bruno Haible  <bruno@clisp.org>
83145         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
83146         configure time.
83147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
83148         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
83149         * modules/sys_stat (Makefile.am): Substitute their values into
83150         sys/stat.h.
83152 2007-05-01  Bruno Haible  <bruno@clisp.org>
83154         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
83155         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
83156         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
83158 2007-05-01  Bruno Haible  <bruno@clisp.org>
83160         * doc/header/assert.texi: Undo last change: don't mention the gnulib
83161         'assert' module here.
83163 2007-05-01  Bruno Haible  <bruno@clisp.org>
83165         * doc/functions/*.texi: New files.
83166         * doc/functions/google-ranking.txt: New file.
83167         * doc/gnulib.texi (Function Substitutes): New chapter.
83168         (ctime, inet_ntoa): Remove sections.
83169         * doc/ctime.texi: Remove file.
83170         * doc/inet_ntoa.texi: Remove file.
83171         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
83172         dependencies.
83173         (%.info): New rule, specifying a --reference-limit.
83175 2007-05-01  Bruno Haible  <bruno@clisp.org>
83177         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
83179 2007-05-01  Bruno Haible  <bruno@clisp.org>
83181         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
83182         the portability of 'mkdir' to mingw systems.
83184 2007-05-01  Bruno Haible  <bruno@clisp.org>
83186         * doc/headers/google-ranking.txt: New file.
83188 2007-04-30  Eric Blake  <ebb9@byu.net>
83190         Prefer fseeko to fseek.
83191         * modules/getpass (Depends-on): Add fseeko.
83192         * lib/getpass.c (getpass): Use fseeko, not fseek.
83194 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
83196         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
83197         assumes the sorting is stable, while most qsort implementations
83198         are not.  Use argument addresses to ensure they never compare as
83199         equal.
83201         * tests/test-argp-2.sh (usage-indent test): Fix output
83202         (func_compare): Restore diff options
83203         * tests/test-argp.c: Restore #include "progname.h"
83205 2007-04-29  Bruno Haible  <bruno@clisp.org>
83207         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
83208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83209         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
83210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83211         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
83212         (configure.ac): Define CHECK_SNPRINTF_POSIX.
83213         (TESTS, check_PROGRAMS): Add test-snprintf.
83214         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
83215         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
83216         (TESTS, check_PROGRAMS): Add test-vsnprintf.
83217         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
83218         assertions that fail on HP-UX, OSF/1, or IRIX.
83219         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
83221 2007-04-29  Bruno Haible  <bruno@clisp.org>
83223         * MODULES.html.sh (posix_functions): Remove 'contents'.
83225 2007-04-29  Karl Berry  <karl@gnu.org>
83227         * config/srclist.txt (gendocs_template_min): new entry.
83229 2007-04-29  Bruno Haible  <bruno@clisp.org>
83231         Work around fpurge bug on BSD systems.
83232         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
83233         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
83234         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
83235         fpurge to rpl_fpurge if the system already has this function.
83236         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
83237         the case where the system already has this function. Correct invariants
83238         on BSD systems.
83239         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
83240         BSD systems.
83242 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
83244         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
83245         proposed by Sven Verdoolaege.
83247         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
83248         options.
83249         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
83250         (usage and help tests): Update
83252 2007-04-29  Bruno Haible  <bruno@clisp.org>
83254         * tests/test-fflush.c (main): Use a file of size 17, not 10.
83255         Print more information in case of failure. Disable a test on BeOS.
83257 2007-04-29  Bruno Haible  <bruno@clisp.org>
83259         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
83260         This helps debugging on systems on which no gdb is available.
83262 2007-04-29  Bruno Haible  <bruno@clisp.org>
83264         * lib/freading.h: Improve comments.
83265         * lib/fwriting.h: Likewise.
83266         * tests/test-freading.c (main): Don't check freading immediately after
83267         repositioning. Needed for glibc.
83269 2007-04-29  Bruno Haible  <bruno@clisp.org>
83271         * lib/freading.c (freading): Trivial simplification.
83273 2007-04-28  Bruno Haible  <bruno@clisp.org>
83275         * tests/test-fwriting.c (main): Also test the interaction between
83276         fflush and fwriting.
83277         * modules/fwriting-tests (Depends-on): Add fflush.
83279         * tests/test-freading.c (main): Also test the interaction between
83280         fflush and freading.
83281         * modules/freading-tests (Depends-on): Add fflush.
83283 2007-04-28  Bruno Haible  <bruno@clisp.org>
83285         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
83286         fseeko and ftello.
83287         Suggested by Eric Blake.
83289 2007-04-28  Jim Meyering  <jim@meyering.net>
83291         Avoid false-negative in gl_STDINT_H's C99 conformance test.
83292         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
83293         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
83295 2007-04-27  Eric Blake  <ebb9@byu.net>
83297         * doc/headers/assert.texi (assert.h): Document assert module use.
83299 2007-04-27  Bruno Haible  <bruno@clisp.org>
83301         * doc/headers/*.texi: New files.
83302         * doc/gnulib.texi (Header File Substitutes): New chapter.
83303         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
83304         dependencies.
83305         (standards.info ,standards.html, standards.dvi): Update dependencies.
83306         (mostlyclean, clean): New targets.
83308 2007-04-27  Bruno Haible  <bruno@clisp.org>
83310         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
83311         * modules/sysexits (Files, Makefile.am): Update.
83313         * lib/sys_socket_.h: Renamed from lib/socket_.h.
83314         * modules/sys_socket (Files, Makefile.am): Update.
83316         * lib/sys_stat_.h: Renamed from lib/stat_.h.
83317         * modules/sys_stat (Files, Makefile.am): Update.
83319 2007-04-27  Eric Blake  <ebb9@byu.net>
83321         * lib/freading.h: Improve comments.
83322         * lib/fwriting.h: Likewise.
83323         * lib/fflush.c: Likewise.
83325         Fix closein for mingw.
83326         * modules/closein-tests: Add tests for closein.
83327         * tests/test-closein.c: New file.
83328         * tests/test-closein.sh: Likewise.
83329         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
83330         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
83332 2007-04-27  Bruno Haible  <bruno@clisp.org>
83334         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
83335         version is < 6.
83336         * lib/math_.h [__DECC]: Likewise.
83337         * lib/stdio_.h [__DECC]: Likewise.
83338         * lib/stdlib_.h [__DECC]: Likewise.
83339         * lib/string_.h [__DECC]: Likewise.
83340         * lib/time_.h [__DECC]: Likewise.
83341         * lib/wchar_.h [__DECC]: Likewise.
83342         * lib/wctype_.h [__DECC]: Likewise.
83344 2007-04-27  Bruno Haible  <bruno@clisp.org>
83346         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
83348 2007-04-27  Bruno Haible  <bruno@clisp.org>
83350         * lib/fflush.c: Add comments.
83351         * modules/fpurge-tests (Depends-on): Add fflush.
83352         * modules/freadable-tests (Depends-on): Likewise.
83353         * modules/fwritable-tests (Depends-on): Likewise.
83355 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
83357         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
83358         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
83359         Report by Bruno Haible <bruno@clisp.org>.
83361 2007-04-26  Eric Blake  <ebb9@byu.net>
83363         Fix fflush on mingw.
83364         * modules/fflush (Depends-on): Add freading.
83365         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
83366         but unread data.
83368 2007-04-26  Eric Blake  <ebb9@byu.net>
83369         and Bruno Haible  <bruno@clisp.org>
83371         Implement freading and fwriting.
83372         * lib/freading.c: New file.
83373         * lib/freading.h: Likewise.
83374         * m4/freading.m4: Likewise.
83375         * modules/freading: Likewise.
83376         * modules/freading-tests: Likewise.
83377         * tests/test-freading.c: Likewise.
83378         * lib/fwriting.c: New file.
83379         * lib/fwriting.h: Likewise.
83380         * m4/fwriting.m4: Likewise.
83381         * modules/fwriting: Likewise.
83382         * modules/fwriting-tests: Likewise.
83383         * tests/test-fwriting.c: Likewise.
83384         * MODULES.html.sh (File stream based Input/Output): Mention them.
83386 2007-04-26  Bruno Haible  <bruno@clisp.org>
83388         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
83389         'long' when we assume it.
83390         Suggested by Eric Blake.
83392 2007-04-26  Bruno Haible  <bruno@clisp.org>
83394         Ensure fseeko, ftello are declared on glibc systems.
83395         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
83396         * modules/fseeko (configure.ac-early): Likewise.
83397         * modules/ftello (configure.ac-early): Likewise.
83398         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
83399         AC_FUNC_FSEEKO for this.
83400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
83401         (gl_CHECK_FSEEKO): Remove macro.
83403 2007-04-26  Bruno Haible  <bruno@clisp.org>
83405         * tests/test-fflush.c (main): Also check the ftell result after
83406         fflush and fseek/fseeko.
83407         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
83408         file descriptor position cache in the stream.
83409         * lib/fseeko.c (rpl_fseeko): Likewise.
83411 2007-04-26  Bruno Haible  <bruno@clisp.org>
83413         * modules/fflush-tests (Depends-on): Add fseeko.
83415 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
83416             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83418         * lib/argz_.h: ensure error_t definition is obtained in same
83419         mechanism system argz.h would have.
83420         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
83421         argz facilities are known bad.  Err on the side of caution if
83422         cross-compiling.
83424 2007-04-25  Eric Blake  <ebb9@byu.net>
83426         * lib/fpurge.c (includes): Use stdlib.h for free.
83427         * tests/test-fflush.c (main): Also test fflush-fseeko.
83429 2007-04-25  Bruno Haible  <bruno@clisp.org>
83431         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
83432         * lib/fseeko.c: New file.
83433         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
83434         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
83435         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
83436         gl_FUNC_FSEEKO.
83437         (gl_FUNC_FSEEKO): Invoke it.
83438         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
83439         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
83440         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
83442 2007-04-25  Bruno Haible  <bruno@clisp.org>
83444         * modules/fflush (Depends-on): Add ftello.
83446 2007-04-25  Bruno Haible  <bruno@clisp.org>
83448         * modules/ftello-tests: New file.
83449         * tests/test-ftello.c: New file.
83451         * modules/ftello: New file.
83452         * m4/ftello.m4: New file.
83453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
83454         HAVE_FTELLO.
83455         * lib/stdio_.h (ftello): New declaration.
83456         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
83457         HAVE_FTELLO.
83459 2007-04-25  Bruno Haible  <bruno@clisp.org>
83461         * modules/fseeko-tests: New file.
83462         * tests/test-fseeko.c: New file.
83464         * modules/fseeko: New file.
83465         * m4/fseeko.m4: New file.
83466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
83467         HAVE_FSEEKO.
83468         * lib/stdio_.h (fseeko): New declaration.
83469         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
83470         HAVE_FSEEKO.
83472 2007-04-25  Bruno Haible  <bruno@clisp.org>
83474         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
83476 2007-04-25  Bruno Haible  <bruno@clisp.org>
83478         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
83479         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
83480         * tests/test-unistd.c: Likewise.
83481         * tests/test-fcntl.c: Likewise.
83483 2007-04-23  Eric Blake  <ebb9@byu.net>
83485         * lib/fflush.c: Fix missing include.
83486         Reported by Bruno Haible.
83488 2007-04-23  Bruno Haible  <bruno@clisp.org>
83490         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
83491         Reported by Eric Blake.
83493 2007-04-23  Bruno Haible  <bruno@clisp.org>
83495         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
83497 2007-04-23  Bruno Haible  <bruno@clisp.org>
83499         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
83501 2007-04-23  Bruno Haible  <bruno@clisp.org>
83503         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
83504         Needed on HP-UX 11.
83506 2007-04-16  Eric Blake  <ebb9@byu.net>
83508         Make fflush rely on fpurge.
83509         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
83510         open coding all variants.
83511         * modules/fflush (Depends-on): Add fpurge and unistd.
83512         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
83513         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
83515         Fix --with-tests compilation on cygwin.
83516         * modules/argmatch-tests (Makefile.am): List gnulib library first
83517         in LDADD.
83518         * modules/argp-tests (Makefile.am): Likewise.
83519         * modules/array-list-tests (Makefile.am): Likewise.
83520         * modules/array-oset-tests (Makefile.am): Likewise.
83521         * modules/avltree-list-tests (Makefile.am): Likewise.
83522         * modules/avltree-oset-tests (Makefile.am): Likewise.
83523         * modules/avltreehash-list-tests (Makefile.am): Likewise.
83524         * modules/carray-list-tests (Makefile.am): Likewise.
83525         * modules/dirname-tests (Makefile.am): Likewise.
83526         * modules/frexp-tests (Makefile.am): Likewise.
83527         * modules/isnanl-tests (Makefile.am): Likewise.
83528         * modules/linked-list-tests (Makefile.am): Likewise.
83529         * modules/linkedhash-list-tests (Makefile.am): Likewise.
83530         * modules/lock-tests (Makefile.am): Likewise.
83531         * modules/rbtree-list-tests (Makefile.am): Likewise.
83532         * modules/rbtree-oset-tests (Makefile.am): Likewise.
83533         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
83534         * modules/tls-tests (Makefile.am): Likewise.
83535         * modules/tsearch-tests (Makefile.am): Likewise.
83536         * modules/xvasprintf-tests (Makefile.am): Likewise.
83538         Fix fpurge for cygwin.
83539         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
83540         value.
83541         * modules/fpurge-tests (Depends-on): Clean up trash.
83543 2007-04-16  Simon Josefsson  <simon@josefsson.org>
83545         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
83547         * m4/autobuild.m4: Re-indent.
83549 2007-04-13  Bruno Haible  <bruno@clisp.org>
83551         * modules/fpurge-tests: New file.
83552         * tests/test-fpurge.c: New file.
83554         * modules/fpurge: New file.
83555         * lib/fpurge.h: New file.
83556         * lib/fpurge.c: New file.
83557         * m4/fpurge.m4: New file.
83559 2007-04-13  Bruno Haible  <bruno@clisp.org>
83561         * modules/fbufmode-tests: New file.
83562         * tests/test-fbufmode.c: New file.
83564         * modules/fbufmode: New file.
83565         * lib/fbufmode.h: New file.
83566         * lib/fbufmode.c: New file.
83567         * m4/fbufmode.m4: New file.
83569 2007-04-13  Bruno Haible  <bruno@clisp.org>
83571         * modules/fwritable-tests: New file.
83572         * tests/test-fwritable.c: New file.
83574         * modules/fwritable: New file.
83575         * lib/fwritable.h: New file.
83576         * lib/fwritable.c: New file.
83577         * m4/fwritable.m4: New file.
83579 2007-04-13  Bruno Haible  <bruno@clisp.org>
83581         * modules/freadable-tests: New file.
83582         * tests/test-freadable.c: New file.
83584         * modules/freadable: New file.
83585         * lib/freadable.h: New file.
83586         * lib/freadable.c: New file.
83587         * m4/freadable.m4: New file.
83589 2007-04-13  Bruno Haible  <bruno@clisp.org>
83591         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
83592         MOSTLYCLEANFILES.
83594 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83596         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
83597         gzip bootstrap.conf to avoid dragging in i18n machinery.
83598         (gnulib_tool_option): Use it.
83600 2007-04-13  Bruno Haible  <bruno@clisp.org>
83602         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
83603         %F directives.
83604         * tests/test-vasprintf-posix.c (test_function): Likewise.
83605         * tests/test-snprintf-posix.h (test_function): Likewise.
83606         * tests/test-sprintf-posix.h (test_function): Likewise.
83607         * tests/test-fprintf-posix.h (test_function): Likewise.
83608         * tests/test-printf-posix.h (test_function): Likewise.
83609         * tests/test-fprintf-posix.out: Likewise.
83611 2007-04-13  Bruno Haible  <bruno@clisp.org>
83613         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
83614         * modules/tls-tests (configure.ac): Likewise.
83615         Reported by Arto C. Nirkko <anirkko@insel.ch>.
83617 2007-04-13  Bruno Haible  <bruno@clisp.org>
83619         * lib/tls.c (glthread_tls_get): Fix return type.
83620         Patch by Arto C. Nirkko <anirkko@insel.ch>.
83622 2007-04-12  Eric Blake  <ebb9@byu.net>
83624         * modules/gettime (Depends-on): Remove gettime.
83625         Reported by Dmitry V. Levin.
83627 2007-04-12  Bruno Haible  <bruno@clisp.org>
83629         * modules/fflush (Include): Mention <stdio.h>.
83630         * modules/strtoimax (Include): Mention <inttypes.h>.
83631         * modules/strtoumax (Include): Likewise.
83633 2007-04-12  Eric Blake  <ebb9@byu.net>
83635         * .cvsignore: New file.
83636         * .gitignore: Likewise.
83638 2007-04-12  Bruno Haible  <bruno@clisp.org>
83640         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
83641         not before, since $(LDADD) often contains libgnu.a.
83642         * modules/striconv-tests (test_striconv_LDADD): Likewise.
83643         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
83644         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
83645         Needed on Cygwin.
83647 2007-04-12  Eric Blake  <ebb9@byu.net>
83649         Work around glibc's failure to flush stdin on fclose.
83650         * lib/closein.c (close_stdin): Flush stdin before closing.
83652         Work around glibc's failure to reset seekable stdin on exit.
83653         * modules/closein: New module.
83654         * lib/closein.c: New file.
83655         * lib/closein.h: Likewise.
83656         * m4/closein.m4: Likewise.
83657         * MODULES.html.sh (File stream based Input/Output): Document it.
83659 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83661         * gnulib-tool: Rename generated 'autobuild' script to
83662         'do-autobuild' in --create-megatestdir output.
83664         * doc/gnulib.texi (Build robot for gnulib): Fix.
83666 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83668         * modules/sysexits (Depends-on): Add absolute-header.
83670 2007-04-12  Eric Blake  <ebb9@byu.net>
83672         No need to preserve errno on success.
83673         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
83674         Reported by Bruno Haible.
83676 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83678         * MODULES.html.sh (Support for maintaining and releasing
83679         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
83681 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83683         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
83685 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83687         * modules/autobuild: New module.
83689         * m4/autobuild.m4: New file.
83691 2007-04-11  Bruno Haible  <bruno@clisp.org>
83693         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
83694         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
83695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
83696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
83697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83698         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83699         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83701         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83702         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
83704         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83705         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83706         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
83707         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83708         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
83710         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83711         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
83713         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83714         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
83716         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83717         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83718         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
83719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83721         Reported by Eric Blake.
83723 2007-04-11  Bruno Haible  <bruno@clisp.org>
83725         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
83727 2007-04-10  Bruno Haible  <bruno@clisp.org>
83729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
83730         for NaN and Infinity. Needed on FreeBSD 6.1.
83731         * tests/test-vasnprintf-posix.c (test_function): Undo last change
83732         regarding results for "%010a" of Infinity and NaN.
83733         * tests/test-vasprintf-posix.c (test_function): Likewise.
83734         * tests/test-snprintf-posix.h (test_function): Likewise.
83735         * tests/test-sprintf-posix.h (test_function): Likewise.
83736         * tests/test-fprintf-posix.h (test_function): Likewise.
83737         * tests/test-printf-posix.h (test_function): Likewise.
83738         * tests/test-fprintf-posix.out: Likewise.
83740 2007-04-10  Bruno Haible  <bruno@clisp.org>
83742         * modules/locale-tests: New file.
83743         * tests/test-locale.c: New file.
83745         * modules/locale: New file.
83746         * lib/locale_.h: New file.
83747         * m4/locale_h.m4: New file.
83749 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
83750             Bruno Haible  <bruno@clisp.org>
83752         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
83753         be determined, test for availability of the copysignf, copysign,
83754         copysignl functions.
83755         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
83756         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
83757         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
83759 2007-04-09  Eric Blake  <ebb9@byu.net>
83761         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
83762         * modules/stdio (Makefile.am): Support fflush.
83763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83764         * modules/fflush: New file.
83765         * lib/fflush.c: Likewise.
83766         * m4/fflush.m4: Likewise.
83767         * modules/fflush-tests: New test.
83768         * tests/test-fflush.c: Likewise.
83769         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
83771 2007-04-06  Bruno Haible  <bruno@clisp.org>
83773         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
83774         (VASNPRINTF): Use signbit for faster determination whether to print a
83775         minus sign.
83776         * modules/vasnprintf (Files): Remove lib/float+.h.
83777         * modules/fprintf-posix (Depends-on): Add signbit.
83778         * modules/snprintf-posix (Depends-on): Likewise.
83779         * modules/sprintf-posix (Depends-on): Likewise.
83780         * modules/vasnprintf-posix (Depends-on): Likewise.
83781         * modules/vasprintf-posix (Depends-on): Likewise.
83782         * modules/vfprintf-posix (Depends-on): Likewise.
83783         * modules/vsnprintf-posix (Depends-on): Likewise.
83784         * modules/vsprintf-posix (Depends-on): Likewise.
83786 2007-04-06  Bruno Haible  <bruno@clisp.org>
83788         * tests/test-frexp.c (main): Test also the sign bit of zero results.
83789         * tests/test-frexpl.c (main): Likewise.
83790         * tests/test-ldexpl.c (main): Likewise.
83791         * modules/frexp-tests (Depends-on): Add signbit.
83792         * modules/frexpl-tests (Depdends-on): Likewise.
83793         * modules/ldexpl-tests (Depdends-on): Likewise.
83795 2007-04-06  Bruno Haible  <bruno@clisp.org>
83797         * modules/signbit-tests: New file.
83798         * tests/test-signbit.c: New file.
83800         * modules/signbit: New file.
83801         * lib/signbitf.c: New file.
83802         * lib/signbitd.c: New file.
83803         * lib/signbitl.c: New file.
83804         * m4/signbit.m4: New file.
83805         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
83806         (signbit): New macro.
83807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
83808         REPLACE_SIGNBIT.
83809         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
83810         REPLACE_FREXPL into math.h.
83812 2007-04-06  Bruno Haible  <bruno@clisp.org>
83814         * modules/isnanf-nolibm-tests: New file.
83815         * tests/test-isnanf.c: New file.
83817         * modules/isnanf-nolibm: New file.
83818         * lib/isnanf.h: New file.
83819         * lib/isnanf.c: New file.
83820         * lib/isnan.c: Consider the USE_FLOAT macro.
83821         * m4/isnanf.m4: New file.
83823 2007-04-06  Bruno Haible  <bruno@clisp.org>
83825         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
83826         (Link): New section.
83828         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
83830 2007-04-06  Bruno Haible  <bruno@clisp.org>
83832         Assume the 'long double' type.
83833         * m4/longdouble.m4: Remove file.
83834         * config/srclist.txt: Don't mention longdouble.m4.
83835         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
83836         * lib/float+.h: Likewise.
83837         * lib/frexp.c: Likewise.
83838         * lib/printf-args.h: Likewise.
83839         * lib/printf-args.c: Likewise.
83840         * lib/printf-frexp.c: Likewise.
83841         * lib/printf-parse.c: Likewise.
83842         * lib/vasnprintf.c: Likewise.
83843         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
83844         * m4/intl.m4: Likewise.
83845         * m4/isnanl.m4: Likewise.
83846         * m4/printf.m4: Likewise.
83847         * m4/printf-frexpl.m4: Likewise.
83848         * m4/vasnprintf.m4: Likewise.
83849         * modules/allocsa (Files): Remove m4/longdouble.m4.
83850         * modules/gettext (Files): Likewise.
83851         * modules/relocatable-prog-wrapper (Files): Likewise.
83852         * modules/vasnprintf (Files): Likewise.
83853         * modules/isnanl (Files): Likewise.
83854         (Include): Simplify.
83855         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
83856         (Include): Simplify.
83857         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
83858         (Include): Simplify.
83859         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
83860         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83861         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
83862         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83863         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83864         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83865         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
83866         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83867         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83868         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83869         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
83870         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83871         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
83872         * tests/test-isnanl.c: Likewise.
83873         * tests/test-snprintf-posix.h: Likewise.
83874         * tests/test-sprintf-posix.h: Likewise.
83875         * tests/test-vasnprintf-posix.c: Likewise.
83876         * tests/test-vasnprintf-posix2.c: Likewise.
83877         * tests/test-vasprintf-posix.c: Likewise.
83879 2007-04-06  Bruno Haible  <bruno@clisp.org>
83881         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
83882         * lib/math_.h [__DECC]: Include the overridden include file through
83883         #include_next, outside the double-inclusion guard.
83884         * lib/stdio_.h [__DECC]: Likewise.
83885         * lib/stdlib_.h [__DECC]: Likewise.
83886         * lib/string_.h [__DECC]: Likewise.
83887         * lib/time_.h [__DECC]: Likewise.
83888         * lib/wchar_.h [__DECC]: Likewise.
83889         * lib/wctype_.h [__DECC]: Likewise.
83890         * lib/inttypes_.h [__DECC]: Likewise.
83891         Reported by Albert Chin <china@thewrittenword.com> in
83892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
83894 2007-04-04  Eric Blake  <ebb9@byu.net>
83896         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
83897         1.5.x.
83899 2007-04-04  Bruno Haible  <bruno@clisp.org>
83901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
83902         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
83904 2007-04-04  Bruno Haible  <bruno@clisp.org>
83906         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
83907         results for "%010a" of Infinity and NaN.
83908         * tests/test-vasprintf-posix.c (test_function): Likewise.
83909         * tests/test-snprintf-posix.h (test_function): Likewise.
83910         * tests/test-sprintf-posix.h (test_function): Likewise.
83911         * tests/test-fprintf-posix.h (test_function): Remove these tests.
83912         * tests/test-printf-posix.h (test_function): Likewise.
83913         * tests/test-fprintf-posix.out: Update.
83914         Needed for FreeBSD 6.1.
83916 2007-04-04  Bruno Haible  <bruno@clisp.org>
83918         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
83919         directly used by the gnulib modules nor by gnulib-tool.
83921 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83923         * DEPENDENCIES: Give overall description of version dependency
83924         desirability.  Use more-typical names for apps.
83925         Add shell, coreutils, diffutils, grep, tar, gzip.
83927 2007-04-04  Simon Josefsson  <simon@josefsson.org>
83929         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
83931 2007-04-04  Karl Berry  <karl@gnu.org>
83933         * MODULES.html.sh (func_module): missing '.
83935 2007-04-03  Bruno Haible  <bruno@clisp.org>
83937         * modules/argmatch-tests (Makefile.am): New variable
83938         test_argmatch_LDADD.
83939         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
83940         * modules/array-list-tests (Makefile.am): New variable
83941         test_array_list_LDADD.
83942         * modules/array-oset-tests (Makefile.am): New variable
83943         test_array_oset_LDADD.
83944         * modules/avltree-list-tests (Makefile.am): New variable
83945         test_avltree_list_LDADD.
83946         * modules/avltree-oset-tests (Makefile.am): New variable
83947         test_avltree_oset_LDADD.
83948         * modules/avltreehash-list-tests (Makefile.am): New variable
83949         test_avltreehash_list_LDADD.
83950         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
83951         test_canonicalize_lgpl_LDADD.
83952         * modules/carray-list-tests (Makefile.am): New variable
83953         test_carray_list_LDADD.
83954         * modules/dirname-tests (Makefile.am): New variable
83955         test_dirname_LDADD.
83956         * modules/linked-list-tests (Makefile.am): New variable
83957         test_linked_list_LDADD.
83958         * modules/linkedhash-list-tests (Makefile.am): New variable
83959         test_linkedhash_list_LDADD.
83960         * modules/rbtree-list-tests (Makefile.am): New variable
83961         test_rbtree_list_LDADD.
83962         * modules/rbtree-oset-tests (Makefile.am): New variable
83963         test_rbtree_oset_LDADD.
83964         * modules/rbtreehash-list-tests (Makefile.am): New variable
83965         test_rbtreehash_list_LDADD.
83966         * modules/xvasprintf-tests (Makefile.am): New variable
83967         test_xvasprintf_LDADD.
83968         Reported by Eric Blake.
83970 2007-04-03  Eric Blake  <ebb9@byu.net>
83972         * DEPENDENCIES: Weaken m4 requirements.
83974 2007-04-03  Bruno Haible  <bruno@clisp.org>
83976         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
83977         * modules/isnanl-tests (configure.ac): Likewise.
83979 2007-04-03  Ben Pfaff  <blp@gnu.org>
83981         * modules/iconv_open: Add $(srcdir)/ to source directory
83982         references in Makefile fragments that call gperf, to fix VPATH
83983         builds.
83985 2007-04-03  Bruno Haible  <bruno@clisp.org>
83987         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
83988         * lib/ldexpl.c: Undo last change.
83990 2007-04-03  Bruno Haible  <bruno@clisp.org>
83992         * modules/printf-frexpl (Depends-on): Undo last change.
83993         (Files): Add m4/ldexpl.m4.
83995 2007-04-03  Bruno Haible  <bruno@clisp.org>
83997         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
83998         * modules/isnanl (Link): New section.
84000         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
84001         * modules/frexp (Link): New section.
84003         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
84004         * modules/frexpl (Link): New section.
84006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
84007         * modules/ldexpl (Link): New section.
84009 2007-04-03  Bruno Haible  <bruno@clisp.org>
84011         * modules/TEMPLATE-EXTENDED: New file.
84012         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
84014 2007-04-03  Bruno Haible  <bruno@clisp.org>
84016         * DEPENDENCIES: New file.
84017         Suggested by Simon Josefsson.
84019 2007-04-03  Bruno Haible  <bruno@clisp.org>
84021         * doc/gnulib.texi: Escape @.
84023 2007-04-03  James Youngman  <jay@gnu.org>
84024         and Paul Eggert  <eggert@cs.ucla.edu>
84026         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
84027         birthtime on all systems that have birthtime, not just those which
84028         use st_birthtimensec rather than st_birthtim.  Putting zero in
84029         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
84030         that the birth time is not available for files on an NFS mount.
84032 2007-04-03  Simon Josefsson  <simon@josefsson.org>
84034         * modules/memxor: Move back from crypto/, suggested by Bruno.
84035         * modules/crypto/hmac-sha1: Fix memxor dependency.
84037         * modules/crypto/gc: Moved from ../.
84039 2007-04-02  Eric Blake  <ebb9@byu.net>
84041         * lib/ldexpl.c (includes): Avoid libm.
84043         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
84045 2007-04-02  Bruno Haible  <bruno@clisp.org>
84047         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
84048         on IRIX.
84050 2007-04-02  Bruno Haible  <bruno@clisp.org>
84052         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
84053         x86 or x86_64 platforms running MacOS X.
84054         Reported by Ryan Schmidt <@ryandesign.com>.
84056 2007-04-02  Bruno Haible  <bruno@clisp.org>
84058         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
84059         i386.
84061 2007-04-01  Simon Josefsson  <simon@josefsson.org>
84063         * modules/crypto/arcfour: Moved from ../.
84064         * modules/crypto/arcfour-tests: Moved from ../.
84065         * modules/crypto/arctwo: Moved from ../.
84066         * modules/crypto/arctwo-tests: Moved from ../.
84067         * modules/crypto/des: Moved from ../.
84068         * modules/crypto/des-tests: Moved from ../.
84069         * modules/crypto/gc-arcfour: Moved from ../.
84070         * modules/crypto/gc-arcfour-tests: Moved from ../.
84071         * modules/crypto/gc-arctwo: Moved from ../.
84072         * modules/crypto/gc-arctwo-tests: Moved from ../.
84073         * modules/crypto/gc-des: Moved from ../.
84074         * modules/crypto/gc-des-tests: Moved from ../.
84075         * modules/crypto/gc-hmac-md5: Moved from ../.
84076         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
84077         * modules/crypto/gc-hmac-sha1: Moved from ../.
84078         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
84079         * modules/crypto/gc-md2: Moved from ../.
84080         * modules/crypto/gc-md2-tests: Moved from ../.
84081         * modules/crypto/gc-md4: Moved from ../.
84082         * modules/crypto/gc-md4-tests: Moved from ../.
84083         * modules/crypto/gc-md5: Moved from ../.
84084         * modules/crypto/gc-md5-tests: Moved from ../.
84085         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
84086         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
84087         * modules/crypto/gc-random: Moved from ../.
84088         * modules/crypto/gc-rijndael: Moved from ../.
84089         * modules/crypto/gc-rijndael-tests: Moved from ../.
84090         * modules/crypto/gc-sha1: Moved from ../.
84091         * modules/crypto/gc-sha1-tests: Moved from ../.
84092         * modules/crypto/gc-tests: Moved from ../.
84093         * modules/crypto/hmac-md5: Moved from ../.
84094         * modules/crypto/hmac-md5-tests: Moved from ../.
84095         * modules/crypto/hmac-sha1: Moved from ../.
84096         * modules/crypto/hmac-sha1-tests: Moved from ../.
84097         * modules/crypto/md2: Moved from ../.
84098         * modules/crypto/md2-tests: Moved from ../.
84099         * modules/crypto/md4: Moved from ../.
84100         * modules/crypto/md4-tests: Moved from ../.
84101         * modules/crypto/md5: Moved from ../.
84102         * modules/crypto/md5-tests: Moved from ../.
84103         * modules/crypto/memxor: Moved from ../.
84104         * modules/crypto/rijndael: Moved from ../.
84105         * modules/crypto/rijndael-tests: Moved from ../.
84106         * modules/crypto/sha1: Moved from ../.
84108 2007-03-30  James Youngman  <jay@gnu.org>
84110         * tests/test-stat-time.c (prepare_test): use chmod() rather than
84111         rename() to change the ctime of a file (because ctime is unaffected
84112         by rename on jfs2 on AIX 5.1).
84113         (main): Start by doing cleanup, in case a previous run failed leaving
84114         test files behind.
84116 2007-03-31  Bruno Haible  <bruno@clisp.org>
84118         Support old proprietary implementations of iconv.
84119         * modules/iconv_open: New file.
84120         * lib/iconv_.h: New file.
84121         * m4/iconv_h.m4: New file.
84122         * lib/iconv_open.c: New file.
84123         * lib/iconv_open-aix.gperf: New file.
84124         * lib/iconv_open-hpux.gperf: New file.
84125         * lib/iconv_open-irix.gperf: New file.
84126         * lib/iconv_open-osf.gperf: New file.
84127         * m4/iconv_open.m4: New file.
84128         * modules/linebreak (Depends-on): Add iconv_open.
84129         * modules/striconv (Depends-on): Likewise.
84130         * modules/striconveh (Depends-on): Likewise.
84131         * modules/unicodeio (Depends-on): Likewise.
84132         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
84133         (iconv_t)(-1).
84134         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
84135         conversion if cd is (iconv_t)(-1).
84136         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
84137         is not possible.
84139 2007-03-31  Bruno Haible  <bruno@clisp.org>
84141         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
84142         work on Solaris either. Protect also second use of "autodetect_jp".
84144 2007-03-31  Bruno Haible  <bruno@clisp.org>
84146         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
84147         the function is not present.
84149 2007-03-31  Bruno Haible  <bruno@clisp.org>
84151         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
84152         the function is not present.
84154 2007-03-31  Bruno Haible  <bruno@clisp.org>
84156         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
84157         a bug in HP-UX iconv_open().
84159 2007-03-31  Bruno Haible  <bruno@clisp.org>
84161         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
84162         (Mathematics <math.h>): New section, add fpieee.
84163         (Input/output <stdio.h>): Add fseterr.
84164         (Mathematics <math.h>): New section, add printf-frexp.
84165         (Container data structures): Add sublist.
84166         (Core language properties): Add fpucw, inline.
84167         (Functions for greatest-width integer types <inttypes.h>): Add
84168         imaxabs, imaxdiv, inttypes.
84169         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
84170         isnanl-nolibm, ldexp.
84171         (Mathematics <math.h>): New section, add printf-frexpl.
84172         (Support for systems lacking POSIX:2001): Add fprintf-posix,
84173         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
84174         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
84175         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
84176         (Unicode string functions): Add unistr/u*-mbtoucr.
84177         (Java): Add javacomp-script, javaexec-script.
84178         (C#): Add csharpcomp-script, csharpexec-script.
84179         (Support for building libraries and executables): Add havelib,
84180         relocatable-*.
84181         (Support for maintaining and releasing projects): Renamed from
84182         'Support for maintaining and release projects'. Add announce-gen.
84184 2007-03-31  Bruno Haible  <bruno@clisp.org>
84186         * README: Talk primarily about git.
84187         (git and CVS): Renamed from CVS.
84188         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
84189         gnulib is available through git.
84190         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
84192 2007-03-30  Bruno Haible  <bruno@clisp.org>
84194         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
84195         * lib/poll_.h: Likewise.
84196         * lib/stat_.h: Likewise.
84197         * lib/sys_time_.h: Likewise.
84198         * lib/sysexit_.h: Likewise.
84199         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
84200         * lib/stdbool_.h: Likewise.
84201         * lib/byteswap_.h: Add double-inclusion guard.
84203 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
84205         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
84207 2007-03-30  Karl Berry  <karl@gnu.org>
84209         * config/srclist-update: double space after USA in the license
84210         substitution, since that's how it's usually (?) written.
84212 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
84214         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
84215         reported by Bruno Haible.
84217 2007-03-29  Bruno Haible  <bruno@clisp.org>
84219         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
84220         a bug in AIX iconv().
84222 2007-03-29  Bruno Haible  <bruno@clisp.org>
84224         * modules/ldexpl-tests: New file.
84225         * tests/test-ldexpl.c: New file.
84227 2007-03-29  Bruno Haible  <bruno@clisp.org>
84229         * lib/ldexpl.c: Include fpucw.h.
84230         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
84231         multiplication.
84232         * modules/ldexpl (Depends-on): Add fpucw.
84234 2007-03-29  Bruno Haible  <bruno@clisp.org>
84236         * modules/ldexpl: New file.
84237         * m4/ldexpl.m4: New file.
84238         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
84239         set.
84240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
84241         REPLACE_LDEXPL.
84242         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
84243         REPLACE_LDEXPL.
84244         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84245         gl_FUNC_LDEXPL_WORKS.
84246         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
84247         * modules/mathl (Files): Remove lib/ldexpl.c.
84248         (Depends-on): Add ldexpl.
84250 2007-03-29  Bruno Haible  <bruno@clisp.org>
84252         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
84254 2007-03-29  Bruno Haible  <bruno@clisp.org>
84256         * tests/test-striconveh.c (main): Don't assume that a direct conversion
84257         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
84258         and possibly also HP-UX.
84259         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
84260         work on AIX, IRIX, HP-UX, OSF/1.
84261         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
84262         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
84263         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
84264         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
84265         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
84266         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
84268 2007-03-29  Bruno Haible  <bruno@clisp.org>
84270         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
84272 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
84274         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
84275         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
84277 2007-03-29  Eric Blake  <ebb9@byu.net>
84279         * lib/acl-internal.h: Remove redundant include.
84280         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
84281         Cygwin when a file is locked.
84283 2007-03-29  Bruno Haible  <bruno@clisp.org>
84285         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
84286         file.
84287         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
84289 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
84291         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
84292         try to remove a parent directory if the child couldn't be removed
84293         (except for the first rmdir, which could fail because the child
84294         doesn't exist).  Problem reported by Jeff Blaine in
84295         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
84297 2007-03-28  Bruno Haible  <bruno@clisp.org>
84299         * lib/striconveh.c (utf8conv_carefully): New function.
84300         (mem_cd_iconveh_internal): Invoke it.
84302 2007-03-28  Bruno Haible  <bruno@clisp.org>
84304         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
84305         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
84306         input.
84307         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
84308         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
84309         unistr/u8-uctomb.
84311 2007-03-28  Bruno Haible  <bruno@clisp.org>
84313         * modules/unistr/u8-mbtoucr: New file.
84314         * lib/unistr/u8-mbtoucr.c: New file.
84315         * modules/unistr/u16-mbtoucr: New file.
84316         * lib/unistr/u16-mbtoucr.c: New file.
84317         * modules/unistr/u16-mbtoucr: New file.
84318         * lib/unistr/u16-mbtoucr.c: New file.
84319         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
84321 2007-03-27  Simon Josefsson  <simon@josefsson.org>
84322             Bruno Haible  <bruno@clisp.org>
84324         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
84325         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
84326         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
84328         * m4/stdio_h.m4: Add stubs for vasprintf too.
84330         * modules/stdio: Support vasprintf in sed command.
84332         * modules/vasprintf: Depend on stdio for prototypes.  Remove
84333         vasprintf.h.  Add stdio module indicator.
84335         * lib/stdio_.h: Declare asprintf and vasprintf, based on
84336         vasprintf.h.
84338         * lib/vasprintf.h: File removed.
84340         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
84341         * lib/vasprintf.c: Ditto.
84342         * lib/xvasprintf.c: Ditto.
84343         * tests/test-vasprintf-posix.c: Ditto.
84344         * tests/test-vasprintf.c: Ditto.
84346 2007-03-27  Bruno Haible  <bruno@clisp.org>
84348         Make vasnprintf multithread-safe.
84349         * lib/vasnprintf.c (decimal_point_char): New function.
84350         (VASNPRINTF): Use it.
84351         Suggested by Simon Josefsson.
84353 2007-03-27  Eric Blake  <ebb9@byu.net>
84355         Support sub-second birthtime on cygwin.
84356         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
84357         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
84358         (get_stat_birthtime): Also work with st_birthtim.
84360 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
84362         * lib/stat-time.h (USE_BIRTHTIME): Remove.
84363         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
84364         (get_stat_birthtime_ns): Do not try to use "spare" fields.
84365         (get_stat_birthtime_ns): Simplify compile-time tests.
84366         (get_stat_birthtime): Change the API to look like
84367         get_stat_mtime etc., except return a negative tv_nsec on error.
84368         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
84369         Don't check for "spare" fields.
84370         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
84371         or for struct stat.st_birthtime, as these tests aren't used.
84372         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
84374 2007-03-27  Bruno Haible  <bruno@clisp.org>
84376         * lib/stat-time.h: Include <sys/stat.h>.
84378 2007-03-27  James Youngman  <jay@gnu.org>
84380         * lib/stat-time.h (get_stat_birthtime): New function for
84381           retrieving st_birthtime as provided by UFS2 (hence *BSD).
84382         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
84383           and its variants.
84384         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
84385         * modules/stat-time-test: New file.
84386         * tests/test-stat-time.c: New test, devised by Bruno Haible.
84388 2007-03-26  Bruno Haible  <bruno@clisp.org>
84390         Better support of signalling NaNs.
84391         * lib/atanl.c: Include isnanl.h.
84392         (atanl): Perform test for NaN at the beginning of the function and
84393         through a call to isnanl.
84394         * lib/cosl.c: Include isnanl.h.
84395         (cosl): Perform test for NaN at the beginning of the function and
84396         through a call to isnanl.
84397         * lib/ldexpl.c: Include isnanl.h.
84398         (ldexpl): Perform test for NaN through a call to isnanl.
84399         * lib/logl.c: Include isnanl.h.
84400         (logl): Perform test for NaN at the beginning of the function and
84401         through a call to isnanl.
84402         * lib/sinl.c: Include isnanl.h.
84403         (sinl): Perform test for NaN at the beginning of the function and
84404         through a call to isnanl.
84405         * lib/sqrtl.c: Include isnanl.h.
84406         (sqrtl): Perform test for NaN at the beginning of the function and
84407         through a call to isnanl.
84408         * lib/tanl.c: Include isnanl.h.
84409         (tanl): Perform test for NaN at the beginning of the function and
84410         through a call to isnanl.
84411         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
84412         * modules/mathl (Depends-on): Add isnanl.
84414 2007-03-26  Eric Blake  <ebb9@byu.net>
84416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
84417         regression in logic sense of previous patch.
84419 2007-03-26  Bruno Haible  <bruno@clisp.org>
84421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
84422         unportable shell command "if ! ...".
84423         Reported by Ralf Wildenhues.
84425 2007-03-25  Bruno Haible  <bruno@clisp.org>
84427         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
84428         <sysexits.h> file, and only add EX_CONFIG.
84429         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
84430         absolute file name and whether it is sufficient. Substitute also
84431         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
84432         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
84433         ABSOLUTE_SYSEXITS_H into sysexits.h.
84435 2007-03-25  Bruno Haible  <bruno@clisp.org>
84437         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
84438         hints is NULL.
84440 2007-03-25  Bruno Haible  <bruno@clisp.org>
84442         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
84443         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
84445 2007-03-25  Bruno Haible  <bruno@clisp.org>
84447         * lib/vasnprintf.c: Include langinfo.h.
84448         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
84449         multithread-safe.
84450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
84451         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
84452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84453         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84454         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84455         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84456         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84457         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
84458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84459         Reported by Simon Josefsson.
84461 2007-03-25  Bruno Haible  <bruno@clisp.org>
84463         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
84464         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
84465         * modules/vasnprintf (Depends-on): Add stdint.
84467 2007-03-25  Bruno Haible  <bruno@clisp.org>
84469         * modules/fpieee: New file.
84470         * m4/fpieee.m4: New file.
84471         * modules/isnan-nolibm (Depends-on): Add fpieee.
84472         * modules/isnanl-nolibm (Depends-on): Add fpieee.
84473         * modules/isnanl (Depends-on): Add fpieee.
84475 2007-03-25  Bruno Haible  <bruno@clisp.org>
84477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
84479 2007-03-25  Bruno Haible  <bruno@clisp.org>
84481         Avoid test failures on IRIX 6.5.
84482         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
84483         (main): Use it.
84484         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
84485         macros.
84486         (main): Use them.
84488 2007-03-25  Bruno Haible  <bruno@clisp.org>
84490         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
84491         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
84492         exists but doesn't work.
84493         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
84494         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
84495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
84496         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
84497         math.h.
84499 2007-03-25  Bruno Haible  <bruno@clisp.org>
84501         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
84502         returns inf. Needed on IRIX 6.5.
84504 2007-03-25  Bruno Haible  <bruno@clisp.org>
84506         * tests/test-frexpl.c: Include isnanl-nolibm.h.
84507         (main): Use isnanl instead of x != x idiom.
84508         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
84510         * tests/test-frexp.c: Include isnan.h.
84511         (main): Use isnan instead of x != x idiom.
84512         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
84514 2007-03-25  Bruno Haible  <bruno@clisp.org>
84516         * tests/test-frexp.c (NaN): New function/macro.
84517         (main): Use it instead of 0.0 / 0.0.
84518         * tests/test-isnan.c (NaN): New function/macro.
84519         (main): Use it instead of 0.0 / 0.0.
84520         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
84521         (test_function): Use it instead of 0.0 / 0.0.
84522         * tests/test-vasprintf-posix.c (NaN): New function/macro.
84523         (test_function): Use it instead of 0.0 / 0.0.
84524         * tests/test-snprintf-posix.h (NaN): New function/macro.
84525         (test_function): Use it instead of 0.0 / 0.0.
84526         * tests/test-sprintf-posix.h (NaN): New function/macro.
84527         (test_function): Use it instead of 0.0 / 0.0.
84528         * tests/test-fprintf-posix.h (NaN): New function/macro.
84529         (test_function): Use it instead of 0.0 / 0.0.
84530         * tests/test-printf-posix.h (NaN): New function/macro.
84531         (test_function): Use it instead of 0.0 / 0.0.
84533         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
84535 2007-03-25  Bruno Haible  <bruno@clisp.org>
84537         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
84539 2007-03-25  Bruno Haible  <bruno@clisp.org>
84541         * lib/regexec.c (merge_state_with_log): Make static.
84543 2007-03-25  Bruno Haible  <bruno@clisp.org>
84545         * lib/trigl.c (kernel_rem_pio2): Make static.
84547 2007-03-25  Bruno Haible  <bruno@clisp.org>
84549         * lib/sincosl.c (sincosl_table): Make static.
84551 2007-03-25  Bruno Haible  <bruno@clisp.org>
84553         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
84554         if the compiler does not support C99.
84556 2007-03-25  Bruno Haible  <bruno@clisp.org>
84558         * modules/time (Makefile.am): Ensure all rule action lines start with a
84559         tab.
84561 2007-03-24  Bruno Haible  <bruno@clisp.org>
84563         * modules/tsearch-tests: New file.
84564         * tests/test-tsearch.sh: New file.
84565         * tests/test-tsearch.c: New file, mostly copied from glibc.
84567         * modules/search-tests: New file.
84568         * tests/test-search.c: New file.
84570         * modules/search: New file.
84571         * lib/search_.h: New file, incorporating lib/tsearch.h.
84572         * m4/search_h.m4: New file.
84573         * lib/tsearch.h: Remove file.
84574         * lib/tsearch.c: Include search.h instead of tsearch.h.
84575         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
84576         HAVE_TSEARCH.
84577         * modules/tsearch (Files): Remove lib/tsearch.h.
84578         (Depends-on): Add search.
84579         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
84580         (Include): Change tsearch.h into search.h.
84582 2007-03-24  Bruno Haible  <bruno@clisp.org>
84584         * modules/fpucw: New file.
84585         * lib/fpucw.h: New file.
84586         * lib/frexp.c: Include fpucw.h.
84587         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
84588         (FUNC): Use them.
84589         * lib/printf-frexp.c: Include fpucw.h.
84590         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
84591         (FUNC): Use them.
84592         * lib/vasnprintf.c: Include fpucw.h.
84593         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
84594         'long double' calculations.
84595         * tests/test-frexpl.c: Include fpucw.h.
84596         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
84597         * tests/test-printf-frexpl.c: Include fpucw.h.
84598         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
84599         * modules/frexpl (Depends-on): Add fpucw.
84600         * modules/printf-frexpl (Depends-on): Likewise.
84601         * modules/fprintf-posix (Depends-on): Likewise.
84602         * modules/snprintf-posix (Depends-on): Likewise.
84603         * modules/sprintf-posix (Depends-on): Likewise.
84604         * modules/vasnprintf-posix (Depends-on): Likewise.
84605         * modules/vasprintf-posix (Depends-on): Likewise.
84606         * modules/vfprintf-posix (Depends-on): Likewise.
84607         * modules/vsnprintf-posix (Depends-on): Likewise.
84608         * modules/vsprintf-posix (Depends-on): Likewise.
84609         * modules/frexpl-tests (Depends-on): Likewise.
84610         * modules/printf-frexpl-tests (Depends-on): Likewise.
84612 2007-03-24  Bruno Haible  <bruno@clisp.org>
84614         * lib/float+.h: New file.
84615         * lib/isnan.c: Include float+.h.
84616         (SIZE): New macro.
84617         (FUNC): Compare only SIZE bytes of the value.
84618         * lib/vasnprintf.c: Include float+.h.
84619         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
84620         SIZEOF_LDBL or SIZEOF_DBL bytes.
84621         * modules/isnan-nolibm (Files): Add lib/float+.h.
84622         * modules/isnanl-nolibm (Files): Add lib/float+.h.
84623         * modules/isnanl (Files): Add lib/float+.h.
84624         * modules/vasnprintf (Files): Add lib/float+.h.
84626 2007-03-24  Bruno Haible  <bruno@clisp.org>
84628         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
84629         include isnanl-nolibm.h.
84631 2007-03-24  Bruno Haible  <bruno@clisp.org>
84633         * tests/test-read-file.c (main): Don't produce spurious output for
84634         expected situations. Make the test fail if it encountered unexpected
84635         results.
84637 2007-03-24  Bruno Haible  <bruno@clisp.org>
84639         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
84640         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
84642 2007-03-24  Bruno Haible  <bruno@clisp.org>
84644         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
84646 2007-03-24  Bruno Haible  <bruno@clisp.org>
84648         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
84649         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
84651         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
84652         * modules/utf8-ucs4: Turn into a symbolic link to module
84653         unistr/u8-mbtouc.
84655         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
84656         utf8-ucs4-unsafe.
84657         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
84658         unistr/u8-mbtouc-unsafe.
84660         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
84661         * modules/utf16-ucs4: Turn into a symbolic link to module
84662         unistr/u16-mbtouc.
84664         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
84665         utf16-ucs4-unsafe.
84666         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
84667         unistr/u16-mbtouc-unsafe.
84669         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
84670         * modules/ucs4-utf8: Turn into a symbolic link to module
84671         unistr/u8-ubtomb.
84673         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
84674         * modules/ucs4-utf16: Turn into a symbolic link to module
84675         unistr/u16-ubtomb.
84677 2007-03-24  Bruno Haible  <bruno@clisp.org>
84679         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
84680         Enable the function only if HAVE_INLINE.
84681         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
84682         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
84683         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
84684         Enable the function only if HAVE_INLINE.
84685         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
84686         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
84687         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
84688         Enable the function only if HAVE_INLINE.
84689         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
84690         Enable the function only if HAVE_INLINE.
84691         * modules/utf8-ucs4: Update.
84692         * modules/utf8-ucs4-unsafe: Update.
84693         * modules/utf16-ucs4: Update.
84694         * modules/utf16-ucs4-unsafe: Update.
84695         * modules/ucs4-utf8: Update.
84696         * modules/ucs4-utf16: Update.
84698 2007-03-24  Bruno Haible  <bruno@clisp.org>
84700         * lib/utf8-ucs4.h: Remove file.
84701         * lib/utf8-ucs4-unsafe.h: Remove file.
84702         * lib/utf16-ucs4.h: Remove file.
84703         * lib/utf16-ucs4-unsafe.h: Remove file.
84704         * lib/ucs4-utf8.h: Remove file.
84705         * lib/ucs4-utf16.h: Remove file.
84706         * lib/unistr.h: Include their previous contents.
84707         * m4/utf-ucs4.m4: Remove file.
84708         * m4/ucs4-utf.m4: Remove file.
84709         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
84710         (Depends-on): Add unistr/base.
84711         (configure.ac): Remove gl_UTF_UCS4.
84712         (Makefile.am): Update.
84713         (Include): Change to unistr.h.
84714         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
84715         (Depends-on): Add unistr/base.
84716         (configure.ac): Remove gl_UTF_UCS4.
84717         (Makefile.am): Update.
84718         (Include): Change to unistr.h.
84719         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
84720         (Depends-on): Add unistr/base.
84721         (configure.ac): Remove gl_UTF_UCS4.
84722         (Makefile.am): Update.
84723         (Include): Change to unistr.h.
84724         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
84725         (Depends-on): Add unistr/base.
84726         (configure.ac): Remove gl_UTF_UCS4.
84727         (Makefile.am): Update.
84728         (Include): Change to unistr.h.
84729         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
84730         (Depends-on): Add unistr/base.
84731         (configure.ac): Remove gl_UCS4_UTF.
84732         (Makefile.am): Update.
84733         (Include): Change to unistr.h.
84734         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
84735         (Depends-on): Add unistr/base.
84736         (configure.ac): Remove gl_UCS4_UTF.
84737         (Makefile.am): Update.
84738         (Include): Change to unistr.h.
84739         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
84740         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
84741         utf8-ucs4-unsafe.h.
84742         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
84743         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
84744         utf16-ucs4-unsafe.h.
84745         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
84746         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
84747         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
84748         * lib/unistr/u8-strchr.c: Likewise.
84749         * lib/unistr/u8-strrchr.c: Likewise.
84750         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
84751         * lib/unistr/u16-strchr.c: Likewise.
84752         * lib/unistr/u16-strrchr.c: Likewise.
84753         * lib/striconveh.c: Update.
84754         * lib/linebreak.c: Update.
84756 2007-03-24  Bruno Haible  <bruno@clisp.org>
84758         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
84759         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
84761 2007-03-22  Bruno Haible  <bruno@clisp.org>
84763         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
84765 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84767         * MODULES.html.sh (File system functions): New module write-any-file.
84768         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
84769         * m4/write-any-file.m4: New files.
84771 2007-03-23  Eric Blake  <ebb9@byu.net>
84773         * gnulib-tool: Rearrange space-tab sequences, since some editors
84774         like to eat them.
84776 2007-03-23  Eric Blake  <ebb9@byu.net>
84778         * lib/version-etc.c (version_etc_va): Update license wording to
84779         be more concise.  Recommended by Richard Stallman.
84781 2007-03-22  Bruno Haible  <bruno@clisp.org>
84783         * lib/poll.c (MSG_PEEK): New fallback definition.
84785 2007-03-22  Bruno Haible  <bruno@clisp.org>
84787         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
84788         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
84789         (main): Update.
84790         Fixes a compilation error on BeOS.
84792 2007-03-22  Bruno Haible  <bruno@clisp.org>
84794         * modules/frexpl-tests: New file.
84795         * tests/test-frexpl.c: New file.
84797         * modules/frexpl: New file.
84798         * m4/frexpl.m4: New file.
84799         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
84800         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
84801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
84802         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
84803         (Depends-on): Add frexpl. Remove isnanl-nolibm.
84804         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
84806 2007-03-22  Bruno Haible  <bruno@clisp.org>
84808         * lib/frexpl.c: Share code with lib/frexp.c.
84809         * modules/mathl (Files): Add lib/frexp.c.
84810         (Depends-on): Add isnanl-nolibm.
84812 2007-03-22  Bruno Haible  <bruno@clisp.org>
84814         * modules/printf-frexp (Files): Add m4/frexp.m4.
84815         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
84816         only if the found frexp function actually works.
84818 2007-03-22  Bruno Haible  <bruno@clisp.org>
84820         * lib/frexp.c: Remove older implementation that uses divisions.
84822 2007-03-21  Bruno Haible  <bruno@clisp.org>
84824         * modules/frexp-tests: New file.
84825         * tests/test-frexp.c: New file.
84827         * modules/frexp: New file.
84828         * lib/frexp.c: New file.
84829         * m4/frexp.m4: New file.
84830         * lib/math_.h (frexp): New declaration.
84831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
84832         REPLACE_FREXP.
84833         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
84835 2007-03-21  Bruno Haible  <bruno@clisp.org>
84837         * modules/isnanl-tests: New file.
84838         * tests/test-isnanl.c: New file.
84840         * modules/isnanl: New file.
84841         * lib/isnanl.h: New file.
84842         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
84843         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
84844         gl_FUNC_ISNANL_WORKS.
84845         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
84846         New macros.
84848 2007-03-21  Bruno Haible  <bruno@clisp.org>
84850         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
84851         lib/isnanl.h.
84852         (Include): Update.
84853         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
84854         * lib/vasnprintf.c: Update.
84855         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
84856         tests/test-isnanl.h, remove tests/test-isnanl.c.
84857         (Makefile.am): Update.
84858         * tests/test-isnanl-nolibm.c: New file.
84859         * tests/test-isnanl.h: New file.
84860         * tests/test-isnanl.c: Remove file.
84862 2007-03-21  Jim Meyering  <jim@meyering.net>
84864         When trying to open ".", treat ESTALE like EACCES.
84865         * lib/savewd.c (savewd_save): Resort to forking not just upon
84866         failure with EACCES, but also when errno is ESTALE.
84868 2007-03-20  Bruno Haible  <bruno@clisp.org>
84870         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
84871         Needed on AIX 5.1. Reported by Matthew Woehlke.
84873 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84875         Suggestions by Bruno Haible:
84876         * lib/acl-internal.h: Include "gettext.h" rather than rolling
84877         our own.
84878         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
84879         * modules/acl (Depends-on): Add gettext.
84881 2007-03-19  Bruno Haible  <bruno@clisp.org>
84883         * modules/iconvme: Remove file.
84884         * lib/iconvme.h: Remove file.
84885         * lib/iconvme.c: Remove file.
84886         * m4/iconvme.m4: Remove file.
84888 2007-03-19  Bruno Haible  <bruno@clisp.org>
84890         * doc/relocatable-maint.texi: Break long shell script line.
84891         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84893 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84895         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
84896         handle file_has_acl.
84897         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
84898         * lib/acl.c: Move header inclusions and related macro defns into
84899         lib/acl-internal.h.
84900         (S_ISLNK): Remove defn, since that's now done for us.
84901         (file_has_acl): Move to lib/file-has-acl.c.
84902         Call acl_trivial if available.  This is the crucial part of the fix.
84903         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
84904         shared within the library.  Rewrite a bit, partly to make it compatible
84905         with the GNU coding style.
84906         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
84907         Remove unnecessary double-quotes.
84908         Don't test for acl_to_text; the build will catch that.
84909         Replace acl_entries if it doesn't exist and it is needed.
84910         Check for -lsec and acl_trivial (as used on Solaris 10).
84911         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
84912         lib/file-has-acl.c.
84913         (Depends-on): Add sys_stat, for S_ISLNK.
84915 2007-03-19  Ben Pfaff  <blp@gnu.org>
84917         * doc/gnulib.texi: Fix typos.
84918         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84920 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84922         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
84923         If size is zero here, buf must be zero.
84925 2007-03-19  Simon Josefsson  <simon@josefsson.org>
84927         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
84928         <bruno@clisp.org>.
84930 2007-03-18  Bruno Haible  <bruno@clisp.org>
84932         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
84933         Suggested by Eric Blake.
84935 2007-03-18  Ben Pfaff  <blp@gnu.org>
84937         * doc/relocatable.texi: Recommend using as prefix a directory
84938         that does not exist and will never be created.  Based on
84939         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
84940         and others.
84942 2007-03-17  Bruno Haible  <bruno@clisp.org>
84944         * lib/fchownat.c: Include lchown.h.
84946 2007-03-17  Bruno Haible  <bruno@clisp.org>
84948         Fix endless loop when the given allocated size was > INT_MAX.
84949         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
84950         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
84951         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
84952         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
84953         * lib/sprintf.c (sprintf): Likewise.
84955 2007-03-17  Bruno Haible  <bruno@clisp.org>
84957         * tests/test-argp-2.sh (func_compare): Output a context diff.
84959 2007-03-17  Bruno Haible  <bruno@clisp.org>
84961         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
84962         locale's decimal-point character.
84964 2007-03-17  Bruno Haible  <bruno@clisp.org>
84966         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
84967         before comparing it. Needed because on some platforms (e.g. x86) a
84968         'long double' occupies less bytes than sizeof (long double).
84970 2007-03-17  Bruno Haible  <bruno@clisp.org>
84972         * tests/test-crc.c (main): Make printf statements 64-bit clean.
84973         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
84974         * tests/test-getaddrinfo.c (simple): Likewise.
84975         * tests/test-read-file.c (main): Likewise.
84977 2007-03-17  Bruno Haible  <bruno@clisp.org>
84979         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
84981 2007-03-17  Bruno Haible  <bruno@clisp.org>
84983         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
84984         unused variable.
84986 2007-03-17  Bruno Haible  <bruno@clisp.org>
84988         * tests/test-c-strcasecmp.c: Include c-strcase.h.
84989         * tests/test-c-strncasecmp.c: Likewise.
84991 2007-03-17  Bruno Haible  <bruno@clisp.org>
84993         * modules/stdlib (Depends-on): Add unistd.
84994         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
84995         Needed for MacOS X 10.3.
84997 2007-03-17  Bruno Haible  <bruno@clisp.org>
84999         * lib/unistr/u-strdup.h: Include <stdlib.h>.
85001 2007-03-17  Bruno Haible  <bruno@clisp.org>
85003         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
85005 2007-03-17  Bruno Haible  <bruno@clisp.org>
85007         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
85008         to reflect files copied from gnulib (with or without modifications).
85009         Suggested by Jim Meyering.
85011 2007-03-17  Eric Blake  <ebb9@byu.net>
85013         * NEWS: Document stdlib change from 2007-02-18.
85015 2007-03-17  Jim Meyering  <jim@meyering.net>
85017         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
85018         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
85019         someone uses a name containing shell meta-characters.
85020         Reported by Alfred M. Szmidt.
85022         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
85024 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
85026         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
85027         and copy gettext configuration files only if configure.ac contains
85028         a use of AM_GNU_GETTEXT_VERSION.
85030 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
85032         * build-aux/bootstrap (gnulib_name): New variable.
85033         (gnulib_tool_options): Use it.
85035 2007-03-13  Simon Josefsson  <simon@josefsson.org>
85037         * tests/test-des.c: Use new namespace.
85039 2007-03-15  Bruno Haible  <bruno@clisp.org>
85041         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
85042         Reported by James Youngman <jay@gnu.org>.
85044 2007-03-15  Bruno Haible  <bruno@clisp.org>
85046         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
85047         declared prototype. Needed with cc on OSF/1 5.1.
85049 2007-03-15  Bruno Haible  <bruno@clisp.org>
85051         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
85052         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
85053         (struct gl_list_implementation): Add dispose_fn argument to the
85054         'create_empty', 'create' methods.
85055         (struct gl_list_impl_base): Add field 'dispose_fn'.
85056         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
85057         argument.
85058         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
85059         dispose_fn argument.
85060         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
85061         dispose_fn on the dropped values.
85062         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
85063         dispose_fn argument.
85064         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
85065         dropped values.
85066         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
85067         (gl_tree_remove_node): Call dispose_fn on the dropped value.
85068         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
85069         (gl_tree_remove_node): Call dispose_fn on the dropped value.
85070         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
85071         argument.
85072         (gl_tree_list_free): Call dispose_fn on the dropped values.
85073         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
85074         the dropped values.
85075         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
85076         Add dispose_fn argument.
85077         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
85078         Call dispose_fn on the dropped values.
85079         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
85080         Add dispose_fn argument.
85081         (gl_sublist_create): Initialize the 'dispose_fn' field.
85082         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
85083         * tests/test-array_list.c (main): Update.
85084         * tests/test-carray_list.c (main): Update.
85085         * tests/test-avltree_list.c (main): Update.
85086         * tests/test-rbtree_list.c (main): Update.
85087         * tests/test-avltreehash_list.c (main): Update.
85088         * tests/test-rbtreehash_list.c (main): Update.
85089         * tests/test-linked_list.c (main): Update.
85090         * tests/test-linkedhash_list.c (main): Update.
85091         * tests/test-array_oset.c (main): Update.
85093 2007-03-15  Bruno Haible  <bruno@clisp.org>
85095         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
85096         (gl_oset_create_empty): Add dispose_fn argument.
85097         (struct gl_oset_implementation): Add dispose_fn argument to
85098         'create_empty' method.
85099         (struct gl_oset_impl_base): Add dispose_fn field.
85100         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
85101         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
85102         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
85103         values.
85104         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
85105         (gl_tree_oset_free): Call dispose_fn on the dropped values.
85106         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
85107         dropped value.
85108         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
85109         dropped value.
85110         * tests/test-array_oset.c (main): Update.
85111         * tests/test-avltree_oset.c (main): Update.
85112         * tests/test-rbtree_oset.c (main): Update.
85113         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
85115 2007-03-13  Bruno Haible  <bruno@clisp.org>
85117         * tests/test-stdbool.c (i): Update after last patch.
85119 2007-03-12  Bruno Haible  <bruno@clisp.org>
85121         * lib/quotearg.c: Include <wctype.h> early, before the definition of
85122         the iswprint macro. Needed on Solaris 2.5.1.
85124 2007-03-12  Bruno Haible  <bruno@clisp.org>
85126         * tests/test-printf-frexp.c (main): Declare x as volatile.
85128 2007-03-12  Simon Josefsson  <simon@josefsson.org>
85130         * doc/gnulib.texi (Build robot for gnulib): New section.
85132 2007-03-12  Jim Meyering  <jim@meyering.net>
85134         * build-aux/bootstrap: New file.
85135         * build-aux/bootstrap.conf: New file, from coreutils.
85137 2007-03-11  Bruno Haible  <bruno@clisp.org>
85139         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
85141 2007-03-12  Simon Josefsson  <simon@josefsson.org>
85143         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
85144         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
85145         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
85147 2007-03-11  Bruno Haible  <bruno@clisp.org>
85149         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
85150         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
85152 2007-03-11  Bruno Haible  <bruno@clisp.org>
85154         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
85155         formula. Needed for SunPRO C 5.0.
85157 2007-03-11  Bruno Haible  <bruno@clisp.org>
85159         * modules/long-options (Depends-on): Add getopt.
85161 2007-03-11  Bruno Haible  <bruno@clisp.org>
85163         * modules/modechange (Depends-on): Add stdbool.
85165 2007-03-11  Bruno Haible  <bruno@clisp.org>
85167         * modules/i-ring (Depends-on): Add stdbool.
85169 2007-03-11  Bruno Haible  <bruno@clisp.org>
85171         * modules/gc-des (Depends-on): Add stdbool.
85173 2007-03-11  Bruno Haible  <bruno@clisp.org>
85175         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
85177 2007-03-11  Bruno Haible  <bruno@clisp.org>
85179         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
85181 2007-03-11  Bruno Haible  <bruno@clisp.org>
85183         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
85185 2007-03-11  Bruno Haible  <bruno@clisp.org>
85187         * lib/vasnprintf.c (sprintf): Undefine.
85189 2007-03-11  Bruno Haible  <bruno@clisp.org>
85191         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
85192         initializers in SunPRO C and Compaq C compilers.
85194 2007-03-11  Bruno Haible  <bruno@clisp.org>
85196         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
85197         decrementing code ANSI C compliant.
85199 2007-03-11  Bruno Haible  <bruno@clisp.org>
85201         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
85202         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
85204 2007-03-11  Bruno Haible  <bruno@clisp.org>
85206         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
85207         <stdbool.h> substitute doesn't pass.
85209 2007-03-11  Bruno Haible  <bruno@clisp.org>
85211         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
85213 2007-03-11  Bruno Haible  <bruno@clisp.org>
85215         * gnulib-tool (func_create_megatestdir): Create also an autobuild
85216         script, for submission to autobuild.josefsson.org.
85218 2007-03-10  Bruno Haible  <bruno@clisp.org>
85220         * modules/canonicalize-lgpl-tests: New file.
85221         * tests/test-canonicalize-lgpl.sh: New file.
85222         * tests/test-canonicalize-lgpl.c: New file.
85224         * modules/c-strcase-tests: New file.
85225         * tests/test-c-strcase.sh: New file.
85226         * tests/test-c-strcasecmp.c: New file.
85227         * tests/test-c-strncasecmp.c: New file.
85229         * modules/atexit-tests: New file.
85230         * tests/test-atexit.sh: New file.
85231         * tests/test-atexit.c: New file.
85233 2007-03-10  Bruno Haible  <bruno@clisp.org>
85235         * tests/test-binary-io.sh: Use temporary filenames that are not so
85236         likely to clash with those of other tests (in a parallel make).
85237         * tests/test-binary-io.c: Likewise.
85239 2007-03-10  Bruno Haible  <bruno@clisp.org>
85241         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
85242         fallback; use #error instead.
85243         Suggested by Simon Josefsson.
85245 2007-03-10  Bruno Haible  <bruno@clisp.org>
85247         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
85248         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
85249         first and the last.
85251 2007-03-10  Bruno Haible  <bruno@clisp.org>
85253         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
85255 2007-03-10  Bruno Haible  <bruno@clisp.org>
85257         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
85258         "make distcheck".
85259         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
85260         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
85261         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
85263 2007-03-10  Bruno Haible  <bruno@clisp.org>
85265         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
85266         variable.
85267         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
85268         variable.
85270 2007-03-09  Eric Blake  <ebb9@byu.net>
85271         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
85273         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
85274         types are not being provided by gnulib.
85275         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
85276         types are supported.
85278 2007-03-10  Bruno Haible  <bruno@clisp.org>
85280         * lib/stdio_.h (__attribute__): New macro.
85281         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
85282         vsprintf): Specify __attribute__ __format__ for GCC.
85283         Suggested by Eric Blake.
85285 2007-03-09  Bruno Haible  <bruno@clisp.org>
85287         * modules/printf-posix-tests: New file.
85288         * tests/test-printf-posix.sh: New file.
85289         * tests/test-printf-posix.c: New file.
85291         * modules/printf-posix: New file.
85292         * lib/printf.c: New file.
85293         * m4/printf-posix-rpl.m4: New file.
85294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
85295         REPLACE_PRINTF.
85296         * lib/stdio_.h (printf): New declaration.
85297         (format, __format__, ____printf____, ____scanf____, ____strftime____,
85298         ____strfmon____): New macros.
85299         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
85300         REPLACE_PRINTF.
85302 2007-03-09  Bruno Haible  <bruno@clisp.org>
85304         * tests/test-vasnprintf-posix2.sh: New file.
85305         * tests/test-vasnprintf-posix2.c: New file.
85306         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
85307         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85308         (Makefile.am): Activate test-vasnprintf-posix2.sh.
85310         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
85311         a locale dependent decimal point, rather than always '.'.
85313 2007-03-09  Eric Blake  <ebb9@byu.net>
85315         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
85316         spite of platforms like Tandem/NSK that define it to -1.
85318 2007-03-08  Bruno Haible  <bruno@clisp.org>
85320         * modules/vprintf-posix-tests: New file.
85321         * tests/test-vprintf-posix.sh: New file.
85322         * tests/test-vprintf-posix.c: New file.
85323         * tests/test-printf-posix.h: New file.
85325         * modules/vprintf-posix: New file.
85326         * lib/vprintf.c: New file.
85327         * m4/vprintf-posix.m4: New file.
85328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
85329         REPLACE_VPRINTF.
85330         * lib/stdio_.h (vprintf): New declaration.
85331         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
85332         REPLACE_VPRINTF.
85334 2007-03-08  Bruno Haible  <bruno@clisp.org>
85336         * modules/fprintf-posix-tests: New file.
85337         * tests/test-fprintf-posix.sh: New file.
85338         * tests/test-fprintf-posix.c: New file.
85340         * modules/fprintf-posix: New file.
85341         * lib/fprintf.c: New file.
85342         * m4/fprintf-posix.m4: New file.
85343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
85344         REPLACE_FPRINTF.
85345         * lib/stdio_.h (fprintf): New declaration.
85346         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
85347         REPLACE_FPRINTF.
85349 2007-03-08  Bruno Haible  <bruno@clisp.org>
85351         * modules/vfprintf-posix-tests: New file.
85352         * tests/test-vfprintf-posix.sh: New file.
85353         * tests/test-vfprintf-posix.c: New file.
85354         * tests/test-fprintf-posix.h: New file.
85355         * tests/test-fprintf-posix.out: New file.
85357         * modules/vfprintf-posix: New file.
85358         * lib/vfprintf.c: New file.
85359         * m4/vfprintf-posix.m4: New file.
85360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
85361         REPLACE_VFPRINTF.
85362         * lib/stdio_.h (vfprintf): New declaration.
85363         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
85364         REPLACE_VFPRINTF.
85366 2007-03-08  Bruno Haible  <bruno@clisp.org>
85368         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
85370 2007-03-08  Bruno Haible  <bruno@clisp.org>
85372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
85373         instead of 'expr' invocations.
85374         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85378         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85379         Suggested by Paul Eggert.
85381 2007-03-08  Bruno Haible  <bruno@clisp.org>
85383         * modules/fseterr-tests: New file.
85384         * tests/test-fseterr.c: New file.
85386         * modules/fseterr: New file.
85387         * lib/fseterr.h: New file.
85388         * lib/fseterr.c: New file.
85390 2007-03-08  Bruno Haible  <bruno@clisp.org>
85392         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
85393         * lib/getopt_.h: Likewise.
85394         * lib/mbswidth.h: Likewise.
85395         * lib/setenv.h: Likewise.
85396         * lib/vasnprintf.h: Likewise.
85397         * lib/vasprintf.h: Likewise.
85398         * lib/verror.h: Likewise.
85399         * lib/xsetenv.h: Likewise.
85400         * lib/xvasprintf.h: Likewise.
85402 2007-03-08  Jim Meyering  <jim@meyering.net>
85404         * users.txt: Add parted.
85406         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
85408 2007-03-07  Bruno Haible  <bruno@clisp.org>
85410         * m4/printf.m4: Make the shell script snippets copy&pastable.
85412 2007-03-02  Bruno Haible  <bruno@clisp.org>
85414         * lib/netinet_in_.h: New file.
85415         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
85416         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
85417         * modules/netinet_in (Files): Add lib/netinet_in_.h.
85418         (Depends-on): Add absolute-header.
85419         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
85420         into netinet/in.h.
85422 2007-03-03  Bruno Haible  <bruno@clisp.org>
85424         * lib/sys_select_.h: New file.
85425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
85426         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
85427         * modules/sys_select (Files): Add lib/sys_select_.h.
85428         (Depends-on): Add absolute-header.
85429         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
85430         into sys/select.h.
85432 2007-03-02  Bruno Haible  <bruno@clisp.org>
85434         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
85435         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
85436         values.
85437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
85438         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
85439         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
85440         * modules/sys_socket (Depends-on): Add absolute-header.
85441         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
85442         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
85443         (Include): Remove requirement of inclusion of <sys/types.h>.
85445 2007-03-02  Bruno Haible  <bruno@clisp.org>
85447         * lib/byteswap_.h (bswap_32): Fix formula.
85449 2007-03-06  Bruno Haible  <bruno@clisp.org>
85451         * modules/sprintf-posix-tests: New file.
85452         * tests/test-sprintf-posix.c: New file.
85454         * modules/sprintf-posix: New file.
85455         * lib/sprintf.c: New file.
85456         * m4/sprintf-posix.m4: New file.
85457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
85458         REPLACE_SPRINTF.
85459         * lib/stdio_.h (sprintf): New declaration.
85460         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
85461         REPLACE_SPRINTF.
85463 2007-03-06  Bruno Haible  <bruno@clisp.org>
85465         * modules/vsprintf-posix-tests: New file.
85466         * tests/test-vsprintf-posix.c: New file.
85467         * tests/test-sprintf-posix.h: New file.
85469         * modules/vsprintf-posix: New file.
85470         * lib/vsprintf.c: New file.
85471         * m4/vsprintf-posix.m4: New file.
85472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
85473         REPLACE_VSPRINTF.
85474         * lib/stdio_.h (vsprintf): New declaration.
85475         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
85476         REPLACE_VSPRINTF.
85478 2007-03-06  Bruno Haible  <bruno@clisp.org>
85480         * modules/vsnprintf (Depend-on): Remove minmax.
85482 2007-03-06  Bruno Haible  <bruno@clisp.org>
85484         * modules/snprintf-posix-tests: New file.
85485         * tests/test-snprintf-posix.c: New file.
85487         * modules/snprintf-posix: New file.
85488         * m4/snprintf-posix.m4: New file.
85489         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
85490         gl_FUNC_SNPRINTF.
85491         (gl_FUNC_SNPRINTF): Invoke it.
85492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
85493         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
85494         is set.
85495         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
85497 2007-03-06  Bruno Haible  <bruno@clisp.org>
85499         * modules/vsnprintf-posix-tests: New file.
85500         * tests/test-vsnprintf-posix.c: New file.
85501         * tests/test-snprintf-posix.h: New file.
85503         * modules/vsnprintf-posix: New file.
85504         * m4/vsnprintf-posix.m4: New file.
85505         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
85506         gl_FUNC_VSNPRINTF.
85507         (gl_FUNC_VSNPRINTF): Invoke it.
85508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
85509         * lib/stdio_.h (vsnprintf): Define as a replacement if
85510         REPLACE_VSNPRINTF is set.
85511         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
85513 2007-03-06  Bruno Haible  <bruno@clisp.org>
85515         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
85516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
85518 2007-03-06  Bruno Haible  <bruno@clisp.org>
85520         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
85521         (asinl): Declare also if HAVE_DECL_ASINL is set.
85522         (atanl): Declare also if HAVE_DECL_ATANL is set.
85523         (ceill): Declare also if HAVE_DECL_CEILL is set.
85524         (cosl): Declare also if HAVE_DECL_COSL is set.
85525         (expl): Declare also if HAVE_DECL_EXPL is set.
85526         (floorl): Declare also if HAVE_DECL_FLOORL is set.
85527         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
85528         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
85529         (logl): Declare also if HAVE_DECL_LOGL is set.
85530         (sinl): Declare also if HAVE_DECL_SINL is set.
85531         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
85532         (tanl): Declare also if HAVE_DECL_TANL is set.
85533         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
85534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
85535         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
85536         declaration of frexpl, ldexpl.
85537         * modules/printf-frexpl (Depends-on): Add math.
85538         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
85540 2007-03-05  Bruno Haible  <bruno@clisp.org>
85542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
85543         frexpl and ldexpl are declared.
85544         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
85546 2007-03-05  Bruno Haible  <bruno@clisp.org>
85548         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
85549         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
85551 2007-03-05  Bruno Haible  <bruno@clisp.org>
85553         * lib/stdio_.h: Include <stddef.h>.
85555 2007-03-05  Bruno Haible  <bruno@clisp.org>
85557         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
85559 2007-03-05  Bruno Haible  <bruno@clisp.org>
85561         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
85562         NetBSD 4, from Ralf Wildenhues.
85564 2007-03-04  Bruno Haible  <bruno@clisp.org>
85566         * lib/vasprintf.h: Update #if logic for the case when the functions
85567         exist but are overridden.
85569 2007-03-04  Bruno Haible  <bruno@clisp.org>
85571         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
85572         implementations: glibc-2.4 and MacOS X 10.3.
85573         * tests/test-vasnprintf-posix.c (test_function): Test also the case
85574         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
85575         * tests/test-vasprintf-posix.c (test_function): Likewise.
85577 2007-03-04  Bruno Haible  <bruno@clisp.org>
85579         * modules/vasprintf-posix-tests: New file.
85580         * tests/test-vasprintf-posix.c: New file.
85582         * modules/vasprintf-posix: New file.
85583         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
85584         defined.
85585         * m4/vasprintf-posix.m4: New file.
85586         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
85587         gl_FUNC_VASPRINTF.
85588         (gl_FUNC_VASPRINTF): Invoke it.
85589         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
85590         here.
85591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
85593 2007-03-04  Bruno Haible  <bruno@clisp.org>
85595         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
85596         REPLACE_GETTIMEOFDAY.
85597         * modules/sys_time (Makefile.am): Likewise.
85598         * m4/sys_time_h.m4: Likewise.
85599         * m4/gettimeofday.m4: Likewise.
85601 2007-03-04  Bruno Haible  <bruno@clisp.org>
85603         * modules/vasnprintf-posix-tests: New file.
85604         * tests/test-vasnprintf-posix.c: New file.
85606         * modules/vasnprintf-posix: New file.
85607         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
85608         printf-frexpl.h.
85609         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
85610         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
85611         REPLACE_VASNPRINTF is defined.
85612         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
85613         gl_FUNC_VASNPRINTF.
85614         (gl_FUNC_VASNPRINTF): Invoke it.
85615         * m4/vasnprintf-posix.m4: New file.
85616         * m4/printf.m4: New file.
85618 2007-03-04  Bruno Haible  <bruno@clisp.org>
85620         Compile progreloc.c only if --enable-relocatable is specified.
85621         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
85622         if --enable-relocatable was specified.
85623         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
85624         lib_SOURCES.
85626 2007-03-04  Jim Meyering  <jim@meyering.net>
85628         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
85629         Use it consistently, rather than enumerating errno constants.
85631 2007-03-04  Bruno Haible  <bruno@clisp.org>
85633         * modules/xvasprintf-tests: New file.
85634         * tests/test-xvasprintf.c: New file.
85636         * modules/vasprintf-tests: New file.
85637         * tests/test-vasprintf.c: New file.
85639         * modules/vasnprintf-tests: New file.
85640         * tests/test-vasnprintf.c: New file.
85642         * modules/vsnprintf-tests: New file.
85643         * tests/test-vsnprintf.c: New file.
85645         * modules/snprintf-tests: New file.
85646         * tests/test-snprintf.c: New file.
85648 2007-03-04  Bruno Haible  <bruno@clisp.org>
85650         Compile relocatable.c only if --enable-relocatable is specified.
85651         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
85652         gl_RELOCATABLE_LIBRARY.
85653         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
85654         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
85655         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
85656         gl_RELOCATABLE_LIBRARY.
85657         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
85658         (Makefile.am): Remove lib_SOURCES.
85659         * modules/relocatable-lib-lgpl (configure.ac): Invoke
85660         gl_RELOCATABLE_LIBRARY.
85661         (Makefile.am): Remove lib_SOURCES.
85662         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
85663         always.
85664         * modules/relocatable-prog-wrapper (configure.ac): Invoke
85665         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
85667 2007-03-04  Bruno Haible  <bruno@clisp.org>
85669         * modules/argmatch-tests: New file.
85670         * tests/test-argmatch.c: New file.
85672         * tests/test-allocsa.c (main): Halve the number of loop runs.
85674         * modules/alloca-opt-tests: New file.
85675         * tests/test-alloca-opt.c: New file.
85677 2007-03-04  Jim Meyering  <jim@meyering.net>
85679         Work around difference between Linux ACLs and Solaris 10 ZFS.
85680         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
85681         for EINVAL.
85683 2007-03-03  Bruno Haible  <bruno@clisp.org>
85685         * modules/relocatable-prog (Depends-on): Add back progreloc's
85686         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
85688 2007-03-03  Bruno Haible  <bruno@clisp.org>
85690         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
85691         * modules/relocatable-lib: New file.
85693 2007-03-03  Bruno Haible  <bruno@clisp.org>
85695         * modules/relocatable-prog: Renamed from modules/relocatable.
85696         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
85698 2007-03-03  Bruno Haible  <bruno@clisp.org>
85700         * modules/relocatable-script (Files): Add doc/relocatable.texi,
85701         m4/relocatable-lib.m4.
85702         (Depends-on): Remove 'relocatable'.
85703         (configure.ac): Add gl_RELOCATABLE_NOP.
85705 2007-03-03  Bruno Haible  <bruno@clisp.org>
85707         * modules/relocatable-prog-wrapper: New file.
85708         * modules/relocatable (Depends-on): Add it. Remove all other
85709         dependencies except progname.
85710         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
85712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
85713         (gl_FUNC_STRERROR): Nop.
85714         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
85716         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
85717         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
85719         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
85720         (gl_FUNC_READLINK): Update.
85722         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
85724 2007-03-03  Bruno Haible  <bruno@clisp.org>
85726         * lib/xreadlink.c: Include <unistd.h> unconditionally.
85727         * modules/xreadlink (Depends-on): Add unistd.
85728         * modules/xreadlink-with-size (Depends-on): Likewise.
85730 2007-03-03  Bruno Haible  <bruno@clisp.org>
85732         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
85733         extracted from gt_FUNC_SETENV.
85734         (gt_FUNC_SETENV): Remove macro.
85735         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
85736         remove gt_FUNC_SETENV.
85738 2007-03-03  Bruno Haible  <bruno@clisp.org>
85740         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
85741         ENABLE_RELOCATABLE here.
85742         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
85744 2007-03-03  Bruno Haible  <bruno@clisp.org>
85746         * modules/rbtreehash-list-tests (Depends-on): Add progname.
85747         * tests/test-rbtreehash_list.c: Include progname.h.
85748         (main): Call set_program_name.
85750         * modules/rbtree-oset-tests (Depends-on): Add progname.
85751         * tests/test-rbtree_oset.c: Include progname.h.
85752         (main): Call set_program_name.
85754         * modules/rbtree-list-tests (Depends-on): Add progname.
85755         * tests/test-rbtree_list.c: Include progname.h.
85756         (main): Call set_program_name.
85758         * modules/linked-list-tests (Depends-on): Add progname.
85759         * tests/test-linked_list.c: Include progname.h.
85760         (main): Call set_program_name.
85762 2007-03-03  Bruno Haible  <bruno@clisp.org>
85764         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
85765         All uses of __restrict changed to _Restrict_.
85766         * lib/glob_.h (__restrict): Remove macro.
85768 2007-03-02  Bruno Haible  <bruno@clisp.org>
85770         * modules/gettext (configure.ac): Require gettext infrastructure
85771         from version 0.16.1.
85773 2007-03-02  Bruno Haible  <bruno@clisp.org>
85775         * modules/linkedhash-list-tests (Depends-on): Add progname.
85776         * tests/test-linkedhash_list.c: Include progname.h.
85777         (main): Call set_program_name.
85779         * modules/carray-list-tests (Depends-on): Add progname.
85780         * tests/test-carray_list.c: Include progname.h.
85781         (main): Call set_program_name.
85783         * modules/avltreehash-list-tests (Depends-on): Add progname.
85784         * tests/test-avltreehash_list.c: Include progname.h.
85785         (main): Call set_program_name.
85787         * modules/avltree-oset-tests (Depends-on): Add progname.
85788         * tests/test-avltree_oset.c: Include progname.h.
85789         (main): Call set_program_name.
85791         * modules/avltree-list-tests (Depends-on): Add progname.
85792         * tests/test-avltree_list.c: Include progname.h.
85793         (main): Call set_program_name.
85795         * modules/array-oset-tests (Depends-on): Add progname.
85796         * tests/test-array_oset.c: Include progname.h.
85797         (main): Call set_program_name.
85799         * modules/array-list-tests (Depends-on): Add progname.
85800         * tests/test-array_list.c: Include progname.h.
85801         (main): Call set_program_name.
85803         * modules/argp-tests (Depends-on): Add progname.
85804         * tests/test-argp.c: Include argp.h first. Include progname.h.
85805         (main): Call set_program_name.
85807 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
85809         * doc/gnulib-tool.texi (Initial import): Reword description of
85810         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
85811         limited effect even if defined after the first system include.
85813 2007-03-01  Bruno Haible  <bruno@clisp.org>
85815         * build-aux/config.libpath: Update to libtool-1.5.22.
85816         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85818 2007-03-01  Bruno Haible  <bruno@clisp.org>
85820         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
85821         foo_CFLAGS.
85822         Reported by Ralf Wildenhues.
85824 2007-03-01  Bruno Haible  <bruno@clisp.org>
85826         * build-aux/install-reloc: Remove object files left over by some
85827         compilers.
85828         Reported by Ralf Wildenhues.
85830 2007-03-01  Bruno Haible  <bruno@clisp.org>
85832         * build-aux/install-reloc: Break long lines.
85834 2007-03-01  Bruno Haible  <bruno@clisp.org>
85836         * doc/relocatable.texi: Document that it may not work on OpenBSD.
85837         Reported by Ralf Wildenhues.
85839 2007-03-01  Bruno Haible  <bruno@clisp.org>
85841         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
85842         include ordering constraints.
85844 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85846         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
85847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
85848         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
85849         as another example.
85850         * lib/time_.h: Fix misspelling.
85851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
85852         Require gl_HEADER_TIME_H_DEFAULTS.
85853         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
85854         * m4/time_r.m4 (gl_TIME_R): Likewise.
85855         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
85857 2007-03-01  Bruno Haible  <bruno@clisp.org>
85859         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
85860         * m4/utimens.m4 (gl_UTIMENS): Likewise.
85862 2007-03-01  Jim Meyering  <jim@meyering.net>
85864         * modules/xreadlink (Maintainer): Add my name.
85865         * modules/xreadlink-with-size (Depends-on): Alphabetize.
85867 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
85868             Bruno Haible  <bruno@clisp.org>
85870         * build-aux/install-reloc: Compile also c-ctype.c.
85871         * build-aux/relocatable.sh.in: New file.
85872         * doc/relocatable.texi: New file.
85873         * doc/relocatable-maint.texi: New file.
85874         * doc/gnulib.texi: Include relocatable-maint.texi.
85875         * lib/progreloc.c: Include unistd.h unconditionally.
85876         * lib/relocwrapper.c: Include unistd.h unconditionally.
85877         Include c-ctype.h.
85878         (add_dotbin): Use c_tolower.
85879         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
85880         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
85881         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
85882         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
85883         to m4/relocatable-lib.m4.
85884         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
85885         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
85886         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
85887         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
85888         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
85889         * modules/relocatable: New file.
85890         * modules/relocatable-lib: New file.
85891         * modules/relocatable-script: New file.
85893 2007-02-28  Bruno Haible  <bruno@clisp.org>
85895         Import --enable-relocatable infrastructure.
85896         * build-aux/config.libpath: New file, from GNU gettext.
85897         * build-aux/install-reloc: New file, from GNU gettext.
85898         * build-aux/reloc-ldflags: New file, from GNU gettext.
85899         * lib/relocatable.h: New file, from GNU gettext.
85900         * lib/relocatable.c: New file, from GNU gettext.
85901         * lib/relocwrapper.c: New file, from GNU gettext.
85902         * m4/relocatable.m4: New file, from GNU gettext.
85904 2007-02-28  Bruno Haible  <bruno@clisp.org>
85906         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
85908         * modules/xreadlink: New file, from GNU gettext with modifications.
85909         * lib/xreadlink.c: New file, from GNU gettext.
85910         * lib/xreadlink.h: Add comments.
85911         (xreadlink): New declaration.
85913         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
85914         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
85915         lib/xreadlink-with-size.c.
85916         (configure.ac): Remove gl_XREADLINK invocation.
85917         (Makefile.am): Augment lib_SOURCES.
85918         * m4/xreadlink.m4: Remove file.
85919         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
85920         (xreadlink_with_size): Renamed from xreadink.
85921         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
85922         * modules/canonicalize (Depends-on): Replace xreadlink with
85923         xreadlink-with-size.
85924         * lib/canonicalize.c (canonicalize_filename_mode): Update.
85926 2007-02-25  Jim Meyering  <jim@meyering.net>
85928         * build-aux/announce-gen: When complaining about excess arguments,
85929         list them.
85931 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85933         * README: Document signed integer overflow situation more
85934         accurately.
85936 2007-02-25  Bruno Haible  <bruno@clisp.org>
85938         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
85939         'a' or 'A' conversion.
85941 2007-02-25  Bruno Haible  <bruno@clisp.org>
85943         * modules/filename: Renamed from modules/pathname.
85944         (Files): Replace lib/pathname.h with lib/filename.h. Replace
85945         lib/concatpath.c with lib/concat-filename.c.
85946         (Makefile.am): Update.
85947         (Include): Replace pathname.h with filename.h.
85948         * lib/filename.h: Renamed from lib/pathname.h.
85949         (concatenated_filename): Renamed from concatenated_pathname.
85950         * lib/concat-filename.c: Renamed from lib/concatpath.c.
85951         (concatenated_filename): Renamed from concatenated_pathname.
85952         * lib/findprog.c: Include filename.h instead of pathname.h.
85953         (find_in_path): Update.
85954         * lib/javacomp.c: Include filename.h instead of pathname.h.
85955         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
85956         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
85957         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
85958         is_oldgcj_14_13_usable, is_javac_usable): Update.
85959         * lib/javaexec.c: Include filename.h instead of pathname.h.
85960         (execute_java_class): Update.
85961         * modules/findprog: Update.
85962         * modules/javacomp: Update.
85963         * modules/javaexec: Update.
85964         * MODULES.html.sh (File system functions): Add 'filename', remove
85965         'pathname'.
85967 2007-02-25  Bruno Haible  <bruno@clisp.org>
85969         * modules/printf-frexpl-tests: New file.
85970         * tests/test-printf-frexpl.c: New file.
85972         * modules/printf-frexpl: New file.
85973         * lib/printf-frexpl.h: New file.
85974         * lib/printf-frexpl.c: New file.
85975         * m4/printf-frexpl.m4: New file.
85977 2007-02-25  Bruno Haible  <bruno@clisp.org>
85979         * modules/printf-frexp-tests: New file.
85980         * tests/test-printf-frexp.c: New file.
85982         * modules/printf-frexp: New file.
85983         * lib/printf-frexp.h: New file.
85984         * lib/printf-frexp.c: New file.
85985         * m4/printf-frexp.m4: New file.
85987 2007-02-25  Bruno Haible  <bruno@clisp.org>
85989         Assume automake >= 1.10 for the tests.
85990         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
85991         * modules/arctwo-tests: Likewise.
85992         * modules/argp-tests: Likewise.
85993         * modules/avltree-list-tests: Likewise.
85994         * modules/avltree-oset-tests: Likewise.
85995         * modules/avltreehash-list-tests: Likewise.
85996         * modules/carray-list-tests: Likewise.
85997         * modules/crc-tests: Likewise.
85998         * modules/des-tests: Likewise.
85999         * modules/gc-arcfour-tests: Likewise.
86000         * modules/gc-arctwo-tests: Likewise.
86001         * modules/gc-des-tests: Likewise.
86002         * modules/gc-hmac-md5-tests: Likewise.
86003         * modules/gc-hmac-sha1-tests: Likewise.
86004         * modules/gc-md2-tests: Likewise.
86005         * modules/gc-md4-tests: Likewise.
86006         * modules/gc-md5-tests: Likewise.
86007         * modules/gc-pbkdf2-sha1-tests: Likewise.
86008         * modules/gc-rijndael-tests: Likewise.
86009         * modules/gc-sha1-tests: Likewise.
86010         * modules/gc-tests: Likewise.
86011         * modules/getaddrinfo-tests: Likewise.
86012         * modules/hmac-md5-tests: Likewise.
86013         * modules/hmac-sha1-tests: Likewise.
86014         * modules/linked-list-tests: Likewise.
86015         * modules/linkedhash-list-tests: Likewise.
86016         * modules/lock-tests: Likewise.
86017         * modules/md2-tests: Likewise.
86018         * modules/md4-tests: Likewise.
86019         * modules/md5-tests: Likewise.
86020         * modules/rbtree-list-tests: Likewise.
86021         * modules/rbtree-oset-tests: Likewise.
86022         * modules/rbtreehash-list-tests: Likewise.
86023         * modules/read-file-tests: Likewise.
86024         * modules/rijndael-tests: Likewise.
86025         * modules/stdint-tests: Likewise.
86026         * modules/tls-tests: Likewise.
86028 2007-02-24  Bruno Haible  <bruno@clisp.org>
86030         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
86031         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
86032         function; instead check whether isnan with a double argument links.
86033         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
86034         function; instead check whether isnan with a 'long double' argument
86035         links.
86036         Reported by Eric Blake <ebb9@byu.net>.
86038 2007-02-24  Bruno Haible  <bruno@clisp.org>
86040         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
86041         defined.
86042         * lib/isnanl.c: Remove all code. Just include isnan.c.
86043         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
86045 2007-02-25  Jim Meyering  <jim@meyering.net>
86047         Avoid conflicting types for 'unsetenv' on FreeBSD.
86048         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
86049         conflicting with FreeBSD's (5.0 and 6.1) function declaration
86050         in stdlib.h.
86052 2007-02-24  Bruno Haible  <bruno@clisp.org>
86054         * modules/isnanl-nolibm-tests: New file.
86055         * tests/test-isnanl.c: New file.
86057         * modules/isnanl-nolibm: New file.
86058         * lib/isnanl.h: New file.
86059         * lib/isnanl.c: New file.
86060         * m4/isnanl.m4: New file.
86062 2007-02-24  Bruno Haible  <bruno@clisp.org>
86064         * modules/isnan-nolibm-tests: New file.
86065         * tests/test-isnan.c: New file.
86067         * modules/isnan-nolibm: New file.
86068         * lib/isnan.h: New file.
86069         * lib/isnan.c: New file.
86070         * m4/isnan.m4: New file.
86072 2007-02-24  Bruno Haible  <bruno@clisp.org>
86074         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
86075         assume that an exponent fits in 20 bits.
86077 2007-02-24  Jim Meyering  <jim@meyering.net>
86079         * m4/regex.m4: Update the description of the configure-time option,
86080         --without-included-regex, to state accurately what the defaults are,
86081         and perhaps to give people an idea why using this option is risky.
86083 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
86085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
86086         loops on small arguments.  This attempts to avoid the problem
86087         Bruno Haible reported for AIX 4.3.2 in
86088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
86090 2007-02-23  Bruno Haible  <bruno@clisp.org>
86092         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
86093         Needed for help2man.
86095 2007-02-23  Karl Berry  <karl@gnu.org>
86097         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
86098         exists, foo.h should be cvs-ignored, not committed.
86100 2007-02-23  Eric Blake  <ebb9@byu.net>
86102         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
86103         * lib/stat-time.h (includes): Likewise.
86104         * lib/utimecmp.c (includes): Likewise.
86105         * lib/utimens.h (includes): Likewise.
86106         * lib/getdate.y (includes): Also include "timespec.h" for use
86107         internal to the module.
86108         * modules/utimens (Depends-on): Revert yesterday's patch.
86109         * modules/nanosleep (Depends-on): Add missing dependency.
86111 2007-02-22  Bruno Haible  <bruno@clisp.org>
86113         * lib/glob.c: Don't include getlogin_r.h.
86115 2007-02-22  Jim Meyering  <jim@meyering.net>
86117         * modules/utimens (Depends-on): Add timespec, required for
86118         utimens.h's inclusion of timespec.h.
86120 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
86122         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
86123         long unreadable paths in GNU/Linux.  Problem reported by Andreas
86124         Schwab in
86125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
86126         I'll try to think of a better way to fix the Solaris problem.
86128         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
86129         like glibc; on Solaris 10, it fails with errno == EINVAL.
86130         POSIX says the behavior is unspecified if the first argument is NULL,
86131         so play it safe and never pass NULL to the system getcwd.
86133 2007-02-21  Jim Meyering  <jim@meyering.net>
86135         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
86136         of gettimeofday.  It would conflict with the one now always
86137         provided via sys_time_.h.  Reported by Matthew Woehlke, as
86138         an IRIX 6.5 build failure.
86140 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
86142         Minor fixups to port to Solaris 10 with Sun C 5.8.
86143         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
86144         * modules/getcwd (Depends-on): Add dirfd.
86145         * lib/putenv.c (putenv): #undef it.
86146         (rpl_putenv): New decl.
86147         (malloc, free): Include <stdlib.h> rather than prototyping separately.
86149 2007-02-20  Bruno Haible  <bruno@clisp.org>
86151         * modules/stdio-tests: New file.
86152         * tests/test-stdio.c: New file.
86154         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
86155         (Depends-on): Add stdio.
86156         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
86157         (Include): Use <stdio.h> instead of vsnprintf.h.
86158         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
86159         HAVE_DECL_VSNPRINTF.
86160         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
86162         * modules/snprintf (Files): Remove lib/snprintf.h.
86163         (Depends-on): Add stdio.
86164         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
86165         (Include): Use <stdio.h> instead of snprintf.h.
86166         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
86167         HAVE_DECL_SNPRINTF.
86168         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
86169         * lib/getaddrinfo.c: Likewise.
86171         * modules/stdio: New file.
86172         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
86173         * lib/snprintf.h: Remove file.
86174         * lib/vsnprintf.h: Remove file.
86175         * lib/.cppi-disable: Remove snprintf.h.
86176         * m4/stdio_h.m4: New file.
86177         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
86179 2007-02-20  Jim Meyering  <jim@meyering.net>
86181         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
86182         used by e.g., mingw.  From Bruno Haible.
86184 2007-02-19  Bruno Haible  <bruno@clisp.org>
86186         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
86187         warnings.
86188         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86190 2007-02-19  Bruno Haible  <bruno@clisp.org>
86192         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
86193         from mingw users.
86195 2007-02-19  Bruno Haible  <bruno@clisp.org>
86197         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
86198         warnings.
86199         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
86201 2007-02-19  Jim Meyering  <jim@meyering.net>
86203         Don't use FD after a successful "fdopendir (fd)".
86204         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
86205         Reset it by calling dirfd on the just-obtained DIR*.
86207         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
86208         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
86210 2007-02-18  Bruno Haible  <bruno@clisp.org>
86212         * lib/readlink.c: Include <unistd.h>.
86213         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
86214         HAVE_READLINK.
86215         * modules/readlink (Depends-on): Add unistd.
86216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86217         (Include): Add <unistd.h>.
86219         * lib/getlogin_r.h: Remove file.
86220         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
86221         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
86222         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
86223         HAVE_DECL_GETLOGIN_R.
86224         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
86225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86226         (Include): Use <unistd.h> instead of getlogin_r.h.
86228         * lib/getcwd.h: Remove file.
86229         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
86230         * lib/xgetcwd.c: Likewise.
86231         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
86232         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
86233         * modules/getcwd (Files): Remove lib/getcwd.h.
86234         (Depends-on): Add unistd.
86235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86236         (Include): Use <unistd.h> instad of getcwd.h.
86238         * lib/ftruncate.c: Include <unistd.h> first.
86239         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
86240         Set HAVE_FTRUNCATE.
86241         * modules/ftruncate (Depends-on): Add unistd.
86242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86244         * lib/fchdir.c: Include <unistd.h> first.
86245         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
86246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
86247         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
86248         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86249         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
86251         * lib/dup2.c: Include <unistd.h> first.
86252         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
86253         HAVE_DUP2.
86254         * modules/dup2 (Depends-on): Add unistd.
86255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86257         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
86258         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
86259         REPLACE_CHOWN. Don't define chown as a macro here.
86260         * modules/chown (Depends-on): Add unistd.
86261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86263         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
86264         Add definition for GL_LINK_WARNING.
86265         (chown, dup2): New declarations.
86266         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
86267         link warning.
86268         (ftruncate): New declaration.
86269         (getcwd): New declaration, taken from old getcwd.h.
86270         (getlogin_r): New declaration, taken from old getlogin_r.h.
86271         (readlink): New declaration.
86272         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
86273         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
86274         (gl_PREREQ_UNISTD): Remove macro.
86275         (gl_UNISTD_MODULE_INDICATOR): New macro.
86276         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
86277         many new variables. Don't set UNISTD_H.
86278         * modules/unistd (Description): Change.
86279         (Depends-on): Add link-warning.
86280         (configure.ac): Update.
86281         (Makefile.am): Create unistd.h always. Substitute many new variables
86282         into it.
86284 2007-02-18  Bruno Haible  <bruno@clisp.org>
86286         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
86287         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
86288         HAVE_GETSUBOPT.
86289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
86290         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
86291         * lib/getsubopt.h: Remove file.
86292         * modules/getsubopt (Files): Remove lib/getsubopt.h.
86293         (Depends-on): Add stdlib.
86294         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86295         (Includes): Use <stdlib.h> instead of getsubopt.h.
86296         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
86297         Set HAVE_GETSUBOPT.
86298         * lib/getsubopt.c: Don't include getsubopt.h.
86300 2007-02-18  Bruno Haible  <bruno@clisp.org>
86302         * modules/fchdir (Depends-on): Add dup2.
86304 2007-02-18  Bruno Haible  <bruno@clisp.org>
86306         * lib/stdlib_.h: Handle glibc's special invocation convention
86307         specially.
86309 2007-02-18  Bruno Haible  <bruno@clisp.org>
86311         * modules/stdlib-tests: New file.
86312         * tests/test-stdlib.c: New file.
86314         * modules/mkstemp (Files): Remove lib/mkstemp.h.
86315         (Depends-on): Add stdlib.
86316         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86317         (Includes): Use <stdlib.h> instead of mkstemp.h.
86318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
86319         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
86320         * lib/mkstemp.c: Don't include mkstemp.h.
86321         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
86322         * lib/stdlib--.h: Don't include mkstemp.h.
86324         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
86325         (Depends-on): Add stdlib.
86326         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86327         (Includes): Use <stdlib.h> instead of mkdtemp.h.
86328         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
86329         HAVE_MKDTEMP.
86330         * lib/mkdtemp.c: Don't include mkdtemp.h.
86331         * lib/clean-temp.c: Don't include mkdtemp.h.
86333         * modules/exit (Files): Remove lib/exit.h.
86334         (Depends-on): Add stdlib.
86335         (Makefile.am): Remove lib_SOURCES.
86336         (Include): Use <stdlib.h> instead of exit.h.
86337         * lib/argmatch.c: Don't include exit.h.
86338         * lib/execute.c: Likewise.
86339         * lib/pagealign_alloc.c: Likewise.
86340         * lib/pipe.c: Likewise.
86341         * lib/wait-process.c: Likewise.
86342         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
86343         * lib/exitfail.c: Likewise.
86344         * lib/savewd.c: Likewise.
86345         * lib/xsetenv.c: Likewise.
86347         * modules/stdlib: New file.
86348         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
86349         and extra comments about mkstemp().
86350         * lib/exit.h: Remove file.
86351         * lib/mkdtemp.h: Remove file.
86352         * lib/mkstemp.h: Remove file.
86353         * m4/stdlib_h.m4: New file.
86354         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
86356 2007-02-18  Bruno Haible  <bruno@clisp.org>
86358         * modules/math-tests: New file.
86359         * tests/test-math.c: New file.
86361         * modules/math: New file.
86362         * modules/mathl (Files): Remove lib/mathl.h.
86363         (Depends-on): Add math.
86364         (Makefile.am): Don't mention mathl.h.
86365         (Include): Use <math.h> instead of mathl.h.
86366         * lib/math_.h: New file.
86367         * lib/mathl.h: Remove file.
86368         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
86369         mathl.h.
86370         * lib/asinl.c: Likewise.
86371         * lib/atanl.c: Likewise.
86372         * lib/ceill.c: Likewise.
86373         * lib/cosl.c: Likewise.
86374         * lib/expl.c: Likewise.
86375         * lib/floorl.c: Likewise.
86376         * lib/frexpl.c: Likewise.
86377         * lib/ldexpl.c: Likewise.
86378         * lib/logl.c: Likewise.
86379         * lib/sincosl.c: Likewise.
86380         * lib/sinl.c: Likewise.
86381         * lib/sqrtl.c: Likewise.
86382         * lib/tanl.c: Likewise.
86383         * lib/trigl.c: Likewise.
86384         * m4/math_h.m4: New file.
86385         * MODULES.html.sh (Mathematics): Add math.
86387 2007-02-17  Bruno Haible  <bruno@clisp.org>
86389         * modules/wctype-tests: New file.
86390         * tests/test-wctype.c: New file.
86392         * modules/wchar-tests: New file.
86393         * tests/test-wchar.c: New file.
86395         * modules/unistd-tests: New file.
86396         * tests/test-unistd.c: New file.
86398         * modules/time-tests: New file.
86399         * tests/test-time.c: New file.
86401         * modules/sysexits-tests: New file.
86402         * tests/test-sysexits.c: New file.
86404         * modules/sys_time-tests: New file.
86405         * tests/test-sys_time.c: New file.
86407         * modules/sys_stat-tests: New file.
86408         * tests/test-sys_stat.c: New file.
86410         * modules/sys_socket-tests: New file.
86411         * tests/test-sys_socket.c: New file.
86413         * modules/sys_select-tests: New file.
86414         * tests/test-sys_select.c: New file.
86416         * modules/string-tests: New file.
86417         * tests/test-string.c: New file.
86419         * modules/stdbool-tests: New file.
86420         * tests/test-stdbool.c: New file.
86422         * modules/netinet_in-tests: New file.
86423         * tests/test-netinet_in.c: New file.
86425         * modules/inttypes-tests: New file.
86426         * tests/test-inttypes.c: New file.
86428         * modules/fcntl-tests: New file.
86429         * tests/test-fcntl.c: New file.
86431         * modules/byteswap-tests: New file.
86432         * tests/test-byteswap.c: New file.
86434         * modules/arpa_inet-tests: New file.
86435         * tests/test-arpa_inet.c: New file.
86437 2007-02-17  Bruno Haible  <bruno@clisp.org>
86439         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
86440         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
86441         if the corresponding module is not enabled. Emit link warnings if
86442         the function is used nevertheless.
86443         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
86444         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
86445         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
86446         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
86447         * modules/inttypes (Depends-on): Add link-warning.
86448         (Makefile.am): Copy the contents of build-aux/link-warning.h into
86449         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
86450         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
86451         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
86452         * modules/imaxdiv (configure.ac): Likewise.
86453         * modules/strtoimax (configure.ac): Likewise.
86454         * modules/strtoumax (configure.ac): Likewise.
86456 2007-02-17  Bruno Haible  <bruno@clisp.org>
86458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
86459         gl_STRING_MODULE_INDICATOR_DEFAULTS.
86460         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
86461         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
86463 2007-02-17  Bruno Haible  <bruno@clisp.org>
86465         * modules/link-warning: New file.
86466         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
86467         * lib/string_.h (GL_LINK_WARNING): Remove definition.
86468         * modules/string (Depends-on): Add link-warning.
86469         (Makefile.am): Copy the contents of build-aux/link-warning.h into
86470         string.h.
86471         * MODULES.html.sh (Support for building libraries and executables): Add
86472         link-warning.
86474 2007-02-17  Bruno Haible  <bruno@clisp.org>
86476         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
86477         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
86478         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
86479         long lines.
86481 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
86482             Bruno Haible  <bruno@clisp.org>
86484         * modules/tmpfile: New file.
86485         * lib/tmpfile.c: New file.
86486         * m4/tmpfile.m4: New file.
86487         * MODULES.html.sh (func_all_modules): New section "Input/output".
86489 2007-02-15  Bruno Haible  <bruno@clisp.org>
86491         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
86492         (supports_delete_on_close): New function.
86493         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
86495 2007-02-14  Bruno Haible  <bruno@clisp.org>
86497         * modules/mbspcasecmp-tests: New file.
86498         * tests/test-mbspcasecmp.sh: New file.
86499         * tests/test-mbspcasecmp.c: New file.
86501         New module mbspcasecmp.
86502         * modules/mbspcasecmp: New file.
86503         * lib/mbspcasecmp.c: New file.
86504         * lib/string_.h (strncasecmp): Change warning message.
86505         (mbspcasecmp): New declaration.
86506         * m4/mbspcasecmp.m4: New file.
86507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86508         GNULIB_MBSPCASECMP.
86509         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
86510         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
86512 2007-02-14  Bruno Haible  <bruno@clisp.org>
86514         * modules/mbsncasecmp-tests: New file.
86515         * tests/test-mbsncasecmp.sh: New file.
86516         * tests/test-mbsncasecmp.c: New file.
86518         New module mbsncasecmp.
86519         * modules/mbsncasecmp: New file.
86520         * lib/mbsncasecmp.c: New file.
86521         * lib/string_.h (mbsncasecmp): New declaration.
86522         * m4/mbsncasecmp.m4: New file.
86523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86524         GNULIB_MBSNCASECMP.
86525         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
86526         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
86528 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
86530         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
86531         Verify that it doesn't overlap with our flags.
86532         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
86533         do not have the desired effect in multibyte locales; instead, use
86534         mbscasecmp.
86535         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
86536         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
86537         we don't require GNU fnmatch ourselves (if our users require it, they
86538         should do so explicitly).
86540         Fix regex code so it doesn't rely on strcasecmp.
86541         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
86542         Otherwise, include gnulib's langinfo.h.
86543         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
86544         undesirable behavior in non-C locales.  Instead, rely on localecharset.
86545         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
86546         * modules/regex (FILES): Remove m4/codeset.m4.
86547         (Depends-on): Add localcharset.  Remove strcase.
86549 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86551         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
86552         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
86554 2007-02-13  Bruno Haible  <bruno@clisp.org>
86556         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
86557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86559 2007-02-12  Bruno Haible  <bruno@clisp.org>
86561         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
86562         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
86563         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
86564         time warning rather than a link error.
86566 2007-02-12  Bruno Haible  <bruno@clisp.org>
86568         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
86569         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
86570         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86572 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
86574         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
86575         args, not 2.
86577 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
86579         New module 'time', so that apps can include <time.h> as per
86580         POSIX and GNU instead of separate include files like time_r.h
86581         and timegm.h.  This implementation tries out a simpler approach
86582         for replacing decls in standard include files (as compared to
86583         the string module), somewhat as an experiment.
86585         * config/srclist.txt: Comment out mktime.c for now.
86586         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
86587         since it doesn't apply any more.  Use generic wording instead.
86588         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
86589         'time'.
86590         * lib/time_.h, m4/time_h.m4, modules/time: New files.
86591         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
86592         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
86593         Don't include <sys/types.h>; no longer needed since we assume C89.
86594         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
86595         * lib/strftime.c: Likewise.
86596         * lib/time_r.c: Likewise.
86597         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
86598         * lib/nanosleep.c: Include <time.h> first, to check interface.
86599         * lib/strptime.c: Likewise.
86600         * lib/time_r.c: Likewise.
86601         * lib/timegm.c: Likewise.
86602         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
86603         needed.
86604         * lib/timegm.c: Don't include timegm.h; no longer needed.
86605         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
86606         time.h now handles any problems in that area.
86607         (struct timespec, nanosleep): Remove; time.h now arranges for these.
86608         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
86609         that time.h defines struct timespec.
86610         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
86611         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
86612         handles that.
86613         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
86614         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
86615         needed.  Set REPLACE_LOCALTIME.
86616         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
86617         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
86618         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
86619         nanosleep; time_h.m4 now does that.  Don't require
86620         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
86621         module handles this now.
86622         * modules/getdate (Depends-on): Remove timespec.  Add time.
86623         * modules/nanosleep (Depends-on): Likewise.
86624         * modules/stat-time (Depends-on): Likewise.
86625         * modules/nanosleep (Include): Include time.h, not timespec.h.
86626         * modules/strptime (Files): Remove lib/strptime.h.
86627         (Depends-on): Add extensions, time.
86628         (Include): Include time.h, not strptime.h.
86629         * modules/time_r (Files): Remove lib/time_r.h.
86630         (Depends-on): Add time.
86631         (Include): Include time.h, not time_r.h.
86632         * modules/timegm: Likewise.
86633         * modules/timespec (Description): Now does timespec-related decls
86634         of our own, instead of struct timespec itself.
86635         (Depends-on): Add time; remove extensions.
86636         (Maintainer): Add self.
86637         * modules/utimecmp (Depends-on): Add time; remove timespec.
86638         * modules/utimens (Depends-on): Likewise.
86639         * modules/xnanosleep (Depends-on): Likewise.
86641 2007-02-11  Bruno Haible  <bruno@clisp.org>
86643         * lib/c-strstr.c: Include allocsa.h.
86644         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86645         * lib/c-strcasestr.c: Include allocsa.h.
86646         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86647         * lib/strcasestr.c: Include allocsa.h.
86648         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86649         * lib/mbsstr.c: Include allocsa.h.
86650         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
86651         allocsa/freesa instead of malloc/free.
86652         * lib/mbscasestr.c: Include allocsa.h.
86653         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
86654         allocsa/freesa instead of malloc/free.
86655         * modules/c-strstr (Depends-on): Add allocsa.
86656         * modules/c-strcasestr (Depends-on): Likewise.
86657         * modules/strcasestr (Depends-on): Likewise.
86658         * modules/mbsstr (Depends-on): Likewise.
86659         * modules/mbscasestr (Depends-on): Likewise.
86661 2007-02-11  Bruno Haible  <bruno@clisp.org>
86663         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
86665         * modules/mbsspn-tests: New file.
86666         * tests/test-mbsspn.sh: New file.
86667         * tests/test-mbsspn.c: New file.
86669 2007-02-11  Bruno Haible  <bruno@clisp.org>
86671         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
86673         * modules/mbspbrk-tests: New file.
86674         * tests/test-mbspbrk.sh: New file.
86675         * tests/test-mbspbrk.c: New file.
86677 2007-02-11  Bruno Haible  <bruno@clisp.org>
86679         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
86680         unneeded cast.
86682         * modules/mbscspn-tests: New file.
86683         * tests/test-mbscspn.sh: New file.
86684         * tests/test-mbscspn.c: New file.
86686 2007-02-11  Bruno Haible  <bruno@clisp.org>
86688         * modules/mbscasecmp-tests: New file.
86689         * tests/test-mbscasecmp.sh: New file.
86690         * tests/test-mbscasecmp.c: New file.
86692 2007-02-11  Bruno Haible  <bruno@clisp.org>
86694         Ensure O(n) worst-case complexity of mbscasestr.
86695         * lib/mbscasestr.c: Include stdbool.h.
86696         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
86697         functions.
86698         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
86699         the bookkeeping indicates that it's worth it.
86700         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
86702         * modules/mbscasestr-tests: New file.
86703         * tests/test-mbscasestr1.c: New file.
86704         * tests/test-mbscasestr2.sh: New file.
86705         * tests/test-mbscasestr2.c: New file.
86706         * tests/test-mbscasestr3.sh: New file.
86707         * tests/test-mbscasestr3.c: New file.
86708         * tests/test-mbscasestr4.sh: New file.
86709         * tests/test-mbscasestr4.c: New file.
86710         * m4/locale-tr.m4: New file.
86712 2007-02-11  Bruno Haible  <bruno@clisp.org>
86714         Ensure O(n) worst-case complexity of mbsstr.
86715         * lib/mbsstr.c: Include stdbool.h.
86716         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
86717         functions.
86718         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
86719         bookkeeping indicates that it's worth it.
86720         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
86722         * modules/mbsstr-tests: New file.
86723         * tests/test-mbsstr1.c: New file.
86724         * tests/test-mbsstr2.sh: New file.
86725         * tests/test-mbsstr2.c: New file.
86726         * tests/test-mbsstr3.sh: New file.
86727         * tests/test-mbsstr3.c: New file.
86728         * m4/locale-fr.m4: New file.
86730 2007-02-11  Bruno Haible  <bruno@clisp.org>
86732         * lib/mbsrchr.c (mbsrchr): Fix bug.
86734         * modules/mbsrchr-tests: New file.
86735         * tests/test-mbsrchr.sh: New file.
86736         * tests/test-mbsrchr.c: New file.
86738 2007-02-11  Bruno Haible  <bruno@clisp.org>
86740         * lib/mbschr.c (mbschr): Fix bug.
86742         * modules/mbschr-tests: New file.
86743         * tests/test-mbschr.sh: New file.
86744         * tests/test-mbschr.c: New file.
86745         * m4/locale-zh.m4: New file.
86747 2007-02-11  Bruno Haible  <bruno@clisp.org>
86749         Support for copying multibyte string iterators.
86750         * lib/mbiter.h: Include <string.h>.
86751         (mbiter_multi_copy): New function.
86752         (mbi_copy): New macro.
86753         * lib/mbuiter.h: Include <string.h>.
86754         (mbuiter_multi_copy): New function.
86755         (mbui_copy): New macro.
86757 2007-02-11  Bruno Haible  <bruno@clisp.org>
86759         New module mbslen.
86760         * modules/mbslen: New file.
86761         * lib/mbslen.c: New file.
86762         * lib/string_.h (mbslen): New declaration.
86763         * m4/mbslen.m4: New file.
86764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86765         GNULIB_MBSLEN.
86766         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
86767         * MODULES.html.sh (Internationalization functions): Add mbslen.
86769 2007-02-11  Bruno Haible  <bruno@clisp.org>
86771         Ensure O(n) worst-case complexity of strcasestr substitute.
86772         * lib/strcasestr.c: Include stdbool.h.
86773         (knuth_morris_pratt): New function.
86774         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
86775         bookkeeping indicates that it's worth it.
86776         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
86778         * modules/strcasestr-tests: New file.
86779         * tests/test-strcasestr.c: New file.
86781 2007-02-11  Bruno Haible  <bruno@clisp.org>
86783         Ensure O(n) worst-case complexity of c_strcasestr.
86784         * lib/c-strcasestr.c: Include stdbool.h, string.h.
86785         (knuth_morris_pratt): New function.
86786         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
86787         the bookkeeping indicates that it's worth it.
86788         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
86790         * modules/c-strcasestr-tests: New file.
86791         * tests/test-c-strcasestr.c: New file.
86793 2007-02-11  Bruno Haible  <bruno@clisp.org>
86795         Ensure O(n) worst-case complexity of c_strstr.
86796         * lib/c-strstr.c: Include stdbool.h, string.h.
86797         (knuth_morris_pratt): New function.
86798         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
86799         bookkeeping indicates that it's worth it.
86800         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
86802         * lib/c-strstr.c: Complete rewrite for maintainability.
86804         * modules/c-strstr-tests: New file.
86805         * tests/test-c-strstr.c: New file.
86807 2007-02-11  Bruno Haible  <bruno@clisp.org>
86809         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
86810         5.2.1 and earlier, whereby \055 was treated just like the range
86811         delimiter '-'.
86812         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86814 2007-02-08  Bruno Haible  <bruno@clisp.org>
86816         * modules/regex (Depends-on): Add stdbool.
86817         Reported by Dalibor Topic <robilad@kaffe.org>.
86819 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
86821         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
86822         Prefer returning from main to exiting from it.
86823         Remove unnecessary parens after sizeof.
86825 2007-02-05  Bruno Haible  <bruno@clisp.org>
86827         New module mbssep.
86828         * modules/mbssep: New file.
86829         * lib/mbssep.c: New file.
86830         * lib/string_.h (strsep): Add a conditional link warning.
86831         (mbssep): New declaration.
86832         * m4/mbssep.m4: New file.
86833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86834         GNULIB_MBSSEP.
86835         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
86836         * MODULES.html.sh (Internationalization functions): Add mbssep.
86838 2007-02-05  Bruno Haible  <bruno@clisp.org>
86840         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
86841         Optimize search in case of 1 delimiter.
86843 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
86845         * lib/acl.h: Include sys/types.h before sys/acl.h.
86847 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
86849         Merge upstream fix for glibc bugzilla #3957:
86851         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
86853         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
86854         bit for RE_HAT_LISTS_NOT_NEWLINE.
86855         (build_charclass_op): Remove bogus comment.
86857 2007-02-05  Simon Josefsson  <simon@josefsson.org>
86859         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
86861 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86863         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
86864         * lib/memmem.c [!defined _LIBC]: Include config.h.
86866 2007-02-04  Bruno Haible  <bruno@clisp.org>
86868         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
86869         warning message.
86871 2007-02-04  Bruno Haible  <bruno@clisp.org>
86873         New module mbstok_r.
86874         * modules/mbstok_r: New file.
86875         * lib/mbstok_r.c: New file.
86876         * lib/string_.h (strtok_r): Change argument names to match the
86877         comments. Add a conditional link warning.
86878         (mbstok_r): New declaration.
86879         * m4/mbstok_r.m4: New file.
86880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86881         GNULIB_MBSTOK_R.
86882         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
86883         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
86885 2007-02-04  Bruno Haible  <bruno@clisp.org>
86887         New module mbsspn.
86888         * modules/mbsspn: New file.
86889         * lib/mbsspn.c: New file.
86890         * lib/string_.h (strspn): Add a conditional link warning.
86891         (mbsspn): New declaration.
86892         * m4/mbsspn.m4: New file.
86893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86894         GNULIB_MBSSPN.
86895         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
86896         * MODULES.html.sh (Internationalization functions): Add mbsspn.
86898 2007-02-04  Bruno Haible  <bruno@clisp.org>
86900         New module mbspbrk.
86901         * modules/mbspbrk: New file.
86902         * lib/mbspbrk.c: New file.
86903         * lib/string_.h (strpbrk): Add a conditional link warning.
86904         (mbspbrk): New declaration.
86905         * m4/mbspbrk.m4: New file.
86906         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86907         GNULIB_MBSPBRK.
86908         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
86909         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
86911 2007-02-04  Bruno Haible  <bruno@clisp.org>
86913         New module mbscspn.
86914         * modules/mbscspn: New file.
86915         * lib/mbscspn.c: New file.
86916         * lib/string_.h (strcspn): Add a conditional link warning.
86917         (mbscspn): New declaration.
86918         * m4/mbscspn.m4: New file.
86919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86920         GNULIB_MBSCSPN.
86921         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
86922         * MODULES.html.sh (Internationalization functions): Add mbscspn.
86924 2007-02-04  Bruno Haible  <bruno@clisp.org>
86926         New module mbscasestr, reduced goal of strcasestr.
86927         * modules/mbscasestr: New file.
86928         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
86929         (mbscasestr): Renamed from strcasestr.
86930         * lib/strcasestr.c: Don't include mbuiter.h.
86931         (strcasestr): Remove support for multibyte locales.
86932         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
86933         Change the conditional link warning.
86934         (mbscasestr): New declaration.
86935         * m4/mbscasestr.m4: New file.
86936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
86937         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
86938         REPLACE_STRCASESTR.
86939         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
86940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86941         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86942         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
86943         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
86944         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86945         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
86946         (Depends-on): Remove mbuiter.
86947         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
86949 2007-02-04  Bruno Haible  <bruno@clisp.org>
86951         Simplify handling of strncasecmp.
86952         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
86953         the conditional link warning.
86954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86955         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
86956         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
86957         * modules/strcase (configure.ac): Don't invoke
86958         gl_STRING_MODULE_INDICATOR.
86959         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
86961 2007-02-04  Bruno Haible  <bruno@clisp.org>
86963         New module mbscasecmp, reduced goal of strcasecmp.
86964         * modules/mbscasecmp: New file.
86965         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
86966         (mbscasecmp): Renamed from strcasecmp.
86967         * lib/strcasecmp.c: Don't include mbuiter.h.
86968         (strcasecmp): Remove support for multibyte locales.
86969         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
86970         Change the conditional link warning.
86971         (mbscasecmp): New declaration.
86972         * m4/mbscasecmp.m4: New file.
86973         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
86974         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
86975         REPLACE_STRCASECMP.
86976         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
86977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86978         GNULIB_MBSCASECMP.
86979         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
86980         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
86981         * modules/strcase (Files): Remove m4/mbrtowc.m4.
86982         (Depends-on): Remove mbuiter.
86983         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
86985 2007-02-04  Bruno Haible  <bruno@clisp.org>
86987         New module mbsstr. Remove module strstr.
86988         * modules/mbsstr: New file.
86989         * modules/strstr: Remove file.
86990         * lib/mbsstr.c: Renamed from lib/strstr.c.
86991         (mbsstr): Renamed from strstr.
86992         * lib/string_.h (strstr): Remove declaration. Change the conditional
86993         link warning.
86994         (mbsstr): New declaration.
86995         * m4/mbsstr.m4: New file.
86996         * m4/strstr.m4: Remove file.
86997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
86998         REPLACE_STRSTR.
86999         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
87000         Don't initialize GNULIB_STRSTR.
87001         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
87002         substitute GNULIB_STRSTR and REPLACE_STRSTR.
87003         * MODULES.html.sh (Internationalization functions): Add mbsstr.
87004         (Support for systems lacking ANSI C 89): Remove strstr.
87006 2007-02-04  Bruno Haible  <bruno@clisp.org>
87008         New module mbsrchr.
87009         * modules/mbsrchr: New file.
87010         * lib/mbsrchr.c: New file.
87011         * lib/string_.h (strrchr): Add a conditional link warning.
87012         (mbsrchr): New declaration.
87013         * m4/mbsrchr.m4: New file.
87014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87015         GNULIB_MBSRCHR.
87016         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
87017         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
87019 2007-02-04  Bruno Haible  <bruno@clisp.org>
87021         New module mbschr.
87022         * modules/mbschr: New file.
87023         * lib/mbschr.c: New file.
87024         * lib/string_.h (strchr): Add a conditional link warning.
87025         (mbschr): New declaration.
87026         * m4/mbschr.m4: New file.
87027         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87028         GNULIB_MBSCHR.
87029         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
87030         * MODULES.html.sh (Internationalization functions): Add mbschr.
87032 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
87034         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
87036         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
87038 2007-02-04  Bruno Haible  <bruno@clisp.org>
87040         New module description section 'configure.ac-early'.
87041         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
87042         (func_get_autoconf_early_snippet): New function.
87043         (func_import, func_create_testdir): Use it. Remove special cases for
87044         modules 'extensions' and 'lock'.
87045         * modules/extensions (configure.ac-early): Require
87046         gl_USE_SYSTEM_EXTENSIONS.
87047         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
87049 2007-02-04  Bruno Haible  <bruno@clisp.org>
87051         Make use of gcj-4.3's -fsource and -ftarget option.
87052         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
87053         and if so try the options -fsource and -ftarget.
87054         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
87055         source_version, ftarget_option, target_version arguments.
87056         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
87057         (is_envjavac_oldgcj_14_14_usable): Renamed from
87058         is_envjavac_gcj_14_14_usable.
87059         (is_envjavac_oldgcj_14_13_usable): Renamed from
87060         is_envjavac_gcj_14_13_usable.
87061         (is_gcj_present): Update.
87062         (is_gcj_43, is_gcj43_usable): New functions.
87063         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
87064         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
87065         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
87066         try the options -fsource and -ftarget.
87068 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87070         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
87071         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
87072         larger value.
87074 2007-02-03  Jim Meyering  <jim@meyering.net>
87076         Give tools a better chance to allocate space for very large buffers.
87077         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
87079         Make pwd and readlink work also when run with an unreadable parent dir
87080         on systems with openat support.
87081         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
87082         provided getcwd function, even when we have openat support.
87083         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
87085 2007-02-02  Bruno Haible  <bruno@clisp.org>
87087         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
87088         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
87089         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
87090         portability problems if one of these functions is only used on specific
87091         platforms.
87092         Reported by Paul Eggert.
87094 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
87096         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
87097         is causing more trouble than it's curing.
87098         * lib/regex_internal.h (__mempcpy): Remove.
87099         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
87100         (and make the code a tad smaller to boot).
87101         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
87103 2007-02-02  Jim Meyering  <jim@meyering.net>
87105         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
87106         section, not in the Makefile.am: one.
87108 2007-02-02  Eric Blake  <ebb9@byu.net>
87110         * lib/strchrnul.c: Always include config.h first.
87112         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
87113         gnulib strstr is not necessary here.
87115 2007-02-02  Simon Josefsson  <simon@josefsson.org>
87117         * m4/socklen.m4: Fix typo.
87119 2007-02-02  Eric Blake  <ebb9@byu.net>
87121         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
87122         * modules/netinet_in (Makefile.am): Likewise.
87124 2007-02-01  Bruno Haible  <bruno@clisp.org>
87126         * lib/string_.h (GL_LINK_WARNING): New macro.
87127         (strcasecmp, strstr, strcasestr): If provided by the system,
87128         conditionally define as a macro that leads to a warning instead of to
87129         an error.
87130         (strncasecmp): Conditionally define as a macro that leads to a warning.
87132 2007-02-01  Karl Berry  <karl@gnu.org>
87134         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
87136 2007-02-01  Bruno Haible  <bruno@clisp.org>
87138         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
87139         renamings.
87141 2007-02-01  Eric Blake  <ebb9@byu.net>
87143         * modules/regex (Depends-on): Revert dependence on mempcpy.
87144         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
87145         module's definition of mempcpy.
87146         Reported by Paul Eggert.
87148 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87150         * lib/string_.h: If the gnulib module XYZ is not present, undefine
87151         the symbol XYZ before redefining it.  This fixes a problem with
87152         programs that don't use XYZ, when compiled on systems that define
87153         XYZ to something else.
87155 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
87157         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
87158         occurs when "mkdir -m foo" creates a setgid directory that is (1)
87159         writeable to group or other and (2) is intended to have a special
87160         mode bit that is set or cleared.  In such a case, the directory
87161         should be neither group- nor other-writeable until the special
87162         mode bits are right.
87164 2007-01-31  Eric Blake  <ebb9@byu.net>
87166         * modules/mountlist (Depends-on): Add strstr.
87168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
87169         bug.
87170         * modules/string (Makefile.am): Remove redundant replacement.
87171         * modules/regex (Depends-on): Add mempcpy.
87173 2007-01-31  Bruno Haible  <bruno@clisp.org>
87175         New module description field 'Link'.
87176         * gnulib-tool (func_usage): Document --extract-link-directive.
87177         (sed_extract_prog): Recognize 'Link' directive.
87178         (func_get_link_directive): New function.
87179         (func_import): Show summary of link directives.
87180         Handle --extract-link-directive option.
87181         * modules/acl (Link): New section.
87182         * modules/clock-time (Link): New section.
87183         * modules/euidaccess (Link): New section.
87184         * modules/gettext (Link): New section.
87185         * modules/iconv (Link): New section.
87186         * modules/lock (Link): New section.
87187         * modules/nanosleep (Link): New section.
87188         * modules/readline (Link): New section.
87190 2007-01-27  Bruno Haible  <bruno@clisp.org>
87192         Enforce the use of gnulib modules for unportable <string.h> functions.
87193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
87194         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
87195         (gl_HEADER_STRING_H_BODY): Require it.
87196         * lib/string_.h: If the gnulib module XYZ is not present, redefine
87197         the symbol XYZ to one that gives a link error.
87198         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
87199         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
87200         * modules/mempcpy (configure.ac): Likewise.
87201         * modules/memrchr (configure.ac): Likewise.
87202         * modules/stpcpy (configure.ac): Likewise.
87203         * modules/stpncpy (configure.ac): Likewise.
87204         * modules/strcase (configure.ac): Likewise.
87205         * modules/strcasestr (configure.ac): Likewise.
87206         * modules/strchrnul (configure.ac): Likewise.
87207         * modules/strdup (configure.ac): Likewise.
87208         * modules/strndup (configure.ac): Likewise.
87209         * modules/strnlen (configure.ac): Likewise.
87210         * modules/strpbrk (configure.ac): Likewise.
87211         * modules/strsep (configure.ac): Likewise.
87212         * modules/strstr (configure.ac): Likewise.
87213         * modules/strtok_r (configure.ac): Likewise.
87215 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
87217         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
87219 2007-01-30  Jim Meyering  <jim@meyering.net>
87221         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
87223 2007-01-29  Bruno Haible  <bruno@clisp.org>
87225         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
87226         * lib/execute.c: Likewise.
87227         * lib/pipe.c: Likewise.
87228         * lib/printf-args.h: Likewise.
87229         * lib/printf-args.c: Likewise.
87230         * lib/printf-parse.c: Likewise.
87231         * lib/vasnprintf.c: Likewise.
87233 2007-01-29  Eric Blake  <ebb9@byu.net>
87235         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
87236         declaration.
87238 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
87240         * lib/strptime.h (strptime): Use 'restrict' for args where
87241         POSIX requires this.
87242         * lib/strptime.c (strptime): Likewise.
87243         Change license notice from LGPL to GPL, since gnulib-tool will
87244         change this as needed.
87245         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
87246         defined.
87247         Include "strptime.h" first, to check interface.
87248         Do not #undef _LIBC and _NL_CURRENT.
87249         Do not include <stdlib.h>; no longer needed.
87250         Include "time_r.h" and declare ptime_locale_status
87251         only if _LIBC is not defined.
87252         (__P): Remove unused macro.
87253         (match_string): Bring back glibc version, but use it only if _LIBC
87254         is defined.
87255         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
87256         Remove unnecessary assertion and abort() call.
87257         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
87258         * m4/strptime.m4: Fix serial number comment.
87259         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
87260         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
87261         (Depends-on): Add time_r.
87263 2007-01-29  Bruno Haible  <bruno@clisp.org>
87265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87266         strptime.
87267         * modules/strptime (Depends-on): Add stdbool.
87268         * lib/strptime.h: Include <time.h> always. Add comments.
87270 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87272         * modules/strptime: New file.
87273         * lib/strptime.h: New file.
87274         * lib/strptime.c: New file.
87275         * m4/strptime.m4: New file.
87277 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87279         * MODULES.html.sh: New module mpsort.
87280         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
87282         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
87283         a circularity problem with HP-UX ia64 reported by Bob Proulx in
87284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
87285         All uses changed.
87286         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
87287         All uses changed.
87288         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
87289         to _Restrict_.
87290         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
87291         the parameter matches the prototype.
87293 2007-01-28  Jim Meyering  <jim@meyering.net>
87295         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
87296         sys/time.h here, reverting that part of the previous patch:
87297         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
87299 2007-01-28  Bruno Haible  <bruno@clisp.org>
87301         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
87302         value of $(SYS_TIME_H).
87303         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
87304         remove it conditionally, too. [added by Jim Meyering]
87305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
87306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87307         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
87308         GETTIMEOFDAY_REPLACEMENT to 1.
87310 2007-01-28  Bruno Haible  <bruno@clisp.org>
87312         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
87313         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
87314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
87315         Set UNISTD_H instead of UNISTD_H2.
87316         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
87318 2007-01-28  Bruno Haible  <bruno@clisp.org>
87320         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
87321         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
87323 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87325         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
87326         (func_create_testdir): Ensure C locale for `grep' and `tr'
87327         character ranges.
87328         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
87329         ACLOCAL_AMFLAGS parsing state machine.
87331 2007-01-27  Bruno Haible  <bruno@clisp.org>
87333         * modules/unistr/base: Update.
87335 2007-01-27  Bruno Haible  <bruno@clisp.org>
87337         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
87338         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
87339         * modules/unistr/u32-mbtouc-unsafe: Renamed from
87340         modules/unistr/u32-mbtouc.
87341         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
87342         * lib/unistr.h: Update.
87343         * lib/linebreak.c: Update.
87344         * modules/unistr/u32-mbtouc: Renamed from
87345         modules/unistr/u32-mbtouc-safe.
87346         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
87347         * lib/unistr.h: Update.
87348         * lib/unistr/u32-to-u8.c: Update.
87349         * lib/unistr/u32-to-u16.c: Update.
87351 2007-01-27  Bruno Haible  <bruno@clisp.org>
87353         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
87354         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
87355         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
87356         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
87357         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
87358         * modules/unistr/u16-mbtouc-unsafe: Renamed from
87359         modules/unistr/u16-mbtouc.
87360         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
87361         * lib/unistr.h: Update.
87362         * lib/linebreak.c: Update.
87363         * modules/linebreak: Update.
87364         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
87365         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
87366         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
87367         * modules/unistr/u16-mbtouc: Renamed from
87368         modules/unistr/u16-mbtouc-safe.
87369         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
87370         * lib/unistr.h: Update.
87371         * lib/unistr/u16-to-u8.c: Update.
87372         * modules/unistr/u16-to-u8: Update.
87373         * lib/unistr/u16-to-u32.c: Update.
87374         * modules/unistr/u16-to-u32: Update.
87376 2007-01-27  Bruno Haible  <bruno@clisp.org>
87378         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
87379         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
87380         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
87381         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
87382         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
87383         * modules/unistr/u8-mbtouc-unsafe: Renamed from
87384         modules/unistr/u8-mbtouc.
87385         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
87386         * lib/unistr.h: Update.
87387         * lib/striconveh.c: Update.
87388         * modules/striconveh: Update.
87389         * lib/linebreak.c: Update.
87390         * modules/linebreak: Update.
87391         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
87392         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
87393         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
87394         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
87395         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
87396         * lib/unistr.h: Update.
87397         * lib/striconveh.c: Update.
87398         * modules/striconveh: Update.
87399         * lib/unistr/u8-to-u16.c: Update.
87400         * modules/unistr/u8-to-u16: Update.
87401         * lib/unistr/u8-to-u32.c: Update.
87402         * modules/unistr/u8-to-u32: Update.
87404 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87406         Sync from Libtool.
87407         * lib/argz.c: Do not include strings.h nor memory.h, include
87408         string.h unconditionally.  Patch by Simon Josefsson.
87410 2007-01-27  Bruno Haible  <bruno@clisp.org>
87412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
87413         from gl_HEADER_STRING_H_BODY.
87414         (gl_HEADER_STRING_H_BODY): Require it.
87415         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
87416         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
87417         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
87418         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
87419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
87420         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
87421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87422         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
87423         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
87424         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
87425         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
87426         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
87427         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
87428         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
87429         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
87431 2007-01-27  Bruno Haible  <bruno@clisp.org>
87433         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
87434         check_PROGRAMS into noinst_PROGRAMS.
87435         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
87436         check_PROGRAMS in this case.
87437         (func_import): Set for_test to false.
87438         (func_create_testdir): Set for_test to true.
87440 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87441             Bruno Haible  <bruno@clisp.org>
87443         * modules/strcasestr (Files): Remove lib/strcasestr.h.
87444         (Depends-on): Add string.
87445         (Includes): Use <string.h> instead of strcasestr.h.
87446         * modules/string (Makefile.am): Also substitute the value of
87447         REPLACE_STRCASESTR.
87448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
87449         assume strcasestr is declared in <string.h> not <strings.h>. Also
87450         set REPLACE_STRCASESTR.
87451         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
87452         REPLACE_STRCASESTR.
87453         * lib/strcasestr.h: Remove file.
87454         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
87455         * lib/string_.h (strcasestr): New declaration.
87457 2007-01-27  Bruno Haible  <bruno@clisp.org>
87459         * lib/string_.h: Use 'extern'.
87461 2007-01-27  Jim Meyering  <jim@meyering.net>
87463         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
87464         of set-but-not-used local, "q".
87466         * lib/mempcpy.c: Include <config.h> before <string.h>.
87467         This fixes a compilation error on HP-UX, due to the system's
87468         "restrict"-using mempcpy prototype.
87470 2007-01-26  Bruno Haible  <bruno@clisp.org>
87472         Small optimization.
87473         * lib/javacomp.c: Include c-strstr.h.
87474          (is_envjavac_gcj): Use c_strstr instead of strstr.
87475         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
87477 2007-01-26  Bruno Haible  <bruno@clisp.org>
87479         * MODULES.html.sh (Unicode string functions): Add the new modules.
87481         * modules/uniconv/u32-strconv-to-locale: New file.
87482         * lib/uniconv/u32-strconv-to-locale.c: New file.
87484         * modules/uniconv/u16-strconv-to-locale: New file.
87485         * lib/uniconv/u16-strconv-to-locale.c: New file.
87487         * modules/uniconv/u8-strconv-to-locale: New file.
87488         * lib/uniconv/u8-strconv-to-locale.c: New file.
87490         * modules/uniconv/u32-strconv-from-locale: New file.
87491         * lib/uniconv/u32-strconv-from-locale.c: New file.
87493         * modules/uniconv/u16-strconv-from-locale: New file.
87494         * lib/uniconv/u16-strconv-from-locale.c: New file.
87496         * modules/uniconv/u8-strconv-from-locale: New file.
87497         * lib/uniconv/u8-strconv-from-locale.c: New file.
87499         * modules/uniconv/u32-strconv-to-enc: New file.
87500         * lib/uniconv/u32-strconv-to-enc.c: New file.
87501         * modules/uniconv/u32-strconv-to-enc-tests: New file.
87502         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
87504         * modules/uniconv/u16-strconv-to-enc: New file.
87505         * lib/uniconv/u16-strconv-to-enc.c: New file.
87506         * lib/uniconv/u-strconv-to-enc.h: New file.
87507         * modules/uniconv/u16-strconv-to-enc-tests: New file.
87508         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
87510         * modules/uniconv/u8-strconv-to-enc: New file.
87511         * lib/uniconv/u8-strconv-to-enc.c: New file.
87512         * modules/uniconv/u8-strconv-to-enc-tests: New file.
87513         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
87515         * modules/uniconv/u32-strconv-from-enc: New file.
87516         * lib/uniconv/u32-strconv-from-enc.c: New file.
87517         * modules/uniconv/u32-strconv-from-enc-tests: New file.
87518         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
87520         * modules/uniconv/u16-strconv-from-enc: New file.
87521         * lib/uniconv/u16-strconv-from-enc.c: New file.
87522         * modules/uniconv/u16-strconv-from-enc-tests: New file.
87523         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
87525         * modules/uniconv/u8-strconv-from-enc: New file.
87526         * lib/uniconv/u8-strconv-from-enc.c: New file.
87527         * lib/uniconv/u-strconv-from-enc.h: New file.
87528         * modules/uniconv/u8-strconv-from-enc-tests: New file.
87529         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
87531         * modules/uniconv/u32-conv-from-enc: New file.
87532         * lib/uniconv/u32-conv-from-enc.c: New file.
87533         * modules/uniconv/u32-conv-from-enc-tests: New file.
87534         * tests/uniconv/test-u32-conv-from-enc.c: New file.
87536         * modules/uniconv/u16-conv-from-enc: New file.
87537         * lib/uniconv/u16-conv-from-enc.c: New file.
87538         * lib/uniconv/u-conv-from-enc.h: New file.
87539         * modules/uniconv/u16-conv-from-enc-tests: New file.
87540         * tests/uniconv/test-u16-conv-from-enc.c: New file.
87542         * modules/uniconv/u8-conv-from-enc: New file.
87543         * lib/uniconv/u8-conv-from-enc.c: New file.
87544         * modules/uniconv/u8-conv-from-enc-tests: New file.
87545         * tests/uniconv/test-u8-conv-from-enc.c: New file.
87547         * modules/uniconv/base: New file.
87548         * lib/uniconv.h: New file.
87550 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
87552         * doc/gnulib-tool.texi (Initial import): Update to match current
87553         behavior with strdup module.
87554         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
87555         * lib/memmem.h: Remove; all uses removed.  This is now done
87556         by <string.h>.
87557         * lib/mempcpy.h: Likewise.
87558         * lib/memrchr.h: Likewise.
87559         * lib/stpcpy.h: Likewise.
87560         * lib/stpncpy.h: Likewise.
87561         * lib/strcase.h: Likewise.
87562         * lib/strchrnul.h: Likewise.
87563         * lib/strdup.h: Likewise.
87564         * lib/strndup.h: Likewise.
87565         * lib/strnlen.h: Likewise.
87566         * lib/strpbrk.h: Likewise.
87567         * lib/strsep.h: Likewise.
87568         * lib/strstr.h: Likewise.
87569         * lib/strtok_r.h: Likewise.
87570         * lib/string_.h: New file.
87571         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
87572         Rely on <string.h> instead.
87573         * lib/canon-host.c: Likewise.
87574         * lib/chdir-long.c: Likewise.
87575         * lib/concatpath.c: Likewise.
87576         * lib/exclude.c: Likewise.
87577         * lib/fchdir.c: Likewise.
87578         * lib/getaddrinfo.c: Likewise.
87579         * lib/getcwd.c: Likewise.
87580         * lib/getsubopt.c: Likewise.
87581         * lib/glob.c: Likewise.
87582         * lib/hard-locale.c: Likewise.
87583         * lib/iconvme.c: Likewise.
87584         * lib/javacomp.c: Likewise.
87585         * lib/mempcpy.c: Likewise.
87586         * lib/memrchr.c: Likewise.
87587         * lib/regex_internal.h: Likewise.
87588         * lib/stpncpy.c: Likewise.
87589         * lib/strcasecmp.c: Likewise.
87590         * lib/strchrnul.c: Likewise.
87591         * lib/strdup.c: Likewise.
87592         * lib/striconv.c: Likewise.
87593         * lib/striconveh.c: Likewise.
87594         * lib/striconveha.c: Likewise.
87595         * lib/strncasecmp.c: Likewise.
87596         * lib/strndup.c: Likewise.
87597         * lib/strnlen.c: Likewise.
87598         * lib/strsep.c: Likewise.
87599         * lib/strstr.c: Likewise.
87600         * lib/strtok_r.c: Likewise.
87601         * lib/userspec.c: Likewise.
87602         * lib/w32spawn.h: Likewise.
87603         * lib/xstrndup.c: Likewise.
87604         * lib/mountlist.c (strstr): Remove decl.
87605         * m4/string_h.m4: New file.
87606         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
87607         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
87608         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
87609         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
87610         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
87611         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
87612         Set REPLACE_STRCASECMP if necessary.
87613         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
87614         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
87615         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
87616         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
87617         HAVE_DECL_STRDUP if necessary.
87618         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
87619         since gl_FUNC_STRNDUP does that now.
87620         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
87621         Check for decl here...
87622         (gl_PREREQ_STRNLEN): ... not here.
87623         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
87624         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
87625         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
87626         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
87627         necessary.
87628         * modules/string: New file.
87629         * modules/memmem (Files): Remove special-purpose include file.
87630         (Depends-on): Add string.
87631         (Include): Include <string.h>, not the removed file.
87632         * modules/mempcpy: Likewise.
87633         * modules/memrchr: Likewise.
87634         * modules/stpcpy: Likewise.
87635         * modules/stpncpy: Likewise.
87636         * modules/strcase: Likewise.
87637         * modules/strchrnul: Likewise.
87638         * modules/strdup: Likewise.
87639         * modules/strndup: Likewise.
87640         * modules/strnlen: Likewise.
87641         * modules/strpbrk: Likewise.
87642         * modules/strsep: Likewise.
87643         * modules/strstr: Likewise.
87644         * modules/strtok_r: Likewise.
87645         * tests/test-dirname.c: Don't include "strdup.h", since
87646         <string.h> now suffices.
87647         * tests/test-memmem.c: Don't include "memmem.h", since
87648         <string.h> now suffices.
87650 2007-01-25  Bruno Haible  <bruno@clisp.org>
87652         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
87653         *resultp is 0.
87655         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
87656         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
87657         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
87658         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
87660         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
87661         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
87662         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
87663         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
87664         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
87665         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
87667 2007-01-24  Bruno Haible  <bruno@clisp.org>
87669         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
87670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
87671         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
87672         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
87673         gl_FUNC_FTS_CORE.
87674         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
87675         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
87676         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87677         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
87678         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
87679         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
87680         gl_FUNC_FCHOWNAT.
87681         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
87682         gl_FUNC_STRFTIME.
87683         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
87684         Reported by Ralf Wildenhues.
87686 2007-01-24  Bruno Haible  <bruno@clisp.org>
87688         Drop AC_REQUIRE calls that are redundant with the module dependencies.
87689         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
87690         gl_GETADDRINFO.
87691         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
87692         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
87693         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
87695 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
87697         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
87698         Don't use 'exit'; just return from 'main'.
87699         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
87701         * lib/fnmatch_.h: Readjust white space and comments to match
87702         glibc, to avoid spurious diffs.
87704 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87706         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
87707         2004-12-01 change by Jakub Jelinek, since this code won't compile
87708         if !LIBC.  Problem reported by Bob Proulx.
87710 2007-01-23  Bruno Haible  <bruno@clisp.org>
87712         * lib/striconveh.c: Include c-strcaseeq.h.
87713         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
87714         * modules/striconveh (Depends-on): Add c-strcaseeq.
87716 2007-01-23  Bruno Haible  <bruno@clisp.org>
87718         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
87720         * modules/c-strcaseeq: New file.
87721         * lib/c-strcaseeq.h: New file.
87723         * modules/streq: New file.
87724         * lib/streq.h: New file.
87726 2007-01-23  Bruno Haible  <bruno@clisp.org>
87728         * modules/striconveha-tests: New file.
87729         * tests/test-striconveha.c: New file.
87731         * lib/striconveha.h: Include <stdbool.h>.
87732         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
87733         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
87734         (mem_iconveha_notranslit): Renamed from mem_iconveha.
87735         (mem_iconveha): New function.
87736         (str_iconveha_notranslit): Renamed from str_iconveha.
87737         (str_iconveha): New function.
87738         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
87739         c-strcase.
87741 2007-01-23  Bruno Haible  <bruno@clisp.org>
87743         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
87744         encodings without forgiving before trying any encoding with handler.
87745         (str_iconveha): Try all encodings without forgiving before trying any
87746         encoding with handler.
87748 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87750         Import the following changes from libc.
87752         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
87754         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
87756         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87758         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
87759         normal_bracket label.
87761         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
87763         [BZ #361]
87764         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
87765         to normal_bracket after fetching the next character.
87767 2007-01-22  Bruno Haible  <bruno@clisp.org>
87769         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
87770         argument.
87771         * lib/striconveh.c (iconv_carefully_1): New function.
87772         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
87773         argument.
87774         (str_cd_iconveh): Update.
87775         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
87776         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
87777         * tests/test-striconveh.c (MAGIC): New macro.
87778         (new_offsets): New function.
87779         (main): Test call with and without offsets.
87781 2007-01-22  Bruno Haible  <bruno@clisp.org>
87783         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
87784         * modules/sys_select (Makefile.am): Likewise.
87785         * modules/sys_socket (Makefile.am): Likewise.
87786         * modules/sys_time (Makefile.am): Likewise.
87788 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
87790         * modules/gettimeofday (License): Change from GPL to LGPL, since
87791         gettimeofday is a library function.
87793 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87795         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
87797 2007-01-21  Bruno Haible  <bruno@clisp.org>
87799         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
87801 2007-01-21  Bruno Haible  <bruno@clisp.org>
87803         * modules/striconveha: New file.
87804         * lib/striconveha.h: New file.
87805         * lib/striconveha.c: New file.
87806         * MODULES.html.sh (Internationalization functions): Add striconveha.
87807         * lib/striconv.c (str_iconv): Optimize the case of an empty input
87808         string.
87809         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
87811 2007-01-21  Bruno Haible  <bruno@clisp.org>
87813         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
87814         * lib/striconveh.c (str_iconveh): Likewise.
87816 2007-01-21  Bruno Haible  <bruno@clisp.org>
87818         * lib/striconveh.h (mem_iconveh): New declaration.
87819         * lib/striconveh.c (mem_iconveh): New function.
87820         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
87822 2007-01-21  Bruno Haible  <bruno@clisp.org>
87824         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
87826         * lib/striconveh.h (mem_cd_iconveh): Change specification.
87827         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
87828         original result buffer.
87829         (str_cd_iconveh): Update.
87830         * tests/test-striconveh.c (main): Update.
87832         * lib/striconv.h (mem_cd_iconv): Change specification.
87833         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
87834         result buffer.
87835         (str_cd_iconv): Update.
87836         * tests/test-striconv.c (main): Update.
87838 2007-01-21  Bruno Haible  <bruno@clisp.org>
87840         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
87842 2007-01-20  Jim Meyering  <jim@meyering.net>
87844         * lib/userspec.c (parse_with_separator): If a user or group string
87845         starts with "+", skip the corresponding name-to-ID look-up, since
87846         such a look-up must fail: user and group names may not include "+".
87848 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87850         * lib/poll.c: Include sys/time.h and time.h unconditionally,
87851         since we now assume the sys_time module.
87852         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
87853         check for sys/time.h; no longer needed.
87854         * modules/poll (Depends-on): Depend on sys_time.
87856 2007-01-18  Bruno Haible  <bruno@clisp.org>
87858         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
87859         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87861         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
87862         gettimeofday.
87864         * tests/test-gettimeofday.c: Include <time.h>.
87865         (dummy): Remove variable.
87867         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
87868         gl_HEADER_SYS_TIME_H.
87869         (gl_HEADER_SYS_TIME_H): New macro.
87871         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
87872         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87873         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
87874         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
87875         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87876         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
87877         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
87878         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87879         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
87880         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
87881         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87883         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
87884         last change; it caused a compilation error when cross-compiling to
87885         Cygwin.
87887 2007-01-18  Jim Meyering  <jim@meyering.net>
87889         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
87890         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
87891         than the race-prone "test -d sys || mkdir sys".
87892         (configure.ac): Use AC_PROG_MKDIR_P.
87893         * modules/sys_select: Likewise.
87894         * modules/sys_socket: Likewise.
87895         * modules/sys_time: Likewise.
87897 2007-01-18  Eric Blake  <ebb9@byu.net>
87899         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
87900         replace gettimeofday.
87901         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
87902         name, to avoid infinite recursion.
87904 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
87906         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
87907         module sys_time.
87908         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
87909         assume timespec.h defines struct timeval.
87910         * lib/settime.c: Likewise.
87911         * lib/utimens.c: Likewise.
87912         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
87913         since we now assume the gettimeofday module.
87914         * lib/tempname.c (__gen_tempname): Likewise.
87915         * lib/gettimeofday.h: Remove.
87916         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
87917         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
87918         Include <time.h>, for 'time()'.
87919         (localtime_buffer_addr): Also use this workaround if
87920         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
87921         to simplify the uses.  All uses changed.
87922         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
87923         that #undef is inside {}, and 'const' follows type name consistently.
87924         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
87925         (gettimeofday): Do not use the maximum possible value for
87926         tv->tv_usec, since that might break usages other than ls.c.
87927         Instead, we'll leave ls.c alone.  This undoes today's patch
87928         by Bruno.  Add a compile-time warning for 1s-clock resolution;
87929         we've never observed the problem but might as well keep the
87930         canary.
87931         * lib/nanosleep.c: Include timespec.h first, for interface check.
87932         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
87933         now assume the sys_time module.
87934         * lib/tempname.c: Likewise.
87935         * lib/timespec.h: Likewise.
87936         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
87937         needed.
87938         * lib/strftime.c: Likewise.
87939         * lib/timespec.h: Likewise.
87940         * lib/posixtm.c: Include posixtm.h first, for interface check.
87941         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
87942         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
87943         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
87944         * lib/sys_time_.h: New file.
87945         * lib/timespec.h (struct timespec): Use long int, not long.
87946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87947         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
87948         Remove obsolescent call to AC_HEADER_TIME.
87949         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
87950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
87951         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87952         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
87953         Likewise.
87954         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
87955         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
87956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
87957         into the sys_time module.  Check for gettimeofday just once.
87958         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
87959         for gettimeofday signature to just check the signature.  Merely
87960         compile it, since linking doesn't test signature.  Improve test for
87961         whether gettimeofday.o is actually needed.
87962         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
87963         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
87964         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
87965         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87966         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
87967         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
87968         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
87969         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
87970         than worrying about sys/time.h.
87971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87972         Don't bother worrying about TIME_WITH_SYS_TIME.
87973         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
87974         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
87975         * m4/sys_time_h.m4: New file.
87976         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
87977         Don't include sys/time.h.  Return from main rather than exiting.
87978         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
87979         all uses changed.
87980         * modules/gethrxtime (Depends-on): Add sys_time.
87981         * modules/gettime (Depends-on): Likewise.
87982         * modules/gettimeofday (Depends-on): Likewise.
87983         * modules/nanosleep (Depends-on): Likewise.
87984         * modules/settime (Depends-on): Likewise.
87985         * modules/tempname (Depends-on): Likewise.
87986         * modules/utimens (Depends-on): Likewise.
87987         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
87988         (Include): Change back to <sys/time.h>.
87989         (Maintainer): Add self.
87990         * modules/sys_time: New file.
87991         * modules/tempname (Depends-on): Add gettimeofday.
87992         * tests/test-gettimeofday.c: Include <sys/time.h>
87993         rather than gettimeofday.h.
87995 2007-01-17  Bruno Haible  <bruno@clisp.org>
87997         * gnulib-tool (func_get_license): Revert last patch. Instead, let
87998         the license default to GPL.
87999         (func_create_testdir): Don't complain if a module is LGPL and its
88000         tests module depends on GPLed modules.
88002 2007-01-17  Bruno Haible  <bruno@clisp.org>
88004         * lib/gettimeofday.c (gettimeofday): Add code for the case
88005         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
88006         maximum possible value for tv->tv_usec, rather than the minimum one.
88008 2005-10-08  Martin Lambers  <marlam@marlam.de>
88009 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
88010 2007-01-16  Bruno Haible  <bruno@clisp.org>
88012         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
88013         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
88014         gl_FUNC_GETTIMEOFDAY.
88015         (Include): Add gettimeofday.h.
88016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
88017         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
88018         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
88019         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
88020         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
88021         * lib/gettimeofday.h: New file.
88022         * lib/gettimeofday.c: Include <sys/timeb.h>.
88023         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
88024         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88025         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
88026         fall back on time().
88028         * tests/test-gettimeofday.c: New file.
88029         * modules/gettimeofday-tests: New file.
88031 2007-01-16  Eric Blake  <ebb9@byu.net>
88033         * modules/fnmatch (Depends-on): Depend on wchar.
88034         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
88035         * m4/fnmatch.m4: Likewise.
88036         * modules/mbchar (Makefile.am): Assume <wchar.h>.
88037         * m4/mbchar.m4: Likewise.
88038         * modules/mbswidth (Depends-on): Depend on wchar.
88039         * lib/mbswidth.c: Assume <wchar.h>.
88040         * m4/mbswidth.m4: Likewise.
88041         * modules/quotearg (Depends-on): Depend on wchar.
88042         * lib/quotearg.c: Assume <wchar.h>.
88043         * m4/quotearg.m4: Likewise.
88044         * modules/regex (Depends-on): Depend on wchar.
88045         * lib/regex_internal.h: Assume <wchar.h>.
88046         * m4/regex.m4: Likewise.
88047         * modules/stdint (Depends-on): Depend on wchar.
88048         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
88049         * m4/stdint.m4: Likewise.
88050         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
88051         * modules/strftime (Depends-on): Depend on wchar.
88052         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
88053         * modules/strtol (Depends-on): Depend on wchar.
88054         * lib/strtol.c: Assume <wchar.h>.
88055         * modules/wcwidth (Depends-on): Depend on wchar.
88056         * lib/wcwidth.h: Assume <wchar.h>.
88057         * m4/wcwidth.m4: Likewise.
88059 2007-01-16  Bruno Haible  <bruno@clisp.org>
88061         * modules/csharpexec-script: New, created from...
88062         * modules/csharpexec: ... this.
88064 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
88066         * modules/javaexec-script: New, created from...
88067         * modules/javaexec: ... this.
88069 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88071         * modules/poll (Dependencies): Add sys_select.
88073 2007-01-15  Jim Meyering  <jim@meyering.net>
88075         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
88076         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
88077         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
88078         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
88080 2007-01-15  Bruno Haible  <bruno@clisp.org>
88082         * modules/striconveh: New file.
88083         * lib/striconveh.h: New file.
88084         * lib/striconveh.c: New file.
88085         * MODULES.html.sh (Internationalization functions): Add striconveh.
88087         * modules/striconveh-tests: New file.
88088         * tests/test-striconveh.c: New file.
88090 2007-01-15  Bruno Haible  <bruno@clisp.org>
88092         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
88093         not from GNU libiconv or GNU libc.
88095 2007-01-15  Bruno Haible  <bruno@clisp.org>
88097         * doc/gnulib-intro.texi (Copyright): Explain the different license
88098         terms for module descriptions, autoconf macros, tests, documentation.
88100 2007-01-14  Bruno Haible  <bruno@clisp.org>
88102         * modules/striconv-tests: New file.
88103         * tests/test-striconv.c: New file.
88105 2007-01-14  Bruno Haible  <bruno@clisp.org>
88107         * modules/iconv-tests: New file.
88108         * tests/test-iconv.c: New file.
88110 2007-01-14  Bruno Haible  <bruno@clisp.org>
88112         * gnulib-tool (func_get_license): For test modules, use the license of
88113         the main module.
88115 2007-01-14  Bruno Haible  <bruno@clisp.org>
88117         * modules/iconv (Include): Clarify that <iconv.h> can only be included
88118         if iconv is found to exist.
88120 2007-01-14  Bruno Haible  <bruno@clisp.org>
88122         * modules/c-ctype-tests: New file.
88123         * tests/test-c-ctype.c: New file.
88125 2007-01-14  Bruno Haible  <bruno@clisp.org>
88127         * modules/binary-io-tests: New file.
88128         * tests/test-binary-io.sh: New file.
88129         * tests/test-binary-io.c: New file.
88131 2007-01-14  Bruno Haible  <bruno@clisp.org>
88133         * modules/array-oset-tests: New file.
88134         * tests/test-array_oset.c: New file.
88136 2007-01-14  Bruno Haible  <bruno@clisp.org>
88138         * modules/array-list-tests: New file.
88139         * tests/test-array_list.c: New file.
88141 2007-01-14  Bruno Haible  <bruno@clisp.org>
88143         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
88144         and make.
88145         Reported by Simon Josefsson in
88146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
88148 2007-01-14  Bruno Haible  <bruno@clisp.org>
88150         * modules/allocsa-tests: New file.
88151         * tests/test-allocsa.c: New file.
88153 2007-01-14  Bruno Haible  <bruno@clisp.org>
88155         * modules/fchdir (Depends-on): Add absolute-header.
88156         * modules/unistd (Depends-on): Likewise.
88158 2006-12-30  Bruno Haible  <bruno@clisp.org>
88160         * modules/fchdir: New file.
88161         * modules/unistd (Files): Add lib/unistd_.h.
88162         (Makefile.am): Generate unistd.h from unistd_.h.
88163         * lib/fchdir.c: New file.
88164         * lib/dirent_.h: New file.
88165         * lib/unistd_.h: New file.
88166         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
88167         * m4/fchdir.m4: New file.
88168         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
88169         (gl_HEADER_UNISTD): Invoke it.
88170         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
88171         function.
88172         * lib/backupfile.c (opendir, closedir): Undefine.
88173         * lib/chown.c (open, close): Undefine.
88174         * lib/clean-temp.c (open, close): Undefine.
88175         * lib/copy-file.c (open, close): Undefine.
88176         * lib/execute.c (open, close): Undefine.
88177         * lib/fsusage.c (open, close): Undefine.
88178         * lib/gc-gnulib.c (open, close): Undefine.
88179         * lib/getcwd.c (opendir, closedir): Undefine.
88180         * lib/glob.c (opendir, closedir): Undefine.
88181         * lib/javacomp.c (open, close): Undefine.
88182         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
88183         * lib/openat-proc.c (open, close): Undefine.
88184         * lib/pagealign_alloc.c (open, close): Undefine.
88185         * lib/pipe.c (open, close): Undefine.
88186         * lib/progreloc.c (open, close): Undefine.
88187         * lib/savedir.c (opendir, closedir): Undefine.
88188         * lib/utime.c (open, close): Undefine.
88189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
88191 2007-01-10  Bruno Haible  <bruno@clisp.org>
88193         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
88195 2007-01-12  Eric Blake  <ebb9@byu.net>
88197         Provide a robust <wchar.h>.  Further simplifications are now
88198         possible in other modules, but not included here.
88199         * modules/wchar: New module.
88200         * m4/wchar.m4: New file.
88201         * lib/wchar_.h: Likewise.
88202         * modules/mbchar (Depends-on): Depend on wchar, as the first use
88203         of the new module.
88204         * MODULES.html.sh (Extended multibyte and wide character utilities):
88205         New section.
88207 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
88209         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
88210         to a reasonable default for memory allocation.
88211         (xreadlink): Don't allocate a huge buffer, to work around a buggy
88212         file system that reports garbage st_size values for symlinks.
88213         Problem reported by Liyang Hu.
88215 2007-01-11  Simon Josefsson  <simon@josefsson.org>
88217         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
88218         Emacs .#* auto-save files).
88220 2007-01-11  Bruno Haible  <bruno@clisp.org>
88222         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
88223         directory.
88225 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
88227         Use @...@ consistently in lib/wctype_.h.
88228         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
88229         on it being set to 1 or 0.
88230         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
88231         go back to AC_SUBSTing it.
88232         * modules/wctype (Makefile.am): Undo previous change.
88234 2007-01-10  Eric Blake  <ebb9@byu.net>
88236         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
88237         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
88238         * modules/wctype (Makefile.am): Likewise.
88239         Reported by Chris McGuire.
88241 2007-01-10  Jim Meyering  <jim@meyering.net>
88243         fts.c: a small readability/maintainability improvement
88244         * lib/fts.c (fts_read): Make this code slightly more readable and
88245         maintainable by hoisting the "sp->fts_cur = p" assignments to
88246         immediately follow the statements that set P.  Derived from
88247         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
88249 2007-01-10  Eric Blake  <ebb9@byu.net>
88251         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
88252         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
88253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
88254         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88255         Reported by Chris McGuire.
88257 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88259         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
88260         in sed script.
88262 2007-01-09  Bruno Haible  <bruno@clisp.org>
88264         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
88265         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
88266         variables.
88267         (func_module): Use them.
88269 2007-01-09  Bruno Haible  <bruno@clisp.org>
88271         * modules/unistr/base: New file.
88272         * lib/unistr.h: New file.
88274         * modules/unistr/u8-to-u16: New file.
88275         * lib/unistr/u8-to-u16.c: New file.
88277         * modules/unistr/u8-to-u32: New file.
88278         * lib/unistr/u8-to-u32.c: New file.
88280         * modules/unistr/u16-to-u8: New file.
88281         * lib/unistr/u16-to-u8.c: New file.
88283         * modules/unistr/u16-to-u32: New file.
88284         * lib/unistr/u16-to-u32.c: New file.
88286         * modules/unistr/u32-to-u8: New file.
88287         * lib/unistr/u32-to-u8.c: New file.
88289         * modules/unistr/u32-to-u16: New file.
88290         * lib/unistr/u32-to-u16.c: New file.
88292         * modules/unistr/u8-check: New file.
88293         * modules/unistr/u16-check: New file.
88294         * modules/unistr/u32-check: New file.
88295         * lib/unistr/u8-check.c: New file.
88296         * lib/unistr/u16-check.c: New file.
88297         * lib/unistr/u32-check.c: New file.
88299         * modules/unistr/u8-chr: New file.
88300         * modules/unistr/u16-chr: New file.
88301         * modules/unistr/u32-chr: New file.
88302         * lib/unistr/u8-chr.c: New file.
88303         * lib/unistr/u16-chr.c: New file.
88304         * lib/unistr/u32-chr.c: New file.
88306         * modules/unistr/u8-cmp: New file.
88307         * modules/unistr/u16-cmp: New file.
88308         * modules/unistr/u32-cmp: New file.
88309         * lib/unistr/u8-cmp.c: New file.
88310         * lib/unistr/u16-cmp.c: New file.
88311         * lib/unistr/u32-cmp.c: New file.
88313         * modules/unistr/u8-cpy: New file.
88314         * modules/unistr/u16-cpy: New file.
88315         * modules/unistr/u32-cpy: New file.
88316         * lib/unistr/u8-cpy.c: New file.
88317         * lib/unistr/u16-cpy.c: New file.
88318         * lib/unistr/u32-cpy.c: New file.
88319         * lib/unistr/u-cpy.h: New file.
88321         * modules/unistr/u8-cpy-alloc: New file.
88322         * modules/unistr/u16-cpy-alloc: New file.
88323         * modules/unistr/u32-cpy-alloc: New file.
88324         * lib/unistr/u8-cpy-alloc.c: New file.
88325         * lib/unistr/u16-cpy-alloc.c: New file.
88326         * lib/unistr/u32-cpy-alloc.c: New file.
88327         * lib/unistr/u-cpy-alloc.h: New file.
88329         * modules/unistr/u8-endswith: New file.
88330         * modules/unistr/u16-endswith: New file.
88331         * modules/unistr/u32-endswith: New file.
88332         * lib/unistr/u8-endswith.c: New file.
88333         * lib/unistr/u16-endswith.c: New file.
88334         * lib/unistr/u32-endswith.c: New file.
88335         * lib/unistr/u-endswith.h: New file.
88337         * modules/unistr/u8-mblen: New file.
88338         * modules/unistr/u16-mblen: New file.
88339         * modules/unistr/u32-mblen: New file.
88340         * lib/unistr/u8-mblen.c: New file.
88341         * lib/unistr/u16-mblen.c: New file.
88342         * lib/unistr/u32-mblen.c: New file.
88344         * modules/unistr/u8-mbtouc: New file.
88345         * modules/unistr/u16-mbtouc: New file.
88346         * modules/unistr/u32-mbtouc: New file.
88347         * lib/unistr/u8-mbtouc.c: New file.
88348         * lib/unistr/u16-mbtouc.c: New file.
88349         * lib/unistr/u32-mbtouc.c: New file.
88351         * modules/unistr/u8-mbtouc-safe: New file.
88352         * modules/unistr/u16-mbtouc-safe: New file.
88353         * modules/unistr/u32-mbtouc-safe: New file.
88354         * lib/unistr/u8-mbtouc-safe.c: New file.
88355         * lib/unistr/u16-mbtouc-safe.c: New file.
88356         * lib/unistr/u32-mbtouc-safe.c: New file.
88358         * modules/unistr/u8-move: New file.
88359         * modules/unistr/u16-move: New file.
88360         * modules/unistr/u32-move: New file.
88361         * lib/unistr/u8-move.c: New file.
88362         * lib/unistr/u16-move.c: New file.
88363         * lib/unistr/u32-move.c: New file.
88364         * lib/unistr/u-move.h: New file.
88366         * modules/unistr/u8-next: New file.
88367         * modules/unistr/u16-next: New file.
88368         * modules/unistr/u32-next: New file.
88369         * lib/unistr/u8-next.c: New file.
88370         * lib/unistr/u16-next.c: New file.
88371         * lib/unistr/u32-next.c: New file.
88373         * modules/unistr/u8-prev: New file.
88374         * modules/unistr/u16-prev: New file.
88375         * modules/unistr/u32-prev: New file.
88376         * lib/unistr/u8-prev.c: New file.
88377         * lib/unistr/u16-prev.c: New file.
88378         * lib/unistr/u32-prev.c: New file.
88380         * modules/unistr/u8-set: New file.
88381         * modules/unistr/u16-set: New file.
88382         * modules/unistr/u32-set: New file.
88383         * lib/unistr/u8-set.c: New file.
88384         * lib/unistr/u16-set.c: New file.
88385         * lib/unistr/u32-set.c: New file.
88386         * lib/unistr/u-set.h: New file.
88388         * modules/unistr/u8-startswith: New file.
88389         * modules/unistr/u16-startswith: New file.
88390         * modules/unistr/u32-startswith: New file.
88391         * lib/unistr/u8-startswith.c: New file.
88392         * lib/unistr/u16-startswith.c: New file.
88393         * lib/unistr/u32-startswith.c: New file.
88394         * lib/unistr/u-startswith.h: New file.
88396         * modules/unistr/u8-stpcpy: New file.
88397         * modules/unistr/u16-stpcpy: New file.
88398         * modules/unistr/u32-stpcpy: New file.
88399         * lib/unistr/u8-stpcpy.c: New file.
88400         * lib/unistr/u16-stpcpy.c: New file.
88401         * lib/unistr/u32-stpcpy.c: New file.
88402         * lib/unistr/u-stpcpy.h: New file.
88404         * modules/unistr/u8-stpncpy: New file.
88405         * modules/unistr/u16-stpncpy: New file.
88406         * modules/unistr/u32-stpncpy: New file.
88407         * lib/unistr/u8-stpncpy.c: New file.
88408         * lib/unistr/u16-stpncpy.c: New file.
88409         * lib/unistr/u32-stpncpy.c: New file.
88410         * lib/unistr/u-stpncpy.h: New file.
88412         * modules/unistr/u8-strcat: New file.
88413         * modules/unistr/u16-strcat: New file.
88414         * modules/unistr/u32-strcat: New file.
88415         * lib/unistr/u8-strcat.c: New file.
88416         * lib/unistr/u16-strcat.c: New file.
88417         * lib/unistr/u32-strcat.c: New file.
88418         * lib/unistr/u-strcat.h: New file.
88420         * modules/unistr/u8-strchr: New file.
88421         * modules/unistr/u16-strchr: New file.
88422         * modules/unistr/u32-strchr: New file.
88423         * lib/unistr/u8-strchr.c: New file.
88424         * lib/unistr/u16-strchr.c: New file.
88425         * lib/unistr/u32-strchr.c: New file.
88427         * modules/unistr/u8-strcmp: New file.
88428         * modules/unistr/u16-strcmp: New file.
88429         * modules/unistr/u32-strcmp: New file.
88430         * lib/unistr/u8-strcmp.c: New file.
88431         * lib/unistr/u16-strcmp.c: New file.
88432         * lib/unistr/u32-strcmp.c: New file.
88434         * modules/unistr/u8-strcpy: New file.
88435         * modules/unistr/u16-strcpy: New file.
88436         * modules/unistr/u32-strcpy: New file.
88437         * lib/unistr/u8-strcpy.c: New file.
88438         * lib/unistr/u16-strcpy.c: New file.
88439         * lib/unistr/u32-strcpy.c: New file.
88440         * lib/unistr/u-strcpy.h: New file.
88442         * modules/unistr/u8-strcspn: New file.
88443         * modules/unistr/u16-strcspn: New file.
88444         * modules/unistr/u32-strcspn: New file.
88445         * lib/unistr/u8-strcspn.c: New file.
88446         * lib/unistr/u16-strcspn.c: New file.
88447         * lib/unistr/u32-strcspn.c: New file.
88448         * lib/unistr/u-strcspn.h: New file.
88450         * modules/unistr/u8-strdup: New file.
88451         * modules/unistr/u16-strdup: New file.
88452         * modules/unistr/u32-strdup: New file.
88453         * lib/unistr/u8-strdup.c: New file.
88454         * lib/unistr/u16-strdup.c: New file.
88455         * lib/unistr/u32-strdup.c: New file.
88456         * lib/unistr/u-strdup.h: New file.
88458         * modules/unistr/u8-strlen: New file.
88459         * modules/unistr/u16-strlen: New file.
88460         * modules/unistr/u32-strlen: New file.
88461         * lib/unistr/u8-strlen.c: New file.
88462         * lib/unistr/u16-strlen.c: New file.
88463         * lib/unistr/u32-strlen.c: New file.
88464         * lib/unistr/u-strlen.h: New file.
88466         * modules/unistr/u8-strmblen: New file.
88467         * modules/unistr/u16-strmblen: New file.
88468         * modules/unistr/u32-strmblen: New file.
88469         * lib/unistr/u8-strmblen.c: New file.
88470         * lib/unistr/u16-strmblen.c: New file.
88471         * lib/unistr/u32-strmblen.c: New file.
88473         * modules/unistr/u8-strmbtouc: New file.
88474         * modules/unistr/u16-strmbtouc: New file.
88475         * modules/unistr/u32-strmbtouc: New file.
88476         * lib/unistr/u8-strmbtouc.c: New file.
88477         * lib/unistr/u16-strmbtouc.c: New file.
88478         * lib/unistr/u32-strmbtouc.c: New file.
88480         * modules/unistr/u8-strncat: New file.
88481         * modules/unistr/u16-strncat: New file.
88482         * modules/unistr/u32-strncat: New file.
88483         * lib/unistr/u8-strncat.c: New file.
88484         * lib/unistr/u16-strncat.c: New file.
88485         * lib/unistr/u32-strncat.c: New file.
88486         * lib/unistr/u-strncat.h: New file.
88488         * modules/unistr/u8-strncmp: New file.
88489         * modules/unistr/u16-strncmp: New file.
88490         * modules/unistr/u32-strncmp: New file.
88491         * lib/unistr/u8-strncmp.c: New file.
88492         * lib/unistr/u16-strncmp.c: New file.
88493         * lib/unistr/u32-strncmp.c: New file.
88495         * modules/unistr/u8-strncpy: New file.
88496         * modules/unistr/u16-strncpy: New file.
88497         * modules/unistr/u32-strncpy: New file.
88498         * lib/unistr/u8-strncpy.c: New file.
88499         * lib/unistr/u16-strncpy.c: New file.
88500         * lib/unistr/u32-strncpy.c: New file.
88501         * lib/unistr/u-strncpy.h: New file.
88503         * modules/unistr/u8-strnlen: New file.
88504         * modules/unistr/u16-strnlen: New file.
88505         * modules/unistr/u32-strnlen: New file.
88506         * lib/unistr/u8-strnlen.c: New file.
88507         * lib/unistr/u16-strnlen.c: New file.
88508         * lib/unistr/u32-strnlen.c: New file.
88509         * lib/unistr/u-strnlen.h: New file.
88511         * modules/unistr/u8-strpbrk: New file.
88512         * modules/unistr/u16-strpbrk: New file.
88513         * modules/unistr/u32-strpbrk: New file.
88514         * lib/unistr/u8-strpbrk.c: New file.
88515         * lib/unistr/u16-strpbrk.c: New file.
88516         * lib/unistr/u32-strpbrk.c: New file.
88517         * lib/unistr/u-strpbrk.h: New file.
88519         * modules/unistr/u8-strrchr: New file.
88520         * modules/unistr/u16-strrchr: New file.
88521         * modules/unistr/u32-strrchr: New file.
88522         * lib/unistr/u8-strrchr.c: New file.
88523         * lib/unistr/u16-strrchr.c: New file.
88524         * lib/unistr/u32-strrchr.c: New file.
88526         * modules/unistr/u8-strspn: New file.
88527         * modules/unistr/u16-strspn: New file.
88528         * modules/unistr/u32-strspn: New file.
88529         * lib/unistr/u8-strspn.c: New file.
88530         * lib/unistr/u16-strspn.c: New file.
88531         * lib/unistr/u32-strspn.c: New file.
88532         * lib/unistr/u-strspn.h: New file.
88534         * modules/unistr/u8-strstr: New file.
88535         * modules/unistr/u16-strstr: New file.
88536         * modules/unistr/u32-strstr: New file.
88537         * lib/unistr/u8-strstr.c: New file.
88538         * lib/unistr/u16-strstr.c: New file.
88539         * lib/unistr/u32-strstr.c: New file.
88540         * lib/unistr/u-strstr.h: New file.
88542         * modules/unistr/u8-strtok: New file.
88543         * modules/unistr/u16-strtok: New file.
88544         * modules/unistr/u32-strtok: New file.
88545         * lib/unistr/u8-strtok.c: New file.
88546         * lib/unistr/u16-strtok.c: New file.
88547         * lib/unistr/u32-strtok.c: New file.
88548         * lib/unistr/u-strtok.h: New file.
88550         * modules/unistr/u8-uctomb: New file.
88551         * modules/unistr/u16-uctomb: New file.
88552         * modules/unistr/u32-uctomb: New file.
88553         * lib/unistr/u8-uctomb.c: New file.
88554         * lib/unistr/u16-uctomb.c: New file.
88555         * lib/unistr/u32-uctomb.c: New file.
88557         * MODULES.html.sh (Unicode string functions): Add the new modules.
88559 2007-01-08  Bruno Haible  <bruno@clisp.org>
88561         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
88562         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
88563         subdirectories.
88565 2007-01-08  Karl Berry  <karl@gnu.org>
88567         * doc/error.texi: mention that main() fns must set program_name
88568         when progname is used.
88570 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
88572         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
88573         WCTYPE_H is empty, for the benefit of builds from non-distclean
88574         directories.  Problem reported by Eric Blake in
88575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
88577 2007-01-08  Bruno Haible  <bruno@clisp.org>
88579         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
88580         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
88581         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
88582         PROVIDE_CANONICALIZE_FILENAME_MODE.
88583         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
88585 2007-01-08  Bruno Haible  <bruno@clisp.org>
88587         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
88588         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
88589         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
88590         * lib/fts.c: Likewise.
88591         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
88593 2006-12-25  Bruno Haible  <bruno@clisp.org>
88595         * modules/utf8-ucs4-safe: New file.
88596         * lib/utf8-ucs4-safe.h: New file.
88597         * lib/unistr/utf8-ucs4-safe.c: New file.
88599         * modules/utf16-ucs4-safe: New file.
88600         * lib/utf16-ucs4-safe.h: New file.
88601         * lib/unistr/utf16-ucs4-safe.c: New file.
88603         * MODULES.html.sh (Unicode string functions): Add the new modules.
88605 2007-01-08  Bruno Haible  <bruno@clisp.org>
88607         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
88608         (Depends-on): Add unitypes.
88609         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
88610         (u8_mbtouc_aux): Move out to separate file.
88611         (u8_mbtouc): Use ucs4_t, uint8_t types.
88612         * lib/unistr/utf8-ucs4.c: New file.
88614         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
88615         (Depends-on): Add unitypes.
88616         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
88617         (u16_mbtouc_aux): Move out to separate file.
88618         (u16_mbtouc): Use ucs4_t, uint16_t types.
88619         * lib/unistr/utf16-ucs4.c: New file.
88621         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
88622         (Depends-on): Add unitypes.
88623         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
88624         (u8_uctomb_aux): Move out to separate file.
88625         (u8_uctomb): Use ucs4_t, uint8_t types.
88626         * lib/unistr/ucs4-utf8.c: New file.
88628         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
88629         (Depends-on): Add unitypes.
88630         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
88631         (u16_uctomb_aux): Move out to separate file.
88632         (u16_uctomb): Use ucs4_t, uint16_t types.
88633         * lib/unistr/ucs4-utf16.c: New file.
88635 2006-12-25  Bruno Haible  <bruno@clisp.org>
88637         * modules/unitypes: New file.
88638         * lib/unitypes.h: New file.
88639         * MODULES.html.sh (func_all_modules): New section "Unicode string
88640         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
88641         this section. Add unitypes.
88643 2007-01-08  Bruno Haible  <bruno@clisp.org>
88645         Avoid variable names that conflict with those from libtool.
88646         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
88647         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
88648         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
88649         library_names_spec to acl_library_names_spec, hardcode_* to
88650         acl_hardcode_*.
88651         Reported by Ralf Wildenhues.
88653 2007-01-08  Bruno Haible  <bruno@clisp.org>
88655         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
88656         definition.
88657         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
88658         definition.
88659         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
88660         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
88661         definition.
88662         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
88663         definition.
88664         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
88665         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
88666         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
88667         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
88668         definition.
88669         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
88670         definition.
88671         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
88672         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
88673         GC_USE_<algorithm>.
88674         * lib/gc-libgcrypt.c: Likewise.
88675         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
88676         * modules/gc-arctwo (configure.ac): Likewise.
88677         * modules/gc-des (configure.ac): Likewise.
88678         * modules/gc-hmac-md5 (configure.ac): Likewise.
88679         * modules/gc-hmac-sha1 (configure.ac): Likewise.
88680         * modules/gc-md2 (configure.ac): Likewise.
88681         * modules/gc-md4 (configure.ac): Likewise.
88682         * modules/gc-md5 (configure.ac): Likewise.
88683         * modules/gc-random (configure.ac): Likewise.
88684         * modules/gc-rijndael (configure.ac): Likewise.
88685         * modules/gc-sha1 (configure.ac): Likewise.
88687 2007-01-08  Bruno Haible  <bruno@clisp.org>
88689         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
88690         macro definition.
88691         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
88692         definition.
88693         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
88694         definition.
88695         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
88696         * modules/fcntl-safer (configure.ac): Likewise.
88697         * modules/fopen-safer (configure.ac): Likewise.
88698         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
88699         GNULIB_FWRITEERROR macro definition.
88701 2007-01-08  Bruno Haible  <bruno@clisp.org>
88703         * m4/gnulib-common.m4: New file.
88704         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
88705         (func_get_filelist): Add m4/gnulib-common.m4.
88707 2007-01-08  Bruno Haible  <bruno@clisp.org>
88709         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
88710         command.
88712 2007-01-08  Jim Meyering  <jim@meyering.net>
88714         Use a more robust test for a "can't happen" condition.
88715         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
88716         narrowed the st_size value.  Presuming the "can't happen" condition
88717         is true, that narrowing could conceivably convert an invalid st_size
88718         value into a valid one.  Instead, use a change based on Matthew
88719         Woehlke's original patch.
88721         Slight readability improvement: use an assert-like macro
88722         in place of literal "abort ()" uses.
88723         * lib/fts.c (fts_assert): Define.
88724         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
88725         Use this macro instead of a bare 'abort'.
88727 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
88729         Don't worry about using IRIX 5.3's wctype.h broken definitions;
88730         simply work around them.
88731         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
88732         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
88733         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
88734         declaring.
88735         Don't bother to define as macros, since the standard doesn't require it.
88736         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
88737         longer worry about IRIX 5.3.
88738         (HAVE_WCTYPE_CTMP_BUG): Remove.
88740 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88742         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
88743         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
88744         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
88745         Problems reported by Georg Schwarz for IRIX 5.3.
88747         * gnulib-tool (autoconf_minversion): Take the maximum version number
88748         found, not the minimum.  Problem reported by James Youngman.
88750 2007-01-03  Karl Berry  <karl@gnu.org>
88752         * doc/error.texi: new file, explaining interaction with progname.
88753         * doc/gnulib.texi: include it.  Update copyright.
88755 2007-01-03  Simon Josefsson  <simon@josefsson.org>
88757         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
88758         AC_CANONICAL_HOST, to improve autobuild outputs.
88760 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
88761             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
88763         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
88764         sockets, server sockets, and other file descriptors.  Count errors
88765         to compute the return value.  Reorder the code a bit to be easier
88766         to follow.  Don't set event bits that were not requested (except
88767         POLLERR and POLLHUP).
88769 2007-01-01  Bruno Haible  <bruno@clisp.org>
88771         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
88773 2007-01-03  Jim Meyering  <jim@meyering.net>
88775         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
88777 2007-01-02  Bruno Haible  <bruno@clisp.org>
88779         * modules/settime (Include): Require timespec.h.
88780         * modules/nanosleep (Include): Likewise.
88782 2007-01-01  Bruno Haible  <bruno@clisp.org>
88784         * gnulib-tool (func_emit_copyright_notice): Bump year.
88785         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
88787 2007-01-01  Bruno Haible  <bruno@clisp.org>
88789         Improve support for OpenBSD.
88790         * build-aux/config.rpath (libname_spec): Export.
88791         (library_names_spec): New variable. Export.
88792         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
88793         library_names_spec from the config.rpath output. Locate shared library
88794         through the name pattern in library_names_spec.
88796 2007-01-01  Eric Blake  <ebb9@byu.net>
88798         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
88800 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
88802         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
88803         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
88804         assume the C locale, and avoid an "eval" that could cause trouble.
88805         Problem with SORT reported by Bob Proulx.
88807         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
88808         Define.  Trivial patch from Henning Nielsen Lund, originally
88809         sent to bug-grep@gnu.org today.
88811 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
88813         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
88814         struct stat.  Problem reported by Henning Nielsen Lund.
88815         * lib/acl.c: Include acl.h first, to check interface.  Don't
88816         bother to include sys/types.h and sys/stat.h again.
88818 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88820         Import the following change from libc; problem reported by
88821         Sven Verdoolaege.
88823         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
88825         [BZ #1373]
88826         * lib/argp.h: Remove __NTH for __argp_usage inline function.
88828 2006-12-28  Jim Meyering  <jim@meyering.net>
88830         * build-aux/announce-gen: Do not assume that the package
88831         builds any of tar.gz, tar.bz2, and .xdelta files.
88832         Suggestion from Simon Josefsson.
88834 2006-12-28  Simon Josefsson  <simon@josefsson.org>
88836         * modules/announce-gen: New file.
88838 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
88840         * lib/mbchar.h: Just include <wctype.h>; the wctype module
88841         handles its gotchas now.
88842         * lib/mbswidth.c: Likewise.
88843         * lib/wcwidth.h: Likewise.
88844         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
88845         and iswcntrl; the wctype module does this stuff now.
88846         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
88848         * modules/mbchar (Depends-on): Add wctype.
88849         * modules/mbswidth (Depends-on): Likewise.
88850         * modules/wcwidth (Depends-on): Likewise.
88852 2006-12-27  Eric Blake  <ebb9@byu.net>
88854         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
88855         module uses more than what <wctype.h> is required to provide.
88857 2006-12-26  Eric Blake  <ebb9@byu.net>
88859         * gnulib-tool (sed_extract_prog): Avoid space-tab.
88861 2006-12-26  Eric Blake  <ebb9@byu.net>
88863         * modules/absolute-header: New module.
88864         * modules/fcntl (Depends-on): Depend on it.
88865         * modules/inttypes (Depends-on): Likewise.
88866         * modules/stdint (Depends-on): Likewise.
88867         * modules/sys_stat (Depends-on): Likewise.
88868         * modules/wctype (Depends-on): Likewise.
88869         * MODULES.html.sh (Support for building libraries and
88870         executables): Document it.
88872 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
88874         * gnulib-tool (SED): Remove, undoing previous change.
88875         The problem was that it broke coreutils on Solaris, because
88876         "sed --posix" leaked into a makefile.
88877         (sed): New alias, if 'alias' and GNU sed.
88879 2006-12-24  Jim Meyering  <jim@meyering.net>
88881         Work around an fchownat bug in glibc-2.4:
88882         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
88883         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
88884         in spite of the -P option.
88885         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
88886         New macros.
88887         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
88888         * modules/openat (Files): Add lib/fchownat.c.
88889         * lib/openat.c (fchownat): Don't define here.  Move to...
88890         * lib/fchownat.c: ...this new file.
88892 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88894         Fix bug reported by Bruno Haible in
88895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
88896         where quotearg.c didn't compile on Mac OS X 10.2 because it
88897         lacks <wchar.h> and wint_t.
88898         * lib/wctype_.h (__wctype_wint_t): New type.
88899         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
88900         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
88901         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
88902         Arg is now of type __wctype_wint_t, not wint_t.
88903         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
88904         substitute HAVE_WINT_T.
88905         * modules/wctype (Files): Add m4/wint_t.m4.
88906         (wctype.h): Substitute HAVE_WINT_T.
88908 2006-12-23  Bruno Haible  <bruno@clisp.org>
88910         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
88912 2006-12-23  Bruno Haible  <bruno@clisp.org>
88914         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
88915         S_ISLNK.
88916         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
88917         mingw.
88919 2006-12-22  Bruno Haible  <bruno@clisp.org>
88921         * lib/copy-file.c: Include acl.h.
88922         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
88923         Close the file descriptors only after being done with copy_acl.
88924         * modules/copy-file (Depends-on): Add acl.
88926 2006-12-22  Bruno Haible  <bruno@clisp.org>
88928         * gnulib-tool (SED): New variable.
88929         Use $SED instead of sed everywhere.
88931 2006-12-22  Bruno Haible  <bruno@clisp.org>
88933         * modules/no-c++: New file.
88934         * m4/no-c++.m4: New file.
88935         * MODULES.html.sh (Support for building libraries and executables):
88936         Add no-c++.
88938 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
88940         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
88941         Include <limits.h>, and use its INT_MAX to rewrite the
88942         j loop so that it does not overflow 'int'.  Problem reported by
88943         Ralf Wildenhues in
88944         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
88945         Play it safe by shifting left by 1 rather than multiplying by 2,
88946         as GCC is less likely to optimize this away when the value
88947         is signed (when it assumes overflow leads to undefined behavior).
88948         Also, don't assume time_t uses two's complement.
88950 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
88952         * MODULES.html.sh: New module wctype.
88953         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
88954         * lib/fnmatch.c: Don't bother to include <wchar.h> before
88955         <wctype.h>, since the new wctype module should fix this.
88956         * lib/quotearg.c: Include <wctype.h> unconditionally, since
88957         the wctype module should arrange for it.
88958         * lib/regex_internal.h: Likewise.
88959         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
88960         since the wctype module should handle this now.
88961         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
88962         * modules/fnmatch (Depends-on): Add wctype.
88963         * modules/quotearg (Depends-on): Likewise.
88964         * modules/regex (Depends-on): Likewise.
88966 2006-12-19  Bruno Haible  <bruno@clisp.org>
88968         * lib/strdup.h [C++]: Wrap definitions in extern "C".
88969         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
88971 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88973         * modules/savewd (Depends-on): Fix dependency on fcntl.
88975 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88977         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
88978         conforms to C99, rather than relying on the user's environment
88979         setting of STDINT_H.
88981 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88982         and Eric Blake  <ebb9@byu.net>
88984         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
88985         This is more consistent with the other defines here.
88986         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
88987         Port to z/OS.  Problem reported by Paul Gilmartin.
88988         Change local vars to use gl_ prefix rather than ac_.
88989         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
88990         with other defines.
88991         * modules/double-slash-root: New module.
88992         * modules/dirname (Files): Remove m4/double-slash-root.m4.
88993         (Depends-on): Add double-slash-root.
88994         * MODULES.html.sh (File system functions): Mention new module.
88996 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
88998         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
88999         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
89000         This is for the benefit of gzip, which doesn't do i18n.
89002 2006-12-12  Jim Meyering  <jim@meyering.net>
89004         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
89005         Reported by Andreas Schwab <schwab@suse.de>.
89007 2006-12-12  Bruno Haible  <bruno@clisp.org>
89009         Merge these changes.
89010         2006-09-05  Bruno Haible  <bruno@clisp.org>
89011         * lib/iconvme.c (iconv_string): No need to save and restore errno when
89012         iconv_alloc succeeded.
89013         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
89014         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
89015         test for " && dest " at the end - dest is always != NULL there. Call
89016         iconv with 4xNULL arguments initially, to reset the state. Call iconv
89017         with 2xNULL arguments, also to flush the state storage. Handle the
89018         IRIX iconv behaviour. Realloc the final result, to throw away unused
89019         memory.
89021 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
89023         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
89024         and fchmodat unconditionally, since glibc 2.4 has them.
89025         Problem reported by Arkadiusz Miskiewicz.
89027 2006-12-10  Bruno Haible  <bruno@clisp.org>
89029         * gnulib-tool (func_import): Show the include files only for those
89030         modules that are copied and specified.
89031         Reported by Karl Berry.
89033 2006-12-08  Jim Meyering  <jim@meyering.net>
89035         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
89036         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
89038         * build-aux/announce-gen: Add two new options, both optional:
89039         --bootstrap-tools=TOOL_LIST
89040               a comma-separated list of tools, e.g.,
89041               autoconf,automake,bison,gnulib
89042         --gnulib-snapshot-date=DATE
89043               if gnulib is in the bootstrap tool list,
89044               then report this as the snapshot date.
89045               If not specified, use the current date/time.
89046               If you specify a date here, be sure it's UTC.
89048 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89050         * tests/test-argp-2.sh: Fix test to match actual output.
89051         (func_compare): Fix sed script to be portable.
89053 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
89055         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
89056         workaround for this case.  It is not autoconfigured now; offhand
89057         it's hard to see how to autoconfigure it.
89059 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
89061         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
89062         a directory that is about to be chowned.  Such a directory's
89063         initial file permissions should permit the owner only and this
89064         should not be changed until after the chown, since the group and
89065         other bits would be incorrect if they granted permission before
89066         the chown.
89068         Fix porting problem for iswctype reported by Georg Schwarz in:
89069         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
89070         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
89071         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
89072         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
89073         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
89075 2006-12-03  Jim Meyering  <jim@meyering.net>
89077         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
89078         p->fts_statp may not yet be defined.
89079         (fts_read): Instead, set it in the caller, once p->fts_statp is
89080         sure to be defined, and corresponds to a top-level directory.
89081         This bug made du -x fail.  Here's the coreutils test case:
89082         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
89083         Reported by Mike Frysinger.
89085 2006-12-01  Jim Meyering  <jim@meyering.net>
89087         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
89088         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
89089         Reported by Simon Josefsson.
89091 2006-11-30  Jim Meyering  <jim@meyering.net>
89093         * m4/warning.m4: Use the all-permissive copyright notice
89094         recommended by RMS (rather than LGPL).
89095         * m4/vararrays.m4: Likewise.
89096         * m4/flexmember.m4: Likewise.
89098 2006-11-29  Bruno Haible  <bruno@clisp.org>
89100         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
89101         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
89102         using +=.
89103         Reported by Simon Josefsson <simon@josefsson.org>.
89105 2006-11-28  James Youngman  <jay@gnu.org>
89107         * README: Advise users that they might find the bug-gnulib@gnu.org
89108         and autotools-announce@gnu.org mailing lists useful.
89110 2006-11-28  Bruno Haible  <bruno@clisp.org>
89112         * m4/ptrdiff_max.m4: Remove file.
89114 2006-11-21  Bruno Haible  <bruno@clisp.org>
89116         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
89117         _AC_COMPUTE_INT.
89118         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
89119         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
89120         _AC_COMPUTE_INT.
89121         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
89122         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
89123         _AC_COMPUTE_INT.
89124         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
89126 2006-11-28  Jim Meyering  <jim@meyering.net>
89128         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
89129         warning from "gcc -Wshadow" about shadowing the builtin.
89131 2006-11-27  Bruno Haible  <bruno@clisp.org>
89133         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
89134         _AC_COMPUTE_INT.
89135         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
89137 2006-11-27  Bruno Haible  <bruno@clisp.org>
89138             Paul Eggert  <eggert@cs.ucla.edu>
89140         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
89142 2006-11-26  Bruno Haible  <bruno@clisp.org>
89144         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
89145         noinst_LTLIBRARIES.
89147 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89148             Bruno Haible  <bruno@clisp.org>
89150         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
89151         if compiling with "gcc -ansi".
89153 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89155         Fix some incompatibilities with gcc -ansi -pedantic.
89156         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
89157         if compiling pedantically with GCC, unless it's C99 or later.
89158         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
89159         it mishandles gcc -ansi -pedantic as well.
89160         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
89161         if gcc -pedantic.
89162         * lib/regexec.c (check_node_accept_bytes): Don't use auto
89163         initializers for struct if -pedantic, unless it's C99 or later.
89165 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
89167         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
89168         Don't close an fd more than once. Identical atimes indicate
89169         success, not failure.
89171 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
89173         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
89175 2006-11-23  Jim Meyering  <jim@meyering.net>
89177         * build-aux/announce-gen: New file.  From coreutils.
89179 2006-11-22  Jim Meyering  <jim@meyering.net>
89181         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
89182         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
89183         (fts_read): Use a temporary to narrow the overused st_size member
89184         before using it in a switch statement.  Reported by Matthew Woehlke.
89186         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
89187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
89189 2006-11-20  Bruno Haible  <bruno@clisp.org>
89191         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
89192         changequote instead of pairs of brackets.
89193         Reported by Andreas Schwab <schwab@suse.de>.
89195 2006-11-21  Jim Meyering  <jim@meyering.net>
89197         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
89198         so as to remain compatible with older compilers.
89199         Patch from Michael Deutschmann.
89201 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89203         * MODULES.html.sh (File system functions): Add openat.
89205         * lib/openat.h (rpl_fstatat): New macro, if
89206         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
89207         (fstatat): Define to rpl_fstatat under the same conditions,
89208         unless COMPILING_FSTATAT.
89209         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
89210         seems to have the bug.
89211         * lib/fstatat.c: New file.
89212         * modules/openat (Files): Add it.
89214 2006-11-20  Bruno Haible  <bruno@clisp.org>
89216         * Makefile: New file.
89218 2006-11-20  Jim Meyering  <jim@meyering.net>
89220         The beginnings of syntax-related checks for gnulib.
89221         * lib/Makefile: New file.
89222         * lib/t-idcache: New script.  Ensure that the two halves of
89223         idcache.c stay in sync.
89225         * lib/idcache.c: Adjust comments in user- and group- portions to
89226         be more accurate, and to be consistent with one another.
89228 2006-11-20  Jim Meyering  <jim@meyering.net>
89230         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
89231         continue using the flexible array member (thus, this module performs
89232         half as many malloc calls), with the addition that...
89233         (getgroup, getuser): Consistently record a non-match via an empty
89234         "name" string, and map an empty string match to a NULL return value.
89235         * modules/idcache (Depends-on): Re-add flexmember.
89237         * lib/idcache.c (getuser): Remove all uses of the register keyword.
89238         (getuidbyname, getgroup, getgidbyname): Likewise.
89240         Use cleaner syntax: NULL rather than 0.
89241         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
89243 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89245         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
89246         It mishandled the case where the group was missing.
89247         Problem reported by Greg Schafer.
89248         * modules/idcache: Likewise.
89250 2006-11-18  Jim Meyering  <jim@meyering.net>
89252         * check-module (%exempt_header): Add exception for some
89253         conditionally-included headers.
89255         * modules/i-ring (Depends-on): Add verify.
89256         (License): Change to LGPL.
89258 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89260         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
89261         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
89262         and inttostr.h.  Use snprintf rather than uinttostr, so that
89263         LGPLed code doesn't depend on GPLed.
89265 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89267         * modules/inline (License): Change from GPL to LGPL.
89269 2006-11-17  Jim Meyering  <jim@meyering.net>
89271         * modules/d-type (License): Switch to LGPL.
89273 2006-11-15  Bruno Haible  <bruno@clisp.org>
89275         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
89277 2006-11-15  Eric Blake  <ebb9@byu.net>
89279         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
89280         the module dependency.
89282 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89283             Bruno Haible  <bruno@clisp.org>
89285         * gnulib-tool (func_create_testdir): Add license consistency check.
89287 2006-11-15  Eric Blake  <ebb9@byu.net>
89289         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
89290         random "(cached)" in configure output.
89292 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89294         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
89295         test for conforming inttypes.h is both announced and cached.
89297         * MODULES.html.sh (seen_modules, seen_files): New variables.
89298         (func_module): Rewrite to use a few less gnulib-tool and sed
89299         invocations.  Avoid a couple of quadratic algorithms for ...
89300         (missed_modules, missed_files): ... these, with ...
89301         (func_append, func_tmpdir): ... these new functions, from
89302         gnulib-tool.  Analogously, install traps for cleanup.
89304         * tests/test-gc.c (main): Remove unused variables.
89305         * tests/test-read-file.c: Include stdlib.h, for 'free'.
89307 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
89309         * modules/inttostr (License): Change to LGPL.
89311 2006-11-14  Eric Blake  <ebb9@byu.net>
89313         * modules/tempname (License): Change to LGPL.
89315 2006-11-14  Eric Blake  <ebb9@byu.net>
89317         * doc/functions.texi (Function Portability): *printf functions on
89318         Cygwin now understand all POSIX size specifiers.
89320 2006-11-14  Bruno Haible  <bruno@clisp.org>
89322         * modules/c-ctype (License): Change to LGPL.
89324 2006-11-12  Bruno Haible  <bruno@clisp.org>
89326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
89327         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
89328         for GNOME libraries, for which the include files are installed in
89329         subdirectories of $prefix/include.
89331 2006-11-12  Bruno Haible  <bruno@clisp.org>
89333         * m4/lib-link.m4: Require at least autoconf-2.54.
89334         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
89335         name to underscores for the --with option.
89337 2006-11-13  Bruno Haible  <bruno@clisp.org>
89339         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
89340         the tests directory.
89341         Reported by Ralf Wildenhues.
89343 2006-11-13  Bruno Haible  <bruno@clisp.org>
89345         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
89346         (func_emit_initmacro_end): Undo the override here.
89347         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
89348         Works around the famous automake error in coreutils.
89350 2006-11-13  Eric Blake  <ebb9@byu.net>
89352         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
89353         element, not its node.
89355 2006-11-12  Bruno Haible  <bruno@clisp.org>
89357         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
89358         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
89360 2006-11-12  Bruno Haible  <bruno@clisp.org>
89362         * gnulib-tool: New option --local-symlink.
89363         (func_usage): Document it.
89364         (lsymbolic): New variable.
89365         (func_import, func_create_testdir): If --symlink was not specified,
89366         test whether --local-symlink was specified and the file comes from
89367         the local_gnulib_dir.
89369 2006-11-12  Bruno Haible  <bruno@clisp.org>
89371         * gnulib-tool (func_ln): New function.
89372         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
89374 2006-11-12  Bruno Haible  <bruno@clisp.org>
89376         Finish support for source files in subdirectories.
89377         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
89378         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
89379         AUTOMAKE_OPTIONS.
89380         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
89382 2006-11-12  Bruno Haible  <bruno@clisp.org>
89384         * gnulib-tool (func_get_automake_snippet): Synthesize also an
89385         EXTRA_lib_SOURCES augmentation.
89386         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
89388 2006-11-12  Jim Meyering  <jim@meyering.net>
89390         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
89391         file descriptors.  This also averts a failure on systems with
89392         native openat support when a traversed directory lacks "x" access.
89393         * lib/fts_.h: Include "i-ring.h"
89394         (struct FTS) [fts_fd_ring]: New member.
89395         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
89396         (FCHDIR): Add parentheses.
89397         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
89398         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
89399         When descending, rather than simply closing the previous
89400         fts_cwd_fd value, push that file descriptor onto the ring.
89401         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
89402         (fts_open): Initialize the new fd_ring member.
89403         (fts_close): Clear the ring.
89404         (fts_safe_changedir): When possible, use our new fd_ring to skip
89405         the diropen and fstat and dev/ino comparison that would normally
89406         accompany a virtual `chdir ("..")'.
89408         * modules/fts (Depends-on): Add i-ring.
89409         * modules/i-ring: New module.
89410         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
89411         * m4/i-ring.m4: New file.
89413 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89415         * gnulib-tool (func_create_testdir): Fix replacement of
89416         `build-aux' in configure.ac.  Run autotools in gltests
89417         subdirectory.
89418         (func_create_testdir, func_create_megatestdir, test): There is
89419         no need for '--force' in most autotool invocations in a new
89420         tree.  Actually fail the whole test if any of the tools, or the
89421         configure or make stages fail.
89423         Sync from Automake.
89424         * build-aux/gnupload: Revert last change.  Add pointer to upload
89425         instructions of the GNU Maintenance Instructions.
89426         Suggestion by Karl Berry.
89428 2006-11-10  Jim Meyering  <jim@meyering.net>
89430         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
89432 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89434         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
89435         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
89436         (bind_textdomain_codeset) [! ENABLE_NLS]:
89437         Evaluate all the arguments.  That way, callers get compatible behavior
89438         if the arguments have side effects.  Also, it avoids some GCC
89439         diagnostics in some cases; Joel E. Denny reported problems when Bison
89440         was configured with --enable-gcc-warnigs.
89442 2006-11-10  Jim Meyering  <jim@meyering.net>
89444         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
89445         relevant options in CFLAGS (like -O, -fno-inline) are taken into
89446         account.
89448 2006-11-10  Jim Meyering  <jim@meyering.net>
89450         * modules/inline: New file/module.
89451         * modules/xalloc (Files): Remove m4/inline.m4.
89452         (Depends-on): Add inline, instead.
89453         * modules/oset: Likewise.
89454         * modules/list: Likewise.
89456 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89458         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
89459         Problem reported by Matthew Woehlke.
89461 2006-11-09  Bruno Haible  <bruno@clisp.org>
89463         * lib/tempname.c (gen_tempname): Remove variant that invokes
89464         __gen_tempname.
89465         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
89466         __gen_tempname.
89468 2006-11-08  Bruno Haible  <bruno@clisp.org>
89470         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
89471         to 'yes' instead of 'cross-compiling'.
89473 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
89475         * lib/quotearg.h (quotearg_free): New decl.
89476         * lib/quotearg.c (quotearg_free): New function.
89477         (slot0, nslots, slotvec0, slotvec):
89478         Now file-scope so that quotearg_free can get at them.
89480 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89482         Sync from Automake.
89483         * build-aux/gnupload: Add missing 'gnu' to example URL.
89484         Report by Karl Berry.
89486 2006-11-08  Bruno Haible  <bruno@clisp.org>
89488         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
89489         Suggested by Paul Eggert.
89491 2006-11-08  Jim Meyering  <jim@meyering.net>
89493         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
89494         It's already included if !_LIBC.
89495         (fts_safe_changedir): Add a comment.
89497 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
89499         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
89500         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
89501         Matthew Woehlke.
89503         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
89504         definitions up, to avoid colliding with change below.
89505         (static_inline) [HAVE_INLINE]: New macro.
89506         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
89507         Provide extern decls when !HAVE_INLINE.  Do not define unless
89508         static_inline is defined, either by us or by xmalloc.c.  Use
89509         static_inline rather than static inline.
89510         (XCALLOC): Optimize sizeof(T) = 1 case.
89511         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
89513 2006-11-07  Bruno Haible  <bruno@clisp.org>
89515         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
89516         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
89517         AC_C_INLINE.
89518         * modules/xalloc (Files): Add m4/inline.m4.
89520 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89522         * README: Fix typo.
89523         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
89524         (Miscellanous Notes): ...from this.
89526 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
89528         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
89529         Mention that offsetof should be used instead of sizeof.
89530         From Bruno Haible.
89532 2006-11-07  Bruno Haible  <bruno@clisp.org>
89534         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
89536 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
89538         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
89539         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
89540         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89541         (gl_tree_add_before, gl_tree_add_after):
89542         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
89543         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
89544         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
89545         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
89546         (gl_linked_add_after, gl_linked_add_at): Likewise.
89547         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
89548         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89549         (gl_tree_add_before, gl_tree_add_after): Likewise.
89550         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
89551         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
89552         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
89554 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89556         * lib/gl_oset.h: Use C comment style, not C++ comment style.
89558 2006-11-06  Bruno Haible  <bruno@clisp.org>
89560         * m4/inline.m4: New file.
89561         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
89562         * modules/list (Files): Add m4/inline.m4.
89563         * modules/oset (Files): Likewise.
89565 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
89567         * lib/idcache.c: Include <stddef.h>, for offsetof.
89568         (struct userid.name): Change from char * to a flexible array member.
89569         All uses changed.
89570         * modules/idcache (Depends-on): Add flexmember.
89572         * MODULES.html.sh (Core language properties): New module flexmember.
89573         * modules/flexmember, m4/flexmember.m4: New files.
89575         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
89576         inline functions that are identical with the old xnmalloc_inline,
89577         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
89578         that we can avoid some unnecessary integer multiplications and
89579         divisions in the common case where the element size is known at
89580         compile time.
89581         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
89582         needed.
89583         (xnboundedmalloc): Remove.
89584         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
89585         arguments, for consistency with rest of this header.
89586         (xcharalloc): Rewrite using XNMALLOC.
89587         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
89588         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
89589         versions have been moved to lib/xalloc.h and renamed to be the
89590         non-*_inline versions.
89591         (xmalloc, xrealloc): Implement without reference to the xnmalloc
89592         and xnrealloc functions, since those functions are now inline and
89593         now call us.
89594         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
89595         renaming described above.
89596         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
89597         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
89598         captures the dependency in AC_C_INLINE.
89600         New module canonicalize-lgpl, proposed by Charles Wilson in
89601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
89602         with a few small changes afterwards.
89603         * MODULES.html.sh (File system functions): New module
89604         canonicalize-lgpl.
89605         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
89606         and canonicalize_file_name.
89607         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
89608         * modules/canonicalize-lgpl: New files.
89610 2006-11-05  Bruno Haible  <bruno@clisp.org>
89612         * gnulib-tool (func_import, func_create_testdir): Create directories
89613         also for files in subdirectories of lib/.
89615 2006-11-05  Bruno Haible  <bruno@clisp.org>
89617         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
89618         ANSI C compliant.
89620 2006-11-03  Bruno Haible  <bruno@clisp.org>
89622         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
89623         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
89624         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
89625         (xnboundedmalloc): New inline function.
89626         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
89627         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
89628         xmalloc.
89629         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
89630         xmalloc.
89631         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
89632         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
89633         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
89634         xmalloc.
89635         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
89636         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
89637         xmalloc.
89638         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
89639         gl_tree_add_after): Use XMALLOC instead of xmalloc.
89640         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
89641         xmalloc.
89642         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
89643         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
89644         gl_tree_add_after): Use XMALLOC instead of xmalloc.
89645         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
89646         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
89647         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
89648         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
89650 2006-11-03  Bruno Haible  <bruno@clisp.org>
89652         * lib/c-ctype.h [C++]: Define functions without name mangling.
89653         * lib/fwriteerror.h [C++]: Likewise.
89654         * lib/gcd.h [C++]: Likewise.
89655         * lib/linebreak.h [C++]: Likewise.
89657 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89659         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
89660         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
89661         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
89662         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
89663         Check for functions and headers just once.
89664         Check for declaration of canonicalize_file_name.
89665         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
89667 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89669         * gnulib-tool (func_import): Fix typo in actioncmd.
89671 2006-11-02  Bruno Haible  <bruno@clisp.org>
89673         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
89674         newline sequence in the Makefile.am snippet as a space, like "make"
89675         does.
89676         Reported by Roger Persson <perrog@gmail.com>.
89678 2006-11-01  Bruno Haible  <bruno@clisp.org>
89680         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
89681         already declared in <string.h>.
89682         * lib/strcase.h (strncasecmp): Don't declare it if yes.
89684 2006-11-01  Bruno Haible  <bruno@clisp.org>
89686         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
89687         * lib/strcase.h: Include <string.h>.
89688         (strcasecmp): Define to rpl_strcasecmp here.
89690 2006-11-01  Bruno Haible  <bruno@clisp.org>
89692         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
89694 2006-11-01  Eric Blake  <ebb9@byu.net>
89696         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
89698         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
89700 2006-10-29  Bruno Haible  <bruno@clisp.org>
89702         Make it compile in C++ mode.
89703         * lib/full-write.c (full_rw): Add a cast.
89705 2006-11-01  Bruno Haible  <bruno@clisp.org>
89707         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
89708         be POSIX compliant.
89709         Reported by Roger Persson <perrog@gmail.com>.
89711 2006-11-01  Eric Blake  <ebb9@byu.net>
89713         * lib/getopt_.h: Fix comments.
89715 2006-10-31  Eric Blake  <ebb9@byu.net>
89717         * modules/tmpdir (Depends-on): Add sys_stat.
89718         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
89719         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
89720         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
89721         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
89722         tempname.
89724 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
89726         Avoid some C++ diagnostics reported by Bruno Haible.
89727         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
89728         xmalloc.
89729         (quotearg_alloc): Use xcharalloc rather than xmalloc.
89730         (struct slotvec): Move to top level.
89731         (quotearg_n_options): Rewrite to avoid xmalloc.
89732         * lib/xalloc.h (xcharalloc): New function.
89733         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
89734         [defined __cplusplus]: Add function template that provides result
89735         type propagation.  This part of the change is from Bruno Haible.
89737 2006-10-29  Bruno Haible  <bruno@clisp.org>
89739         Make it compile in C++ mode.
89740         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
89741         * lib/strnlen1.c (strnlen1): Cast memchr result.
89742         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
89743         * lib/clean-temp.c (string_equals, string_hash): Add casts.
89744         (create_temp_dir): Rename local variable 'template'.
89745         (compile_csharp_using_sscli): Add cast.
89746         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
89747         * lib/findprog.c (find_in_path): Likewise.
89748         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
89749         * lib/wait-process.c (register_slave_subprocess): Likewise.
89751 2006-10-22  Bruno Haible  <bruno@clisp.org>
89753         * modules/tsearch: New file.
89754         * lib/tsearch.h: New file.
89755         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
89756         * m4/tsearch.m4: New file.
89757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
89759 2006-10-29  Eric Blake  <ebb9@byu.net>
89761         * lib/arcfour.c: Assume config.h.
89762         * lib/arctwo.c: Likewise.
89763         * lib/base64.c: Likewise.
89764         * lib/check-version.c: Likewise.
89765         * lib/crc.c: Likewise.
89766         * lib/des.c: Likewise.
89767         * lib/gc-gnulib.c: Likewise.
89768         * lib/gc-libgcrypt.c: Likewise.
89769         * lib/gc-pbkdf2-sha1.c: Likewise.
89770         * lib/getaddrinfo.c: Likewise.
89771         * lib/getdelim.c: Likewise.
89772         * lib/getline.c: Likewise.
89773         * lib/hmac-md5.c: Likewise.
89774         * lib/hmac-sha1.c: Likewise.
89775         * lib/iconvme.c: Likewise.
89776         * lib/md2.c: Likewise.
89777         * lib/md4.c: Likewise.
89778         * lib/memxor.c: Likewise.
89779         * lib/read-file.c: Likewise.
89780         * lib/readline.c: Likewise.
89781         * lib/rijndael-alg-fst.c: Likewise.
89782         * lib/rijndael-api-fst.c: Likewise.
89783         * lib/xgetdomainname.c: Likewise.
89785 2006-10-28  Eric Blake  <ebb9@byu.net>
89787         * lib/xstrndup.c: Assume config.h.
89789 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
89791         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
89792         stat-macros.h is now for our own macros, whereas stat_h is for
89793         macros in the <sys/stat.h> name space.
89794         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
89795         (STAT_MACROS_H): Remove.
89796         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
89797         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
89798         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
89799         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
89800         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
89801         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
89802         Move these macros to ...
89803         * lib/stat_.h: here.  Don't include stat-macros.h.
89804         * lib/canonicalize.c: Don't include stat-macros.h.
89805         * lib/chown.c: Likewise.
89806         * lib/euidaccess.c: Likewise.
89807         * lib/file-type.c: Likewise.
89808         * lib/filemode.c: Likewise.
89809         * lib/glob.c: Likewise.
89810         * lib/isapipe.c: Likewise.
89811         * lib/lchown.c: Likewise.
89812         * lib/lstat.c: Likewise.
89813         * lib/mkdir-p.c: Likewise.
89814         * lib/rmdir.c: Likewise.
89815         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
89816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
89817         unless mkdir isn't declared, to speed up 'configure'.
89818         Always create sys/stat.h, since it's unlikely any real sys/stat.h
89819         would define all the S_* symbols.
89820         * modules/canonicalize (Depends-on):
89821         Depend on sys_stat, not stat-macros.
89822         * modules/chown: Likewise.
89823         * modules/euidaccess: Likewise.
89824         * modules/filemode: Likewise.
89825         * modules/file-type: Likewise.
89826         * modules/glob: Likewise.
89827         * modules/isapipe: Likewise.
89828         * modules/lchown: Likewise.
89829         * modules/lstat: Likewise.
89830         * modules/mkancesdirs: Likewise.
89831         * modules/rmdir: Likewise.
89832         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
89833         * modules/modechange: Likewise.
89834         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
89835         (configure.ac): Remove gl_STAT_MACROS.
89836         * modules/sys_stat (Depends-on): Remove stat-macros.
89838 2006-10-27  Bruno Haible  <bruno@clisp.org>
89840         * m4/signed.m4: Remove file.
89841         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
89842         invocation.
89843         * modules/vasnprintf (Files): Remove m4/signed.m4.
89845 2006-10-27  Bruno Haible  <bruno@clisp.org>
89847         Update to GNU gettext 0.16.
89848         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
89849         m4/inttypes-h.m4, m4/signed.m4.
89850         * m4/gettext.m4: Update to GNU gettext 0.16.
89851         * m4/intl.m4: New file, from GNU gettext.
89852         * m4/intldir.m4: New file, from GNU gettext.
89853         * config/srclist.txt: Update
89855 2006-10-27  Eric Blake  <ebb9@byu.net>
89857         * MODULES.html.sh: Document tempname.
89858         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
89859         dependencies.
89860         (Files): Move lib/tempname.c...
89861         * modules/tempname: ...to this new module.
89862         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
89863         (gl_PREREQ_TEMPNAME): Move...
89864         * m4/tempname.m4: ...to this new file.
89865         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
89866         * modules/sys_stat (Depends-on): Add stat-macros.
89867         * lib/stat_.h (includes): Pick up stat macros.
89868         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
89869         if stat macros are broken.
89870         * lib/tempname.c (includes): No need to include "stat-macros.h".
89871         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
89872         (direxists, __path_search) [!_LIBC]: Don't compile these in
89873         gnulib; the tmpdir module covers that.
89874         * lib/tempname.h: New file.
89876 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
89878         * COPYING: Explain how gnulib-tool converts licence headers.
89879         Almost all wording by Eric Blake.
89881 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
89883         * lib/mbchar.h (is_basic_table): Make read-only.
89884         * lib/mbchar.c (is_basic_table): Likewise.
89885         Reported by John Darrington.
89887 2006-10-25  Bruno Haible  <bruno@clisp.org>
89889         * lib/progname.h (set_program_name): Undefine before defining.
89891 2006-10-25  Bruno Haible  <bruno@clisp.org>
89893         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
89894         false for non-gcc C++ compilers.
89895         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
89897 2006-10-24  Bruno Haible  <bruno@clisp.org>
89899         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
89900         iconv implementations like Irix iconv.
89902 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89904         * modules/vararrays: New file.
89905         * m4/vararrays.m4: New file, taken from diffutils.
89906         * MODULES.html.sh: New module vararrays.
89908 2006-10-24  Karl Berry  <karl@gnu.org>
89910         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
89911         Don't call GNU Unix.
89913 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89915         * users.txt: Add Libtool.
89917         Sync from Libtool:
89919         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89921         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
89922         to gnulib's policy of including config.h unconditionally.
89924 2006-10-24  Bruno Haible  <bruno@clisp.org>
89926         * modules/wcwidth (Files): Add m4/wint_t.m4.
89927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
89928         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
89930 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89932         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
89933         to pacify GCC with some -W flags enabled.  Problem reported by
89934         Bruno Haible.
89936 2006-10-24  Jim Meyering  <jim@meyering.net>
89938         * MODULES.html.sh: Remove uinttostr.  It's not a module.
89939         Reported by Karl Berry.
89941 2006-10-23  Bruno Haible  <bruno@clisp.org>
89943         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
89945 2006-10-24  Bruno Haible  <bruno@clisp.org>
89947         * lib/gl_list.h: Use C comment style, not C++ comment style.
89949 2006-10-23  Eric Blake  <ebb9@byu.net>
89951         * lib/getaddrinfo.c (includes): Add missing include.
89953 2006-10-23  Bruno Haible  <bruno@clisp.org>
89954             Paul Eggert  <eggert@cs.ucla.edu>
89956         Ability to rename obstack_free.
89957         * lib/obstack.h (__obstack_free): New macro. Declare instead of
89958         obstack_free.
89959         (obstack_free): Invoke the __obstack_free macro.
89960         * lib/obstack.c (obstack_free): Use __obstack_free macro.
89962 2006-10-23  Bruno Haible  <bruno@clisp.org>
89963             Paul Eggert  <eggert@cs.ucla.edu>
89965         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
89966         __argc, __argv from the declaration. (They are defined as macros on
89967         mingw.)
89969 2006-10-22  Bruno Haible  <bruno@clisp.org>
89971         * doc/gnulib-intro.texi: New file.
89972         * doc/gnulib.texi: Include it.
89974 2006-10-21  Bruno Haible  <bruno@clisp.org>
89976         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
89977         "Introduction", "Miscellanous Notes", "Particular Modules".
89979 2006-10-21  Bruno Haible  <bruno@clisp.org>
89981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89982         Change mostlyclean-local rule to avoid sh syntax error from bash
89983         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
89985 2006-10-23  Jim Meyering  <jim@meyering.net>
89987         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
89988         in place of snprintf.
89990         * modules/inttostr (Files): Add lib/uinttostr.c.
89991         * lib/uinttostr.c (inttostr): New file/function.
89992         * lib/inttostr.h (uinttostr): Declare.
89993         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
89994         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
89995         Add uinttostr.
89996         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
89998 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
90000         * lib/canonicalize.c (ELOOP): Define if not already defined.
90001         Problem reported by Bruno Haible in
90002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
90004 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
90006         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
90007         Problem reported by Perry Smith and Ville Laurikari.
90009         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
90010         uses.
90012 2006-10-19  Bruno Haible  <bruno@clisp.org>
90014         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
90015         for mingw.
90017 2006-10-19  Bruno Haible  <bruno@clisp.org>
90019         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
90020         Needed for mingw.
90022 2006-10-19  Bruno Haible  <bruno@clisp.org>
90024         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
90026 2006-10-19  Bruno Haible  <bruno@clisp.org>
90028         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
90029         it.
90031 2006-10-19  Bruno Haible  <bruno@clisp.org>
90033         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
90034         invocation.
90036 2006-10-19  Bruno Haible  <bruno@clisp.org>
90038         * gnulib-tool (func_create_testdir): Don't include ftruncate and
90039         mountlist by default.
90041 2006-10-16  Bruno Haible  <bruno@clisp.org>
90043         * lib/c-strstr.c: Include c-strstr.h.
90045 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
90047         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
90048         in a slash.
90050 2006-10-18  Bruno Haible  <bruno@clisp.org>
90052         * lib/lock.h [C++]: Wrap definitions in extern "C".
90054 2006-10-18  Bruno Haible  <bruno@clisp.org>
90056         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
90057         gl_LIBOBJS list.
90059 2006-10-18  Bruno Haible  <bruno@clisp.org>
90061         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
90063 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
90065         * lib/xstrtol.h: Include gettext.h.
90066         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
90067         Problem reported by Eric Blake.
90068         * modules/xstrtol (Depends-on): Add gettext-h.
90070 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
90072         * lib/strftime.c (advance): New macro.
90073         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
90074         incomplete type, so you can't add 0 to it.  Problem and patch
90075         reported by Eelco Dolstra for dietlibc.
90077 2006-10-18  Jim Meyering  <jim@meyering.net>
90079         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
90080         type for a local, and rename it: s/up/user_proc/.
90082 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
90084         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
90085         READ_UTMP_USER_PROCESS.
90086         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
90088 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90090         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
90091         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
90093 2006-10-17  Eric Blake  <ebb9@byu.net>
90095         * lib/sigprocmask.c (sigprocmask): Fix typo.
90097         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
90099         * modules/clean-temp (Makefile.am): Don't add to make output...
90100         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
90101         config.h.
90103 2006-10-17  Bruno Haible  <bruno@clisp.org>
90105         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
90106         differently if DEFAULT_TEXT_DOMAIN is set.
90108 2006-10-16  Bruno Haible  <bruno@clisp.org>
90110         * lib/clean-temp.c: Include fwriteerror.h.
90112 2006-10-16  Bruno Haible  <bruno@clisp.org>
90114         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
90116 2006-10-16  Bruno Haible  <bruno@clisp.org>
90118         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
90119         * lib/sigprocmask.h: Include <sys/types.h>.
90120         (sigset_t): Use the system's definition if present.
90122 2006-10-17  Eric Blake  <ebb9@byu.net>
90124         * lib/xvasprintf.c (includes): Assume config.h.
90125         * lib/xasprintf.c (includes): Likewise.
90127 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90129         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
90130         at least as wide as intmax_t.
90132 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
90134         (Imported from Automake.)
90135         * build-aux/gnupload: Update to version 1.1 of directive file.
90137 2006-10-16  Eric Blake  <ebb9@byu.net>
90139         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
90140         match Automake 1.10a.
90142 2006-10-14  Bruno Haible  <bruno@clisp.org>
90144         * modules/sigprocmask: New file.
90145         * lib/sigprocmask.h: New file.
90146         * lib/sigprocmask.c: New file.
90147         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
90148         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
90149         request sigprocmask.o.
90150         (gl_PREREQ_SIGPROCMASK): New macro.
90151         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
90152         (Depends-on): Add sigprocmask.
90153         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
90154         gt_SIGNALBLOCKING. Test for 'raise' only once.
90155         * lib/fatal-signal.c: Include sigprocmask.h.
90156         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
90157         unblock_fatal_signals): Define always.
90158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90159         sigprocmask.
90161 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
90163         Sync from Automake.
90164         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
90165         which incorrectly sets the mode of an existing destination
90166         directory.  In some cases the unpatched install-sh could do the
90167         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
90168         system.  We hope this is rare in practice, but it's clearly worth
90169         fixing.  Problem reported by Alex Unleashed in
90170         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
90171         Also, don't bother to check for -m bugs unless we're using -m;
90172         suggested by Stepan Kasal.
90174 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90176         Sync from Automake.
90177         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
90178         `-c' flag, so they appear at the same position as in %FASTDEP%
90179         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
90180         which ignores unknown options only after the first non-option.
90181         Bug report against M4 by Nelson H. F. Beebe.
90183 2006-10-13  Jim Meyering  <jim@meyering.net>
90185         Fix a bug in yesterday's change.
90186         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
90187         p->fts_statp->st_dev would be used uninitialized.
90188         Ensures that we always call fts_stat on the very first entry.
90189         Miklos Szeredi reported that find -xdev stopped working.
90191 2006-10-12  Bruno Haible  <bruno@clisp.org>
90193         * gnulib-tool (func_get_automake_snippet): Append an automatically
90194         computed EXTRA_DIST augmentation.
90195         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
90196         * modules/alloca-opt (Makefile.am): Likewise.
90197         * modules/allocsa (Makefile.am): Likewise.
90198         * modules/arcfour (Makefile.am): Likewise.
90199         * modules/arctwo (Makefile.am): Likewise.
90200         * modules/argmatch (Makefile.am): Likewise.
90201         * modules/argz (Makefile.am): Likewise.
90202         * modules/atexit (Makefile.am): Likewise.
90203         * modules/backupfile (Makefile.am): Likewise.
90204         * modules/byteswap (Makefile.am): Likewise.
90205         * modules/c-strtod (Makefile.am): Likewise.
90206         * modules/c-strtold (Makefile.am): Likewise.
90207         * modules/calloc (Makefile.am): Likewise.
90208         * modules/canon-host (Makefile.am): Likewise.
90209         * modules/canonicalize (Makefile.am): Likewise.
90210         * modules/chdir-long (Makefile.am): Likewise.
90211         * modules/chdir-safer (Makefile.am): Likewise.
90212         * modules/check-version (Makefile.am): Likewise.
90213         * modules/chown (Makefile.am): Likewise.
90214         * modules/cloexec (Makefile.am): Likewise.
90215         * modules/close-stream (Makefile.am): Likewise.
90216         * modules/closeout (Makefile.am): Likewise.
90217         * modules/crc (Makefile.am): Likewise.
90218         * modules/csharpexec (Makefile.am): Likewise.
90219         * modules/cycle-check (Makefile.am): Likewise.
90220         * modules/des (Makefile.am): Likewise.
90221         * modules/dev-ino (Makefile.am): Likewise.
90222         * modules/dirfd (Makefile.am): Likewise.
90223         * modules/dirname (Makefile.am): Likewise.
90224         * modules/dup2 (Makefile.am): Likewise.
90225         * modules/eealloc (Makefile.am): Likewise.
90226         * modules/error (Makefile.am): Likewise.
90227         * modules/euidaccess (Makefile.am): Likewise.
90228         * modules/exclude (Makefile.am): Likewise.
90229         * modules/exitfail (Makefile.am): Likewise.
90230         * modules/fcntl-safer (Makefile.am): Likewise.
90231         * modules/fcntl (Makefile.am): Likewise.
90232         * modules/file-type (Makefile.am): Likewise.
90233         * modules/fileblocks (Makefile.am): Likewise.
90234         * modules/filemode (Makefile.am): Likewise.
90235         * modules/filenamecat (Makefile.am): Likewise.
90236         * modules/fnmatch (Makefile.am): Likewise.
90237         * modules/fopen-safer (Makefile.am): Likewise.
90238         * modules/fpending (Makefile.am): Likewise.
90239         * modules/fprintftime (Makefile.am): Likewise.
90240         * modules/free (Makefile.am): Likewise.
90241         * modules/fsusage (Makefile.am): Likewise.
90242         * modules/ftruncate (Makefile.am): Likewise.
90243         * modules/fts (Makefile.am): Likewise.
90244         * modules/gc-arcfour (Makefile.am): Likewise.
90245         * modules/gc-des (Makefile.am): Likewise.
90246         * modules/gc-hmac-md5 (Makefile.am): Likewise.
90247         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
90248         * modules/gc-md4 (Makefile.am): Likewise.
90249         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
90250         * modules/gc-sha1 (Makefile.am): Likewise.
90251         * modules/gc (Makefile.am): Likewise.
90252         * modules/getaddrinfo (Makefile.am): Likewise.
90253         * modules/getcwd (Makefile.am): Likewise.
90254         * modules/getdelim (Makefile.am): Likewise.
90255         * modules/getdomainname (Makefile.am): Likewise.
90256         * modules/getgroups (Makefile.am): Likewise.
90257         * modules/gethostname (Makefile.am): Likewise.
90258         * modules/gethrxtime (Makefile.am): Likewise.
90259         * modules/getline (Makefile.am): Likewise.
90260         * modules/getloadavg (Makefile.am): Likewise.
90261         * modules/getlogin_r (Makefile.am): Likewise.
90262         * modules/getndelim2 (Makefile.am): Likewise.
90263         * modules/getopt (Makefile.am): Likewise.
90264         * modules/getpagesize (Makefile.am): Likewise.
90265         * modules/getpass-gnu (Makefile.am): Likewise.
90266         * modules/getpass (Makefile.am): Likewise.
90267         * modules/getsubopt (Makefile.am): Likewise.
90268         * modules/gettime (Makefile.am): Likewise.
90269         * modules/gettimeofday (Makefile.am): Likewise.
90270         * modules/getugroups (Makefile.am): Likewise.
90271         * modules/getusershell (Makefile.am): Likewise.
90272         * modules/glob (Makefile.am): Likewise.
90273         * modules/group-member (Makefile.am): Likewise.
90274         * modules/hard-locale (Makefile.am): Likewise.
90275         * modules/hash (Makefile.am): Likewise.
90276         * modules/hmac-md5 (Makefile.am): Likewise.
90277         * modules/hmac-sha1 (Makefile.am): Likewise.
90278         * modules/human (Makefile.am): Likewise.
90279         * modules/idcache (Makefile.am): Likewise.
90280         * modules/imaxabs (Makefile.am): Likewise.
90281         * modules/imaxdiv (Makefile.am): Likewise.
90282         * modules/inet_ntop (Makefile.am): Likewise.
90283         * modules/inet_pton (Makefile.am): Likewise.
90284         * modules/intprops (Makefile.am): Likewise.
90285         * modules/inttostr (Makefile.am): Likewise.
90286         * modules/inttypes (Makefile.am): Likewise.
90287         * modules/isapipe (Makefile.am): Likewise.
90288         * modules/javaversion (Makefile.am): Likewise.
90289         * modules/lchmod (Makefile.am): Likewise.
90290         * modules/lchown (Makefile.am): Likewise.
90291         * modules/localcharset (Makefile.am): Likewise.
90292         * modules/long-options (Makefile.am): Likewise.
90293         * modules/lstat (Makefile.am): Likewise.
90294         * modules/malloc (Makefile.am): Likewise.
90295         * modules/mathl (Makefile.am): Likewise.
90296         * modules/mbchar (Makefile.am): Likewise.
90297         * modules/md2 (Makefile.am): Likewise.
90298         * modules/md4 (Makefile.am): Likewise.
90299         * modules/md5 (Makefile.am): Likewise.
90300         * modules/memcasecmp (Makefile.am): Likewise.
90301         * modules/memchr (Makefile.am): Likewise.
90302         * modules/memcmp (Makefile.am): Likewise.
90303         * modules/memcoll (Makefile.am): Likewise.
90304         * modules/memcpy (Makefile.am): Likewise.
90305         * modules/memmem (Makefile.am): Likewise.
90306         * modules/memmove (Makefile.am): Likewise.
90307         * modules/mempcpy (Makefile.am): Likewise.
90308         * modules/memrchr (Makefile.am): Likewise.
90309         * modules/memset (Makefile.am): Likewise.
90310         * modules/memxor (Makefile.am): Likewise.
90311         * modules/mkancesdirs (Makefile.am): Likewise.
90312         * modules/mkdir-p (Makefile.am): Likewise.
90313         * modules/mkdir (Makefile.am): Likewise.
90314         * modules/mkdtemp (Makefile.am): Likewise.
90315         * modules/mkstemp (Makefile.am): Likewise.
90316         * modules/mktime (Makefile.am): Likewise.
90317         * modules/modechange (Makefile.am): Likewise.
90318         * modules/mountlist (Makefile.am): Likewise.
90319         * modules/nanosleep (Makefile.am): Likewise.
90320         * modules/obstack (Makefile.am): Likewise.
90321         * modules/openat (Makefile.am): Likewise.
90322         * modules/pagealign_alloc (Makefile.am): Likewise.
90323         * modules/pathmax (Makefile.am): Likewise.
90324         * modules/physmem (Makefile.am): Likewise.
90325         * modules/poll (Makefile.am): Likewise.
90326         * modules/posixtm (Makefile.am): Likewise.
90327         * modules/posixver (Makefile.am): Likewise.
90328         * modules/putenv (Makefile.am): Likewise.
90329         * modules/quote (Makefile.am): Likewise.
90330         * modules/quotearg (Makefile.am): Likewise.
90331         * modules/raise (Makefile.am): Likewise.
90332         * modules/read-file (Makefile.am): Likewise.
90333         * modules/readline (Makefile.am): Likewise.
90334         * modules/readlink (Makefile.am): Likewise.
90335         * modules/readtokens (Makefile.am): Likewise.
90336         * modules/readutmp (Makefile.am): Likewise.
90337         * modules/realloc (Makefile.am): Likewise.
90338         * modules/regex (Makefile.am): Likewise.
90339         * modules/rename-dest-slash (Makefile.am): Likewise.
90340         * modules/rename (Makefile.am): Likewise.
90341         * modules/rijndael (Makefile.am): Likewise.
90342         * modules/rmdir (Makefile.am): Likewise.
90343         * modules/rpmatch (Makefile.am): Likewise.
90344         * modules/safe-read (Makefile.am): Likewise.
90345         * modules/safe-write (Makefile.am): Likewise.
90346         * modules/same-inode (Makefile.am): Likewise.
90347         * modules/same (Makefile.am): Likewise.
90348         * modules/save-cwd (Makefile.am): Likewise.
90349         * modules/savedir (Makefile.am): Likewise.
90350         * modules/setenv (Makefile.am): Likewise.
90351         * modules/settime (Makefile.am): Likewise.
90352         * modules/sha1 (Makefile.am): Likewise.
90353         * modules/sig2str (Makefile.am): Likewise.
90354         * modules/snprintf (Makefile.am): Likewise.
90355         * modules/stat-macros (Makefile.am): Likewise.
90356         * modules/stat-time (Makefile.am): Likewise.
90357         * modules/stdbool (Makefile.am): Likewise.
90358         * modules/stdint (Makefile.am): Likewise.
90359         * modules/stdlib-safer (Makefile.am): Likewise.
90360         * modules/stpcpy (Makefile.am): Likewise.
90361         * modules/stpncpy (Makefile.am): Likewise.
90362         * modules/strcase (Makefile.am): Likewise.
90363         * modules/strcasestr (Makefile.am): Likewise.
90364         * modules/strchrnul (Makefile.am): Likewise.
90365         * modules/strcspn (Makefile.am): Likewise.
90366         * modules/strdup (Makefile.am): Likewise.
90367         * modules/strerror (Makefile.am): Likewise.
90368         * modules/strftime (Makefile.am): Likewise.
90369         * modules/strndup (Makefile.am): Likewise.
90370         * modules/strnlen (Makefile.am): Likewise.
90371         * modules/strpbrk (Makefile.am): Likewise.
90372         * modules/strsep (Makefile.am): Likewise.
90373         * modules/strstr (Makefile.am): Likewise.
90374         * modules/strtod (Makefile.am): Likewise.
90375         * modules/strtoimax (Makefile.am): Likewise.
90376         * modules/strtok_r (Makefile.am): Likewise.
90377         * modules/strtol (Makefile.am): Likewise.
90378         * modules/strtoll (Makefile.am): Likewise.
90379         * modules/strtoul (Makefile.am): Likewise.
90380         * modules/strtoull (Makefile.am): Likewise.
90381         * modules/strtoumax (Makefile.am): Likewise.
90382         * modules/strverscmp (Makefile.am): Likewise.
90383         * modules/sys_socket (Makefile.am): Likewise.
90384         * modules/sys_stat (Makefile.am): Likewise.
90385         * modules/sysexits (Makefile.am): Likewise.
90386         * modules/time_r (Makefile.am): Likewise.
90387         * modules/timegm (Makefile.am): Likewise.
90388         * modules/timespec (Makefile.am): Likewise.
90389         * modules/tmpfile-safer (Makefile.am): Likewise.
90390         * modules/trim (Makefile.am): Likewise.
90391         * modules/unistd-safer (Makefile.am): Likewise.
90392         * modules/unlinkdir (Makefile.am): Likewise.
90393         * modules/unlocked-io (Makefile.am): Likewise.
90394         * modules/userspec (Makefile.am): Likewise.
90395         * modules/utime (Makefile.am): Likewise.
90396         * modules/utimecmp (Makefile.am): Likewise.
90397         * modules/utimens (Makefile.am): Likewise.
90398         * modules/vasnprintf (Makefile.am): Likewise.
90399         * modules/vasprintf (Makefile.am): Likewise.
90400         * modules/vsnprintf (Makefile.am): Likewise.
90401         * modules/xalloc (Makefile.am): Likewise.
90402         * modules/xgetcwd (Makefile.am): Likewise.
90403         * modules/xnanosleep (Makefile.am): Likewise.
90404         * modules/xreadlink (Makefile.am): Likewise.
90405         * modules/xstrtod (Makefile.am): Likewise.
90406         * modules/xstrtol (Makefile.am): Likewise.
90407         * modules/xstrtold (Makefile.am): Likewise.
90408         * modules/yesno (Makefile.am): Likewise.
90409         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
90411 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90413         * modules/error (Makefile.am): Distribute files through
90414         EXTRA_DIST, not lib_SOURCES.
90416 2006-10-12  Eric Blake  <ebb9@byu.net>
90418         * modules/error (Makefile.am): Distribute files in /lib.
90419         * modules/obstack (Makefile.am): Likewise.
90421 2006-10-12  Bruno Haible  <bruno@clisp.org>
90423         * modules/acl (Makefile.am): Distribute all files in lib/ through
90424         EXTRA_DIST.
90425         * modules/arcfour (Makefile.am): Likewise.
90426         * modules/arctwo (Makefile.am): Likewise.
90427         * modules/argmatch (Makefile.am): Likewise.
90428         * modules/argz (Makefile.am): Likewise.
90429         * modules/atexit (Makefile.am): Likewise.
90430         * modules/backupfile (Makefile.am): Likewise.
90431         * modules/c-strtod (Makefile.am): Likewise.
90432         * modules/c-strtold (Makefile.am): Likewise.
90433         * modules/calloc (Makefile.am): Likewise.
90434         * modules/canon-host (Makefile.am): Likewise.
90435         * modules/canonicalize (Makefile.am): Likewise.
90436         * modules/chdir-long (Makefile.am): Likewise.
90437         * modules/chdir-safer (Makefile.am): Likewise.
90438         * modules/check-version (Makefile.am): Likewise.
90439         * modules/chown (Makefile.am): Likewise.
90440         * modules/cloexec (Makefile.am): Likewise.
90441         * modules/close-stream (Makefile.am): Likewise.
90442         * modules/closeout (Makefile.am): Likewise.
90443         * modules/crc (Makefile.am): Likewise.
90444         * modules/cycle-check (Makefile.am): Likewise.
90445         * modules/des (Makefile.am): Likewise.
90446         * modules/dirfd (Makefile.am): Likewise.
90447         * modules/dirname (Makefile.am): Likewise.
90448         * modules/dup2 (Makefile.am): Likewise.
90449         * modules/euidaccess (Makefile.am): Likewise.
90450         * modules/exclude (Makefile.am): Likewise.
90451         * modules/exitfail (Makefile.am): Likewise.
90452         * modules/fcntl-safer (Makefile.am): Likewise.
90453         * modules/file-type (Makefile.am): Likewise.
90454         * modules/fileblocks (Makefile.am): Likewise.
90455         * modules/filemode (Makefile.am): Likewise.
90456         * modules/filenamecat (Makefile.am): Likewise.
90457         * modules/fnmatch (Makefile.am): Likewise.
90458         * modules/fopen-safer (Makefile.am): Likewise.
90459         * modules/fpending (Makefile.am): Likewise.
90460         * modules/fprintftime (Makefile.am): Likewise.
90461         * modules/free (Makefile.am): Likewise.
90462         * modules/fsusage (Makefile.am): Likewise.
90463         * modules/ftruncate (Makefile.am): Likewise.
90464         * modules/fts (Makefile.am): Likewise.
90465         * modules/gc (Makefile.am): Likewise.
90466         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
90467         * modules/getaddrinfo (Makefile.am): Likewise.
90468         * modules/getcwd (Makefile.am): Likewise.
90469         * modules/getdelim (Makefile.am): Likewise.
90470         * modules/getdomainname (Makefile.am): Likewise.
90471         * modules/getgroups (Makefile.am): Likewise.
90472         * modules/gethostname (Makefile.am): Likewise.
90473         * modules/gethrxtime (Makefile.am): Likewise.
90474         * modules/getline (Makefile.am): Likewise.
90475         * modules/getloadavg (Makefile.am): Likewise.
90476         * modules/getlogin_r (Makefile.am): Likewise.
90477         * modules/getopt (Makefile.am): Likewise.
90478         * modules/getpass (Makefile.am): Likewise.
90479         * modules/getpass-gnu (Makefile.am): Likewise.
90480         * modules/getsubopt (Makefile.am): Likewise.
90481         * modules/gettime (Makefile.am): Likewise.
90482         * modules/gettimeofday (Makefile.am): Likewise.
90483         * modules/getugroups (Makefile.am): Likewise.
90484         * modules/getusershell (Makefile.am): Likewise.
90485         * modules/glob (Makefile.am): Likewise.
90486         * modules/group-member (Makefile.am): Likewise.
90487         * modules/hard-locale (Makefile.am): Likewise.
90488         * modules/hash (Makefile.am): Likewise.
90489         * modules/hmac-md5 (Makefile.am): Likewise.
90490         * modules/hmac-sha1 (Makefile.am): Likewise.
90491         * modules/human (Makefile.am): Likewise.
90492         * modules/idcache (Makefile.am): Likewise.
90493         * modules/imaxabs (Makefile.am): Likewise.
90494         * modules/imaxdiv (Makefile.am): Likewise.
90495         * modules/inet_ntop (Makefile.am): Likewise.
90496         * modules/inet_pton (Makefile.am): Likewise.
90497         * modules/inttostr (Makefile.am): Likewise.
90498         * modules/isapipe (Makefile.am): Likewise.
90499         * modules/lchown (Makefile.am): Likewise.
90500         * modules/long-options (Makefile.am): Likewise.
90501         * modules/lstat (Makefile.am): Likewise.
90502         * modules/malloc (Makefile.am): Likewise.
90503         * modules/mathl (Makefile.am): Likewise.
90504         * modules/mbchar (Makefile.am): Likewise.
90505         * modules/md2 (Makefile.am): Likewise.
90506         * modules/md4 (Makefile.am): Likewise.
90507         * modules/md5 (Makefile.am): Likewise.
90508         * modules/memcasecmp (Makefile.am): Likewise.
90509         * modules/memchr (Makefile.am): Likewise.
90510         * modules/memcmp (Makefile.am): Likewise.
90511         * modules/memcoll (Makefile.am): Likewise.
90512         * modules/memcpy (Makefile.am): Likewise.
90513         * modules/memmem (Makefile.am): Likewise.
90514         * modules/memmove (Makefile.am): Likewise.
90515         * modules/mempcpy (Makefile.am): Likewise.
90516         * modules/memrchr (Makefile.am): Likewise.
90517         * modules/memset (Makefile.am): Likewise.
90518         * modules/memxor (Makefile.am): Likewise.
90519         * modules/mkancesdirs (Makefile.am): Likewise.
90520         * modules/mkdir (Makefile.am): Likewise.
90521         * modules/mkdir-p (Makefile.am): Likewise.
90522         * modules/mkdtemp (Makefile.am): Likewise.
90523         * modules/mkstemp (Makefile.am): Likewise.
90524         * modules/mktime (Makefile.am): Likewise.
90525         * modules/modechange (Makefile.am): Likewise.
90526         * modules/mountlist (Makefile.am): Likewise.
90527         * modules/nanosleep (Makefile.am): Likewise.
90528         * modules/openat (Makefile.am): Likewise.
90529         * modules/pagealign_alloc (Makefile.am): Likewise.
90530         * modules/physmem (Makefile.am): Likewise.
90531         * modules/poll (Makefile.am): Likewise.
90532         * modules/posixtm (Makefile.am): Likewise.
90533         * modules/posixver (Makefile.am): Likewise.
90534         * modules/putenv (Makefile.am): Likewise.
90535         * modules/quote (Makefile.am): Likewise.
90536         * modules/quotearg (Makefile.am): Likewise.
90537         * modules/raise (Makefile.am): Likewise.
90538         * modules/read-file (Makefile.am): Likewise.
90539         * modules/readline (Makefile.am): Likewise.
90540         * modules/readlink (Makefile.am): Likewise.
90541         * modules/readtokens (Makefile.am): Likewise.
90542         * modules/readutmp (Makefile.am): Likewise.
90543         * modules/realloc (Makefile.am): Likewise.
90544         * modules/regex (Makefile.am): Likewise.
90545         * modules/rename (Makefile.am): Likewise.
90546         * modules/rename-dest-slash (Makefile.am): Likewise.
90547         * modules/rijndael (Makefile.am): Likewise.
90548         * modules/rmdir (Makefile.am): Likewise.
90549         * modules/rpmatch (Makefile.am): Likewise.
90550         * modules/safe-read (Makefile.am): Likewise.
90551         * modules/safe-write (Makefile.am): Likewise.
90552         * modules/same (Makefile.am): Likewise.
90553         * modules/save-cwd (Makefile.am): Likewise.
90554         * modules/savedir (Makefile.am): Likewise.
90555         * modules/setenv (Makefile.am): Likewise.
90556         * modules/settime (Makefile.am): Likewise.
90557         * modules/sha1 (Makefile.am): Likewise.
90558         * modules/sig2str (Makefile.am): Likewise.
90559         * modules/snprintf (Makefile.am): Likewise.
90560         * modules/stdlib-safer (Makefile.am): Likewise.
90561         * modules/stpcpy (Makefile.am): Likewise.
90562         * modules/stpncpy (Makefile.am): Likewise.
90563         * modules/strcase (Makefile.am): Likewise.
90564         * modules/strcasestr (Makefile.am): Likewise.
90565         * modules/strchrnul (Makefile.am): Likewise.
90566         * modules/strcspn (Makefile.am): Likewise.
90567         * modules/strdup (Makefile.am): Likewise.
90568         * modules/strerror (Makefile.am): Likewise.
90569         * modules/strftime (Makefile.am): Likewise.
90570         * modules/strndup (Makefile.am): Likewise.
90571         * modules/strnlen (Makefile.am): Likewise.
90572         * modules/strpbrk (Makefile.am): Likewise.
90573         * modules/strsep (Makefile.am): Likewise.
90574         * modules/strstr (Makefile.am): Likewise.
90575         * modules/strtod (Makefile.am): Likewise.
90576         * modules/strtoimax (Makefile.am): Likewise.
90577         * modules/strtok_r (Makefile.am): Likewise.
90578         * modules/strtol (Makefile.am): Likewise.
90579         * modules/strtoll (Makefile.am): Likewise.
90580         * modules/strtoul (Makefile.am): Likewise.
90581         * modules/strtoull (Makefile.am): Likewise.
90582         * modules/strtoumax (Makefile.am): Likewise.
90583         * modules/strverscmp (Makefile.am): Likewise.
90584         * modules/time_r (Makefile.am): Likewise.
90585         * modules/timegm (Makefile.am): Likewise.
90586         * modules/tmpfile-safer (Makefile.am): Likewise.
90587         * modules/unistd-safer (Makefile.am): Likewise.
90588         * modules/unlinkdir (Makefile.am): Likewise.
90589         * modules/userspec (Makefile.am): Likewise.
90590         * modules/utime (Makefile.am): Likewise.
90591         * modules/utimecmp (Makefile.am): Likewise.
90592         * modules/utimens (Makefile.am): Likewise.
90593         * modules/vasnprintf (Makefile.am): Likewise.
90594         * modules/vasprintf (Makefile.am): Likewise.
90595         * modules/vsnprintf (Makefile.am): Likewise.
90596         * modules/xalloc (Makefile.am): Likewise.
90597         * modules/xgetcwd (Makefile.am): Likewise.
90598         * modules/xnanosleep (Makefile.am): Likewise.
90599         * modules/xreadlink (Makefile.am): Likewise.
90600         * modules/xstrtod (Makefile.am): Likewise.
90601         * modules/xstrtol (Makefile.am): Likewise.
90602         * modules/xstrtold (Makefile.am): Likewise.
90603         * modules/yesno (Makefile.am): Likewise.
90605 2006-10-12  Jim Meyering  <jim@meyering.net>
90607         * m4/getloadavg.m4: Revert the change below.
90609         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
90610         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
90611         fail with a symlink, which is what coreutils' ./bootstrap now
90612         creates by default.
90614 2006-10-12  Bruno Haible  <bruno@clisp.org>
90616         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
90617         mingw.
90618         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
90619         MSVC and mingw explicitly.
90621 2006-10-11  Simon Josefsson  <jas@extundo.com>
90622             Bruno Haible  <bruno@clisp.org>
90624         Add support for multiple gnulib-tool invocations in the scope of a
90625         single configure.ac file.
90626         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
90627         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
90628         with the same contents as the _LIBADD variable.
90629         (func_emit_initmacro_start, func_emit_initmacro_end,
90630         func_emit_initmacro_done): New functions.
90631         (func_import, func_create_testdir): Invoke them. Allow the identifiers
90632         gl_LIBOBJS and gl_LTLIBOBJS.
90634 2006-10-11  Bruno Haible  <bruno@clisp.org>
90636         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
90637         (func_create_testdir): Don't create po/Makefile.am, don't invoke
90638         autoreconf. Instead, invoke autopoint explicitly but move back the
90639         *.m4 files from gnulib.
90641 2006-10-11  Bruno Haible  <bruno@clisp.org>
90643         * gnulib-tool (func_usage): Make module names after --create-testdir
90644         optional.
90645         (func_create_testdir): If no module was specified, use nearly all
90646         modules.
90648 2006-10-12  Jim Meyering  <jim@meyering.net>
90650         Big performance improvement for fts-based tools that use FTS_NOSTAT.
90651         Avoid spurious inode-mismatch problems on non-POSIX file systems.
90652         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
90653         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
90654         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
90655         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
90656         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
90657         (fts_set_stat_required): New function.
90658         (fts_open): Defer the calls to fts_stat, if possible or requested.
90659         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
90660         into fts_stat itself.
90661         (fts_read): Perform any required (deferred) fts_stat call.
90662         (fts_build): Likewise, for the directory we're about to open and read.
90663         In the readdir loop, carefully decide whether each entry will require
90664         an eventual call to fts_stat, using dirent.d_type info if available.
90665         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
90666         a command line argument into this function.  Update all callers.
90667         Map a return value of FTS_DOT to FTS_D for a command line argument.
90668         * modules/fts (Depends-on): Add d-type.  Alphabetize.
90669         Thanks to Miklos Szeredi for his tenacity and for the initial
90670         bug report about "find" failing on a FUSE-based file system.
90672         * lib/fts.c (fts_open): Use consistent indentation.
90674 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
90677         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
90678         reported by Jim Meyering.  All uses of cache variables renamed
90679         to match Autoconf's.
90680         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
90681         the other one.
90683         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
90684         Fix misspelling in diagnostic.
90686 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90688         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
90689         defined.  Problem reported by Matthew Woehlke.
90691         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
90692         Add support for Tandem NonStop R series.
90693         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
90694         Use new macro.
90696         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
90697         (has_trailing_slash): Omit size arg; all callers changed.
90698         Omit 'inline', since it doesn't help performance and we'd
90699         need to configure it.
90700         Don't count //, ///, etc. as having a trailing slash.
90701         As a side effect, this removes a C99ism reported by Matthew Woehlke.
90702         (rpl_rename_dest_slash): On failure, use rename's errno rather
90703         than (in some cases) an incorrect or junk errno.
90704         Simplify code by removing need to compute length; this does
90705         cause it to make two passes instead of one over the file name,
90706         but it's worth it.
90708         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
90709         change, since Autoconf's version may no longer be appropriate now
90710         that we are using CVS Autoconf's version.  Add support for Tandem.
90712 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90713             Bruno Haible  <bruno@clisp.org>
90715         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
90716         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
90717         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
90718         gl_AC_TYPE_LONG_LONG.
90720         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
90721         instead of HAVE_LONG_LONG.
90722         * lib/printf-args.c (printf_fetchargs): Likewise.
90723         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
90724         * lib/vasnprintf.c (VASNPRINTF): Likewise.
90725         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
90726         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
90727         gl_AC_TYPE_LONG_LONG.
90729 2006-10-11  Bruno Haible  <bruno@clisp.org>
90731         * m4/longlong.m4: Add comments.
90732         * m4/ulonglong.m4: Likewise.
90734 2006-10-10  Bruno Haible  <bruno@clisp.org>
90736         Make it possible to #define stpcpy, strdup to aliases.
90737         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
90738         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
90740 2006-10-10  Bruno Haible  <bruno@clisp.org>
90742         Make it possible to #define gcd to an alias.
90743         * lib/gcd.c: Include config.h.
90745 2006-10-10  Bruno Haible  <bruno@clisp.org>
90747         Make it possible to #define c_isascii to an alias.
90748         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
90749         defined. Undefine the macros before defining them, to avoid gcc
90750         warnings.
90751         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
90752         define NO_C_CTYPE_MACROS early.
90754 2006-10-10  Bruno Haible  <bruno@clisp.org>
90756         Make it possible to #define set_program_name to an alias.
90757         * lib/progname.c: Don't undefine set_program_name; instead, undefine
90758         ENABLE_RELOCATABLE early.
90760 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90762         Port to Tandem NSK OSS, which has 64-bit signed int but at most
90763         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
90764         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
90765         More generally, don't assume that 64-bit signed int is available
90766         if unsigned int is, and vice versa.
90767         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
90768         unsigned symbols, not on their signed counterparts.
90769         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
90770         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
90771         (UINT64_C, UINTMAX_C):
90772         Likewise.
90773         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
90774         unsigned counterparts.
90775         (Have_long_long, Unsigned): New macros.
90776         (Int): Renamed from INT.
90777         (strtoimax): Use the new macros.
90778         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
90779         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
90780         * modules/inttypes (inttypes.h): Substitute
90781         HAVE_UNSIGNED_LONG_LONG_INT.
90782         * modules/stdint (stdint.h): Likewise.
90783         (Files): Add m4/ulonglong.m4.
90785 2006-10-10  Bruno Haible  <bruno@clisp.org>
90787         Fix a gcc -Wshadow warning.
90788         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
90789         to 'bucket'.
90790         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
90791         gl_linked_indexof_from_to): Likewise.
90792         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
90793         Likewise.
90794         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
90795         Likewise.
90796         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
90797         Reported by Eric Blake.
90799 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
90801         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
90802         for NetBSD.  Problem reported by Bruno Haible.
90804 2006-10-09  Jim Meyering  <jim@meyering.net>
90806         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
90807         Patch from Bruno Haible.
90809 2006-10-09  Jim Meyering  <jim@meyering.net>
90811         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
90812         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
90813         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
90815 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90817         Don't include <config.h> twice; this doesn't work in some cases,
90818         e.g., when config.h has "#define intmax_t long long int" and
90819         we include <config.h>, <inttypes.h>, <config.h> in that order.
90820         Problem reported by Matthew Woehlke in:
90821         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
90822         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
90823         * lib/fts-cycle.c: Don't include config.h.
90824         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
90825         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
90826         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
90827         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
90828         inttypes.h.
90829         * lib/xstrtoumax.c: Likewise.
90830         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
90831         __strtol and the like, so that this module is more like its siblings.
90832         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
90833         Remove; no longer needed now that we assume gnulib inttypes.h.
90835 2006-10-08  Bruno Haible  <bruno@clisp.org>
90837         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
90838         option.
90840 2006-10-07  Jim Meyering  <jim@meyering.net>
90842         * modules/inttypes (inttypes.h): Revert what seems to have been
90843         an inadvertent part of today's change: use "|", not "/" in the
90844         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
90846 2006-10-07  Bruno Haible  <bruno@clisp.org>
90848         * modules/sublist: New file.
90850 2006-10-07  Bruno Haible  <bruno@clisp.org>
90852         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
90853         * modules/argz (argz.h): Likewise.
90854         * modules/arpa_inet (arpa/inet.h): Likewise.
90855         * modules/byteswap (byteswap.h): Likewise.
90856         * modules/configmake (configmake.h): Likewise.
90857         * modules/fcntl (fcntl.h): Likewise.
90858         * modules/fnmatch (fnmatch.h): Likewise.
90859         * modules/getopt (getopt.h): Likewise.
90860         * modules/glob (glob.h): Likewise.
90861         * modules/inttypes (inttypes.h): Likewise.
90862         * modules/netinet_in (netinet/in.h): Likewise.
90863         * modules/poll (poll.h): Likewise.
90864         * modules/stdbool (stdbool.h): Likewise.
90865         * modules/stdint (stdint.h): Likewise.
90866         * modules/sys_select (sys/select.h): Likewise.
90867         * modules/sys_socket (sys/socket.h): Likewise.
90868         * modules/sys_stat (sys/stat.h): Likewise.
90869         * modules/sysexits (sysexits.h): Likewise.
90870         * modules/unistd (unistd.h): Likewise.
90871         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90872         Add a "DO NOT EDIT" comment to the generated file.
90873         (func_import): Likewise for gnulib-comp.m4.
90875 2006-10-07  Bruno Haible  <bruno@clisp.org>
90877         * lib/gl_sublist.h: New file.
90878         * lib/gl_sublist.c: New file.
90880 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90882         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
90883         name (relative to the original working directory) and the file
90884         name component (relative to the temporary working directory).  All
90885         callers changed.
90886         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
90887         * lib/mkdir-p.c (make_dir_parents): Likewise.
90888         * lib/mkdir-p.h (make_dir_parents): Likewise.
90890 2006-10-06  Eric Blake  <ebb9@byu.net>
90892         Define several macros for use by the clean-temp module.
90893         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
90894         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
90895         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
90897         * lib/clean-temp.h (close_stream_temp): New declaration.
90898         * lib/clean-temp.c (includes): Pull in headers according to what
90899         other modules are in use.
90900         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
90902 2006-10-06  Bruno Haible  <bruno@clisp.org>
90904         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
90905         instead of fopen, fwriteerror.
90907 2006-10-06  Bruno Haible  <bruno@clisp.org>
90909         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
90910         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
90911         int.
90912         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
90913         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
90914         Return an error indicator.
90915         Suggested by Eric Blake.
90917 2006-10-06  Bruno Haible  <bruno@clisp.org>
90919         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
90920         Reported by Eric Blake.
90922 2006-10-06  Bruno Haible  <bruno@clisp.org>
90924         * modules/closeout (Description): Mention stderr too.
90926 2006-10-06  Bruno Haible  <bruno@clisp.org>
90927         and Paul Eggert  <eggert@cs.ucla.edu>
90929         * lib/closeout.c (close_stdout): Also close stderr.
90930         * lib/closeout.h: Update comment.
90932 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
90934         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
90935         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
90936         * lib/dirchownmod.c: Include lchown.h.
90937         * lib/lchown.c: Don't include files that lchown.h now includes.
90938         Don't declare chown, since lchown.h now does that.
90939         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
90940         (lchown): Define to rpl_chown if lchown is declared but
90941         does not exist.  Declare using a prototype if lchown is not
90942         declared.  Add a copyright notice.
90943         * lib/mkstemp.h: Include <unistd.h>.
90944         * lib/openat.c: Include lchown.h.
90946         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
90947         we now test for that separately.
90948         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
90949         rather than O_NOFOLLOW, when testing whether it's possible to
90950         avoid a race condition reliably.
90951         * lib/savewd.c (savewd_chdir): Likewise.
90953         Remove macros that are no longer needed now that stdint.h is
90954         reliable.
90955         * lib/fsusage.c (UINTMAX_MAX): Remove.
90956         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
90957         * lib/utimecmp.c (SIZE_MAX): Remove.
90959         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
90961         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
90962         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
90963         O_NOATIME works.
90965 2006-10-05  Bruno Haible  <bruno@clisp.org>
90967         * lib/gl_list.h (gl_sortedlist_search_from_to,
90968         gl_sortedlist_indexof_from_to): New declarations.
90969         (gl_list_implementation): New fields sortedlist_search_from_to,
90970         sortedlist_indexof_from_to.
90971         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
90972         inline functions.
90973         * lib/gl_list.c (gl_sortedlist_search_from_to,
90974         gl_sortedlist_indexof_from_to): New functions.
90975         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
90976         function.
90977         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
90978         (gl_array_sortedlist_search_from_to): New function.
90979         (gl_array_list_implementation): Update.
90980         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
90981         function.
90982         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
90983         (gl_carray_sortedlist_search_from_to): New function.
90984         (gl_carray_list_implementation): Update.
90985         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
90986         gl_linked_sortedlist_indexof_from_to): New functions.
90987         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90988         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90989         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
90990         gl_tree_sortedlist_indexof_from_to): New functions.
90991         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90992         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90993         Update.
90994         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90995         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
90996         Update.
90998 2006-10-05  Bruno Haible  <bruno@clisp.org>
91000         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
91001         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
91002         (struct gl_list_implementation): Add fields search_from_to,
91003         indexof_from_to. Remove fields search, indexof.
91004         (gl_list_search): Use the search_from_to method.
91005         (gl_list_search_from, gl_list_search_from_to): New functions.
91006         (gl_list_indexof): Use the indexof_from_to method.
91007         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
91008         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
91009         (gl_list_search_from, gl_list_search_from_to): New functions.
91010         (gl_list_indexof): Use the indexof_from_to method.
91011         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
91012         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
91013         gl_array_indexof. Add start_index, end_index arguments.
91014         (gl_array_search_from_to): Renamed from gl_array_search. Add
91015         start_index, end_index arguments.
91016         (gl_array_remove, gl_array_list_implementation): Update.
91017         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
91018         gl_carray_indexof. Add start_index, end_index arguments.
91019         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
91020         start_index, end_index arguments.
91021         (gl_carray_remove, gl_carray_list_implementation): Update.
91022         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
91023         gl_linked_search. Add start_index, end_index arguments.
91024         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
91025         start_index, end_index arguments.
91026         (gl_linked_remove): Update.
91027         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
91028         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
91029         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
91030         field to 'size_t'.
91031         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
91032         gl_tree_search. Add start_index, end_index arguments.
91033         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
91034         start_index, end_index arguments.
91035         (gl_tree_remove): Update.
91036         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
91037         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
91038         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
91039         function.
91040         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
91041         gl_tree_search. Add start_index, end_index arguments.
91042         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
91043         start_index, end_index arguments.
91044         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
91045         Update.
91046         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
91048 2006-10-05  Bruno Haible  <bruno@clisp.org>
91050         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
91052         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
91053         fwriteerror_temp): New declarations.
91054         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
91055         (descriptors): New variable.
91056         (cleanup): First, close the descriptors.
91057         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
91058         fclose_temp, fwriteerror_temp): New functions.
91060 2006-10-04  Jim Meyering  <jim@meyering.net>
91062         * lib/fts.c (fts_open): Tiny comment change.
91064 2006-10-04  Bruno Haible  <bruno@clisp.org>
91066         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
91067         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
91068         gl_LOCK_BODY.
91069         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
91070         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
91071         gl_LOCK_EARLY_BODY.
91072         (gl_LOCK): Require gl_LOCK_BODY.
91074 2006-10-04  Bruno Haible  <bruno@clisp.org>
91076         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
91077         (gl_oset_search_atleast): New declaration.
91078         (struct gl_oset_implementation): Add field 'search_atleast'.
91079         (gl_oset_search_atleast): New inline function.
91080         * lib/gl_oset.c (gl_oset_search_atleast): New function.
91081         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
91082         (gl_array_oset_implementation): Update.
91083         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
91084         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
91085         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
91087 2006-10-04  Bruno Haible  <bruno@clisp.org>
91089         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
91091 2006-10-03  Bruno Haible  <bruno@clisp.org>
91093         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
91094         from gl_avltreehash_list_implementation.
91096 2006-10-03  Bruno Haible  <bruno@clisp.org>
91098         * lib/gl_oset.c (gl_oset_add): Fix return type.
91100 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
91102         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
91104 2006-10-02  Eric Blake  <ebb9@byu.net>
91106         * modules/strnlen (Depends-on): Add extensions.
91108 2006-10-02  Eric Blake  <ebb9@byu.net>
91110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
91111         definition in 2.60+.
91113 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
91115         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
91116         checks.
91118 2006-10-02  Bruno Haible  <bruno@clisp.org>
91120         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
91121         to the AUTOMAKE_OPTIONS.
91122         Reported by Jim Meyering.
91124 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
91126         Work around bug in Solaris 10 /proc file system:
91127         /proc/self/fd/NNN/.. isn't the parent directory of
91128         the directory whose file descriptor is NNN.  This needs to
91129         be worked around at run time, not compile time, since a
91130         program might be built on Solaris 8, where things work, and
91131         run on Solaris 10.
91132         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
91133         to use the following interface instead:
91134         (OPENAT_BUFFER_SIZE): New macro.
91135         (openat_proc_name): New function.
91136         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
91137         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
91138         Likewise.
91139         * lib/openat-proc.c: New file.
91140         * modules/openat (Files): Add lib/openat-proc.c.
91141         (Depends-on): Add same-inode, stdbool.
91142         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
91144 2006-09-29  Bruno Haible  <bruno@clisp.org>
91146         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
91147         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
91148         argument. Set stdout_closed before testing for ferror, not after.
91149         (fwriteerror, fwriteerror_no_ebadf): New functions.
91151 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91153         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
91155 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
91157         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
91158         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
91160 2006-09-28  Jim Meyering  <jim@meyering.net>
91162         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
91163         Include <unistd.h>.
91165 2006-09-28  Bruno Haible  <bruno@clisp.org>
91167         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
91168         * modules/linkedhash-list (Depends-on): Likewise.
91169         * modules/rbtreehash-list (Depends-on): Likewise.
91171 2006-09-28  Bruno Haible  <bruno@clisp.org>
91173         * lib/strndup.h: Simplify the redefinition of strndup.
91174         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
91175         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
91177 2006-09-28  Bruno Haible  <bruno@clisp.org>
91179         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
91180         * lib/gl_linkedhash_list.c: Likewise.
91181         * lib/gl_rbtreehash_list.c: Likewise.
91183 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
91185         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
91186         getaddrinfo.
91188         * lib/__fpending.h: Don't include <stdio_ext.h> unless
91189         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
91190         it causes <stdio_ext.h> to cause a compile-time error.
91191         Problem reported by Nelson H. F. Beebe.
91192         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
91193         of HAVE_DECL___PENDING.
91195         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
91196         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
91197         declaration.
91199 2006-09-27  Jim Meyering  <jim@meyering.net>
91201         This file could end up with a definition for a function
91202         named __strndup, rather than rpl_strndup on a system with
91203         incomplete weak_alias support.
91204         * lib/strndup.c (strndup): Rename from __strndup.
91205         Remove #defines that used to map __strndup to strndup.
91206         Don't use K&R prototypes.
91207         Remove LIBC-related code, since this file is not sync'd with glibc.
91208         * lib/strndup.h: Revamp, accordingly.
91209         * m4/strndup.m4: Modernize.
91211 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
91213         * modules/savewd (Depends-on): Add 'raise'.
91214         * lib/savewd.c: Include <signal.h>, for 'raise'.
91216 2006-09-26  Jim Meyering  <jim@meyering.net>
91218         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
91219         when we detect Darwin 8.7.0's acl_get_file bug.
91220         Rearrange to perform the new (below) run-test while $LIBS
91221         contains any acl-related library.  Set USE_ACL at the end.
91222         (gl_ACL_GET_FILE): New function.
91224 2006-09-26  Eric Blake  <ebb9@byu.net>
91226         * lib/verror.c: Include <config.h> unconditionally.
91228 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
91230         * modules/clock-time (Maintainer): Add self.
91231         * modules/getlogin_r (Depends-on): Add extensions.
91233 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91235         * modules/clock-time: New module.
91236         * modules/nanosleep (Depends-on): Add clock-time.
91237         * modules/gethrxtime (Depends-on): Likewise.
91238         * modules/gettime (Depends-on): Likewise.
91239         * modules/settime (Depends-on): Likewise.
91241         * modules/fts-lgpl: Depend on openat.
91242         * modules/mkancesdirs: Depend on savewd.
91243         * modules/mkdir-p: Likewise.
91245 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91247         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
91249         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
91250         `gl_have_arbitrary_file_name_length_limit' to
91251         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
91252         actually works between configure runs.
91254 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91255             Bruno Haible  <bruno@clisp.org>
91257         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
91259 2006-09-25  Jim Meyering  <jim@meyering.net>
91261         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
91262         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
91264 2006-09-25  Eric Blake  <ebb9@byu.net>
91266         * gnulib-tool (func_import, func_create_testdir): Fix typos in
91267         exec's in 2006-09-18 patch when shuffling fds.
91269 2006-09-25  Bruno Haible  <bruno@clisp.org>
91271         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
91272         Reported by Jim Meyering.
91274 2006-09-24  Jim Meyering  <jim@meyering.net>
91276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
91277         compare a pointer against a literal "0".  That caused failures with
91278         at least HP-UX's hpcc.
91280 2006-09-22  Simon Josefsson  <jas@extundo.com>
91282         * modules/gc-sha1:
91283         * modules/gc-md4:
91284         * modules/gc-hmac-sha1:
91285         * modules/gc-hmac-md5:
91286         * modules/gc-des:
91287         * modules/gc-arcfour: Distribute more files.
91289 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91291         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
91292         (gl_linked_iterator_from_to): Initialize struct completely.
91293         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
91294         (gl_tree_iterator_from_to): Likewise
91295         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
91296         * lib/gl_array_list.c [lint] (gl_array_iterator)
91297         (gl_array_iterator_from_to): Likewise.
91298         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
91299         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
91300         (gl_carray_iterator_from_to): Likewise.
91302         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
91303         * lib/md4.c (md4_process_block): Remove unused variable.
91304         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
91305         parentheses for clarity.
91307 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91309         * modules/bison-i18n (Depends-on): Add gettext.
91311 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91313         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
91314         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
91315         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
91316         also add missing comma that caused broken test.
91317         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
91318         stdlib.h, for `abort'.
91319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
91320         variables.
91321         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
91322         include unistd.h if present, for `rmdir'.
91323         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
91324         variables.
91325         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
91326         in the process include standard headers for prototypes.
91327         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
91328         gets declared on GNU/Linux.
91329         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
91330         unistd.h, for `rmdir'.
91331         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
91333         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
91334         always true.
91335         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
91337         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
91339 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91341         * gnulib-tool (func_version): Create output all at once.  This
91342         may help avoid triggering unnecessary SIGPIPEs, and at any
91343         rate it doesn't hurt.
91345 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91346             Bruno Haible  <bruno@clisp.org>
91348         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
91349         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91350         * m4/signed.m4 (bh_C_SIGNED): Likewise.
91352         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
91353         (gl_FUNC_VASPRINTF): Invoke it.
91355 2006-09-22  Bruno Haible  <bruno@clisp.org>
91357         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
91358         getloadavg.c as first argument.
91360 2006-09-22  Bruno Haible  <bruno@clisp.org>
91362         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
91363         at the beginning of the gl_INIT macro.
91364         * modules/getloadavg (configure.ac): Pass $gl_source_base to
91365         gl_GETLOADAVG.
91367 2006-09-22  Bruno Haible  <bruno@clisp.org>
91369         * gnulib-tool (func_create_megatestdir): Don't include the config-h
91370         module.
91371         Suggested by Ralf Wildenhues.
91373 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
91375         Import this patch from libc:
91377         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
91379         * lib/regex_internal.c (re_string_reconstruct): Handle
91380         offset < pstr->valid_raw_len && pstr->offsets_needed case.
91381         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
91382         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
91383         re_string_context_at.
91385         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
91386         now requires it.
91387         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
91388         gl_REGEX now does it for us.
91389         (gl_REGEX): Add test taken from
91390         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
91392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
91393         Check that large offsets work.  Modernize Autoconf usages.
91394         Prefer "yes" to mean a good thing rather than a bad.
91395         Don't put "#define mkstemp" in config.h, as this might interfere
91396         with standard system headers that "#define mkstemp mkstemp64".
91398         * modules/mkstemp (Depends-on): Add extensions, so that
91399         mkstemp is visible on some platforms.
91400         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
91401         (Include): Change to "mkstemp.h" from <stdlib.h>.
91402         (Files): Add mkstemp.h.
91404         * lib/mkstemp.h: New file, since some standard headers
91405         #define mkstemp.
91406         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
91407         Include "mkstemp.h".
91408         Make the _LIBC code resemble glibc original more,
91409         e.g., use K&R style.
91410         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
91411         (mkstemp): Remove, since mkstemp.h does this for us.
91412         * lib/stdlib--.h: Include mkstemp.h.
91414         Import this patch from libc:
91416         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
91418         * lib/tempname.c (__gen_tempname): Change attempts_min
91419         into a macro.  Use preprocessor to decide how to initialize
91420         attempts [Coverity CID 67].
91422 2006-09-20  Bruno Haible  <bruno@clisp.org>
91424         * lib/mkdtemp.c: Import from libc.
91425         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
91426                 * sysdeps/posix/tempname.c (__gen_tempname): Change
91427                 attempts_min into a macro.  Use preprocessor to decide how to
91428                 initialize attempts [Coverity CID 67].
91429         2001-11-27  Paul Eggert  <eggert@twinsun.com>
91430                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
91431                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
91433 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91435         * gnulib-tool (func_exit): New function, to allow to pass the
91436         exit status portably through the trap.  Use everywhere.
91437         (--help, --version): Signal a write error.
91438         (trap): catch SIGPIPE, for write errors.
91439         Exit at the end of the trap, with the correct exit status.
91441 2006-09-19  Karl Berry  <karl@gnu.org>
91443         * doc/gnulib.texi: note about the license texinfo files.
91445 2006-09-19  Eric Blake  <ebb9@byu.net>
91447         * gnulib-tool: Avoid space-tab.
91449 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91451         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
91452         that prevented coreutils 6.1 from building.  Problem reported
91453         by Petter Reinholdtsen.
91455 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91457         * gnulib-tool (avoidlist): Fix typo that broke options like
91458         --avoid=lock that are used by coreutils bootstrap.
91460 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
91462         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
91463         more systematically.
91465 2006-09-18  Jim Meyering  <jim@meyering.net>
91467         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
91469 2006-09-18  Bruno Haible  <bruno@clisp.org>
91471         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
91473 2006-09-18  Bruno Haible  <bruno@clisp.org>
91475         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
91476         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
91477         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
91478         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
91479         * m4/gettext.m4: Require autoconf >= 2.52.
91480         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
91481         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
91482         of gl_cv_header_inttypes_h.
91484 2006-09-18  Bruno Haible  <bruno@clisp.org>
91486         * lib/javaversion.c: Include configmake.h.
91488 2006-09-18  Bruno Haible  <bruno@clisp.org>
91490         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
91491         avoid that the while loops be executed in a subshell.
91493 2006-09-18  Bruno Haible  <bruno@clisp.org>
91495         * MODULES.html.sh (func_module): Break long lines.
91496         Suggested by Bruce Korb <bkorb@gnu.org>.
91498 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91500         Speed up by a factor of 1.12.
91501         * gnulib-tool (nl): New variable.
91502         (func_import): Rewrite include directive extraction to only read each
91503         directive once.
91505 2006-09-17  Bruno Haible  <bruno@clisp.org>
91507         * modules/javaversion (Makefile.am): Remove DEFS setting.
91508         (Depends-on): Add configmake, for PKGDATADIR definition.
91510 2006-09-17  Bruno Haible  <bruno@clisp.org>
91512         * gnulib-tool (func_create_testdir): Rewrite all files at once.
91514 2006-09-17  Bruno Haible  <bruno@clisp.org>
91516         * gnulib-tool (func_append): New function, stolen from libtool.m4.
91517         (func_modules_transitive_closure, func_modules_add_dummy,
91518         func_modules_to_filelist, func_import, func_create_testdir,
91519         func_create_megatestdir, ...): Use it wherever possible.
91520         Suggested by Ralf Wildenhues.
91522 2006-09-16  Karl Berry  <karl@gnu.org>
91524         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
91525         to avoid sectioning errors.
91526         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
91527         [ifinfo]: blank line after @center-ed titles.
91528         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
91529         Spell FSF address consistently with others.
91530         (These changes approved by rms.)
91532 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91534         Speed up by a factor of 1.61.
91535         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
91536         already checked module names again.
91538 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91540         Speed up by a factor of 1.13.
91541         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
91542         for new_files, and the input to func_add_or_update.
91544 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91546         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
91547         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
91549 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91551         * modules/mkancesdirs (Depends-on): Add fcntl.
91552         * modules/savewd: New file.
91553         * MODULES.html.sh (File system functions): Add savewd.
91555         * modules/configmake (Makefile.am): Add support for the
91556         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
91558 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91560         * m4/savewd.m4: New file.
91562 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91564         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
91565         (dirchownmod): New arg FD.  All callers changed.
91566         Use FD rather than opening the directory ourself, as opening is
91567         now the caller's responsibility.
91568         * lib/dirchownmod.h: Likewise.
91569         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
91570         hosts that require <sys/types.h> before <sys/stat.h>.  Include
91571         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
91572         (test_dir): Remove.
91573         (mkancesdirs): Return length of prefix of FILE that has already
91574         been made, or -2 if there is a child doing the work.  Redo
91575         algorithm so that it is O(N) rather than O(N**2).  Optimize away
91576         ".", and treat ".." specially since it might stray back into
91577         already-created areas.  Use a subprocess if necessary.  New arg
91578         WD; all users changed.  MAKE_DIR function should now return 1
91579         if it creates a directory that is not readable.  Return -2 if
91580         a child process is spun off.
91581         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
91582         Adjust signature to match code.
91583         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
91584         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
91585         all users changed.
91586         * lib/savewd.c, lib/savewd.h: New files.
91588 2006-09-15  Jim Meyering  <jim@meyering.net>
91590         * modules/rename-dest-slash: New module.
91591         * MODULES.html.sh (posix_compat): Add it here.
91593         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
91595 2006-09-15  Jim Meyering  <jim@meyering.net>
91597         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
91598         file.
91600         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
91602 2006-09-15  Jim Meyering  <jim@meyering.net>
91604         * lib/rename-dest-slash.c (has_trailing_slash): Use
91605         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
91606         (rpl_rename_dest_slash): Perform the cheaper trailing slash
91607         test before testing whether SRC is a directory.
91608         Suggestions from Bruno Haible.
91610         Avoid a warning about an unused variable.
91611         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
91612         into the #ifdef block where it's used.
91614         * lib/rename-dest-slash.c: New file.
91616 2006-09-14  Bruno Haible  <bruno@clisp.org>
91618         * lib/allocsa.c: Include <config.h> unconditionally.
91619         * lib/asnprintf.c: Likewise.
91620         * lib/asprintf.c: Likewise.
91621         * lib/c-strcasecmp.c: Likewise.
91622         * lib/c-strcasestr.c: Likewise.
91623         * lib/c-strncasecmp.c: Likewise.
91624         * lib/c-strstr.c: Likewise.
91625         * lib/classpath.c: Likewise.
91626         * lib/clean-temp.c: Likewise.
91627         * lib/concatpath.c: Likewise.
91628         * lib/copy-file.c: Likewise.
91629         * lib/csharpcomp.c: Likewise.
91630         * lib/csharpexec.c: Likewise.
91631         * lib/execute.c: Likewise.
91632         * lib/fatal-signal.c: Likewise.
91633         * lib/findprog.c: Likewise.
91634         * lib/fwriteerror.c: Likewise.
91635         * lib/gl_array_list.c: Likewise.
91636         * lib/gl_array_oset.c: Likewise.
91637         * lib/gl_avltree_list.c: Likewise.
91638         * lib/gl_avltree_oset.c: Likewise.
91639         * lib/gl_avltreehash_list.c: Likewise.
91640         * lib/gl_carray_list.c: Likewise.
91641         * lib/gl_linked_list.c: Likewise.
91642         * lib/gl_linkedhash_list.c: Likewise.
91643         * lib/gl_list.c: Likewise.
91644         * lib/gl_oset.c: Likewise.
91645         * lib/gl_rbtree_list.c: Likewise.
91646         * lib/gl_rbtree_oset.c: Likewise.
91647         * lib/gl_rbtreehash_list.c: Likewise.
91648         * lib/imaxabs.c: Likewise.
91649         * lib/imaxdiv.c: Likewise.
91650         * lib/javacomp.c: Likewise.
91651         * lib/javaexec.c: Likewise.
91652         * lib/javaversion.c: Likewise.
91653         * lib/linebreak.c: Likewise.
91654         * lib/localcharset.c: Likewise.
91655         * lib/lock.c: Likewise.
91656         * lib/mbchar.c: Likewise.
91657         * lib/mbswidth.c: Likewise.
91658         * lib/mkdtemp.c: Likewise.
91659         * lib/pipe.c: Likewise.
91660         * lib/printf-args.c: Likewise.
91661         * lib/printf-parse.c: Likewise.
91662         * lib/progname.c: Likewise.
91663         * lib/progreloc.c: Likewise.
91664         * lib/readlink.c: Likewise.
91665         * lib/sh-quote.c: Likewise.
91666         * lib/stpcpy.c: Likewise.
91667         * lib/stpncpy.c: Likewise.
91668         * lib/strcasecmp.c: Likewise.
91669         * lib/strcasestr.c: Likewise.
91670         * lib/strcspn.c: Likewise.
91671         * lib/striconv.c: Likewise.
91672         * lib/strncasecmp.c: Likewise.
91673         * lib/strnlen1.c: Likewise.
91674         * lib/strstr.c: Likewise.
91675         * lib/strtok_r.c: Likewise.
91676         * lib/tls.c: Likewise.
91677         * lib/tmpdir.c: Likewise.
91678         * lib/unicodeio.c: Likewise.
91679         * lib/unsetenv.c: Likewise.
91680         * lib/vasnprintf.c: Likewise.
91681         * lib/vasprintf.c: Likewise.
91682         * lib/wait-process.c: Likewise.
91683         * lib/xallocsa.c: Likewise.
91684         * lib/xsetenv.c: Likewise.
91685         * lib/xstriconv.c: Likewise.
91687 2006-09-13  Simon Josefsson  <jas@extundo.com>
91689         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
91690         that internally, suggested by Ralf Wildenhues
91691         <Ralf.Wildenhues@gmx.de>.
91693 2006-09-13  Simon Josefsson  <jas@extundo.com>
91695         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
91696         @LIBOBJS@.
91697         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91699 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
91701         * lib/_fpending.c: Include <config.h> unconditionally, since we no
91702         longer worry about uses that don't define HAVE_CONFIG_H.
91703         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
91704         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
91705         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
91706         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
91707         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
91708         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
91709         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
91710         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
91711         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
91712         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
91713         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
91714         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
91715         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
91716         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
91717         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
91718         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
91719         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
91720         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
91721         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
91722         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
91723         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
91724         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
91725         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
91726         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
91727         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
91728         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
91729         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
91730         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
91731         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
91732         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
91733         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
91734         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
91735         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
91736         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
91737         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
91738         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
91739         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
91740         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
91741         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
91742         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
91743         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
91744         Likewise.
91746 2006-09-13  Eric Blake  <ebb9@byu.net>
91748         * lib/getopt.c: Fix typo in last commit.
91750 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
91752         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
91753         dgettext.
91755 2006-09-12  Jim Meyering  <jim@meyering.net>
91757         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
91758         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
91759         Reported by Nelson H. F. Beebe.
91761 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
91763         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
91764         program_invocation_name and program_invocation_short_name are
91765         initialized.
91766         * lib/argp-namefrob.h: Move declarations of program_invocation_name
91767         and program_invocation_short_name to argp.h, so they are visible
91768         to user programs.
91769         * lib/argp.h: Likewise
91771 2006-09-10  Bruno Haible  <bruno@clisp.org>
91773         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
91774         m4/inttypes_h.m4, m4/uintmax_t.m4.
91776 2006-09-10  Bruno Haible  <bruno@clisp.org>
91778         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
91779         gl_AC_TYPE_UINTMAX_T.
91781 2006-09-10  Bruno Haible  <bruno@clisp.org>
91783         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
91785 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
91787         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
91788         convention.  Text proposed by Bruno Haible.
91789         (struct argp_option): Document the use of N_() wrappers.
91791         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
91792         '\v', and translate the two parts separately, instead of feeding
91793         the whole string to gettext.  This allows to exclude
91794         '\v' from the strings visible to the translator by writing doc
91795         strings as N_("..") "\v" N_("..").
91797 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
91799         * config/srclist.txt: Undo latest change; the bug was fixed.
91801 2006-09-09  Bruno Haible  <bruno@clisp.org>
91803         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
91804         assignments if building a library without libtool.
91805         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
91806         in func_emit_lib_Makefile_am.
91807         (func_import): When building a static library libfoo.a, arrange to
91808         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
91809         (func_create_testdir): Likewise.
91810         * modules/gc (configure.ac, Makefile.am): If building statically,
91811         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
91812         * modules/iconvme (configure.ac, Makefile.am): Likewise.
91813         * modules/striconv (configure.ac, Makefile.am): Likewise.
91814         Based on a suggestion by Ralf Wildenhues.
91816 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91818         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91819         Check for unistd.h too, since Autoconf doesn't assume POSIX.
91820         Also:
91822         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91823         Add year_2050_test to catch glibc bug 2821
91824         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
91826         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91827         Prefer #ifdef to #if.
91829         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
91830         Return from 'main' instead of calling 'exit'.
91832 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91834         * lib/mktime.c (guess_time_tm): Fix bug where mktime
91835         returned the maximum time_t value rather than (time_t) -1.
91836         Problem originally reported by William Bardwell
91837         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
91839         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
91840         Moved to here ...
91841         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
91842         ... from here.
91844 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91846         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
91847         2821 is fixed.
91849 2006-09-08  Jim Meyering  <jim@meyering.net>
91851         Don't make generated files read-only.  That would bother too many
91852         people.  However, do retain the ability to work when targets are
91853         read-only: remove the destination and temporary files before writing
91854         them (when generated via sed or echo), or by using the -f option for
91855         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
91856         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91857         * modules/byteswap, modules/configmake, modules/fcntl:
91858         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91859         * modules/localcharset, modules/netinet_in, modules/poll:
91860         * modules/stdbool, modules/stdint, modules/sys_select:
91861         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91863 2006-09-08  Jim Meyering  <jim@meyering.net>
91865         Avoid new build failure on FreeBSD 6.0.
91866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
91867         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
91868         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
91870 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
91874 2006-09-07  Jim Meyering  <jim@meyering.net>
91876         Fix global typo in last change: use chmod u-w, not chmod u-x.
91877         Spotted by Paul Eggert and Bruce Korb.
91878         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91879         * modules/byteswap, modules/configmake, modules/fcntl:
91880         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91881         * modules/localcharset, modules/netinet_in, modules/poll:
91882         * modules/stdbool, modules/stdint, modules/sys_select:
91883         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91885 2006-09-06  Jim Meyering  <jim@meyering.net>
91887         Make generated files be read-only.
91888         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
91889         Ensure that each generated file is now read-only.
91890         * modules/argz: Likewise.
91891         * modules/arpa_inet: Likewise.
91892         * modules/byteswap: Likewise.
91893         * modules/configmake: Likewise.
91894         * modules/fcntl: Likewise.
91895         * modules/fnmatch: Likewise.
91896         * modules/getopt: Likewise.
91897         * modules/glob: Likewise.
91898         * modules/inttypes: Likewise.
91899         * modules/netinet_in: Likewise.
91900         * modules/poll: Likewise.
91901         * modules/stdbool: Likewise.
91902         * modules/stdint: Likewise.
91903         * modules/sys_select: Likewise.
91904         * modules/sys_socket: Likewise.
91905         * modules/sys_stat: Likewise.
91906         * modules/sysexits: Likewise.
91907         * modules/localcharset: Same as above, but continue using temporary
91908         file named "t-$@" (why different?) rather than the "$@-t" used
91909         everywhere else.
91911         * modules/sysexits (Makefile.am): Replace literal occurrences
91912         of "sysexit.h" more readable, and more consistent, "$@".
91914 2006-09-06  Bruno Haible  <bruno@clisp.org>
91916         * modules/striconv: New file.
91917         * modules/xstriconv: New file.
91918         * MODULES.html.sh (Internationalization functions): Add striconv,
91919         xstriconv.
91921 2006-09-06  Bruno Haible  <bruno@clisp.org>
91923         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
91924         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
91925         not using libtool correctly.
91927 2006-09-06  Bruno Haible  <bruno@clisp.org>
91929         * lib/striconv.h: New file.
91930         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
91931         iconvstring.c.
91932         * lib/xstriconv.h: New file.
91933         * lib/xstriconv.c: New file.
91935 2006-09-06  Bruno Haible  <bruno@clisp.org>
91937         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91938         lib_..._LDFLAGS.
91940 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91942         * lib/argz_.h: Sync from Libtool.
91944         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
91945                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
91947         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
91949 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91951         * modules/trim: New file.
91953 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91955         * lib/trim.h: New file.
91956         * lib/trim.c: New file.
91958 2006-09-05  Bruno Haible  <bruno@clisp.org>
91960         * MODULES.html.sh (String handling): Add trim.
91962 2006-09-04  Karl Berry  <karl@gnu.org>
91964         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
91965         until next release.
91967 2006-09-03  Bruno Haible  <bruno@clisp.org>
91969         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
91970         correctly.
91972 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91974         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
91975         not gl_GETLOADAVG.  Omit unneeded semicolons.
91976         Problems reported by Ralf Wildenhues in
91977         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91978         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
91979         at the end, which is the usual gnulib style.
91981         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
91982         of doing all the work ourselves.
91983         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
91984         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
91986 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91988         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
91989         Problem reported by Ralf Wildenhues in
91990         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91992         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
91993         HAVE_STRUCT_STATFS_F_FSTYPENAME.
91995 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91997         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
91998         yesterday's patch by changing test -n to test -z.
92000 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
92002         * modules/getloadavg (Files): Add m4/getloadavg.m4.
92003         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
92004         the former is now obsolescent.
92006         * modules/chdir-long (Depends-on): Add fcntl.
92008 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
92010         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
92011         obsolescent, and programs should use gnulib instead.
92012         * m4/getloadavg.m4: New file, with contents taken from Autoconf
92013         but with prefixes changed.
92015 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
92017         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
92018         or stdbool.h, because they might not exist while configuring.
92020         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
92021         Don't include unistd.h or limits.h; not needed, since chdir-long.h
92022         does that for us.
92023         (O_DIRECTORY): Remove.
92025 2006-08-31  Eric Blake  <ebb9@byu.net>
92027         * gnulib-tool: Don't let emacs change spaces to TAB.
92029 2006-08-31  Bruno Haible  <bruno@clisp.org>
92031         * gnulib-tool: When calling func_import more than once, do it in a
92032         subshell.
92033         Reported by Eric Blake <ebb9@byu.net>.
92035 2006-08-31  Bruno Haible  <bruno@clisp.org>
92037         * gnulib-tool (nl): Remove variable.
92038         (sed_transform_lib_file): Use more robust test for config-h module.
92039         (func_import): Fix typo in 2006-08-25 patch.
92041 2006-08-31  Bruno Haible  <bruno@clisp.org>
92043         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
92044         specified, augment Makefile.am variables instead of assigning them.
92046 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92048         Work around a bug in both the Linux and SunOS 64-bit kernels:
92049         nanosleep mishandles sleeps for longer than 2**31 seconds.
92050         Problem reported by Frank v Waveren in
92051         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
92052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
92053         Check for nanosleep bug.
92054         (LIB_NANOSLEEP): Append clock_gettime library if needed.
92056 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92058         Work around a bug in both the Linux and SunOS 64-bit kernels:
92059         nanosleep mishandles sleeps for longer than 2**31 seconds.
92060         Problem reported by Frank v Waveren in
92061         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
92062         * lib/nanosleep.c (BILLION): New constant.
92063         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
92064         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
92065         implementation.
92067 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92069         * modules/nanosleep (Depends-on): Add gettime.
92071 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92072         and Simon Josefsson  <jas@extundo.com>
92073         and Oskar Liljeblad  <oskar@osk.mine.nu>
92075         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
92076         * gnulib-tool (func_import): New license type 'unmodifiable license
92077         text'.
92078         * modules/fdl: Use it.  Longer description.
92079         * module/gpl, module/lgpl: New files.
92081 2006-08-30  Jim Meyering  <jim@meyering.net>
92083         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
92084         shadowing the parameter.
92086 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92088         Sync from Libtool:
92090         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92092         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
92093         sharing with gnulib.  Report by Eric Blake.
92095 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
92097         * modules/isapipe: New file.
92098         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
92100 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
92102         * modules/configmake (Makefile.am): Add a comment, and omit
92103         the CONFIGMAKE_ prefix from generated macro names.  Suggested
92104         by Bruno Haible.
92106 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
92108         * m4/isapipe.m4: New file.
92110 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
92112         * lib/isapipe.c, lib/isapipe.h: New files.
92114 2006-08-29  Jim Meyering  <jim@meyering.net>
92116         * modules/configmake (Makefile.am): Make configmake.h depend on
92117         Makefile.  Otherwise, a stale configmake.h could hang around.
92119 2006-08-29  Eric Blake  <ebb9@byu.net>
92121         * lib/error.c (error_at_line, print_errno_message): Match libc, after
92122         resolution of upstream bug 3044.
92124 2006-08-29  Bruno Haible  <bruno@clisp.org>
92126         * modules/localcharset (Depends-on): Add configmake.
92127         (Makefile.am): Remove setting of LIBDIR through DEFS.
92129 2006-08-29  Bruno Haible  <bruno@clisp.org>
92131         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
92132         defined.
92134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92136         * modules/fcntl: New file.
92137         * modules/chdir-safer (Depends-on): Add fcntl.
92138         * modules/fts: Likewise.
92139         * modules/mkdir-p: Likewise.
92141         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
92142         This undoes the most recent change, since we're now addressing the
92143         problem in a different way.
92145         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
92146         into output, since the output might be called Makefile.am even
92147         if $makefile_name is something different.
92148         (func_import): Use $makefile_am rather than
92149         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
92150         empty.
92152         * modules/inttypes (Files): Add m4/inttypes-h.m4.
92154 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92156         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
92157         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
92158         recent change to stdint.m4, since we're now addressing the problem in a
92159         different way.
92161 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92163         * m4/fcntl_h.m4: New file.
92165 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92167         * lib/fcntl_.h: New file.
92168         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
92169         the fcntl module.
92170         * lib/dirchownmod.c: Likewise.
92171         * lib/fts.c: Likewise.
92173         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
92174         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
92175         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
92176         just before including <inttypes.h>, to avoid circular inclusion.
92178 2006-08-28  Jim Meyering  <jim@meyering.net>
92180         * doc/visibility.texi: Actually read and correct the grammar of the
92181         sentence affected by yesterday's change.
92183 2006-08-28  Eric Blake  <ebb9@byu.net>
92185         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
92186         needs wrapper.
92188 2006-08-28  Eric Blake  <ebb9@byu.net>
92190         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
92192 2006-08-28  Eric Blake  <ebb9@byu.net>
92194         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
92196 2006-08-28  Bruno Haible  <bruno@clisp.org>
92198         * modules/c-strstr: New file, from GNU gettext.
92199         * MODULES.html.sh (String handling): Add c-strstr.
92201 2006-08-28  Bruno Haible  <bruno@clisp.org>
92203         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
92204         macros.
92205         Reported by Eric Blake.
92207 2006-08-28  Bruno Haible  <bruno@clisp.org>
92209         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
92210         (VASNPRINTF): Return a string of length > INT_MAX without failing.
92211         * lib/vasprintf.c: Include errno.h, limits.h.
92212         (EOVERFLOW): New fallback definition.
92213         (vasprintf): Test here whether the string length is > INT_MAX.
92214         * lib/vsnprintf.c: Include errno.h, limits.h.
92215         (EOVERFLOW): New fallback definition.
92216         (vsnprintf): Fix bug when generated string was too long for the buffer.
92217         Test here whether the string length is > INT_MAX.
92219 2006-08-28  Bruno Haible  <bruno@clisp.org>
92221         * lib/inttypes_.h (SCNX*): Remove definitions.
92222         Reported by Eric Blake.
92224 2006-08-28  Bruno Haible  <bruno@clisp.org>
92226         * lib/c-strstr.h: New file, from GNU gettext.
92227         * lib/c-strstr.c: New file, from GNU gettext.
92229 2006-08-28  Bruno Haible  <bruno@clisp.org>
92231         * gnulib-tool: Reorder some statements.
92233 2006-08-28  Bruno Haible  <bruno@clisp.org>
92235         * gnulib-tool: New option --makefile-name.
92236         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
92237         $makefile_name.
92238         (func_import): Write $makefile_name to the cache file, and read it from
92239         there unless explicitly specified. Use $makefile_name as file name
92240         instead of Makefile.am. Adjust the recommendations accordingly.
92242 2006-08-28  Bruno Haible  <bruno@clisp.org>
92244         * gnulib-tool (func_verify_module): Check against misapplying patch.
92246 2006-08-28  Bruno Haible  <bruno@clisp.org>
92248         * gnulib-tool (func_relativize, func_relconcat): New functions.
92249         Give an error if --local-dir is given with --update.
92250         Remove trailing slashes from $local_gnulib_dir.
92251         (func_import): Store the relativized $local_gnulib_dir in
92252         gnulib-cache.m4, and read it from there if not specified explicitly.
92254 2006-08-28  Bruno Haible  <bruno@clisp.org>
92256         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
92257         is the current directory. Respect also $local_gnulib_dir.
92259 2006-08-28  Bruno Haible  <bruno@clisp.org>
92260             Simon Josefsson  <jas@extundo.com>
92262         BeOS portability.
92263         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
92265 2006-08-27  Jim Meyering  <jim@meyering.net>
92267         * doc/visibility.texi: Remove duplicate word: "pointer".
92269 2006-08-26  Bruno Haible  <bruno@clisp.org>
92271         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
92272         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
92273         (Makefile.am): Create inttypes.h from inttypes_.h.
92274         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
92276         * modules/imaxabs: New file.
92278         * modules/imaxdiv: New file.
92280 2006-08-26  Bruno Haible  <bruno@clisp.org>
92282         * m4/inttypes.m4: New file.
92283         * m4/_inttypes_h.m4: Remove file.
92284         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
92285         PRI_MACROS_BROKEN.
92286         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
92288         * m4/imaxabs.m4: New file.
92290         * m4/imaxdiv.m4: New file.
92292 2006-08-26  Bruno Haible  <bruno@clisp.org>
92294         * lib/inttypes_.h: New file.
92295         * lib/inttypes.h: Remove file.
92296         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
92298         * lib/imaxabs.c: New file.
92300         * lib/imaxdiv.c: New file.
92302 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
92304         New config-h module, so that "make" output needn't be cluttered
92305         by -DHAVE_CONFIG_H.
92306         * MODULES.html.sh (Support for building libraries and executables):
92307         Add config-h.
92308         * modules/config-h: New file.
92309         * gnulib-tool (nl, sed_transform_lib_file): New vars.
92310         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
92311         the config-h module is used.
92313         New configmake module, so that "make" output needn't be cluttered
92314         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
92315         * MODULES.html.sh (Support for building libraries and executables):
92316         Add configmake.
92317         * modules/configmake: New file.
92319 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
92321         * m4/config-h.m4: New file.
92323 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
92325         * config/srclist.txt: Add elisp-comp.
92327 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
92329         * MODULES.html.sh (Support for building libraries and executables):
92330         Add elisp-comp.
92331         * build-aux/elisp-comp: New file.
92332         * modules/elisp-comp: New file.
92334 2006-08-24  Bruno Haible  <bruno@clisp.org>
92336         * gnulib-tool (func_create_testdir): Use non-default values of
92337         sourcebase and m4base.
92339 2006-08-24  Bruno Haible  <bruno@clisp.org>
92341         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
92342         HTML structure.
92344 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
92346         * modules/openat (Depends-on): Add lchown.
92348 2006-08-23  Bruno Haible  <bruno@clisp.org>
92350         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
92351         of gl_LOCK_EARLY instead of gl_LOCK.
92353 2006-08-23  Bruno Haible  <bruno@clisp.org>
92355         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
92356         on OSF/1 to no.
92357         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
92359 2006-08-23  Bruno Haible  <bruno@clisp.org>
92361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
92362         as unusable.
92364         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
92365         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
92366         (gl_LOCK): New macro.
92368 2006-08-22  Simon Josefsson  <jas@extundo.com>
92370         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
92371         to md5 module.
92373 2006-08-22  Simon Josefsson  <jas@extundo.com>
92375         * MODULES.html.sh: Add "Support for maintaining and release
92376         projects".
92378         * build-aux/gnupload: New file, from coreutils.
92380 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92382         Avoid the need for AC_LIBSOURCES in m4 macros.
92383         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
92384         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
92385         * modules/check-version (EXTRA_DIST): Add check-version.h.
92386         * modules/crc (EXTRA_DIST): Add crc.h.
92387         * modules/des (EXTRA_DIST): Add des.h.
92388         * modules/gc (EXTRA_DIST): Add gc.h.
92389         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
92390         * modules/getline (EXTRA_DIST): Add getline.h.
92391         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
92392         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
92393         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
92394         * modules/md2 (EXTRA_DIST): Add md2.h.
92395         * modules/md4 (EXTRA_DIST): Add md4.h.
92396         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
92397         * modules/read-file (EXTRA_DIST): Add read-file.h.
92398         * modules/readline (EXTRA_DIST): Add readline.h.
92399         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
92400         rijndael-api-fst.h.
92402 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92404         * m4/rijndael.m4 (gl_ARCFOUR):
92405         * m4/arctwo.m4 (gl_ARCTWO):
92406         * m4/check-version.m4 (gl_CHECK_VERSION):
92407         * m4/crc.m4 (gl_CRC):
92408         * m4/des.m4 (gl_DES):
92409         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
92410         * m4/gc.m4 (gl_GC):
92411         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
92412         * m4/getline.m4 (gl_FUNC_GETLINE):
92413         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
92414         * m4/hmac-md5.m4 (gl_HMAC_MD5):
92415         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
92416         * m4/md2.m4 (gl_MD2):
92417         * m4/md4.m4 (gl_MD4):
92418         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
92419         * m4/read-file.m4 (gl_FUNC_READ_FILE):
92420         * m4/readline.m4 (gl_FUNC_READLINE):
92421         * m4/rijndael.m4 (gl_RIJNDAEL):
92422         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
92423         to get the necessary .h files and whatnot.
92425 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92427         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
92428         gnulib rather than the other way around.
92429         * config/srclistvars.sh (COREUTILS): Remove.
92431 2006-08-22  Jim Meyering  <jim@meyering.net>
92433         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
92435         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
92437 2006-08-22  Eric Blake  <ebb9@byu.net>
92439         * modules/regexprops-generic: New file.
92440         * MODULES.html.sh (Support for building documentation): List it.
92442 2006-08-22  Eric Blake  <ebb9@byu.net>
92444         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
92445         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
92446         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
92447         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
92449 2006-08-22  Bruno Haible  <bruno@clisp.org>
92451         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
92452         and lib_LTLIBRARIES like the other lib_* variables.
92454 2006-08-22  Bruno Haible  <bruno@clisp.org>
92456         * build-aux/x-to-1.in: New file, from GNU gettext.
92458 2006-08-22  Bruno Haible  <bruno@clisp.org>
92460         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
92461         <utmpx.h> exists.
92463 2006-08-22  Bruno Haible  <bruno@clisp.org>
92465         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
92466         <utmpx.h> exists.
92468 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92470         BeOS portability.
92471         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
92472         exist.
92473         Problem reported by Bruno Haible.
92475 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92477         Avoid the need for AC_LIBSOURCES in m4 macros.
92478         * modules/acl (EXTRA_DIST): Add acl.h.
92479         * modules/argmatch (Files): Add m4/argmatch.m4.
92480         (configure.ac): Add gl_ARGMATCH.
92481         (EXTRA_DIST): Renamed from lib_SOURCES, for
92482         consistency with the other modules.  Remove argmatch.c.
92483         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
92484         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
92485         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
92486         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
92487         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
92488         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
92489         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
92490         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
92491         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
92492         * modules/closeout (EXTRA_DIST): Add closeout.h.
92493         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
92494         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
92495         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
92496         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
92497         dirname.h; remove basename.c and stripslash.c.
92498         * modules/exclude (EXTRA_DIST): Add exclude.h.
92499         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
92500         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
92501         * modules/file-type (EXTRA_DIST): Add file-type.h.
92502         * modules/filemode (EXTRA_DIST): Add filemode.h.
92503         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
92504         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
92505         * modules/fpending (EXTRA_DIST): Add __fpending.h.
92506         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
92507         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
92508         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
92509         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
92510         * modules/getdate (EXTRA_DIST): Add getdate.c.
92511         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
92512         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
92513         * modules/getpass (EXTRA_DIST): Add getpass.h.
92514         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
92515         * modules/group-member (EXTRA_DIST): Add group-member.h.
92516         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
92517         * modules/hash (EXTRA_DIST): Add hash.h.
92518         * modules/human (EXTRA_DIST): Add human.h.
92519         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
92520         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
92521         * modules/lchown (EXTRA_DIST): Add lchown.h.
92522         * modules/long-options (EXTRA_DIST): Add long-options.h.
92523         * modules/lstat (EXTRA_DIST): Add lstat.h.
92524         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
92525         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
92526         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
92527         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
92528         * modules/memxor (EXTRA_DIST): Add memxor.h.
92529         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
92530         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
92531         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
92532         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
92533         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
92534         * modules/physmem (EXTRA_DIST): Add physmem.h.
92535         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
92536         * modules/posixver (EXTRA_DIST): Add posixver.h.
92537         * modules/quote (EXTRA_DIST): Add quote.h.
92538         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
92539         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
92540         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
92541         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
92542         regex_internal.h regexec.c.
92543         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
92544         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
92545         * modules/same (EXTRA_DIST): Add same.h.
92546         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
92547         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
92548         * modules/savedir (EXTRA_DIST): Add savedir.h.
92549         * modules/sha1 (EXTRA_DIST): Add sha1.h.
92550         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
92551         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
92552         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
92553         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
92554         * modules/strdup (EXTRA_DIST): Add strdup.h.
92555         * modules/strftime (EXTRA_DIST): Add strftime.h.
92556         * modules/strndup (EXTRA_DIST): Add strndup.h.
92557         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
92558         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
92559         * modules/time_r (EXTRA_DIST): Add time_r.h.
92560         * modules/timespec (EXTRA_DIST): Add timespec.h.
92561         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
92562         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
92563         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
92564         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
92565         * modules/userspec (EXTRA_DIST): Add userspec.h.
92566         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
92567         * modules/utimens (EXTRA_DIST): Add utimens.h.
92568         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
92569         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
92570         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
92571         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
92572         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
92573         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
92574         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
92575         * modules/yesno (EXTRA_DIST): Add yesno.h.
92577 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92579         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
92581         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
92582         * m4/dev-ino.m4, same-inode.m4: Remove.
92584         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
92585         * m4/acl.m4 (AC_FUNC_ACL):
92586         * m4/backupfile.m4 (gl_BACKUPFILE):
92587         * m4/c-strtod.m4 (gl_C99_STRTOLD):
92588         * m4/canon-host.m4 (gl_CANON_HOST):
92589         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
92591         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
92592         * m4/cloexec.m4 (gl_CLOEXEC):
92593         * m4/close-stream.m4 (gl_CLOSE_STREAM):
92594         * m4/closeout.m4 (gl_CLOSEOUT):
92595         * m4/dirfd.m4 (gl_FUNC_DIRFD):
92596         * m4/dirname.m4 (gl_DIRNAME):
92597         * m4/exclude.m4 (gl_EXCLUDE):
92598         * m4/exitfail.m4 (gl_EXITFAIL):
92599         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
92600         * m4/file-type.m4 (gl_FILE_TYPE):
92601         * m4/filemode.m4 (gl_FILEMODE):
92602         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
92603         * m4/fpending.m4 (gl_FUNC_FPENDING):
92604         * m4/fprintftime.m4 (gl_FPRINTFTIME):
92605         * m4/fts.m4 (gl_FUNC_FTS):
92606         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
92607         * m4/getdate.m4 (gl_GETDATE):
92608         * m4/gethrxtime.m4 (gl_GETHRXTIME):
92609         * m4/getpagesize.m4 (gl_GETPAGESIZE):
92610         * m4/getpass.m4 (gl_FUNC_GETPASS):
92611         * m4/gettime.m4 (gl_GETTIME):
92612         * m4/getugroups.m4 (gl_GETUGROUPS):
92613         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
92614         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
92615         * m4/hard-locale.m4 (gl_HARD_LOCALE):
92616         * m4/hash.m4 (gl_HASH):
92617         * m4/idcache.m4 (gl_IDCACHE):
92618         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
92619         * m4/lchown.m4 (gl_FUNC_LCHOWN):
92620         * m4/long-options.m4 (gl_LONG_OPTIONS):
92621         * m4/lstat.m4 (gl_FUNC_LSTAT):
92622         * m4/md5.m4 (gl_MD5):
92623         * m4/memcasecmp.m4 (gl_MEMCASECMP):
92624         * m4/memcoll.m4 (gl_MEMCOLL):
92625         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
92626         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
92627         * m4/memxor.m4 (gl_MEMXOR):
92628         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
92629         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
92630         * m4/modechange.m4 (gl_MODECHANGE):
92631         * m4/mountlist.m4 (gl_MOUNTLIST):
92632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
92633         * m4/openat.m4 (gl_FUNC_OPENAT):
92634         * m4/pathmax.m4 (gl_PATHMAX):
92635         * m4/physmem.m4 (gl_PHYSMEM):
92636         * m4/posixtm.m4 (gl_POSIXTM):
92637         * m4/posixver.m4 (gl_POSIXVER):
92638         * m4/quote.m4 (gl_QUOTE):
92639         * m4/quotearg.m4 (gl_QUOTEARG):
92640         * m4/readtokens.m4 (gl_READTOKENS):
92641         * m4/readutmp.m4 (gl_READUTMP):
92642         * m4/regex.m4 (gl_REGEX):
92643         * m4/safe-read.m4 (gl_SAFE_READ):
92644         * m4/safe-write.m4 (gl_SAFE_WRITE):
92645         * m4/same.m4 (gl_SAME):
92646         * m4/save-cwd.m4 (gl_SAVE_CWD):
92647         * m4/savedir.m4 (gl_SAVEDIR):
92648         * m4/settime.m4 (gl_SETTIME):
92649         * m4/sha1.m4 (gl_SHA1):
92650         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
92651         * m4/stat-macros.m4 (gl_STAT_MACROS):
92652         * m4/stat-time.m4 (gl_STAT_TIME):
92653         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
92654         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
92655         * m4/strdup.m4 (gl_FUNC_STRDUP):
92656         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
92657         * m4/strndup.m4 (gl_FUNC_STRNDUP):
92658         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
92659         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
92660         * m4/time_r.m4 (gl_TIME_R):
92661         * m4/timespec.m4 (gl_TIMESPEC):
92662         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
92663         * m4/unlinkdir.m4 (gl_UNLINKDIR):
92664         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
92665         * m4/userspec.m4 (gl_USERSPEC):
92666         * m4/utimecmp.m4 (gl_UTIMECMP):
92667         * m4/utimens.m4 (gl_UTIMENS):
92668         * m4/xalloc.m4 (gl_XALLOC):
92669         * m4/xgetcwd.m4 (gl_XGETCWD):
92670         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
92671         * m4/xreadlink.m4 (gl_XREADLINK):
92672         * m4/xstrtod.m4 (gl_XSTRTOD):
92673         * m4/yesno.m4 (gl_YESNO):
92674         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
92675         to get the necessary .h files and whatnot.
92677 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
92678             Bruno Haible  <bruno@clisp.org>
92680         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
92681         /bin/sh understanding of '!' conditional negation.
92683 2006-08-21  Jim Meyering  <jim@meyering.net>
92685         * modules/openat (Depends-on): Really alphabetize.
92687         * modules/acl (Depends-on): Add error and quote.
92689         * check-module (find_included_lib_files): Add at-func.c to the
92690         ok-to-include-more-than-once white list.
92692         * modules/openat (Depends-on): Add lstat.  Alphabetize.
92694 2006-08-21  Bruno Haible  <bruno@clisp.org>
92696         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92697         Emit a pkgdata_DATA variable only if some snippets add contents to it.
92698         Reported by Martin Lambers <marlam@marlam.de>.
92700 2006-08-21  Bruno Haible  <bruno@clisp.org>
92702         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
92703         specify an installation location, don't emit a noinst_LIBRARIES or
92704         noinst_LTLIBRARIES assignment.
92706 2006-08-21  Bruno Haible  <bruno@clisp.org>
92708         BeOS portability.
92709         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
92710         BeOS has mbrtowc() but no <wctype.h>.
92712 2006-08-21  Bruno Haible  <bruno@clisp.org>
92714         BeOS portability.
92715         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
92716         exist.
92718 2006-08-21  Bruno Haible  <bruno@clisp.org>
92720         BeOS portability.
92721         * lib/mbchar.h: Include <wctype.h> only if it exists.
92723 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92725         Remove files that are no longer needed by their respective modules.
92726         * m4/obstack.m4: Remove.
92727         * m4/strerror_r.m4: Remove.
92728         * m4/uint32_t.m4: Remove.
92729         * m4/uintptr_t.m4: Remove.
92730         * m4/ullong_max.m4: Remove.
92731         * m4/xstrtoimax.m4: Remove.
92732         * m4/xstrtoumax.m4: Remove.
92734         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
92735         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
92736         dependencies now capture this.
92738         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
92739         Do not use AC_LIBSOURCES, since gnulib modules now do this.
92740         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
92741         * m4/human.m4 (gl_HUMAN): Likewise.
92742         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
92743         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
92745         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
92747         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
92748         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
92749         stdint.
92750         * m4/human.m4 (gl_HUMAN): Likewise.
92751         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
92752         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
92753         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
92754         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
92755         * m4/xstrtol (gl_XSTRTOL): Likewise.
92757         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
92758         AC_TYPE_LONG_LONG_INT.
92759         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
92760         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
92761         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
92762         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
92764         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
92765         on stdbool.
92767         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
92768         (gl_PREREQ_XSTRTOUL): Remove.
92770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
92772         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
92773         mode.
92775 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92777         Add and change modules to make it easier for coreutils to use
92778         gnulib-tool.
92779         * modules/backupfile (Files): Remove m4/d-ino.m4.
92780         (Depends-on): Add d-ino.
92781         * modules/cycle-check (Depends-on): Add stdint.
92782         (lib_SOURCES): Add cycle-check.h.
92783         * modules/d-ino: New module.
92784         * modules/d-type: New module.
92785         * modules/error (Files): Remove m4/strerror_r.m4.
92786         * modules/filemode (Files): Add m4/st_dm_mode.m4.
92787         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
92788         m4/inttypes_h.m4, m4/uintmax_t.m4.
92789         (Depends-on): Add stdint.
92790         (lib_SOURCES): Add fsusage.h.
92791         * modules/getcwd (Files): Remove d-ino.m4.
92792         (Depends-on): Add d-ino.
92793         * modules/getndelim2 (Depends-on): Add stdint.
92794         * modules/glob (Files): Remove m4/d-type.m4.
92795         (Depends-on): Add d-type.
92796         * modules/host-os: New module.
92797         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
92798         m4/inttypes_h.m4, m4/uintmax_t.m4.
92799         * Depends-on: Add stdint.
92800         (lib_SOURCES): Add human.h.
92801         * modules/inttostr (Files): Remove m4/intmax_t.m4,
92802         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
92803         m4/uintmax_t.m4, m4/ulonglong.m4.
92804         (Depends-on): Add stdint.
92805         (EXTRA_DIST): Add inttostr.h.
92806         * modules/lchmod: New module.
92807         * modules/link-follow: New module.
92808         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
92809         (Depends-on): Add lchmod.
92810         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
92811         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
92812         (Depends-on): Add stdint.
92813         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
92814         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
92815         (Depends-on): Add stdint.
92816         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
92817         * modules/perl: New module.
92818         * modules/regex (Depends-on): Add stdint.
92819         * modules/rmdir-errno: New module.
92820         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
92821         m4/intmax_t.m4.
92822         (Depends-on): Add stdint.
92823         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
92824         m4/uintmax_t.m4.
92825         (Depends-on): Add stdint.
92826         * modules/unlink-busy: New module.
92827         * modules/utimecmp (Depends-on): Add stdint.
92828         * modules/uptime: New module.
92829         * modules/winsz-ioctl: New module.
92830         * modules/winsz-termios: New module.
92831         * modules/xnanosleep (Depends-on): Add nanosleep.
92832         * modules/ullong_max: Remove.
92833         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
92834         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
92835         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
92836         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
92837         (Depends-on): Add inttypes.
92838         (lib_SOURCES): Add xstrtol.h.
92839         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
92840         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
92841         * MODULES.html.sh: Move 'assert' into the assert section.
92842         Move 'dummy' into the linking section.
92843         Remove ullong_max.
92844         Add section for compatibility checks for POSIX:2001 functions,
92845         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
92846         winsz-ioctl, and winsz-termios into it.
92847         Add lchmod.
92848         Add top-level Misc section and put host-os, perl, and uptime
92849         into it.
92851 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92853         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
92854         now assume the stdint module.  Do not include inttypes.h.
92855         * lib/fsusage.h: Likewise.
92856         * lib/getndelim2.c: Likewise.
92857         * lib/human.h: Likewise.
92858         * lib/inttostr.h: Likewise.
92859         * lib/obstack.c: Likewise.
92860         * lib/regex_internal.h: Likewise.
92861         * lib/tempname.c: Likewise.
92862         * lib/utimecmp.c: Likewise.
92863         * lib/xstrtol.h: Likewise.
92865         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
92867         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
92868         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
92869         * lib/xtime.h: Likewise.
92871 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92873         * modules/openat (Files): Add lib/fchmodat.c.
92874         Fixes problem reported by Jay Youngman.
92876 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92878         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
92879         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
92881 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
92882             Bruno Haible  <bruno@clisp.org>
92884         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
92885         and is a script that invokes bison. Tighten the code. Add comments.
92887 2006-08-18  Jim Meyering  <jim@meyering.net>
92889         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
92890         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
92891         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
92892         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
92894 2006-08-18  Bruno Haible  <bruno@clisp.org>
92896         * modules/bison-i18n: New file.
92897         * MODULES.html.sh (Internationalization functions): Add it.
92899 2006-08-18  Bruno Haible  <bruno@clisp.org>
92901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
92902         sys/statvfs.h. When getmntinfo was found, check its declaration and
92903         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
92905 2006-08-18  Bruno Haible  <bruno@clisp.org>
92907         * m4/bison-i18n.m4: New file, from bison.
92909 2006-08-18  Bruno Haible  <bruno@clisp.org>
92911         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
92912         (ME_DUMMY): Treat "kernfs" as a dummy.
92913         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
92915 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92917         Update from coreutils.
92919         2006-08-15  Jim Meyering  <jim@meyering.net>
92921         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
92923         2006-01-17  Jim Meyering  <jim@meyering.net>
92925         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
92927         2006-01-11  Jim Meyering  <jim@meyering.net>
92929         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
92930         Check for the lchmod function.
92932 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92934         Update from coreutils.
92936         * lib/__fpending.h: Add copyright notice.
92937         * lib/fprintftime.h: Likewise.
92938         * lib/savedir.c: Use (C) in copyright notice.
92939         * lib/savedir.h: Likewise.
92941         2006-08-15  Jim Meyering  <jim@meyering.net>
92943         * lib/at-func.c: New file, with the logic of all emulated at-functions.
92944         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
92945         in support of the EXPECTED_ERRNO macro.
92946         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
92947         definitions.  Instead, define the appropriate symbols and include
92948         "at-func.c".
92949         * lib/mkdirat.c (mkdirat): Likewise.
92950         * lib/fchmodat.c (fchmodat): Likewise.
92951         (ENOSYS): Remove definition.
92952         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
92953         it.  Don't include "unistd--.h" -- it wasn't ever used.
92955         2006-01-17  Jim Meyering  <jim@meyering.net>
92957         Rewrite fts.c not to change the current working directory,
92958         by using openat, fstatat, fdopendir, etc..
92960         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
92961         (HAVE_OPENAT_SUPPORT): Define.
92962         [_LIBC] (fchdir): Don't undef or define; no longer used.
92963         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
92964         Now, this `function' always succeeds, and consumes its file descriptor
92965         parameter -- so callers must not close such FDs.  Update callers.
92966         (diropen_fd, opendirat, cwd_advance_fd): New functions.
92967         (diropen): Add parameter, SP.  Adjust all callers.
92968         Implement using diropen_fd, rather than open.
92969         (fts_open): Initialize new member, fts_cwd_fd.
92970         Remove fts_rft-setting code.
92971         (fts_close): Close fts_cwd_fd, if necessary.
92972         (__opendir2): Define in terms of opendir or opendirat,
92973         depending on whether the FST_NOCHDIR flag is set.
92974         (fts_build): Since fts_safe_changedir consumes its FD, and since
92975         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
92976         and close the dup'd file descriptor upon failure.
92977         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
92978         (fts_safe_changedir): Tweak semantics to reflect that this function
92979         now calls cwd_advance_fd and hence consumes its FD argument.
92980         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
92981         [struct FTS] (fts_rft): Remove now-unused member.
92982         [struct FTS] (fts_cycle.state): Improve comment.
92984         * lib/openat.c (openat_needs_fchdir): New function.
92985         * lib/openat.h (openat_needs_fchdir): Declare it.
92987 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
92989         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
92990         Problem and fix reported by Pádraig Brady in
92991         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
92993 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92995         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
92997 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92999         * lib/memcoll.c (memcoll): Optimize for the common case where the
93000         arguments are bytewise equal.
93002 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93004         * doc/regexprops-generic.texi: Add a copyright notice.
93006 2006-08-15  Bruno Haible  <bruno@clisp.org>
93008         * modules/tmpdir (License): Change to LGPL.
93010 2006-08-15  Bruno Haible  <bruno@clisp.org>
93012         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
93013         module.
93015 2006-08-14  Simon Josefsson  <jas@extundo.com>
93017         * config/srclist.txt: Add gnupload.
93019 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93021         Change copyright notice from LGPL 2 to GPL 2, since that's the
93022         standard form used in the gnulib repository.
93023         * tests/test-lock.c: Likewise.
93024         * tests/test-stdint.c: Likewise.
93025         * tests/test-tls.c: Likewise.
93027         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
93028         prelude-manager.  User shorter URLs for GNU projects, without '?'.
93029         Add copyright notice.
93031         * check-module: Add copyright notice.  Output a copyright
93032         notice if "--version" is specified.
93033         * modules/COPYING: New file.
93034         * tests/test-getaddrinfo.c: Add copyright notice.
93035         * tests/test-verify.c: Likewise.
93037 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93039         Change copyright notice from LGPL 2 to GPL 2, since that's the
93040         standard form used in the gnulib repository.
93041         * lib/lock.c: LGPL -> GPL.
93042         * lib/lock.h: Likewise.
93043         * lib/strnlen1.c: Likewise.
93044         * lib/strnlen1.h: Likewise.
93045         * lib/tls.c: Likewise.
93046         * lib/tls.h: Likewise.
93047         * lib/tmpdir.c: Likewise.
93049         * lib/TODO: Remove; this belongs only in coreutils.
93051 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93053         Add copyright notices to long-enough files that lack them, since
93054         otherwise the files aren't clearly free.  Use the same notice that
93055         getdate.texi already uses.
93056         * doc/alloca-opt.texi: Add copyright notice.
93057         * doc/alloca.texi: Likewise.
93058         * doc/ctime.texi: Likewise.
93059         * doc/functions.texi: Likewise.
93060         * doc/gcd.texi: Likewise.
93061         * doc/gnulib-tool.texi: Likewise.
93062         * doc/inet_ntoa.texi: Likewise.
93063         * doc/visibility.texi: Likewise.
93065         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
93066         * doc/quote.texi: Add copyright notice.
93068         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
93069         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
93070         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
93071         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
93072         is now obsolete, and give a pointer to the Sun list.
93073         Add copyright notice.
93075 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93077         * config/srclistvars.sh: Add copyright notice.
93079 2006-08-14  Eric Blake  <ebb9@byu.net>
93081         Import the following change from libc:
93083         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
93085         Upstream bug 2997.
93086         * lib/misc/error.c: Add space between program name and message if file
93087         name is missing.
93089 2006-08-12  Karl Berry  <karl@gnu.org>
93091         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
93092         remove, these originate in gnulib now.
93094 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93096         * doc/Makefile (standards.info standards.html standards.dvi):
93097         Also depend on make-stds.texi.
93099 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
93101         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
93102         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
93104         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
93105         in wchar_t.  Problem reported by Eric Blake.
93107         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
93108         LEN is smaller than SIZE.  Suggested by Bruno Haible.
93109         Also, help the compiler to keep LEN in a register.
93111 2006-08-11  Eric Blake  <ebb9@byu.net>
93113         * users.txt: Sort.  Add tar.
93115 2006-08-11  Bruno Haible  <bruno@clisp.org>
93117         * users.txt: New file.
93119 2006-08-11  Bruno Haible  <bruno@clisp.org>
93121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
93122         before <wchar.h>. Needed for OSF/1 and BSD/OS.
93124 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
93126         * modules/snprintf (Depends-on): Remove minmax.
93127         (Maintainer): Add self and Bruno.
93129 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
93131         * lib/.cppi-disable: Add snprintf.h, socket_.h.
93132         * lib/snprintf.c: Include <errno.h> and <limits.h>.
93133         (EOVERFLOW): Define if the system does not.
93134         Do not include "minmax.h"; it wasn't used.
93135         (snprintf): Don't assume size_t promotes to an unsigned type.
93136         Fix bug when generated string was too long for the buffer: the
93137         buffer's contents are supposed to be the initial prefix of the
93138         output.  Don't assume vasnprintf returns EOVERFLOW if the size
93139         exceeds INT_MAX; do the check ourselves.
93141         Import the following changes from libc:
93143         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
93145         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
93146         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
93147         set wc to the byte which couldn't be converted.
93148         (re_string_reconstruct): Don't clear valid_raw_len before calling
93149         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
93150         tip_context using re_string_context_at.
93152         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
93154         * lib/posix/regex.h: g++ still cannot handled [restrict].
93156         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
93158         * lib/posix/regex.h: Remove special handling for VMS.
93160 2006-08-10  Jim Meyering  <jim@meyering.net>
93162         * modules/same-inode: New module.
93163         * modules/dev-ino: New module.
93164         * modules/cycle-check: Depend on these modules, rather than simply
93165         including their .h files.
93166         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
93167         required via m4/cycle-check.m4.
93168         * modules/same: Depend on new same-inode module, rather than
93169         including same-inode.h.
93170         * modules/chdir-safer: New file.
93172         * modules/chown (Depends-on): Add stat-macros.
93174 2006-08-10  Jim Meyering  <jim@meyering.net>
93176         * m4/cycle-check.m4: New file.
93177         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
93178         * m4/dev-ino.m4, m4/same-inode.m4: New files.
93180 2006-08-10  Eric Blake  <ebb9@byu.net>
93182         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
93183         in from original proposal.
93185 2006-08-10  Eric Blake  <ebb9@byu.net>
93186         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93188         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
93189         namespace.
93191 2006-08-10  Bruno Haible  <bruno@clisp.org>
93193         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
93194         as well.
93196 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93198         Sync from coreutils.
93200         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
93202         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
93203         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
93205 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93207         * modules/restrict: Remove; no longer needed now that we assume
93208         Autoconf 2.59 or later.
93209         * MODULES.html.sh: Remove 'restrict'.
93210         * modules/argp (Depends-on): Remove 'restrict'.
93211         * modules/base64 (Depends-on): Likewise.
93212         * modules/gc (Depends-on): Likewise.
93213         * modules/getaddrinfo (Depends-on): Likewise.
93214         * modules/glob (Depends-on): Likewise.
93215         * modules/inet_ntop (Depends-on): Likewise.
93216         * modules/inet_pton (Depends-on): Likewise.
93217         * modules/memxor (Depends-on): Likewise.
93218         * modules/regex (Depends-on): Likewise.
93219         * modules/strtok_r (Depends-on): Likewise.
93220         * modules/time_r (Depends-on): Likewise.
93222 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93224         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
93225         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
93226         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93227         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
93228         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
93229         * m4/memxor.m4 (gl_MEMXOR): Likewise.
93230         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
93231         gl_C_RESTRICT replaced by AC_C_RESTRICT.
93233         Merge from coreutils.
93234         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
93235         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
93236         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93237         * m4/time_r.m4 (gl_TIME_R): Likewise.
93239 2006-08-09  Karl Berry  <karl@gnu.org>
93241         * config/srclist.txt: no more gettext-tools, per Bruno.
93243 2006-08-08  Eric Blake  <ebb9@byu.net>
93245         * modules/verror: New module.
93246         * MODULES.html.sh: Document it.
93248 2006-08-08  Eric Blake  <ebb9@byu.net>
93250         * lib/verror.h, lib/verror.c: New files.
93252 2006-08-08  Eric Blake  <ebb9@byu.net>
93254         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
93255         verror_at_line output complies with GNU Coding Standards even when
93256         file is NULL.
93258 2006-08-07  Bruno Haible  <bruno@clisp.org>
93260         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
93261         versions of AIX.
93262         Reported by Ralf Wildenhues.
93264 2006-08-07  Bruno Haible  <bruno@clisp.org>
93266         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
93267         in an AC_DEFUN. Needed so that the autoconf snippets can use
93268         AC_REQUIRE.
93270 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93272         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93273         Initialize pkgdata_DATA.
93274         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
93275         overriding it.
93277 2006-08-06  Eric Blake  <ebb9@byu.net>
93279         * lib/error.h: Fold in some upstream changes from glibc.
93280         * lib/error.c: Likewise.
93282 2006-08-04  Bruno Haible  <bruno@clisp.org>
93284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93285         Make the mostlyclean-local rule depend on mostlyclean-generic.
93286         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
93288 2006-07-31  Bruno Haible  <bruno@clisp.org>
93290         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
93291         <stdlib.h>, <string.h>.
93293 2006-07-30  Bruno Haible  <bruno@clisp.org>
93295         * modules/readlink (License): Change to LGPL.
93297 2006-07-30  Bruno Haible  <bruno@clisp.org>
93299         * modules/javaversion (Makefile.am): Distribute javaversion.java and
93300         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
93301         set PKGDATADIR to point to it.
93303 2006-07-30  Bruno Haible  <bruno@clisp.org>
93305         * modules/csharpexec (configure.ac): Comment out macro invocation.
93306         * modules/javaexec (configure.ac): Likewise.
93307         * modules/javacomp-script (configure.ac): Likewise.
93309         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
93311 2006-07-30  Bruno Haible  <bruno@clisp.org>
93313         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
93314         linked-list.
93316 2006-07-30  Bruno Haible  <bruno@clisp.org>
93318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
93320 2006-07-30  Bruno Haible  <bruno@clisp.org>
93322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93323         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
93324         get removed.
93326 2006-07-29  Bruno Haible  <bruno@clisp.org>
93328         Make it possible for gnulib-tool to work with locally modified or
93329         augmented gnulib repositories.
93330         * gnulib-tool (func_usage): Document --local-dir option.
93331         (local_gnulib_dir): New variable.
93332         Handle --local-dir option.
93333         (func_lookup_file): New function.
93334         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
93335         (func_get_description, func_get_filelist, func_get_description,
93336         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
93337         func_get_automake_snippet, func_get_include_directive,
93338         func_get_license, func_get_maintainer): Use func_lookup_file.
93339         (func_import, func_create_testdir): Use func_lookup_file.
93341 2006-07-29  Bruno Haible  <bruno@clisp.org>
93343         * modules/setenv (Depends-on): Add unistd.
93345 2006-07-29  Bruno Haible  <bruno@clisp.org>
93347         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
93349 2006-07-29  Bruno Haible  <bruno@clisp.org>
93351         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
93353 2006-07-29  Bruno Haible  <bruno@clisp.org>
93355         * gnulib-tool (import, update): If there is no Makefile.am, look at
93356         aclocal.m4, instead of bailing out.
93358 2006-07-29  Bruno Haible  <bruno@clisp.org>
93360         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
93361         Categorize the options by when they are useful.
93363 2006-07-29  Bruno Haible  <bruno@clisp.org>
93365         * gnulib-tool (func_usage): Document option --no-libtool.
93366         Handle option --no-libtool.
93367         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
93368         for changed semantics of $libtool variable.
93369         (func_import): Likewise. If libtool is not used, show this through
93370         an option --no-libtool.
93371         (func_create_testdir): Update.
93373 2006-07-29  Bruno Haible  <bruno@clisp.org>
93375         * gnulib-tool (func_import): Extend error message about missing
93376         --doc-base.
93378 2006-07-29  Bruno Haible  <bruno@clisp.org>
93380         * gnulib-tool (func_import): Don't create the $docbase directory if
93381         there is no file to store there.
93383 2006-07-29  Bruno Haible  <bruno@clisp.org>
93385         * gnulib-tool (autoconf_minversion): If a --dir option is given and
93386         relevant, look for configure.ac there, not in the current directory.
93387         Also use a simple search for AC_PREREQ, not "autoconf --trace".
93389 2006-07-29  Bruno Haible  <bruno@clisp.org>
93391         * gnulib-tool (SORT): New variable.
93392         (func_usage): Undocument --assume-autoconf option.
93393         Remove --assume-autoconf option handling.
93394         (autoconf_minversion): Determine from the contents of configure.ac.
93395         (func_import): Remove autoconf_minversion handling.
93396         Suggested by Eric Blake.
93398 2006-07-29  Bruno Haible  <bruno@clisp.org>
93400         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
93402 2006-07-29  Bruno Haible  <bruno@clisp.org>
93404         * config/srclist.txt (*setenv.[ch]): Remove rules.
93406 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93408         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
93410 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93412         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
93413         arpa/inet.h.
93415 2006-07-28  Simon Josefsson  <jas@extundo.com>
93417         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
93418         * modules/inet_pton (Depends-on): Likewise.
93420 2006-07-28  Simon Josefsson  <jas@extundo.com>
93422         * m4/netinet_in_h.m4: New file.
93424 2006-07-28  Simon Josefsson  <jas@extundo.com>
93426         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
93427         #include's.
93429 2006-07-28  Simon Josefsson  <jas@extundo.com>
93431         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
93432         #include's.
93434 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
93436         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
93437         setgid on directories only if they set these bits.
93438         * lib/modechange.h: Remove obsolete comment about masks.
93440 2006-07-28  Eric Blake  <ebb9@byu.net>
93442         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
93443         macro expansion.
93445 2006-07-28  Bruno Haible  <bruno@clisp.org>
93447         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
93449 2006-07-28  Bruno Haible  <bruno@clisp.org>
93451         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
93453 2006-07-28  Bruno Haible  <bruno@clisp.org>
93455         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
93456         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
93457         Define fallbacks.
93458         Avoids link error on FreeBSD 4.x.
93459         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
93461         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
93462         encoding.
93463         * lib/mbswidth.c (iswcntrl): Likewise.
93465 2006-07-27  Bruno Haible  <bruno@clisp.org>
93467         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
93468         test.
93470 2006-07-27  Bruno Haible  <bruno@clisp.org>
93472         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
93473         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
93474         defined.
93476 2006-07-26  Eric Blake  <ebb9@byu.net>
93478         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
93480 2006-07-26  Eric Blake  <ebb9@byu.net>
93482         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
93483         like mingw that lack mkstemp.
93484         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
93485         avoid compilation warning on mingw.
93487 2006-07-26  Bruno Haible  <bruno@clisp.org>
93489         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
93490         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
93491         INT_FAST*_MIN, INTPTR_MIN.
93493 2006-07-25  Bruno Haible  <bruno@clisp.org>
93495         * modules/version-etc (Depends-on): Add stdarg.
93497 2006-07-25  Bruno Haible  <bruno@clisp.org>
93499         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
93500         complex commands.
93502 2006-07-25  Bruno Haible  <bruno@clisp.org>
93504         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
93505         defined in <stdarg.h> or config.h.
93507 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
93509         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
93510         (gl_STDIO_SAFER): Remove.
93512 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
93514         * MODULES.html.sh (File stream based Input/Output):
93515         Add fopen-safer, tmpfile-safer; remove stdio-safer.
93516         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
93517         * modules/fopen-safer, modules/tmpfile-safer: New files.
93518         * modules/stdio-safer: Remove.
93520 2006-07-24  Bruno Haible  <bruno@clisp.org>
93522         * modules/tmpdir: New file.
93523         * MODULES.html.sh (File system functions): Add it.
93525 2006-07-24  Bruno Haible  <bruno@clisp.org>
93527         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
93528         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
93530 2006-07-24  Bruno Haible  <bruno@clisp.org>
93532         * modules/clean-temp: New file.
93534 2006-07-24  Bruno Haible  <bruno@clisp.org>
93536         * m4/tmpdir.m4: New file, from GNU gettext.
93538 2006-07-24  Bruno Haible  <bruno@clisp.org>
93540         * lib/tmpdir.h: New file, from GNU gettext.
93541         * lib/tmpdir.c: New file, from GNU gettext.
93543 2006-07-24  Bruno Haible  <bruno@clisp.org>
93545         * lib/clean-temp.h: New file, from GNU gettext.
93546         * lib/clean-temp.c: New file, from GNU gettext.
93548 2006-07-23  Eric Blake  <ebb9@byu.net>
93550         * modules/stdio-safer (Files): Add tmpfile-safer.c.
93551         (Depends-on): Add binary-io.
93553 2006-07-23  Eric Blake  <ebb9@byu.net>
93555         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
93557 2006-07-23  Eric Blake  <ebb9@byu.net>
93559         * lib/tmpfile-safer.c: New file.
93560         * lib/stdio-safer.h (fopen_safer): Add prototype.
93561         * lib/stdio--.h (tmpfile): Make safer.
93563 2006-07-23  Bruno Haible  <bruno@clisp.org>
93565         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
93566         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
93567         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
93568         gl_linked_remove_at): Use it.
93570 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93571         and Simon Josefsson <jas@extundo.com>
93573         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
93575         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
93577 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93579         * modules/close-stream: New file.
93580         * modules/closeout (Description): Make it clear that it exits
93581         with a diagnostic on error.
93582         (Depends-on): Add close-stream.  Remove fpending, stdbool.
93583         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
93585 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93587         * m4/close-stream.m4: New file.
93589 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93591         * lib/close-stream.c, lib/close-stream.h: New files.
93593 2006-07-22  Bruno Haible  <bruno@clisp.org>
93595         Merge from GNU gettext 0.15.
93597         2006-05-01  Bruno Haible  <bruno@clisp.org>
93599                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
93601         2006-07-22  Bruno Haible  <bruno@clisp.org>
93603                 * modules/javaversion: New file.
93604                 * MODULES.html.sh (Java): Add javaversion.
93606         2006-03-12  Bruno Haible  <bruno@clisp.org>
93608                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
93610         2005-12-04  Bruno Haible  <bruno@clisp.org>
93612                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
93613                 (untested).
93615         2006-06-21  Bruno Haible  <bruno@clisp.org>
93617                 Avoid warnings from recent versions of mcs.
93618                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
93619                 -o, -L, -r any more. Use options documented since mcs-1.0
93620                 instead. Similarly for -g.
93622         2005-12-04  Bruno Haible  <bruno@clisp.org>
93624                 * build-aux/csharpcomp.sh.in: Suffix for resources is
93625                 .resources, not .resource.
93627         2005-07-09  Bruno Haible  <bruno@clisp.org>
93629                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
93630                 add a .dll suffix.
93631                 Reported by Mark Junker <mjscod@gmx.de>.
93633         2006-07-22  Bruno Haible  <bruno@clisp.org>
93635                 * modules/gettext: Upgrade to gettext-0.15.
93636                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
93637                 m4/visibility.m4.
93638                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
93640 2006-07-22  Bruno Haible  <bruno@clisp.org>
93642         Merge from GNU gettext 0.15.
93644         2006-03-25  Bruno Haible  <bruno@clisp.org>
93646                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
93648         2006-07-21  Bruno Haible  <bruno@clisp.org>
93650                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
93651                 "1.1".
93653         2006-05-09  Bruno Haible  <bruno@clisp.org>
93655                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
93656                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
93657                 for the conftestver execution.
93659         2006-05-01  Bruno Haible  <bruno@clisp.org>
93661                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
93662                 optional target-version argument. Verify that the compiler
93663                 groks source of the specified source-version, or add -source
93664                 option as necessary. Verify that the compiler produces
93665                 bytecode in the specified target-version, or add -target and
93666                 -source options as necessary. Make the result of the test
93667                 available as variable CONF_JAVAC. Also log error output in
93668                 config.log.
93670         2006-03-11  Bruno Haible  <bruno@clisp.org>
93672                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
93674         2006-05-09  Bruno Haible  <bruno@clisp.org>
93676                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
93677                 CLASSPATH_SEPARATOR to a semicolon.
93679         2006-03-12  Bruno Haible  <bruno@clisp.org>
93681                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
93682                 available as variable CONF_JAVA, for subsequent autoconf
93683                 tests. Also log error output in config.log.
93685         2006-07-19  Bruno Haible  <bruno@clisp.org>
93687                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
93688                 that getline works on glibc2 systems. Needed to avoid trouble
93689                 in relocatable.c.
93690                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
93692         2005-12-04  Bruno Haible  <bruno@clisp.org>
93694                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
93695                 launcher (untested).
93697         2005-12-04  Bruno Haible  <bruno@clisp.org>
93699                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
93701         2006-07-22  Bruno Haible  <bruno@clisp.org>
93703                 * gettext.m4: Update from GNU gettext-0.15.
93704                 * nls.m4: Likewise.
93705                 * po.m4: Likewise.
93706                 * inttypes-pri.m4: Likewise.
93707                 * inttypes-h.m4: Renamed from inttypes.m4.
93708                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
93710 2006-07-22  Bruno Haible  <bruno@clisp.org>
93712         Merge from GNU gettext 0.15.
93714         2005-07-05  Bruno Haible  <bruno@clisp.org>
93716                 * printf-args.c (printf_fetchargs): Work around broken
93717                 definition of wint_t on mingw.
93719         2005-02-12  Bruno Haible  <bruno@clisp.org>
93721                 * xallocsa.h: Add extern "C" for C++.
93723         2006-05-17  Bruno Haible  <bruno@clisp.org>
93725                 Cygwin portability.
93726                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
93728         2006-04-30  Bruno Haible  <bruno@clisp.org>
93730                 * progreloc.c: Include <mach-o/dyld.h> if available.
93731                 (find_executable): Use _NSGetExecutablePath when possible.
93733         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93735                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
93736                 function.
93738         2005-12-29  Bruno Haible  <bruno@clisp.org>
93740                 * progreloc.c (set_program_name_and_installdir): Fix
93741                 compilation error.
93743         2005-12-04  Bruno Haible  <bruno@clisp.org>
93745                 Cygwin portability.
93746                 * progreloc.c: Include <windows.h> also on Cygwin.
93747                 (find_executable): Add support for Cygwin.
93748                 (set_program_name_and_installdir): Handle also platforms with
93749                 nonempty EXEEXT.
93751         2006-07-11  Bruno Haible  <bruno@clisp.org>
93753                 * javacomp.c: Fix a comment.
93754                 Reported by Jim Meyering.
93756         2006-04-30  Bruno Haible  <bruno@clisp.org>
93758                 * javacomp.h (compile_java_class): Add source_version,
93759                 target_version arguments.
93760                 * javacomp.c: Rewritten to choose only a compiler that
93761                 respects the specified source_version and target_version.
93763         2006-06-27  Bruno Haible  <bruno@clisp.org>
93765                 Assume correct S_ISDIR macro.
93766                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
93768         2006-07-22  Bruno Haible  <bruno@clisp.org>
93770                 * javaversion.h: New file, from GNU gettext.
93771                 * javaversion.c: New file, from GNU gettext.
93772                 * javaversion.java: New file, from GNU gettext.
93773                 * javaversion.class: New file, from GNU gettext.
93775         2006-05-17  Bruno Haible  <bruno@clisp.org>
93777                 Cygwin portability.
93778                 * javaexec.c (execute_java_class): Test for jview program
93779                 also on Cygwin.
93781         2006-04-09  Bruno Haible  <bruno@clisp.org>
93783                 * fatal-signal.c: Don't include string.h.
93784                 (at_fatal_signal): Use a copying loop instead of memcpy.
93786         2005-12-04  Bruno Haible  <bruno@clisp.org>
93788                 * csharpexec.c: Add support for 'clix' launcher (untested).
93789                 (execute_csharp_using_sscli): New function.
93790                 (execute_csharp_program): Call it.
93792         2006-06-21  Bruno Haible  <bruno@clisp.org>
93794                 Avoid warnings from recent versions of mcs.
93795                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
93796                 -o, -L, -r any more. Use options documented since mcs-1.0
93797                 instead. Similarly for -g.
93799         2005-07-09  Bruno Haible  <bruno@clisp.org>
93801                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
93802                 add a .dll suffix.
93803                 Reported by Mark Junker <mjscod@gmx.de>.
93805         2006-06-17  Bruno Haible  <bruno@clisp.org>
93807                 * config.charset: Update for NetBSD 3.0.
93809         2006-05-17  Bruno Haible  <bruno@clisp.org>
93811                 Cygwin portability.
93812                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
93814         2006-05-16  Bruno Haible  <bruno@clisp.org>
93816                 * localcharset.c [CYGWIN]: Include <windows.h>.
93817                 (get_charset_aliases): For Cygwin, return the same CPxxx
93818                 aliases list as under WIN32.
93819                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
93820                 the environment variables. Fall back to GetACP().
93822         2006-04-05  Bruno Haible  <bruno@clisp.org>
93824                 * config.charset: Update Juan Manuel Guerrero's address.
93826         2005-02-12  Bruno Haible  <bruno@clisp.org>
93828                 * allocsa.h: Add extern "C" for C++.
93830         2005-02-10  Bruno Haible  <bruno@clisp.org>
93832                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
93833                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
93835         2006-07-22  Bruno Haible  <bruno@clisp.org>
93837                 * gettext.h: Update to GNU gettext-0.15.
93839 2006-07-22  Bruno Haible  <bruno@clisp.org>
93841         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
93842         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
93843         lib-prefix.m4, longdouble.m4, ssize_t.m4.
93845 2006-07-21  Eric Blake  <ebb9@byu.net>
93847         * modules/stdlib-safer: New file.
93848         * MODULES.html.sh (File stream based Input/Output): Add
93849         stdlib-safer.
93851 2006-07-21  Eric Blake  <ebb9@byu.net>
93853         * lib/stdlib-safer.h: New file from coreutils, required by
93854         stdlib--.h.
93856 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
93858         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
93860 2006-07-20  Bruno Haible  <bruno@clisp.org>
93862         * gnulib-tool: Recognize new option --assume-autoconf.
93863         (autoconf_minversion): New variable.
93864         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
93866 2006-07-20  Bruno Haible  <bruno@clisp.org>
93868         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
93870 2006-07-19  Derek R. Price  <derek@ximbiot.com>
93872         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
93873         Reindent and repaginate.
93875 2006-07-19  Derek Price  <derek@ximbiot.com>
93877         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
93878         Correct grammar.
93880 2006-07-17  Bruno Haible  <bruno@clisp.org>
93882         * modules/list: New file.
93883         * modules/array-list: New file.
93884         * modules/carray-list, modules/carray-list-tests: New files.
93885         * modules/linked-list, modules/linked-list-tests: New files.
93886         * modules/avltree-list, modules/avltree-list-tests: New files.
93887         * modules/rbtree-list, modules/rbtree-list-tests: New files.
93888         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
93889         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
93890         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
93891         * modules/oset: New file.
93892         * modules/array-oset: New file.
93893         * modules/avltree-oset, modules/avltree-oset-tests: New files.
93894         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
93895         * tests/test-carray_list.c: New file.
93896         * tests/test-linked_list.c: New file.
93897         * tests/test-avltree_list.c: New file.
93898         * tests/test-rbtree_list.c: New file.
93899         * tests/test-linkedhash_list.c: New file.
93900         * tests/test-avltreehash_list.c: New file.
93901         * tests/test-rbtreehash_list.c: New file.
93902         * tests/test-avltree_oset.c: New file.
93903         * tests/test-rbtree_oset.c: New file.
93904         * MODULES.html.sh (Container data structures): New section.
93906 2006-07-17  Bruno Haible  <bruno@clisp.org>
93908         * m4/gl_list.m4: New file.
93910 2006-07-17  Bruno Haible  <bruno@clisp.org>
93912         * lib/gl_list.h: New file.
93913         * lib/gl_list.c: New file.
93914         * lib/gl_array_list.h: New file.
93915         * lib/gl_array_list.c: New file.
93916         * lib/gl_carray_list.h: New file.
93917         * lib/gl_carray_list.c: New file.
93918         * lib/gl_linked_list.h: New file.
93919         * lib/gl_linked_list.c: New file.
93920         * lib/gl_anylinked_list1.h: New file.
93921         * lib/gl_anylinked_list2.h: New file.
93922         * lib/gl_avltree_list.h: New file.
93923         * lib/gl_avltree_list.c: New file.
93924         * lib/gl_anyavltree_list1.h: New file.
93925         * lib/gl_anyavltree_list2.h: New file.
93926         * lib/gl_rbtree_list.h: New file.
93927         * lib/gl_rbtree_list.c: New file.
93928         * lib/gl_anyrbtree_list1.h: New file.
93929         * lib/gl_anyrbtree_list2.h: New file.
93930         * lib/gl_anytree_list1.h: New file.
93931         * lib/gl_anytree_list2.h: New file.
93932         * lib/gl_linkedhash_list.h: New file.
93933         * lib/gl_linkedhash_list.c: New file.
93934         * lib/gl_anyhash_list1.h: New file.
93935         * lib/gl_anyhash_list2.h: New file.
93936         * lib/gl_avltreehash_list.h: New file.
93937         * lib/gl_avltreehash_list.c: New file.
93938         * lib/gl_rbtreehash_list.h: New file.
93939         * lib/gl_rbtreehash_list.c: New file.
93940         * lib/gl_anytreehash_list1.h: New file.
93941         * lib/gl_anytreehash_list2.h: New file.
93943         * lib/gl_oset.h: New file.
93944         * lib/gl_oset.c: New file.
93945         * lib/gl_array_oset.h: New file.
93946         * lib/gl_array_oset.c: New file.
93947         * lib/gl_avltree_oset.h: New file.
93948         * lib/gl_avltree_oset.c: New file.
93949         * lib/gl_rbtree_oset.h: New file.
93950         * lib/gl_rbtree_oset.c: New file.
93951         * lib/gl_anytree_oset.h: New file.
93953 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93955         * m4/mkancesdirs.m4: New file.
93956         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
93957         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
93958         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
93959         it.
93961 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93963         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
93964         * lib/mkancesdirs.h: New files.
93965         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
93966         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
93967         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
93968         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
93969         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
93970         callers changed.  Revamp internals significantly, by not
93971         attempting to create directories that are temporarily more
93972         permissive than the final results.  Do not attempt to use
93973         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
93974         This removes some race conditions, fixes some bugs, and simplifies
93975         things.  Use new dirchownmod function to do owner and mode changes.
93976         * lib/mkdir-p.h: Likewise.
93977         * lib/modechange.c (octal_to_mode): New function.
93978         (struct mode_change): New member mentioned.
93979         (make_node_op_equals): New arg mentioned.  All callers changed.
93980         (mode_compile): Keep track of which mode bits the user has explicitly
93981         mentioned.
93982         (mode_adjust): New arg DIR, so that we implement the X op correctly.
93983         New arg PMODE_BITS, to keep track of which mode bits the user
93984         mentioned; it treats S_ISUID and S_ISGID speciall.
93985         All callers changed.
93986         * lib/modechange.h: Likewise.
93988 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93990         * MODULES.html.sh: Add mkancestors.
93991         * modules/mkancesdirs: New module.
93992         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
93993         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
93994         The chdir-safer and afs files are now orphans; I'll remove them
93995         unless someone speaks up.
93996         Add lib/dirchownmod.c, lib/dirchownmod.h.
93997         (Depends-on): Remove alloca, chown, save-cwd, dirname.
93998         Add lchown, mkancesdirs.
93999         (Maintainer): Add self.
94001 2006-07-15  Karl Berry  <karl@gnu.org>
94003         * gnulib-tool: help message wording/arrangement.
94005 2006-07-14  Simon Josefsson  <jas@extundo.com>
94007         * doc/gnulib.texi (Libtool and Windows): New section.
94009 2006-07-12  Simon Josefsson  <jas@extundo.com>
94011         * modules/gendocs (License): Fix license, approved by Karl.
94013 2006-07-12  Eric Blake  <ebb9@byu.net>
94015         * MODULES.html.sh: Add gendocs.
94017 2006-07-11  Eric Blake  <ebb9@byu.net>
94019         * modules/fdl: New module, to install doc/fdl.texi.
94020         * MODULES.html.sh: Add new section for documentation modules.
94021         * gnulib-tool: Avoid space-tab.
94022         (--doc-base): New option, to manage files from doc.
94024 2006-07-11  Eric Blake  <ebb9@byu.net>
94026         * m4/absolute-header.m4: Fix comments to match recent change.
94028 2006-07-11  Eric Blake  <ebb9@byu.net>
94030         * gnulib-tool: List --doc-base before --tests-base.
94032 2006-07-11  Derek R. Price  <derek@ximbiot.com>
94034         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
94036 2006-07-11  Bruno Haible  <bruno@clisp.org>
94038         * README: Mention where to put documentation.
94040 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94042         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
94044 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
94046         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
94047         to stdint.m4.
94049 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
94051         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
94052         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
94053         "no/such/file/stdint.h" when there is no such file, so that
94054         the resulting C code can be parsed by dodgy compilers.
94055         Problems reported by Bob Proulx.
94057 2006-07-10  Derek R. Price  <derek@ximbiot.com>
94059         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
94060         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
94061         macros into the GNU _D_EXACT_NAMLEN.
94062         * lib/savedir.c:  Likewise.
94063         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
94065 2006-07-10  Derek R. Price  <derek@ximbiot.com>
94066         and Paul Eggert  <eggert@cs.ucla.edu>
94068         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
94069         * m4/savedir.m4:
94070         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
94071         macros into the GNU _D_EXACT_NAMLEN.
94073 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
94075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
94076         around the absolute name, to work around a problem with the HP-UX
94077         11.23 native C compiler, reported by Bob Proulx.
94079 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
94081         * doc/maintain.texi, make-stds.texi: Sync from
94082         <http://savannah.gnu.org/projects/gnustandards>.
94084 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
94086         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
94088 2006-07-09  Jim Meyering  <jim@meyering.net>
94090         * m4/glob.m4: Remove a doubled word in a comment.
94092 2006-07-09  Jim Meyering  <jim@meyering.net>
94094         * lib/argp-pv.c: Remove a doubled word in a comment.
94095         * lib/check-version.c (check_version): Likewise.
94096         * lib/javacomp.c (compile_java_class): Likewise.
94098 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
94100         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
94101         for the benefit of people using Autoconf 2.60.  If you want to
94102         support older Autoconf versions you can copy m4/onceonly_2_57.m4
94103         (or m4/onceonly.m4, if pre-2.57) manually.
94105 2006-07-08  Jim Meyering  <jim@meyering.net>
94107         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
94108         comment.
94109         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
94110         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
94111         comment.
94113 2006-07-08  Jim Meyering  <jim@meyering.net>
94115         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
94117 2006-07-07  Simon Josefsson  <jas@extundo.com>
94119         * tests/test-crc.c: Change expected crc value, the test vector
94120         were probably computed using the old broken crc.c?
94122 2006-07-06  Simon Josefsson  <jas@extundo.com>
94124         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
94125         now the canonical place for the M4 file).
94127         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
94128         from the sys_socket dependency now.
94130         * modules/inet_pton (Files): Ditto.
94132         * modules/inet_ntop (Files): Ditto.
94134 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
94136         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
94137         not gl_PREREQ_GETUSERSHELL.
94139 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94141         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
94142         with only one argument, for Autoconf 2.60.
94143         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
94144         expand to nothing, so add a shell command to avoid syntax error.
94145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
94147 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94149         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
94151 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
94153         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
94154         no longer needed.  Check for isblank decl.
94155         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
94156         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
94157         of existence.
94159 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
94161         * lib/getloadavg.c: Use __VMS, not VMS.
94162         * lib/getopt.c: Likewise.
94163         * lib/getpagesize.h: Likewise.
94164         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
94165         and probably does not work.
94167 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
94169         * lib/.cppi-disable: Add wcwidth.
94170         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
94171         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
94172         (ISGRAPH): Remove.  All uses changed to isgraph.
94173         (FOLD) [!defined _LIBC]: Remove special case.
94174         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
94175         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
94176         HAVE_ISBLANK.
94177         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
94178         case.
94180 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
94182         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
94183         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
94184         brackets.  Other minor changes to suppress some compiler
94185         warnings.
94187 2006-07-06  Derek R. Price  <derek@ximbiot.com>
94188         and Paul Eggert  <eggert@cs.ucla.edu>
94190         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
94191         of invoking obsolescent AC_HEADER_DIRENT macro.
94192         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
94193         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
94194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
94195         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
94196         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
94197         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94198         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
94199         * m4/readdir.m4: Remove; no longer needed.
94201 2006-07-06  Derek R. Price  <derek@ximbiot.com>
94202         and Paul Eggert  <eggert@cs.ucla.edu>
94204         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
94205         Don't worry about this obsolete case any more.
94206         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
94207         directories.
94208         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
94209         worry about this obsolete case any more.
94210         * lib/fts.c: Likewise.
94211         * lib/getcwd.c: Likewise.
94212         * lib/glob.h: Likewise.
94213         * lib/savedir.c: Likewise.
94215 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
94217         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
94218         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
94219         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
94220         needed.
94221         All uses removed.
94222         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94223         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
94224         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
94225         needed.
94226         * m4/getdate.m4 (gl_GETDATE): Likewise.
94227         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
94228         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
94229         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
94230         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94231         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
94232         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94233         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
94234         needed.
94236 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
94238         * lib/memcasecmp.c: Include <limits.h>.
94239         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
94240         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
94241         Don't assume isdigit succeeds only on '0' through '9'.
94243 2006-07-05  Eric Blake  <ebb9@byu.net>
94245         * modules/getaddrinfo (Depends-on): Add snprintf.
94247 2006-07-05  Eric Blake  <ebb9@byu.net>
94249         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
94250         to avoid 'header present but could not be compiled' on cygwin.
94252 2006-07-05  Eric Blake  <ebb9@byu.net>
94254         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
94255         missing from netdb.h.
94256         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
94258 2006-07-05  Derek R. Price  <derek@ximbiot.com>
94260         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
94261         no longer needed.
94262         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
94263         * m4/getdate.m4 (gl_GETDATE): Likewise.
94264         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
94265         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
94266         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
94267         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94270 2006-07-05  Derek R. Price  <derek@ximbiot.com>
94272         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
94273         All uses of is_space replaced by isspace.
94274         * lib/exit.h: Don't talk about STDC_HEADERS.
94275         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
94276         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
94277         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
94278         replaced by isprint etc.
94279         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
94280         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
94281         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
94282         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
94283         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
94284         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
94286 2006-07-05  Bruno Haible  <bruno@clisp.org>
94288         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
94289         the function exists, before testing against AIX.
94290         Reported by Martin Lambers <marlam@marlam.de>.
94292 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
94294         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
94295         From Mark D. Baushke.
94297 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
94299         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
94300         to the absolute name, not just one, to bypass Sun C 5.8's
94301         "warning: #include of /usr/include/... may be non-portable".
94303 2006-07-04  Eric Blake  <ebb9@byu.net>
94305         * modules/dirname-tests: New test module.
94306         * tests/test-dirname.c: New file, replacing dirname.c
94307         TEST_DIRNAME section that was recently deleted.
94309 2006-07-04  Bruno Haible  <bruno@clisp.org>
94311         Assume ANSI C header files and <ctype.h> functions.
94312         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
94313         (mbsnwidth): Use isprint, iscntrl instead.
94315 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94317         Merge from coreutils.
94318         * MODULES.html.sh: Add xstrtold.
94319         * modules/xstrtold: New file.
94320         * modules/cycle-check (Files): Add lib/same-inode.h.
94321         * modules/dirname (Files): Add m4/double-slash-root.m4.
94322         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
94323         * modules/mkdir-p (Files): Add lib/same-inode.h.
94324         * modules/same (Files): Add lib/same-inode.h.
94326 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94328         * m4/absolute-header.m4: Renamed from full-header-path.m4.
94329         This is to keep the terminology clean; POSIX talks about
94330         "absolute pathnames", not "full pathnames", but the GNU
94331         Coding Standards say to use "path" for something else;
94332         so use "absolute" to keep both sides happy.
94333         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
94334         Set gl_absolute_header, not gl_full_header_path.
94335         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
94336         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
94337         All uses changed.
94339         Merge from coreutils.
94341         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
94343         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
94344         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
94345         want to require the building of c-strtod.o.
94346         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
94347         needs -lm directly.
94348         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
94350         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94352         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
94353         --as-needed option if available.  Problem reported by Albert Chin in
94354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
94355         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
94356         cc merely issues a bunch of annoying warnings for --as-needed
94357         (this problem was reported by Bob Proulx).  Also, try linking with
94358         -lm to detect a bug in binutils 2.16 (this problem was reported
94359         by Ralf Wildenhues).
94361         2006-06-18  Jim Meyering  <jim@meyering.net>
94363         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
94364         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
94365         macro.
94366         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
94367         also check for glibc-2.4's abort-inducing bug.
94369         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
94370         Low-probability clean-up should be to use rmdir to get rid of
94371         the just-created directory, not unlink.
94373         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
94374         configure fail, and request a bug report to inform us about it.
94375         Add a comment that, barring reports to the contrary, in 2007 we'll
94376         assume ftruncate is universally available.
94378         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
94380         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
94382         2006-03-12  Jim Meyering  <jim@meyering.net>
94384         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
94385         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
94386         * m4/same.m4 (gl_SAME): Likewise.
94387         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
94389         2006-03-11  Eric Blake  <ebb9@byu.net>
94391         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
94392         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
94393         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
94394         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
94396 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94398         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
94399         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
94400         reported by Mark D. Baushke, one in
94401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
94403         Merge from coreutils.
94405         * lib/.cppi-disable: Add stdint_.h.
94406         * lib/.cvsignore: Add stdint.h.
94408         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
94410         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
94411         both double and long double versions.
94412         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
94413         * lib/xstrtold.c: New file.
94414         * lib/xstrtod.h (xstrtold): New decl.
94416         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
94418         * lib/filemode.c (setst): Remove.
94419         (strmode): Rewrite to avoid setst.  This makes the code shorter,
94420         (arguably) clearer, and the generated code is a bit smaller on my
94421         Debian GNU/Linux stable x86 host.
94423         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
94425         * lib/filemode.c: Include "filemode.h" first, to test the interface.
94426         Assume that filemode.h includes sys/types.h and sys/stat.h.
94427         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
94428         (ftypelet): Reorder to put common cases first, for efficiency.
94429         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
94430         to do 'M'.
94431         (strmode): Renamed from mode_string, and now stores 12 bytes instead
94432         of 10, for compatibility with FreeBSD.  All callers changed.
94433         (filemodestring): Now stores 12 bytes instead of 10, and sets file
94434         types that can't be deduced solely from st_mode.  First arg is now a
94435         const pointer.
94436         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
94437         (strmode): Renamed from mode_string.
94438         (filemodestring): New decl.
94439         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
94440         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
94441         needed.
94442         (S_ISPORT, S_ISWHT): New macros, if not already defined.
94444         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
94446         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
94447         fsusage.h now does that.  Include fsusage.h first, to test interface.
94448         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
94449         at most one method (the old code could have generated decls that
94450         didn't conform to C89, not that this was ever exercised).
94451         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
94453         2006-03-19  Jim Meyering  <jim@meyering.net>
94455         Work even in a chroot where d_ino values for entries in "/"
94456         don't match the stat.st_ino values for the same names.
94457         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
94458         number, iterate through all entries again, using lstat instead.
94459         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
94460         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
94462         * lib/getcwd.c (__getcwd): Clarify a comment.
94463         Use memcpy in place of a call to strcpy.
94465         2006-03-12  Jim Meyering  <jim@meyering.net>
94467         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
94468         matches that of the current directory (which we're about to chdir ".."
94469         out of), then save the dev-ino of the parent, instead.
94471         * lib/same-inode.h (SAME_INODE): New file/macro.
94472         * lib/chdir-safer.c (SAME_INODE): Remove definition.
94473         Include "same-inode.h", instead.
94474         * lib/same.c: Likewise.
94475         * lib/cycle-check.h: Include "same-inode.h".
94476         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
94477         * lib/cycle-check.c (SAME_INODE): Remove definition.
94478         * lib/root-dev-ino.h: Include "same-inode.h".
94480         2006-03-11  Eric Blake  <ebb9@byu.net>
94482         * lib/same.c (same_name): s/base_name/last_component/
94483         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
94484         * lib/filenamecat.c (file_name_concat): Likewise.
94486         2006-03-11  Eric Blake  <ebb9@byu.net>,
94487                     Paul Eggert  <eggert@cs.ucla.edu>
94489         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
94490         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
94491         drive prefix.
94492         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
94493         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
94494         (last_component): New method.
94495         * lib/dirname.c (dir_len): Determine when drive letters need a
94496         subsequent slash.  Preserve // when it is special.
94497         (dir_name): Don't append dot when drive letter is absolute.
94498         [TEST_DIRNAME]: Move into a full-blown gnulib test.
94499         * lib/basename.c (base_name): New semantics - malloc the result.
94500         Preserve // when it is special.  Preserve relative files that look
94501         like drive letters.
94502         (base_len): Preserve // when it is special.
94503         (last_component): New method, similar to old base_name semantics.
94504         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
94505         base_name.  Strip redundant slashes from ///.
94507 2006-07-03  Jim Meyering  <jim@meyering.net>
94509         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
94510         macro is used before the first cycle_check call.
94512 2006-07-03  Eric Blake  <ebb9@byu.net>
94514         * modules/dirname (Depends-on): Add xstrndup.
94516 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94518         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
94519         test cases, so that config.log is a bit easier to follow.
94521 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94523         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
94524         both are 64 bits, since this seems to be the tradition, and this
94525         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
94526         we ever run into a host that prefers long long to long in this
94527         case, we'll need another configure-time test.  Problem reported by
94528         Jim Meyering.
94530 2006-07-02  Eric Blake  <ebb9@byu.net>
94532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
94534 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94536         * modules/inttypes (Depends-on): No longer depends on stdint.
94537         * modules/stdint (Description): Say more about assumptions.
94538         Say that the fast types might differ.  Say macros are used.
94539         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
94540         (Makefile.am): Revise list of substituted symbols to match
94541         new stdint.m4.
94542         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
94543         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
94544         * tests/test-stdint.c (verify_same_types)
94545         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
94546         the code conforms to C99/C89.
94547         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
94548         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
94550 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94552         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
94553         but fix a bug, by requiring at least 64 bits.
94554         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
94555         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
94556         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
94557         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94559         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
94560         changes.  Make 2.59 a prerequisite.  Check and substitute for
94561         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
94562         inttypes.h.  Do not use special include files; just use the
94563         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
94564         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
94565         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
94566         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
94567         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
94568         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
94569         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
94570         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
94571         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
94572         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
94573         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
94574         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
94575         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
94576         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
94577         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
94578         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
94579         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
94580         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
94581         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
94582         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
94583         WINT_MAX.  Check for C99 conformance more strictly, by detecting
94584         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
94585         not check for things that C99 does not require, e.g., int8_t.  If
94586         a test isn't needed unless <stdint.h> isn't working, and is
94587         unlikely to be needed for any other reason, then don't do it
94588         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
94589         size_t, since we assume C89 freestanding at least.  Do not check
94590         for sig_atomic_t, wchar_t, or wint_t, since the code now does
94591         the right thing even if the types are not defined.  Instead use:
94592         (gl_STDINT_TYPE_PROPERTIES): New macro.
94593         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
94594         testing whether <sys/types.h> clashes, as Autoconf does this for
94595         us now.  All uses removed.
94596         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
94597         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
94598         (gl_CHECK_TYPE_SAME):
94599         Remove; no longer needed.
94600         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
94601         exists, since we'll return 0 anyway in that case.
94602         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
94604 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94606         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
94607         possible collision with system files.
94608         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
94609         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
94610         WCHAR_MIN and WCHAR_MAX in this case.
94611         (<stddef.h>): Do not include; no longer needed.
94612         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
94613         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
94614         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
94615         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
94616         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
94617         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
94618         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
94619         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
94620         !defined(__c99))]: Include in this case too, since it's harmless
94621         now.
94622         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
94623         dangerous to do so.
94624         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
94625         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
94626         (_STDINT_MIN, _STDINT_MAX): New macros.
94627         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
94628         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
94629         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
94630         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
94631         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
94632         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
94633         macros, not typedefs; this simplifies things quite a bit.
94634         Use long int for all types narrower than int64_t.
94635         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
94636         Define in terms of long long int or int64_t or long int,
94637         not int64_t or int32_t.  This saves some compile-time testing.
94638         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
94639         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
94640         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
94641         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
94642         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
94643         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
94644         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
94645         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
94646         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
94647         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
94648         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
94649         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
94650         undef any previous version and define our own version, for
94651         simplicity and consistency with the new macros for types.
94652         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
94653         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
94654         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
94655         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
94656         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
94657         @WINT_T_SUFFIX@ to keep things simple here.
94658         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
94659         Simplify by assuming typical 8/16/32/64 host, since we're
94660         already doing that elsewhere anyway.
94661         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
94662         and assume long long int is 64 bits if available.  This
94663         speeds up 'configure'.
94665 2006-07-01  Eric Blake  <ebb9@byu.net>
94667         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
94668         Reported by Andreas Buening.
94670 2006-07-01  Eric Blake  <ebb9@byu.net>
94672         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
94674 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
94676         * lib/getaddrinfo.c: fixed typo
94678 2006-06-29  Jim Meyering  <jim@meyering.net>
94680         * modules/strftime (Maintainer): Add my name, since with the
94681         FPRINTFTIME changes strftime.c has forked from glibc.
94683 2006-06-29  Eric Blake  <ebb9@byu.net>
94685         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
94687 2006-06-29  Eric Blake  <ebb9@byu.net>
94689         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
94691 2006-06-29  Eric Blake  <ebb9@byu.net>
94693         * lib/stat_.h: New file.
94695 2006-06-29  Eric Blake  <ebb9@byu.net>
94697         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
94698         unused static function.
94700 2006-06-29  Eric Blake  <ebb9@byu.net>
94702         * doc/functions.texi (Function Portability): Document missing lstat
94703         on mingw.
94705 2006-06-29  Eric Blake  <ebb9@byu.net>
94707         * MODULES.html.sh: Add sys_stat.
94708         * modules/sys_stat: New module.
94709         * modules/mkstemp (Depends-on): Add sys_stat.
94711 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94713         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
94715 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94717         * m4/c-bs-a.m4: Removed.
94719 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94721         * lib/strftime.c: Assume strftime() exists.
94723 2006-06-29  Derek Price  <derek@ximbiot.com>
94725         * modules/c-bs-a: Removed - \a is C89.
94726         * MODULES.html.sh: Remove c-bs-a.
94728 2006-06-29  Bruno Haible  <bruno@clisp.org>
94730         * modules/wcwidth (License): Change to LGPL.
94732 2006-06-28  Simon Josefsson  <jas@extundo.com>
94734         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
94735         on _WIN32.
94737         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
94738         getnameinfo.
94740 2006-06-28  Simon Josefsson  <jas@extundo.com>
94742         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
94744 2006-06-28  Simon Josefsson  <jas@extundo.com>
94746         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
94747         functions there.  It will succeed on Windows XP, but on Windows
94748         2000 and (presumably) earlier, it will fail, and use the internal
94749         re-implementation.
94750         (use_win32_p): New function.
94751         (getaddrinfo): Use strtoul on servname, to support numeric ports.
94752         Support AI_NUMERICSERV to disable getservbyname.
94753         (getnameinfo): New function, only supports
94754         NI_NUMERICHOST|NI_NUMERICSERV for now.
94756         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
94757         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
94758         getnameinfo.
94760 2006-06-28  Eric Blake  <ebb9@byu.net>
94762         * modules/wcwidth: New file.
94763         * modules/mbchar (Depends-on): Add wcwidth.
94764         * modules/mbswidth (Depends-on): Add wcwidth.
94765         * MODULES.html.sh: Add wcwidth.
94767 2006-06-28  Eric Blake  <ebb9@byu.net>
94769         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
94770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
94772 2006-06-28  Eric Blake  <ebb9@byu.net>
94774         * lib/xvasprintf.h: Fix comments.
94776 2006-06-28  Eric Blake  <ebb9@byu.net>
94778         * lib/mbchar.h (wcwidth): Include wcwidth.h.
94779         * lib/mbswidth.c (wcwidth): Move from here...
94780         * lib/wcwidth.h: ...to this new file.
94782 2006-06-28  Derek R. Price  <derek@ximbiot.com>
94784         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
94786         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
94787         it's obsolete.
94788         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
94790 2006-06-28  Derek R. Price  <derek@ximbiot.com>
94792         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
94793         Autoconf 2.60 says this stuff was obsolete.
94795 2006-06-28  Bruno Haible  <bruno@clisp.org>
94797         * modules/wcwidth (Files): Add m4/wchar_t.m4.
94799 2006-06-28  Bruno Haible  <bruno@clisp.org>
94801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
94802         gt_TYPE_WCHAR_T.
94804 2006-06-28  Bruno Haible  <bruno@clisp.org>
94806         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
94807         declaration for wcwidth.
94808         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
94810 2006-06-28  Bruno Haible  <bruno@clisp.org>
94812         * lib/mkdtemp.c [MINGW]: Include <io.h>.
94813         (mkdir): Define using _mkdir.
94815 2006-06-28  Bruno Haible  <bruno@clisp.org>
94817         * lib/getaddrinfo.h: Fix POSIX URL.
94818         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
94819         _WIN32.
94820         (use_win32_p): Make static.
94821         (getaddrinfo): Reject service name if it is empty or does not consist
94822         solely of decimal digits, or if its value is > 65535.
94823         (getnameinfo): Remove useless casts.
94825 2006-06-27  Simon Josefsson  <jas@extundo.com>
94827         * modules/sys_select: New file, suggested by Bruno Haible, Paul
94828         Eggert and Martin Lambers.
94830 2006-06-27  Simon Josefsson  <jas@extundo.com>
94832         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
94833         Eggert and Martin Lambers.
94835 2006-06-27  Bruno Haible  <bruno@clisp.org>
94837         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
94838         result to 0, not to empty.
94839         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
94841 2006-06-27  Bruno Haible  <bruno@clisp.org>
94843         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
94845 2006-06-26  Simon Josefsson  <jas@extundo.com>
94847         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
94848         present.
94850 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
94852         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
94853         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
94854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
94856 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
94858         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
94860 2006-06-26  Bruno Haible  <bruno@clisp.org>
94862         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
94864 2006-06-26  Bruno Haible  <bruno@clisp.org>
94866         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
94868 2006-06-26  Bruno Haible  <bruno@clisp.org>
94870         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
94871         SGI C compiler in pre-C99 mode.
94872         Suggested by Mark D. Baushke and Larry Jones.
94874 2006-06-26  Bruno Haible  <bruno@clisp.org>
94876         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
94877         WCHAR_MAX.
94878         Reported by Mark D. Baushke and Larry Jones.
94880 2006-06-26  Bruno Haible  <bruno@clisp.org>
94882         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
94883         in pre-C99 mode.
94884         Suggested by Mark D. Baushke and Larry Jones.
94886 2006-06-23  Simon Josefsson  <jas@extundo.com>
94887             Bruno Haible  <bruno@clisp.org>
94889         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
94890         Emit mostlyclean-local rule.
94891         (func_emit_tests_Makefile_am): Likewise.
94892         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
94894 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
94896         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
94898 2006-06-23  Bruno Haible  <bruno@clisp.org>
94900         * tests/test-stdint.c: Update to match ISO C 99 Technical
94901         Corrigendum 1.
94903 2006-06-23  Bruno Haible  <bruno@clisp.org>
94905         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
94907 2006-06-23  Bruno Haible  <bruno@clisp.org>
94909         * lib/stdint_.h: Treat IRIX like OpenBSD.
94911 2006-06-23  Bruno Haible  <bruno@clisp.org>
94913         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
94914         ISO C 99 Technical Corrigendum 1.
94916 2006-06-22  Simon Josefsson  <jas@extundo.com>
94918         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
94919         MinGW.
94921 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
94923         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
94924         needed.  Some compiler complained about some of them.  Problem reported
94925         by Larry Jones in
94926         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
94928 2006-06-21  Simon Josefsson  <jas@extundo.com>
94930         * tests/test-getaddrinfo.c: New file.
94932         * modules/getaddrinfo-tests: New file.
94934         * MODULES.html.sh: Add inet_pton.
94936         * modules/inet_pton: New file.
94938 2006-06-21  Simon Josefsson  <jas@extundo.com>
94940         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
94941         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
94942         of using the (limited) gnulib implementation on Windows XP.
94944         * m4/inet_pton.m4: New file.
94946 2006-06-21  Simon Josefsson  <jas@extundo.com>
94948         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
94949         variable.
94951         * lib/socket_.h: Don't define WINVER.
94953         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
94954         slightly modified to work in gnulib.
94956 2006-06-21  Simon Josefsson  <jas@extundo.com>
94958         * doc/gnulib.texi (Windows sockets): Add.
94960 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
94962         * lib/read-file.c (fread_file): Start with buffer allocation of
94963         0 bytes rather than 1 byte; this simplifies the code.
94964         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
94965         code to free buffer and save/restore errno.
94966         (internal_read_file): Remove unused local.
94968 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
94970         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
94971         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
94972         Problem reported by Denis Excoffier in
94973         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
94975 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94977         * modules/sys_socket, modules/socklen: Include sys/types since
94978         FreeBSD 4.x's sys/socket.h needs it.
94980 2006-06-19  Simon Josefsson  <jas@extundo.com>
94982         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
94984 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94986         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
94988 2006-06-19  Bruno Haible  <bruno@clisp.org>
94990         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
94991         and FULL_PATH_INTTYPES_H in angle brackets.
94992         Reported by Mark D. Baushke <mdb@gnu.org>.
94994 2006-06-17  Eric Blake  <ebb9@byu.net>
94996         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
94997         errno.
94999 2006-06-17  Bruno Haible  <bruno@clisp.org>
95001         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
95002         <sys/inttypes.h>.
95004 2006-06-17  Bruno Haible  <bruno@clisp.org>
95006         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
95007         whether errno is declared. Assume <errno.h> declares errno.
95009 2006-06-17  Bruno Haible  <bruno@clisp.org>
95011         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
95013 2006-06-17  Bruno Haible  <bruno@clisp.org>
95015         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
95016         problem on Solaris 2.5.1.
95018 2006-06-16  Eric Blake  <ebb9@byu.net>
95020         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
95021         * lib/unicodeio.c [!defined errno]: Likewise.
95022         * lib/strtol.c [!defined errno]: Likewise.
95023         * lib/strtod.c [!defined errno]: Likewise.
95025 2006-06-15  Eric Blake  <ebb9@byu.net>
95027         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
95029 2006-06-15  Eric Blake  <ebb9@byu.net>
95031         * config/srclist.txt (ssize_t.m4): Lose sync.
95033 2006-06-15  Bruno Haible  <bruno@clisp.org>
95035         * modules/stdint (Files): Include m4/full-header-path.m4,
95036         m4/size_max.m4, m4/wchar_t.m4.
95037         (Makefile.am): Many more substitutions.
95038         * modules/stdint-tests: New file.
95039         * tests/test-stdint.c: New file.
95041 2006-06-15  Bruno Haible  <bruno@clisp.org>
95043         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
95044         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
95045         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
95046         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
95047         gl_CHECK_TYPE_SAME): New macros.
95049 2006-06-15  Bruno Haible  <bruno@clisp.org>
95051         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
95053 2006-06-15  Bruno Haible  <bruno@clisp.org>
95055         * lib/stdint_.h: Rewritten to be fully auto-configured.
95056         Fixes bug on HP-UX/IA64.
95058 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
95060         * lib/getdate.y (__attribute__): Don't define if already defined.
95061         Problem reported by Larry Jones.
95062         * lib/utimens.c (__attribute__): Likewise.
95064 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
95066         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
95067         reported by Andreas Schwab.
95069 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95070             Bruno Haible  <bruno@clisp.org>
95072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
95073         check for the declaration of strnlen and a run test that exposes the
95074         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
95075         rpl_strndup.
95077 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95078             Bruno Haible  <bruno@clisp.org>
95080         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
95082 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95084         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
95085         compile test, for Tru64 4.0D.
95087 2006-05-28  Karl Berry  <karl@gnu.org>
95089         * config/srclist.txt (printf-args.c): lose sync.
95091 2006-05-26  Martin Lambers  <marlam@marlam.de>
95093         * lib/getpass.c: Updates the test for the native W32 API, and adds
95094         missing includes, thus fixing compilation warnings.
95096 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
95098         * lib/exclude.c (exclude_fnmatch): New function.
95099         (excluded_file_name): Call exclude_fnmatch.
95100         * lib/exclude.h (excluded_file_name): New prototype
95102 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
95104         * lib/tempname.c (small_open, large_open): New macros.
95105         (__open, __open64) [!_LIBC]: Remove.
95106         (__gen_tempname): Use small_open and large_open instead of __open
95107         and __open64.  This fixes a portability bug on HP-UX 11.11i
95108         reported by Simon Wing-Tang in
95109         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
95111 2006-05-24  Bruno Haible  <bruno@clisp.org>
95113         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
95114         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
95115         Reported by Thorsten Maerz <torte@netztorte.de> via
95116         Aaron Stone <aaron@serendipity.cx>.
95118 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
95120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
95121         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
95122         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
95123         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
95124         not really conditional on the cache.
95125         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
95127 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
95129         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
95130         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
95131         (my_usleep): Don't mishandle maximum value.
95133 2006-05-19  Jim Meyering  <jim@meyering.net>
95135         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
95137 2006-05-17  Bruno Haible  <bruno@clisp.org>
95139         Cygwin portability.
95140         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
95142 2006-05-17  Bruno Haible  <bruno@clisp.org>
95144         * lib/stdint_.h: Fix recognition of Cygwin.
95146 2006-05-15  Bruno Haible  <bruno@clisp.org>
95148         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
95149         on libtool patch by Ralf Wildenhues.
95151 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
95153         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
95154         test for C99 conformance; (bool) 0.5 is an integer constant
95155         expression, but (bool) -0.5 is not.  Problem reported by Fedor
95156         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
95158 2006-05-11  Simon Josefsson  <jas@extundo.com>
95160         * m4/xvasprintf.m4: Fix obvious typo.
95162 2006-05-11  Jim Meyering  <jim@meyering.net>
95164         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
95165         James Lemley.
95167 2006-05-10  Simon Josefsson  <jas@extundo.com>
95169         * lib/md4.c: Typo fix, update copyright years.
95170         (K1, K2): Don't use L because it turn computations into 64-bit on
95171         64-bit platforms.
95173 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
95175         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
95176         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
95177         unwanted sign propagation, e.g., on hosts with 64-bit int.
95178         There still are some problems with reeelly weird theoretical hosts
95179         (e.g., 33-bit int) but it's not worth worrying about now.
95180         * lib/sha1.c (rol): Likewise.
95181         (K1, K2, K3, K4): Remove unnecessary L suffix.
95183 2006-05-10  Bruno Haible  <bruno@clisp.org>
95185         * lib/des.c: Cast to avoid warnings.
95187 2006-05-09  Bruno Haible  <bruno@clisp.org>
95189         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
95190         (Depends-on): Depend also on xsize, stdarg.
95191         (configure.ac): Add gl_XVASPRINTF.
95193 2006-05-09  Bruno Haible  <bruno@clisp.org>
95195         * m4/xvasprintf.m4: New file.
95197 2006-05-09  Bruno Haible  <bruno@clisp.org>
95199         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
95200         (EOVERFLOW): Define fallback value.
95201         (xstrcat): New function.
95202         (xvasprintf): Recognize the special case of a string concatenation.
95204 2006-05-08  Eric Blake  <ebb9@byu.net>
95206         * gnulib-tool (func_version): Base copyright year on CVS date.
95207         (func_emit_copyright_notice): New function.
95208         (func_emit_lib_Makefile_am): Use it.
95209         (func_emit_tests_Makefile_am): Likewise.
95210         (func_import): Likewise.
95212 2006-05-08  Bruno Haible  <bruno@clisp.org>
95214         * modules/stdarg: New file.
95215         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
95217 2006-05-08  Bruno Haible  <bruno@clisp.org>
95219         * m4/stdarg.m4: New file, from GNU gettext.
95221 2006-05-08  Bruno Haible  <bruno@clisp.org>
95223         * config/srclist.txt (build-aux/config.rpath): different from latest
95224         release.
95226 2006-05-08  Bruno Haible  <bruno@clisp.org>
95228         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
95230 2006-05-05  Jim Meyering  <jim@meyering.net>
95232         * m4/warning.m4: New file, derived from bison's file by the same name.
95234 2006-05-03  Bruno Haible  <bruno@clisp.org>
95236         * lib/stdint_.h: Shorter URL.
95237         * lib/inttypes.h: Likewise.
95239 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95241         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
95243 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95245         * lib/verify.h: Document the internals better.  Most of this change
95246         was written by Bruno Haible.
95248 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95250         * doc/verify.texi: New file, partly based on a proposal by
95251         Bruno Haible.
95253 2006-05-02  Bruno Haible  <bruno@clisp.org>
95255         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
95256         test from here...
95257         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
95259 2006-04-29  Bruno Haible  <bruno@clisp.org>
95261         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
95262         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
95264 2006-04-29  Bruno Haible  <bruno@clisp.org>
95266         * gnulib-tool: Make --update option actually work.
95268 2006-04-29  Bruno Haible  <bruno@clisp.org>
95270         * doc/gcd.texi: New file.
95271         * doc/gnulib.texi: Include it.
95273 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
95275         * lib/getdate.y (get_date): When adding relative date, start with the
95276         initial time, not with the result of the first mktime call.
95278 2006-04-25  Bruno Haible  <bruno@clisp.org>
95280         * gnulib-tool (func_import): Output the include directives in three
95281         blocks, sorted separately.
95282         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95284 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
95286         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
95287         to define main with arguments, for C++.  Reported by Eric Blake.
95288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
95289         Prefer 'int main ()' to 'int main (void)', for C++.
95290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
95291         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
95292         for 'main', for C99 and C++.
95294 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
95296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
95297         Don't assume that exit status -1 is valid.
95298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95299         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95300         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
95301         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
95302         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
95303         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
95304         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
95305         functions can be used without declaring them, or that you can
95306         exit with status -1.
95307         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
95309 2006-04-24  Karl Berry  <karl@gnu.org>
95311         * config/srclist.txt (longdouble.m4): sync lost.
95313 2006-04-24  Eric Blake  <ebb9@byu.net>
95315         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
95317 2006-04-24  Bruno Haible  <bruno@clisp.org>
95319         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
95320         poll() implementation in AIX.
95321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95323 2006-04-24  Bruno Haible  <bruno@clisp.org>
95325         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
95326         assigned exactly once.
95328 2006-04-23  Claudio Fontana  <claudio@gnu.org>
95329             Bruno Haible  <bruno@clisp.org>
95331         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
95332         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
95333         for AM_CPPFLAGS.
95335 2006-04-23  Bruno Haible  <bruno@clisp.org>
95337         * modules/copy-file: Depend on unistd.
95338         * modules/execute: Likewise.
95339         * modules/fatal-signal: Likewise.
95340         * modules/findprog: Likewise.
95341         * modules/mkdtemp : Likewise.
95342         * modules/pipe: Likewise.
95343         * modules/wait-process: Likewise.
95345 2006-04-23  Bruno Haible  <bruno@clisp.org>
95347         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
95348         condition was already detected.
95349         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95351 2006-04-23  Bruno Haible  <bruno@clisp.org>
95353         * lib/copy-file.c: Include <unistd.h> unconditionally.
95354         * lib/execute.c: Likewise.
95355         * lib/fatal-signal.c: Likewise.
95356         * lib/findprog.c: Likewise.
95357         * lib/mkdtemp.c: Likewise.
95358         * lib/pipe.h: Likewise.
95359         * lib/pipe.c: Likewise.
95360         * lib/wait-process.h: Likewise.
95362 2006-04-23  Bruno Haible  <bruno@clisp.org>
95364         * gnulib-tool (func_usage): Fix --import description. Document
95365         --update.
95366         (func_import): Create temporary file in a temporary directory, if
95367         --dry-run is specified. Silence errors from 'grep' when there are no
95368         m4 files in $m4dir.
95369         (func_create_testdir): Silence errors from 'grep' when there are no
95370         m4 files in $m4dir.
95371         Reported by Karl Berry <karl@freefriends.org>.
95373 2006-04-20  Bruno Haible  <bruno@clisp.org>
95375         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
95376         one argument, so that the code will be portable to Autoconf 2.60.
95377         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
95378         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95379         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
95381 2006-04-19  Derek Price  <derek@ximbiot.com>
95382             Eric Blake  <ebb9@byu.net>
95384         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
95385         rather than "/full/path.h".  Update comment to match.  Shorten &
95386         generalize m4_translit call via AS_TR_CPP.
95388 2006-04-19  Derek Price  <derek@ximbiot.com>
95389             Eric Blake  <ebb9@byu.net>
95391         * lib/inttypes.h: Correct grammar in comment.
95393 2006-04-18  Derek Price  <derek@ximbiot.com>
95394             Paul Eggert  <eggert@cs.ucla.edu>
95396         * modules/inttypes: New file.
95397         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
95399 2006-04-18  Derek Price  <derek@ximbiot.com>
95400             Paul Eggert  <eggert@cs.ucla.edu>
95402         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
95403         New files.
95405 2006-04-18  Derek Price  <derek@ximbiot.com>
95406             Paul Eggert  <eggert@cs.ucla.edu>
95408         * lib/inttypes.h: New file.
95409         * lib/strtoimax.c: Assume <inttypes.h>.
95411 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
95413         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
95414         isn't mounted.  Problem reported by Kir Kolyshkin.
95416 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
95418         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
95419         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
95420         Derek R. Price.
95421         * lib/regex.h (RE_DUP_MAX): Update comment to match current
95422         implementation.
95424 2006-04-12  Eric Blake  <ebb9@byu.net>
95426         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
95427         is now done automatically by the corresponding Autoconf macro.
95429 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
95431         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
95432         time_r.h.
95434 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95436         Merge regex changes from libc, removing some of our
95437         POSIX-conformance changes that were rejected and redoing them in a
95438         less-intrusive way.
95440         * lib/regcomp.c (re_compile_internal, init_dfa):
95441         Length arg is now size_t, not Idx.  All uses changed.
95442         (peek_token): Forward decl now says internal_function.
95443         (__re_error_msgid, __re_error_msgid_idx):
95444         Now static rather than extern with attribute_hidden.
95445         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
95446         For some reason libc prefers K&R style defns for external functions.
95447         (regerror) [!defined _LIBC]: Likewise.
95448         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
95449         (seek_collating_symbol_entry, lookup_collation_sequence_value):
95450         (build_range_exp, build_collating_symbol):
95451         Use K&R-style defn.
95452         (re_compile_fastmap): Use '\0' to memset, not 0.
95453         (utf8_sb_map): Make the calculations more obvious.
95454         (init_dfa, parse_bracket_exp, build_charclass_op):
95455         Call calloc and cast result, as glibc does.
95456         (init_word_char, fetch_token, peek_token, peek_token_bracket):
95457         (build_range_exp, build_collating_symbol):
95458         Now internal functions.
95460         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
95462         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
95463         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
95464         Don't depend on VMS; depend on __VMS instead, for POSIX
95465         namespace cleanness.
95466         (regoff_t): Define to ssize_t, not long int.
95468         Remove the REG_ macros named below.  Instead, make the old names
95469         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
95470         __USE_GNU_REGEX.
95471         (REG_BACKSLASH_ESCAPE_IN_LISTS):
95472         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
95473         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
95474         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
95475         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
95476         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
95477         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
95478         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
95479         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
95480         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
95481         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
95482         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
95483         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
95484         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
95485         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
95486         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
95487         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
95488         (REG_NREGS):
95489         Remove.  All uses replaced by the old RE_* names.
95490         (RE_BACKSLASH_ESCAPE_IN_LISTS):
95491         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
95492         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
95493         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
95494         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
95495         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
95496         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
95497         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
95498         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
95499         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
95500         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
95501         Don't bother having these macros be independent of each others'
95502         values, since they no longer exist in the POSIX name space.
95504         Rename the following member names back to their old names,
95505         unless !__USE_GNU_REGEX.  All uses changed back.
95506         (buffer): Renamed from re_buffer.
95507         (allocated): Renamed from re_allocated.
95508         (used): Renamed from re_used.
95509         (syntax): Renamed from re_syntax.
95510         (fastmap): Renamed from re_fastmap.
95511         (translate): Renamed from re_translate.
95512         (can_be_null): Renamed from re_can_be_null.
95513         (regs_allocated): Renamed from re_regs_allocated.
95514         (fastmap_accurate): Renamed from re_fastmap_accurate.
95515         (no_sub): Renamed from re_no_sub.
95516         (not_bol): Renamed from re_not_bol.
95517         (not_eol): Renamed from re_not_eol.
95518         (newline_anchor): Renamed from re_newline_anchor.
95519         (num_regs): Renamed from rm_num_regs.
95520         (start): Renamed from rm_start.
95521         (end): Renamed from rm_end.
95523         (free_state): Move up a bit.
95525         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
95526         #define to be empty.
95527         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
95528         when that is what is intended.
95529         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
95530         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
95531         (MAX): New macro.
95532         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
95533         All uses changed back to re_malloc, etc.  It's now the caller's
95534         responsibility to check for overflow; all callers changed.
95535         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
95536         (re_x2nrealloc): Remove.
95537         (free_state): Remove decl.
95539         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
95540         (re_set_registers, re_exec):
95541         Use K&R-style defn.
95543         2006-01-31  Roland McGrath  <roland@redhat.com>
95545         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
95546         Reported by Mike Frysinger <vapier@gentoo.org>.
95548         2006-01-15  Andreas Jaeger  <aj@suse.de>
95550         [BZ #1950]
95551         * lib/regex_internal.c (re_string_reconstruct): Adjust for
95552         build_wcs_upper_buffer change.
95553         (build_wcs_upper_buffer): Change return type.
95555         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
95557         * lib/regex_internal.h: Include <stdint.h> if available.
95559         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
95561         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
95563         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
95565         * lib/regcomp.c: Adjust for changed secondary hash function.
95567         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
95569         * lib/regex.h: Pretty printing.
95570         Clean up namespace a bit.
95572         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
95574         * lib/regexec.c (update_cur_sifted_state, check_arrival,
95575         check_arrival_add_next_nodes): Avoid using uninitialized variable.
95577         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95578                     Ulrich Drepper  <drepper@redhat.com>
95580         [BZ #1302]
95581         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
95582         changed.
95583         (bitset_word_t): Renamed from bitset_word.  All uses changed.
95585         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
95587         [BZ #281]
95588         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
95589         * lib/regcomp.c: Remove unnecessary uses of
95590         unsigned RE_TRANSLATE_TYPE.
95591         * lib/regex_internal.h: Likewise.
95592         * lib/regex_internal.c: Likewise.
95593         * lib/regexec.c: Likewise.
95594         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
95596         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
95598         * lib/regexec.c (find_recover_state): Remove unnecessary
95599         initialization.
95600         (transit_state_bkref): Make DFA a const pointer.
95601         (get_subexp): Likewise.
95602         (check_arrival): Likewise.
95603         (update_cur_sifted_state): Likewise.
95604         (re_search_internal): Likewise.
95605         (prune_impossible_nodes): Likewise.
95606         (acquire_init_state_context): Likewise.
95607         (proceed_next_node): Likewise.
95608         (set_regs): Likewise.
95609         (free_fail_stack_return): Likewise.
95610         (check_arrival_expand_ecl): Mark DFA parameter as const.
95611         (check_arrival_expand_ecl_sub): Likewise.
95612         (check_subexp_limits): Likewise.
95613         (sub_epsilon_src_nodes):  Likewise.
95614         (add_epsilon_src_nodes):  Likewise.
95615         (merge_state_array): Likewise.
95616         (update_regs): Likewise.
95617         (build_trtable): Likewise.
95618         (sift_states_backward): Mark MCTX parameter as const.
95619         (build_sifted_states): Likewise.
95620         (update_cur_sifted_state): Likewise.
95621         (sift_states_mkref): Likewise.
95622         (check_arrival_expand_ecl): Mark eclosure as const.
95623         (check_dst_limits_calc_pos_1): Likewise.
95624         * lib/regex_internal.h (re_match_context_t): Make dfa a const
95625         pointer.
95627         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
95629         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
95630         (transit_state_sb): Likewise.
95631         (transit_state_mb): Likewise.
95632         (sift_states_iter_mb): Likewise.
95633         (check_arrival_add_next_nodes): Likewise.
95634         (check_node_accept_bytes): Change first parameter to pointer-to-const.
95635         [_LIBC] (re_search_2_stub): Use mempcpy.
95637         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
95638         mbrtowc for very simple UTF-8 case.
95640         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
95641         a pointer-to-const.
95642         (re_acquire_state_context): Likewise.
95643         * lib/regex_internal.h: Adjust prototypes.
95645         * lib/regex.c: Prevent using C++ compilers.
95647         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
95648         (re_acquire_state_context): Likewise.
95650 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95652         * modules/regex (Depends-on): Add ssize_t.
95654 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95656         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
95657         translation table.
95659 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95661         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
95663 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
95664             Bruno Haible  <bruno@clisp.org>
95666         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
95667         <sys/types.h> and <inttypes.h>.
95669 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95671         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
95672         `__error_t_defined', so argp.h will not typedef the former.
95674 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
95676         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
95677         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
95678         glibc names.  Even if glibc is changed to conform to POSIX, the
95679         traditional names will be available anyway, since regex depends on
95680         the extensions module.  Also, fix a longstanding typo in the
95681         implementation of Spencer ERE test #75 from grep 2.3.  Problems
95682         reported by Emanuele Giaquinta.  Also, change sense of cached
95683         variable, so that the message makes sense.
95685 2006-03-24  Simon Josefsson  <jas@extundo.com>
95687         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
95688         including some doc fixes.
95689         (base64_encode_alloc): Fix +1 bug on allocation failures.
95691 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95693         * lib/base64.c (base64_encode): Do not read past end of array with
95694         unsanitized input on systems with CHAR_BIT > 8.
95696 2006-03-24  Eric Blake  <ebb9@byu.net>
95698         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
95700 2006-03-22  Karl Berry  <karl@gnu.org>
95702         * config/srclist.txt (*setenv.[ch]): get from coreutils.
95703         * config/srclistvars.sh (COREUTILS): new var.
95705 2006-03-17  Jim Meyering  <jim@meyering.net>
95707         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
95708         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
95710 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
95712         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
95713         no longer needs it.  Instead, check that regoff_t is as least
95714         as wide as ptrdiff_t.
95716         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
95717         so that our regex.h stays compatible with the installed regex.
95718         This is helpful for installers who configure --without-included-regex.
95719         Problem reported by Emanuele Giaquinta.
95721 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
95723         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
95724         Typedef to long int, not to off_, as POSIX will likely change
95725         in that direction.
95727 2006-03-15  Eric Blake  <ebb9@byu.net>
95729         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
95731 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
95733         * lib/argp-help.c (validate_uparams): Fix typo
95734         * lib/argp-parse.c (argp_default_options): Consistently begin help
95735         messages with a lowercase letter.
95737 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
95739         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
95740         overrun buffers and shouldn't be used (much as gets shouldn't be
95741         used).
95742         * lib/time_r.c (asctime_r, ctime_r): Likewise.
95744 2006-03-08  Simon Josefsson  <jas@extundo.com>
95746         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
95747         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95749 2006-03-08  Simon Josefsson  <jas@extundo.com>
95751         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
95752         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95754 2006-03-08  Simon Josefsson  <jas@extundo.com>
95756         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
95757         signal that configure disabled the device.
95759 2006-03-08  Simon Josefsson  <jas@extundo.com>
95761         * build-aux/maint.mk: Fix refresh-po, to handle no translated
95762         languages.
95764 2006-03-07  Simon Josefsson  <jas@extundo.com>
95766         * modules/getopt (Depends-on): Add unistd.
95768         * modules/unistd: New file.
95770 2006-03-07  Simon Josefsson  <jas@extundo.com>
95772         * modules/gc-random: New file.
95774 2006-03-07  Simon Josefsson  <jas@extundo.com>
95776         * m4/unistd_h.m4: New file.
95778 2006-03-07  Simon Josefsson  <jas@extundo.com>
95780         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
95781         test to be side-effect free by storing the result in the cache
95782         variable gl_cv_lib_readline, and moving the assignment of
95783         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
95784         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95786 2006-03-07  Simon Josefsson  <jas@extundo.com>
95788         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
95789         error on missing devices (the functions will return an error).
95791         * m4/gc.m4: Move random stuff to gc-random.m4
95793 2006-03-07  Simon Josefsson  <jas@extundo.com>
95795         * lib/unistd_.h: New file.
95797 2006-03-07  Simon Josefsson  <jas@extundo.com>
95799         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
95801 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95803         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
95804         Problem reported by Juan Manuel Guerrero.
95806 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95808         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
95809         the unistd module.
95810         * lib/getlogin_r.c: Likewise.
95811         * lib/getlogin_r.h: Likewise.
95812         * lib/glob.c: Likewise.
95813         * lib/pagealign_alloc.c: Likewise.
95814         * lib/unistd_.h: Remove; no longer needed.
95816 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95818         * MODULES.html.sh (Support for systems lacking POSIX:2001):
95819         Add unistd.
95820         * modules/c-stack (Depends-on): Add unistd.
95821         * modules/getlogin_r: Likewise.
95822         * modules/glob: Likewise.
95823         * modules/pagealign_alloc: Likewise.
95824         * modules/unistd (Files): Remove lib/unistd_.h.
95825         (EXTRA_DIST): Remove.
95826         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
95827         need unistd_.h.
95828         (MOSTLYCLEANFILES): Remove unistd.h-t.
95830 2006-03-03  Simon Josefsson  <jas@extundo.com>
95832         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
95834 2006-03-03  Simon Josefsson  <jas@extundo.com>
95836         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
95837         libidn and bison.
95839 2006-03-03  Simon Josefsson  <jas@extundo.com>
95841         * build-aux/maint.mk: Add indent target.
95843 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
95845         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
95846         our replacement poll.h in any case, to avoid a differing
95847         declaration from a system header.  Seen on AIX.
95849 2006-03-01  Simon Josefsson  <jas@extundo.com>
95851         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
95852         <kasal@ucw.cz>.
95854 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95856         * modules/gettime (Depends-on): Add extensions module.
95857         * modules/nanosleep (Depends-on): Likewise.
95858         * modules/settime (Depends-on): Likewise.
95860 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95862         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
95863         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
95864         pedantically.
95865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95866         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
95868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
95869         not "==".  Reported by Ralf Wildenhues.
95871 2006-03-01  Karl Berry  <karl@gnu.org>
95873         * doc/Copyright/request-*: new files, synced from gnuorg.
95875 2006-03-01  Karl Berry  <karl@gnu.org>
95877         * config/srclist.txt (Copyright/*): new entries.
95879 2006-02-28  Simon Josefsson  <jas@extundo.com>
95881         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
95883 2006-02-27  Simon Josefsson  <jas@extundo.com>
95885         * lib/base64.h: Indent #define's.  From Jim Meyering
95886         <jim@meyering.net>.
95888 2006-02-27  Jim Meyering  <jim@meyering.net>
95890         Revert the change of 2006-02-24, so these files can continue
95891         to be sync'd from gettext.
95892         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
95893         of `config.h'.
95895 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
95897         * modules/intprops: New file.
95898         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95899         Add intprops.
95900         * modules/getloadavg (Files): Remove lib/intprops.h.
95901         (Depends-on): Add intprops.
95902         * modules/human: Likewise.
95903         * modules/inttostr: Likewise.
95904         * modules/openat: Likewise.
95905         * modules/sig2str: Likewise.
95906         * modules/userspec: Likewise.
95907         * modules/utimecmp: Likewise.
95908         * modules/xnanosleep: Likewise.
95909         * modules/xstrtol: Likewise.
95911 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
95913         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
95914         * modules/lock-tests (TESTS): Use $(EXEEXT).
95915         * modules/tls-tests: Likewise.
95916         * modules/argp-tests: Likewise.
95917         (check_PROGRAMS): New var, replacing...
95918         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
95920 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95922         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
95923         `config.h'.
95925 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
95927         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
95929 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95931         Sync from coreutils.
95932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
95933         gl_CHDIR_SAFER.
95935 2006-02-22  Jim Meyering  <jim@meyering.net>
95937         Sync from coreutils.
95938         * m4/chdir-safer.m4: New file.
95940 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
95942         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
95943         AT_FDCWD exceeds INT_MAX.
95944         * lib/openat.h (AT_FDCWD): Likewise.
95946 2006-02-17  Eric Blake  <address@hidden>
95948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
95950 2006-02-16  Simon Josefsson  <jas@extundo.com>
95952         * modules/getaddrinfo (Depends-on): Add sys_socket.
95954 2006-02-15  Simon Josefsson  <jas@extundo.com>
95956         * build-aux/maint.mk: Add dsyntax-check rule.
95958 2006-02-15  Eric Blake  <ebb9@byu.net>
95960         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
95961         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
95962         'present but cannot compile' warnings on cygwin.
95963         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
95964         use ws2tcpip.h if sys/socket.h works.
95965         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
95966         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
95968 2006-02-14  Simon Josefsson  <jas@extundo.com>
95970         * modules/maintainer-makefile (Files): Rename.
95972         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
95973         and (the local) Makefile.cfg to maint-cfg.mk.
95975         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
95976         to the latter.
95978         * modules/maintainer-makefile: New module.
95980         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
95981         severaly stripped to make it possible to build it up from scratch
95982         with reliable tests.
95984         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
95985         fixes to permit overriding the default actions when configure and
95986         makefile are not available.
95988 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
95990         Sync from coreutils.
95991         * modules/lstat (Depends-on): Don't depend on xalloc.
95992         (License): Change from GPL to LGPL, since this is now simply a
95993         replacement for a libc function.
95995 2006-02-14  Jim Meyering  <jim@meyering.net>
95997         Sync from coreutils.
95999         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
96000         failure on deficient systems, and simplify gnulib lgpl dependencies.
96001         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
96002         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
96004         * lib/xalloc-die.c: Remove unused definition of N_.
96006 2006-02-14  Jim Meyering  <jim@meyering.net>
96008         Sync from coreutils.
96009         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
96010         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
96011         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
96012         double-quote uses of that variable, to accommodate the rare case in
96013         which getmntent is available in none of the libraries checked.  This
96014         happens at least on FreeBSD 5.0.
96016 2006-02-13  Simon Josefsson  <jas@extundo.com>
96018         * gnulib-tool (Usage): Fix --import, from
96019         karl@freefriends.org (Karl Berry).
96021 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
96023         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
96025 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
96027         * lib/argp-namefrob.h: Restore changes accidentally lost during the
96028         "autoupdate" on 2005-12-12.
96030 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
96032         * modules/closeout (Depends-on): Remove atexit.
96034 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
96036         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
96037         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
96039 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
96041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
96042         __EXTENSIONS__ if this causes compilation to fail.  Problem
96043         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
96044         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
96046 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
96048         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
96049         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
96050         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
96051         All uses changed.
96053 2006-01-26  Simon Josefsson  <jas@extundo.com>
96055         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
96056         prototype is visible on mingw32.
96058         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
96059         for mingw32.
96061         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
96062         mingw32).
96064 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
96066         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
96067         attempt to open for write; this always fails, at least on POSIX
96068         hosts.  This reinstates the 2006-01-09 change, which was
96069         inadvertently removed.
96071 2006-01-26  Bruno Haible  <bruno@clisp.org>
96073         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
96074         Reported by Paul Eggert.
96076 2006-01-26  Bruno Haible  <bruno@clisp.org>
96077             Paul Eggert  <eggert@cs.ucla.edu>
96079         * lib/stdbool_.h (_Bool)
96080         [(! (defined __cplusplus || defined __BEOS__)
96081           && !defined __GNUC__
96082           && !(defined __HP_cc || defined __xlc__
96083                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
96084                || defined __sgi))]:
96085         #define to signed char in these cases too; this simplifies
96086         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
96087         etc., separately) and makes it more conservative.
96089 2006-01-25  Simon Josefsson  <jas@extundo.com>
96091         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
96092         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
96093         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
96095 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
96097         * lib/argp-namefrob.h: Bugfix. Remove stray #
96099 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96101         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
96102         so that we test the test.
96103         Check for yet another HP-UX cc bug involving *bool |= bool.
96105 2006-01-25  Karl Berry  <karl@gnu.org>
96107         * config/srclist.txt (vasnprintf.c): sync lost.
96109 2006-01-25  Jim Meyering  <jim@meyering.net>
96111         Sync from the stable (b5) branch of coreutils:
96113         * lib/fts.c (fts_children): Don't let close() clobber errno from
96114         failed fchdir().
96116         * lib/fts.c (fts_stat): When following a symlink-to-directory,
96117         don't necessarily interpret stat-fails+lstat-succeeds as indicating
96118         a dangling symlink.  That can also happen at least for ELOOP.
96119         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
96120         FYI, this bug predates the inclusion of fts.c in coreutils.
96122         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
96123         in their own block, so pre-c99 compilers don't object.
96125         Avoid the double-free (first in fts_read, second in fts_close) that
96126         would occur when an `active' directory is made inaccessible (e.g.,
96127         via chmod a-x) during a traversal.
96128         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
96129         before returning.  Reproduce this failure by
96130         mkdir -p a/b; cd a; chmod a-x . b
96131         Reported by Stavros Passas.
96133 2006-01-25  Jim Meyering  <jim@meyering.net>
96135         * lib/fileblocks.c: Remove more useless parentheses.
96136         * lib/readutmp.h: Likewise.
96138 2006-01-25  Bruno Haible  <bruno@clisp.org>
96140         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
96141         warnings.
96142         Reported by Paul Eggert.
96144 2006-01-25  Bruno Haible  <bruno@clisp.org>
96146         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
96147         rid of a trap command. For Solaris sh.
96148         Reported by Mark D. Baushke <mdb@gnu.org>.
96150 2006-01-24  Simon Josefsson  <jas@extundo.com>
96152         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
96153         Bruno.
96155 2006-01-24  Karl Berry  <karl@gnu.org>
96157         * config/srclist.txt (argp-namefrob.h): sync lost.
96159 2006-01-24  Jim Meyering  <jim@meyering.net>
96161         * modules/openat (Files): Add lib/intprops.h.
96162         From Mark D. Baushke.
96164 2006-01-24  Jim Meyering  <jim@meyering.net>
96166         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
96167         Reported by Mark D. Baushke.
96169 2006-01-24  Jim Meyering  <jim@meyering.net>
96171         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
96173 2006-01-24  Bruno Haible  <bruno@clisp.org>
96175         * modules/strnlen (Maintainer): Change from glibc to all.
96177 2006-01-24  Bruno Haible  <bruno@clisp.org>
96179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
96180         Patch by Paul Eggert.
96182 2006-01-24  Bruno Haible  <bruno@clisp.org>
96184         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
96185         already has it.
96186         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
96187         2005-11-26.
96189         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
96190         'signed char' to avoid problems with the built-in _Bool type.
96191         Reported by Paul Eggert on 2005-11-26.
96193 2006-01-24  Bruno Haible  <bruno@clisp.org>
96195         * gnulib-tool (func_import): Avoid constructing complicated sed
96196         expressions inside backquote.
96197         Report and solution by Mark D. Baushke <mdb@gnu.org>.
96199 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
96201         These changes imported from libc.
96202         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
96203         test and two separate function calls.
96204         * lib/strndup.c (__strndup): Add libc_hidden_def.
96206 2006-01-23  Simon Josefsson  <jas@extundo.com>
96208         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
96209         Remove the test_*_SOURCES variable: automake infers it by default.
96210         * modules/tls-tests: Likewise.
96212 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96214         Work around porting bugs reported by Dieter in
96215         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
96216         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
96217         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
96218         Include "getopt.h" first, to check interface.
96219         (getenv): Declare only if defined HAVE_DECL_GETENV &&
96220         !HAVE_DECL_GETENV.
96221         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
96222         (__strndup): Revert to K&R-style function dfns, the glibc style.
96223         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
96224         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
96225         Include strnlen.h first, to get prototype properly.
96226         (strnlen): Renamed from __strnlen.
96227         Remove weak alias.
96229 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96231         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
96233 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96235         * config/srclist.txt: Adjust to reflect glibc reorganization.
96236         This affects only comments.
96238 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96240          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
96241          Reported by Bruce Korb <bkorb@gnu.org>.
96243 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
96245         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
96246         to pacify gcc -Wswitch-default.
96248 2006-01-22  Bruno Haible  <bruno@clisp.org>
96250         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
96251         temporary buffer for sprintf, take into account the precision also
96252         for 'd', 'i', 'u', 'o', 'x', 'X'.
96254 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
96256         * modules/argp-tests: New module
96257         * tests/test-argp.c: New file
96258         * tests/test-argp-2.sh: New file
96260 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
96262         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
96263         (__argp_base_name): Removed
96264         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
96265         typo.
96266         (__argp_base_name): Provide macro definition or extern declaration
96267         depending on the configuration
96269 2006-01-20  Simon Josefsson  <jas@extundo.com>
96271         * modules/inet_ntop (Depends-on): Depend on sys_socket.
96273 2006-01-20  Simon Josefsson  <jas@extundo.com>
96275         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
96277 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
96279         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
96280         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
96281         Suggested by Bruno Haible.
96283 2006-01-20  Karl Berry  <karl@gnu.org>
96285         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
96286         until changes propagate, I guess.
96288 2006-01-19  Simon Josefsson  <jas@extundo.com>
96290         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
96292 2006-01-19  Simon Josefsson  <jas@extundo.com>
96294         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
96296 2006-01-19  Simon Josefsson  <jas@extundo.com>
96298         * gnulib-tool: Set check_PROGRAMS.
96300         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
96301         modules/des-tests, modules/gc-arcfour-tests,
96302         modules/gc-arctwo-tests, modules/gc-des-tests,
96303         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
96304         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
96305         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
96306         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
96307         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
96308         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
96309         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
96310         test_*_SOURCES.
96312 2006-01-18  Simon Josefsson  <jas@extundo.com>
96314         * modules/socklen (Depends-on): Depend on sys_socket.
96316 2006-01-18  Simon Josefsson  <jas@extundo.com>
96318         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
96319         modules/des-tests, modules/gc-arcfour-tests,
96320         modules/gc-arctwo-tests, modules/gc-des-tests,
96321         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
96322         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
96323         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
96324         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
96325         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
96326         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
96327         $(EXEEXT) to automake TESTS variable, for mingw32.
96329 2006-01-17  Simon Josefsson  <jas@extundo.com>
96331         * modules/socklen (Include): Need sys/socket.h.
96333 2006-01-17  Bruno Haible  <bruno@clisp.org>
96335         * modules/ssize_t (Include): Add <sys/types.h>.
96337 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
96339         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
96340         it's not portable and it doesn't work with cross-compiles.
96341         Problem reported by Bruno Haible.  Fix missing-$ typo in
96342         'test "gl_cv_ignore_unused_libraries" ...' that prevented
96343         -zignore from being used with Sun's C compiler.
96345 2006-01-12  Simon Josefsson  <jas@extundo.com>
96347         * lib/base64.c: Fix warning, reported by Bruno Haible
96348         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
96350 2006-01-12  Bruno Haible  <bruno@clisp.org>
96352         * modules/ldd: New file.
96353         * build-aux/ldd.sh.in: New file.
96354         * MODULES.html.sh (Support for building libraries and executables): Add
96355         ldd.
96357 2006-01-12  Bruno Haible  <bruno@clisp.org>
96359         * m4/ldd.m4: New file.
96361 2006-01-12  Bruno Haible  <bruno@clisp.org>
96363         * gnulib-tool (func_import, func_create_testdir): Don't go into an
96364         endless loop while replacing $auxdir with build-aux.
96366 2006-01-11  Simon Josefsson  <jas@extundo.com>
96368         * lib/stdint_.h (SIZE_MAX): Add missing (.
96370 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
96372         Sync from coreutils.
96373         * lib/md5.c: Fix commentary typos.
96374         (alignof, UNALIGNED_P): No need for a GCC-specific version.
96375         * lib/md5.h (__attribute__): Remove; unused.
96376         * lib/sha1.c: Fix commentary to match md5 better.
96377         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
96378         so that we don't need to worry about alignment.  All uses changed.
96379         This merges the 2005-10-28 md5 change into sha1.
96381 2006-01-11  Jim Meyering  <jim@meyering.net>
96383         Sync from coreutils.
96384         * lib/md5.c (OP): Fix spacing.
96386 2006-01-11  Bruno Haible  <bruno@clisp.org>
96388         Ensure automatic ordering between gl_LOCK and gl_ARGP.
96389         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
96390         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
96392 2006-01-11  Bruno Haible  <bruno@clisp.org>
96394         Ensure automatic ordering between gl_LOCK and gl_ARGP.
96395         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
96396         the "early" section as well.
96398 2006-01-11  Bruno Haible  <bruno@clisp.org>
96400         Avoid "ar: no archive members specified" error on MacOS X.
96401         * gnulib-tool (func_modules_add_dummy): New function.
96402         (func_import, func_create_testdir): Invoke it.
96404 2006-01-11  Bruno Haible  <bruno@clisp.org>
96406         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
96407         with $auxdir in AC_CONFIG_FILES statements.
96409 2006-01-11  Bruno Haible  <bruno@clisp.org>
96411         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96412         Initialize also noinst_HEADERS to empty.
96414 2006-01-11  Bruno Haible  <bruno@clisp.org>
96416         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
96417         variables.
96418         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
96419         autoreconf.
96421 2006-01-11  Bruno Haible  <bruno@clisp.org>
96423         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
96424         overridable by the user.
96425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96427 2006-01-10  Simon Josefsson  <jas@extundo.com>
96429         * modules/sys_socket: New file.
96431 2006-01-10  Simon Josefsson  <jas@extundo.com>
96433         * m4/sys_socket_h.m4: New file.
96435 2006-01-10  Simon Josefsson  <jas@extundo.com>
96437         * lib/socket_.h: New file.
96439 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96441         * modules/readutmp (Maintainer): Add myself.
96443 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96445         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
96446         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
96447         People who are still concerned with buggy memcmp implementations
96448         can invoke gl_FUNC_MEMCMP themselves.
96450 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96452         * lib/regex_internal.h (BITSET_WORD_BITS):
96453         Work around a bug in 64-bit PGC (before version 6.1-2), where the
96454         preprocessor mishandles large unsigned values as if they were signed.
96455         Problem reported by Claudio Fontana in
96456         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
96458 2006-01-10  Jim Meyering  <jim@meyering.net>
96460         Avoid the double-free (first in fts_read, second in fts_close) that
96461         would occur when an `active' directory is made inaccessible (e.g.,
96462         via chmod a-x) during a traversal.
96463         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
96464         before returning.  Reproduce this failure by
96465         mkdir -p a/b; cd a; chmod a-x . b
96466         Reported by Stavros Passas.
96468         Sync from coreutils.
96469         * lib/sha1.c: Tweak grammar in a comment.
96471 2006-01-10  Jim Meyering  <jim@meyering.net>
96473         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
96474         Patch by Joerg Sonnenberger.
96476 2006-01-10  Bruno Haible  <bruno@clisp.org>
96478         * modules/readutmp: Depend on module free.
96479         * modules/strtok_r: Depend on module restrict.
96481 2006-01-10  Bruno Haible  <bruno@clisp.org>
96483         * modules/gettext (configure.ac): Add an invocation of
96484         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
96486 2006-01-10  Bruno Haible  <bruno@clisp.org>
96488         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
96489         Reported by Werner Lemberg <wl@gnu.org>.
96491 2006-01-10  Bruno Haible  <bruno@clisp.org>
96493         * lib/localcharset.c: Update from GNU gettext.
96495 2006-01-10  Bruno Haible  <bruno@clisp.org>
96497         * lib/argp.h (__const): Remove macro. Use const instead.
96498         * lib/argp-fmtstream.h (__const): Likewise.
96499         * lib/glob_.h (__const): Remove macro.
96500         * lib/glob-libc.h: Use const instead of __const.
96502 2006-01-10  Bruno Haible  <bruno@clisp.org>
96504         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
96505         variable.
96506         Needed to avoid an automake error regarding the 'gettext' module.
96508 2006-01-09  Simon Josefsson  <jas@extundo.com>
96510         * modules/inet_ntop (Depends-on): Add restrict.
96512 2006-01-09  Simon Josefsson  <jas@extundo.com>
96514         * modules/gc-rijndael-tests (License): Put under LGPL.
96516         * modules/gc-des-tests (License): Likewise.
96518         * modules/gc-arcfour-tests (License): Likewise.
96520         * modules/gc-arctwo-tests (License): Likewise.
96522         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
96524         * modules/gc-hmac-sha1-tests (Files): Likewise.
96526         * modules/gc-hmac-md5-tests (License): Likewise.
96528         * modules/gc-sha1-tests (License): Likewise.
96530         * modules/gc-md5-tests (License): Likewise.
96532         * modules/gc-md4-tests (License): Likewise.
96534         * modules/gc-md2-tests (License): Likewise.
96536         * modules/gc-tests (License): Likewise.
96538         * modules/des-tests (License): Likewise.
96540         * modules/md4-tests (License): Likewise.
96542         * modules/md2-tests (License): Likewise.
96544 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96546         Sync from coreutils:
96548         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
96549         * modules/lib-ignore: New file.
96550         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
96551         chdir-safer.m4, lchmod.m4.
96552         * modules/openat: Add mkdirat.c, openat-priv.h.
96554 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96556         Sync from coreutils.
96557         * m4/lib-ignore.m4: New file.
96558         * m4/lchmod.m4: New file.
96560 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96562         Sync from coreutils.
96563         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
96564         for write access: POSIX says that must fail.
96565         * lib/fts.c (diropen): Likewise.
96566         * lib/save-cwd.c (save_cwd): Likewise.
96567         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
96568         well, for minor improvements on hosts that lack O_DIRECTORY.
96569         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
96570         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
96571         Fall back on chown if open failed with EACCES.
96573         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
96574         Report an error at compile-time if only a 1-second nominal clock
96575         resolution is found.
96577         * lib/lchmod.h: New file.
96578         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
96579         (make_dir_parents): Use lchown rather than chown, and
96580         lchmod rather than chmod.
96582         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
96583         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
96584         "proc" reported by n0dalus.
96586         * lib/mountlist.c: Include <limits.h>.
96587         (dev_from_mount_options)
96588         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
96589         New function.  It no longer assumes "dev=" has the System V meaning
96590         on Linux (since it doesn't).  It also parses "dev=" more carefully.
96591         (read_file_system_list)
96592         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
96593         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
96594         dev= in that case.
96596         * lib/posixtm.h (PDS_PRE_2000): New macro.
96597         * lib/posixtm.c (year): Arg is now syntax_bits rather than
96598         allow_century.  All usages changed.  Reject dates outside the range
96599         1969-1999 if PDS_PRE_2000 is used.
96601 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96603         Sync from coreutils.
96604         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
96605         (Time of day items): Mention the possibility of leap seconds.
96606         Problem reported by Dr. David Alan Gilbert.
96608 2006-01-09  Jim Meyering  <jim@meyering.net>
96610         Sync from coreutils.
96612         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
96614         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
96616         * lib/modechange.c (mode_compile): Reject an invalid mode string
96617         that starts with an octal digit.  From Andreas Gruenbacher.
96619         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
96620         and dup to open_safer and dup_safer, respectively.
96621         (openat_permissive): Fix typo in comment.
96623         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
96624         "gettext.h"; either no longer needed or are guaranteed by openat.h.
96625         (_): Remove; no longer needed.
96626         (openat): Renamed from rpl_openat; no need for rpl_openat
96627         since openat.h renames openat for us.
96628         Replace most of the body with a call to openat_permissive,
96629         to avoid duplicate code.
96630         Port to (probably hypothetical) environments were mode_t is
96631         wider than int.
96632         (openat_permissive): Require mode arg, so that we can check
96633         types better.  Put it just after flags.  Change cwd failure
96634         indicator from pointer-to-bool to pointer-to-errno-value.
96635         All callers changed.
96636         Invoke openat_save_fail and/or openat_restore_fail if
96637         cwd_errno is null, so that openat can call us.
96638         (openat_permissive, fdopendir, fstatat, unlinkat):
96639         Simplify errno handling to avoid some duplicate code,
96640         as it's OK to set errno on success.
96641         * lib/openat.h: Revamp code so that function macros depend on
96642         __OPENAT_PREFIX only, not also on AT_FDCWD.
96643         (openat_ro): Remove.  Caller changed to use openat_permissive.
96644         (openat_permissive): Now a macro, if not a function.
96645         (openat_restore_fail, openat_save_fail): Now always functions,
96646         since mkdirat needs them even if __OPENAT_PREFIX is defined.
96648         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
96649         and openat.c.
96650         * lib/mkdirat.c: Include openat-priv.h.
96651         Remove definitions of macros defined therein.
96652         * lib/openat.c: Likewise.
96654         * lib/mkdirat.c (mkdirat): New file and function.
96655         * lib/openat.h (mkdirat): Declare.
96657         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
96659         * lib/openat.h (openat_permissive): Declare.
96660         (openat_ro): Define.
96662         * lib/openat.c (EXPECTED_ERRNO): New macro.
96663         (openat_permissive): New function -- used in remove.c rewrite.
96664         (all functions): Set errno just before returning, only if there
96665         was an actual failure.
96666         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
96668         Emulate openat-family functions using Linux's procfs, if possible.
96669         Idea and some code based on Ulrich Drepper's glibc changes.
96671         * lib/openat.c: (BUILD_PROC_NAME): New macro.
96672         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
96673         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
96674         before falling back on save_cwd and restore_cwd.
96675         (fdopendir, fstatat, unlinkat): Likewise.
96677         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
96678         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
96680         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
96681         as second argument to va_arg.  Otherwise, some versions of gcc
96682         warn that `if this code is reached, the program will abort'.
96684 2006-01-09  Jim Meyering  <jim@meyering.net>
96686         Sync from coreutils.
96687         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
96688         Require openat-priv.h.
96690 2006-01-09  Bruno Haible  <bruno@clisp.org>
96692         * modules/strnlen (Include): Use strnlen.h.
96694 2006-01-09  Bruno Haible  <bruno@clisp.org>
96696         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
96698 2006-01-09  Bruno Haible  <bruno@clisp.org>
96700         * lib/sysexit_.h (EX_OK): New macro.
96701         Suggested by Martin Lambers <marlam@marlam.de>.
96703 2006-01-09  Bruno Haible  <bruno@clisp.org>
96705         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
96706         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
96708 2006-01-09  Bruno Haible  <bruno@clisp.org>
96710         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
96711         numbers.
96713 2006-01-09  Bruno Haible  <bruno@clisp.org>
96715         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
96716         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
96717         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
96718         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
96720 2006-01-09  Bruno Haible  <bruno@clisp.org>
96722         * build-aux/javacomp.sh.in: New file, moved from lib/.
96723         * modules/javacomp-script (Files): Update.
96724         (configure.ac): Add AC_CONFIG_FILES invocation.
96725         (EXTRA_DIST): Remove variable.
96727         * build-aux/javaexec.sh.in: New file, moved from lib/.
96728         * modules/javaexec (Files): Update.
96729         (configure.ac): Add AC_CONFIG_FILES invocation.
96730         (EXTRA_DIST): Remove javaexec.sh.in.
96732         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
96733         * modules/csharpcomp-script (Files): Update.
96734         (configure.ac): Add AC_CONFIG_FILES invocation.
96735         (EXTRA_DIST): Remove variable.
96737         * build-aux/csharpexec.sh.in: New file, moved from lib/.
96738         * modules/csharpexec (Files): Update.
96739         (configure.ac): Add AC_CONFIG_FILES invocation.
96740         (EXTRA_DIST): Remove csharpexec.sh.in.
96742 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
96744         Sync from coreutils.
96746         Add POSIX ACL support
96747         * lib/acl.h (copy_acl, set_acl): Add declarations.
96748         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
96749         systems other than Linux.
96750         (chmod_or_fchmod): New function: use fchmod when possible,
96751         and chmod otherwise.
96752         (file_has_acl): Add a POSIX ACL implementation, with a
96753         Linux-specific subcase.
96754         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
96755         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
96756         acls are unsupported.
96757         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
96758         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
96759         are unsupported.
96761 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
96763         Sync from coreutils.
96764         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
96766 2006-01-07  Bruno Haible  <bruno@clisp.org>
96768         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
96769         gl_EARLY.
96771 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
96773         * lib/strftime.c (tzname): Don't declare if it is already #defined.
96774         Problem reported for Mingw by Mark Junker.
96776 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
96778         * README: Gnulib normally doesn't generate a tarball.
96780 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
96782         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
96783         long int, not int, for nanosecond counts, so that people who are
96784         used to POSIX struct timespec won't be surprised.  Reported by Jim
96785         Meyering.
96787 2005-12-28  Bruno Haible  <bruno@clisp.org>
96789         * build-aux/config.rpath: Update from GNU gettext.
96791 2005-12-16  Jim Meyering  <jim@meyering.net>
96793         * modules/fprintftime: New module.
96794         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
96796 2005-12-16  Jim Meyering  <jim@meyering.net>
96798         * m4/fprintftime.m4: New file.
96800 2005-12-16  Jim Meyering  <jim@meyering.net>
96802         * lib/fprintftime.c, lib/fprintftime.h: New files.
96804 2005-12-15  Simon Josefsson  <jas@extundo.com>
96806         * modules/socklen (configure.ac): Fix M4 macro name, to align with
96807         new m4/socklen.m4.
96809 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96811         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
96812         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
96814 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96816         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
96817         * lib/argp-help.c (fill_in_uparams): Check if the constructed
96818         struct uparams is valid. Fall back to the default values if it is
96819         not.
96821 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96823         * modules/argp (Files): Add argp-pin.c
96824         (Depends-on): dirname
96825         (lib_SOURCES): Add argp-pin.c
96827 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96829         * m4/argp.m4:  Check if program_invocation_name and
96830         program_invocation_short_name are declared and define appropriate
96831         macros if they are not.
96833 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96835         * lib/argp-help.c (__argp_base_name): New function
96836         (__argp_short_program_name): Rewrite using __argp_base_name
96837         * lib/argp-namefrob.h: Define program_invocation_name and
96838         program_invocation_short_name if requested
96839         (__argp_base_name): Add prototype
96840         * lib/argp-parse.c (argp_def): Use gettext wrappers
96841         (argp_default_parser): Use __argp_base_name
96842         * lib/argp-pin.c: New file. Defines program_invocation_name and
96843         program_invocation_short_name on systems that lack them.
96845 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96847         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
96848         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96849         porting problem reported by Georg Schwarz in
96850         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96852 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96854         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
96855         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96856         porting problem reported by Georg Schwarz in
96857         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96859 2005-12-05  Bruno Haible  <bruno@clisp.org>
96861         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
96862         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
96863         Reported by Mark Junker <mjscod@gmx.de>.
96865 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
96867         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
96868         Use implementation from Albert Chin, with some
96869         comments/corrections by Stepan Kasal and myself.
96871 2005-12-02  Bruno Haible  <bruno@clisp.org>
96873         * gnulib-tool (func_import): Accept GPLed build tool modules when
96874         --lgpl is given.
96875         * modules/csharpcomp-script: New file.
96876         * modules/csharpcomp: Depend on it.
96877         * modules/javacomp-script: New file.
96878         * modules/javacomp: Depend on it.
96879         Suggested by Simon Josefsson.
96881 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
96883         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
96884         statement, to work around an HP-UX 10.20 compiler bug reported by
96885         Peter O'Gorman.
96887 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96889         * modules/savedir (Depends-on): Add openat.
96891 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96893         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
96894         (uintmax_t) [defined uintmax_t]: Do not declare.
96895         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
96896         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
96897         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
96898         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
96899         sake of portability to weird hosts that C allows (though we don't
96900         know of any practical examples).
96902         * lib/savedir.h (fdsavedir): New decl.
96903         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
96904         contains most of the former guts of savedir.
96905         (savedir): Use savedirstream.
96906         Include "openat.h".
96908 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
96910         * modules/obstack (Files): Add m4/ulonglong.m4.
96911         Problem reported by Davide Angelocola.
96913 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
96915         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
96916         coreutils no longer futzes with rounding modes.
96918 2005-11-14  Jim Meyering  <jim@meyering.net>
96920         * lib/mkstemp-safer.c: Include <config.h>, required for possible
96921         replacement of mkstemp.
96923 2005-11-10  Simon Josefsson  <jas@extundo.com>
96925         * lib/readline.c: Remove EOL.
96927 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96929         * modules/gethrxtime (Depends-on): Add gettime.
96931 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96933         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
96934         or gettimeofday; no longer needed.
96936 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96938         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
96939         time business.
96940         (gethrxtime) [! (HAVE_NANOUPTIME
96941         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
96942         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
96943         our own approximation.
96945 2005-11-08  Eric Blake  <ebb9@byu.net>
96947         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96949 2005-11-08  Eric Blake  <ebb9@byu.net>
96951         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96953 2005-11-04  Bruno Haible  <bruno@clisp.org>
96955         * gnulib-tool: Implement --update mode.
96957 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96959         Fix porting problem reported by Theodoros V. Kalamatianos.
96960         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
96961         Don't assume that futimes failing means we must fail.
96963 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96965         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
96966         variables to suggest the intended function of the PATH_MAX check.
96968 2005-10-30  Kean Johnston  <jkj@sco.com>
96970         Trivial changes to support SCO systems.
96971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
96972         as PATH_MAX.
96973         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
96974         where __ptr is null when no I/O is pending.
96976 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
96978         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
96979         leave errno alone.  Problem reported by Dmitry V. Levin.
96981 2005-10-28  Simon Josefsson  <jas@extundo.com>
96983         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
96984         Test more.
96986         * tests/test-gc-md2.c, tests/test-md2.c: New files.
96988         * modules/md2, modules/md2-tests: New files.
96990 2005-10-28  Simon Josefsson  <jas@extundo.com>
96992         * m4/inet_ntop.m4: More tests.
96994         * m4/gc-md2.m4, md2.m4: New file.
96996 2005-10-28  Simon Josefsson  <jas@extundo.com>
96998         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
96999         "restrict" keywords, as per POSIX.  Protect the function
97000         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
97001         Don't use K&R prototypes.  Check the sprintf return values.
97002         Re-define EAFNOSUPPORT if not present.  Indent.
97004         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
97005         suggested by Bruno Haible <bruno@clisp.org>.
97007         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
97009         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
97011         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
97012         libgcrypt).
97014         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
97016         * lib/md2.h, lib/md2.c: New files.
97018 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
97020         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
97021         errno alone.  Problem reported by Frederic Jolliton.
97023 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
97025         * modules/verify (License): Change from GPL to LGPL.  This is a
97026         tiny module and there are apparently near-equivalents that are
97027         under the BSD license.
97029 2005-10-24  Simon Josefsson  <jas@extundo.com>
97031         * modules/sha1: Relicense to LGPL.
97033 2005-10-24  Simon Josefsson  <jas@extundo.com>
97035         * lib/md4.h: Shrink buffer size, now that we changed the type.
97037 2005-10-23  Simon Josefsson  <jas@extundo.com>
97039         * gnulib-tool (func_import): Fix --tests-base.
97041 2005-10-22  Simon Josefsson  <jas@extundo.com>
97043         * modules/arcfour (Depends-on): Need stdint.
97045 2005-10-22  Simon Josefsson  <jas@extundo.com>
97047         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
97048         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
97050 2005-10-22  Simon Josefsson  <jas@extundo.com>
97052         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
97053         suggested by Bruno Haible <bruno@clisp.org>.
97055 2005-10-22  Simon Josefsson  <jas@extundo.com>
97057         * lib/crc.h: Include stddef.h, for size_t.
97059 2005-10-22  Simon Josefsson  <jas@extundo.com>
97061         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
97062         arcfour_context struct (simplify test vector testing in GNU
97063         Shishi).
97065 2005-10-21  Simon Josefsson  <jas@extundo.com>
97067         * modules/des, modules/des-tests: New files.
97069         * modules/gc-des, modules/gc-des-tests: New files.
97071         * tests/test-des.c, tests/test-gc-des.c: New file.
97073 2005-10-21  Simon Josefsson  <jas@extundo.com>
97075         * modules/arctwo, modules/arctwo-tests: New files.
97077         * tests/test-arctwo.c: New file.
97079         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
97081         * tests/test-gc-arctwo.c: New file.
97083 2005-10-21  Simon Josefsson  <jas@extundo.com>
97085         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
97086         Bruno Haible <bruno@clisp.org>.
97088         * m4/gc-des.m4: New file.
97090 2005-10-21  Simon Josefsson  <jas@extundo.com>
97092         * m4/arctwo.m4: New file.
97094         * m4/gc-arctwo.m4: New file.
97096 2005-10-21  Simon Josefsson  <jas@extundo.com>
97098         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
97099         block.
97101 2005-10-21  Simon Josefsson  <jas@extundo.com>
97103         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
97104         <bruno@clisp.org>.
97106         * lib/hmac-sha1.c (hmac_sha1): Likewise.
97108         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
97109         Bruno Haible <bruno@clisp.org>.
97111         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
97112         <bruno@clisp.org>.
97114 2005-10-21  Simon Josefsson  <jas@extundo.com>
97116         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
97118 2005-10-21  Simon Josefsson  <jas@extundo.com>
97120         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
97122 2005-10-21  Simon Josefsson  <jas@extundo.com>
97124         * lib/des.h, lib/des.c: New files.
97126         * lib/gc-gnulib.c: Support DES.c
97128 2005-10-21  Simon Josefsson  <jas@extundo.com>
97130         * lib/arctwo.h, lib/arctwo.c: New files.
97132         * lib/gc-gnulib.c: Support ARCTWO.
97134 2005-10-21  Simon Josefsson  <jas@extundo.com>
97136         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
97137         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97139 2005-10-21  Simon Josefsson  <jas@extundo.com>
97141         * gnulib-tool (func_import, func_create_testdir): Define automake
97142         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
97143         Makefile.am snippet),
97144         suggested by Bruno Haible <bruno@clisp.org>.
97146         * modules/gc (Makefile.am): Use it.
97148 2005-10-21  Bruno Haible  <bruno@clisp.org>
97150         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
97151         patch.
97153 2005-10-19  Simon Josefsson  <jas@extundo.com>
97155         * tests/test-gc-rijndael.c: New file.
97157         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
97159 2005-10-19  Simon Josefsson  <jas@extundo.com>
97161         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
97162         interface too.
97164 2005-10-19  Simon Josefsson  <jas@extundo.com>
97166         * tests/test-gc-arcfour.c: New file.
97168         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
97170 2005-10-19  Simon Josefsson  <jas@extundo.com>
97172         * modules/gc-md4, modules/gc-md4-tests: New file.
97174         * tests/test-gc-md4.c: New file.
97176 2005-10-19  Simon Josefsson  <jas@extundo.com>
97178         * m4/gc-md4.m4: New file.
97180 2005-10-19  Simon Josefsson  <jas@extundo.com>
97182         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
97183         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
97184         <kasal@ucw.cz>.
97186 2005-10-19  Simon Josefsson  <jas@extundo.com>
97188         * m4/gc-arcfour.m4: New file.
97190         * m4/gc-rijndael.m4: New file.
97192 2005-10-19  Simon Josefsson  <jas@extundo.com>
97194         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
97196 2005-10-19  Simon Josefsson  <jas@extundo.com>
97198         * lib/gc-gnulib.c: Support ARCFOUR.
97200 2005-10-19  Simon Josefsson  <jas@extundo.com>
97202         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
97203         support.
97205         * lib/gc.h: Add ECB enum type.
97207         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
97209 2005-10-18  Simon Josefsson  <jas@extundo.com>
97211         * tests/test-md5.c: New file.
97213         * modules/md5-tests: New file.
97215 2005-10-18  Simon Josefsson  <jas@extundo.com>
97217         * tests/test-md4.c: New file.
97219         * modules/md4, modules/md4-tests: New files.
97221 2005-10-18  Simon Josefsson  <jas@extundo.com>
97223         * m4/md4.m4: New file.
97225 2005-10-18  Simon Josefsson  <jas@extundo.com>
97227         * lib/md4.h, lib/md4.c: New files, based on md5.?.
97229 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
97231         * gnulib-tool (func_create_testdir): Omit the second check whether
97232         BUILT_SOURCES in nonempty.
97234 2005-10-17  Simon Josefsson  <jas@extundo.com>
97236         * tests/test-rijndael.c: New file.
97238 2005-10-17  Simon Josefsson  <jas@extundo.com>
97240         * modules/sha1: Depend on stdint instead of md5.
97242         * modules/md5: Depend on stdint, remove uint32_t.
97244 2005-10-17  Simon Josefsson  <jas@extundo.com>
97246         * modules/gc-sha1-tests: New file.
97248         * tests/test-gc-sha1.c: New file.
97250 2005-10-17  Simon Josefsson  <jas@extundo.com>
97252         * m4/md5.m4: Remove call to uint32_t.m4.
97254 2005-10-17  Simon Josefsson  <jas@extundo.com>
97256         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
97258         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
97259         md5.h.
97261         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
97263         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
97265 2005-10-17  Simon Josefsson  <jas@extundo.com>
97267         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
97269 2005-10-17  Simon Josefsson  <jas@extundo.com>
97271         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
97273 2005-10-17  Simon Josefsson  <jas@extundo.com>
97275         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
97277         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
97279 2005-10-17  Bruno Haible  <bruno@clisp.org>
97281         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
97282         that it can also be used in a test.
97284 2005-10-16  Bruno Haible  <bruno@clisp.org>
97286         * gnulib-tool (func_emit_tests_Makefile_am): Also define
97287         TESTS_ENVIRONMENT, so that individual tests can augment it.
97289         * gnulib-tool (func_create_testdir): Use an intermediate target for
97290         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
97291         macros, like $(ALLOCA_H), which cannot be passed through the command
97292         line.
97294 2005-10-15  Simon Josefsson  <jas@extundo.com>
97296         * modules/rijndael-tests: New file.
97298         * modules/rijndael: New file.
97300 2005-10-15  Simon Josefsson  <jas@extundo.com>
97302         * m4/rijndael.m4: New file.
97304 2005-10-15  Simon Josefsson  <jas@extundo.com>
97306         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
97308         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
97310 2005-10-14  Simon Josefsson  <jas@extundo.com>
97312         * tests/test-arcfour.c: New file.
97314         * modules/arcfour, modules/arcfour-tests: New files.
97316 2005-10-14  Simon Josefsson  <jas@extundo.com>
97318         * m4/arcfour.m4: New file.
97320 2005-10-14  Simon Josefsson  <jas@extundo.com>
97322         * lib/arcfour.h, lib/arcfour.c: New files.
97324 2005-10-14  Roland McGrath  <roland@redhat.com>
97326         Import from libc.  [BZ #1331]
97327         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
97328         macro argument.
97329         Reported by Matej Vela <vela@debian.org>.
97331 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
97333         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
97334         include <wchar.h>; no longer needed.
97336 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
97338         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
97340 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
97341         and  Ulrich Drepper  <drepper@redhat.com>
97343         Import from libc.
97344         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
97345         instead of inline stream orientation test and two separate
97346         function calls.  Pay no attention to USE_IN_LIBIO.
97348 2005-10-13  Simon Josefsson  <jas@extundo.com>
97350         * modules/gc-hmac-md5-tests: New file.
97352         * tests/test-gc-hmac-sha1.c: New file.
97354         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
97356         * modules/gc-hmac-md5-tests: New file.
97358         * tests/test-gc-md5.c: New file.
97360         * modules/gc-md5-tests: New file.
97362 2005-10-13  Simon Josefsson  <jas@extundo.com>
97364         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
97365         Move memory allocation outside of loop.
97367 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
97369         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
97370         intermediate directory is in a read-only file system.  Problem
97371         reported by Eric Blake.
97373 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
97375         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
97377 2005-10-12  Simon Josefsson  <jas@extundo.com>
97379         * tests/test-hmac-sha1.c: New file.
97381         * modules/hmac-sha1-tests: New file.
97383         * modules/hmac-sha1: New file.
97385 2005-10-12  Simon Josefsson  <jas@extundo.com>
97387         * modules/gc-sha1: New file.
97389 2005-10-12  Simon Josefsson  <jas@extundo.com>
97391         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
97393         * tests/test-gc-pbkdf2-sha1.c: New file.
97395 2005-10-12  Simon Josefsson  <jas@extundo.com>
97397         * modules/gc-md5, modules/gc-hmac-md5: New files.
97399         * modules/gc (Files): Remove md5, memxor and hmac files.
97401 2005-10-12  Simon Josefsson  <jas@extundo.com>
97403         * m4/gc-pbkdf2-sha1.m4: New file.
97405         * m4/gc-hmac-sha1.m4: New file.
97407         * m4/gc-sha1: New file.
97409         * m4/hmac-sha1.m4: New file.
97411 2005-10-12  Simon Josefsson  <jas@extundo.com>
97413         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
97415         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
97417 2005-10-12  Simon Josefsson  <jas@extundo.com>
97419         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
97420         suggested by Bruno Haible <bruno@clisp.org>.
97422 2005-10-12  Simon Josefsson  <jas@extundo.com>
97424         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
97426 2005-10-12  Simon Josefsson  <jas@extundo.com>
97428         * lib/gc-pbkdf2-sha1.c: New file.
97430         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
97432 2005-10-12  Simon Josefsson  <jas@extundo.com>
97434         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
97436         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
97438 2005-10-12  Simon Josefsson  <jas@extundo.com>
97440         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
97441         GC_USE_HMAC_MD5, respectively.
97443         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
97444         (gc_md5): Fix typo.
97446         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
97448         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
97450         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
97452 2005-10-12  Bruno Haible  <bruno@clisp.org>
97454         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
97455         Reported by Stepan Kasal <kasal@ucw.cz>.
97457 2005-10-11  Simon Josefsson  <jas@extundo.com>
97459         * tests/test-crc.c: New file.
97461         * modules/crc, modules/crc-tests: New files.
97463 2005-10-11  Simon Josefsson  <jas@extundo.com>
97465         * m4/crc.m4: New file.
97467 2005-10-11  Simon Josefsson  <jas@extundo.com>
97469         * lib/gc.h: Add gc_hash and gc_hash_buffer.
97471         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
97473         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
97475 2005-10-11  Simon Josefsson  <jas@extundo.com>
97477         * lib/crc.h, lib/crc.c: New files.
97479         * lib/gc.h (gc_hash_buffer): Add doc.
97481 2005-10-11  Bruno Haible  <bruno@clisp.org>
97483         * modules/c-strcasestr: New file.
97484         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
97486 2005-10-11  Bruno Haible  <bruno@clisp.org>
97488         * modules/c-strcase: New file.
97489         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
97491 2005-10-11  Bruno Haible  <bruno@clisp.org>
97493         * lib/strcasecmp.c: Include limits.h.
97494         (strcasecmp): Avoid integer overflow on exotic platforms.
97495         * lib/strncasecmp.c: Include limits.h.
97496         (strncasecmp): Avoid integer overflow on exotic platforms.
97497         Reported by Paul Eggert.
97499 2005-10-11  Bruno Haible  <bruno@clisp.org>
97501         * lib/c-strcasestr.h: New file, from GNU gettext.
97502         * lib/c-strcasestr.c: New file, from GNU gettext.
97504 2005-10-11  Bruno Haible  <bruno@clisp.org>
97506         * lib/c-strcase.h: New file, from GNU gettext.
97507         * lib/c-strcasecmp.c: New file, from GNU gettext.
97508         * lib/c-strncasecmp.c: New file, from GNU gettext.
97510 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
97512         * modules/mempcpy (License): GPL -> LGPL.
97513         * modules/strchrnul (License): Likewise.
97514         * modules/sysexits (License): Likewise.
97516 2005-10-08  Simon Josefsson  <jas@extundo.com>
97518         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
97520 2005-10-07  Simon Josefsson  <jas@extundo.com>
97522         * m4/memxor.m4: Remove gl_C_RESTRICT call.
97524 2005-10-06  Simon Josefsson  <jas@extundo.com>
97526         * tests/test-hmac-md5.c: New file.
97528         * modules/hmac-md5-tests: New file.
97530         * modules/hmac-md5: New file.
97532 2005-10-06  Simon Josefsson  <jas@extundo.com>
97534         * m4/hmac-md5.m4: New file.
97536         * m4/memxor.m4: Require gl_C_RESTRICT.
97538 2005-10-06  Simon Josefsson  <jas@extundo.com>
97540         * lib/memxor.c (memxor): Avoid casts and warnings.
97542 2005-10-06  Simon Josefsson  <jas@extundo.com>
97544         * lib/hmac-md5.c: New file.
97546         * lib/hmac.h: New file.
97548 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
97550         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
97551         promotes to int, not unsigned int, to catch the AIX 5.3
97552         compiler bug.
97554 2005-10-05  Simon Josefsson  <jas@extundo.com>
97556         * modules/memxor: New file.
97558         * modules/iconv (Files): Move config.rpath to havelib, it is used
97559         there.
97561         * modules/havelib (Files): Add config.rpath.
97563 2005-10-05  Simon Josefsson  <jas@extundo.com>
97565         * m4/memxor.m4: New file.
97567 2005-10-05  Simon Josefsson  <jas@extundo.com>
97569         * lib/memxor.c (memxor): Fix compiler error.
97571         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
97572         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
97574         * lib/memxor.h, lib/memxor.c: New files.
97576         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
97577         we assume all systems have it, suggested by Jim Meyering
97578         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
97579         any systems lack sys/socket.h; mingw32 is known to lack it, but we
97580         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
97581         same reasons.
97583 2005-10-05  Simon Josefsson  <jas@extundo.com>
97585         * config/srclist.txt: Add glibc bug 1423 for md5.h.
97587 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
97589         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
97590         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
97591         needed, since the source code now assumes these .h files.
97593 2005-10-05  Derek Price  <derek@ximbiot.com>
97595         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
97597 2005-10-05  Bruno Haible  <bruno@clisp.org>
97599         * modules/stdint (License): Change to LGPL.
97601 2005-10-04  Simon Josefsson  <jas@extundo.com>
97603         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
97604         D. Baushke" <mdb@gnu.org>.
97606 2005-10-04  Bruno Haible  <bruno@clisp.org>
97608         * lib/verify.h (verify_true): Provide alternative definition for C++.
97610 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
97612         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
97613         (SSIZE_MAX): New macro, if not already defined.
97614         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
97615         than 2 GiB.
97617 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97619         Sync from coreutils.
97620         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
97621         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
97622         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
97623         ULLONG_MAX doesn't work with 2.7.2.1.
97625 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97627         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
97628         From Ben Pfaff.
97630         * modules/exclude (Depends-on): Depend on verify.
97631         * modules/strtoimax (Depends-on): Likewise.
97632         * modules/utimecmp (Depends-on): Likewise.
97634 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97636         * lib/exclude.c: Include verify.h.
97637         (verify): Remove.  All callers changed to use verify.h's version.
97638         * lib/strtoimax.c: Likewise.
97639         * lib/utimecmp.c: Likewis.e
97641         Sync from coreutils.
97642         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
97643         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
97644         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
97645         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
97646         bother returning ENOSYS if settimeofday or stime fails; just let
97647         them return whatever errno they want to return.
97648         * lib/utimens.c: Include unistd.h, for dup2.
97649         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
97650         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
97652 2005-10-02  Jim Meyering  <jim@meyering.net>
97654         Sync from coreutils.
97655         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
97656         from glibc-2.2.5 that fails for read-only files.
97658 2005-10-02  Jim Meyering  <jim@meyering.net>
97660         Sync from coreutils.
97661         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
97662         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
97663         `#if HAVE_CONFIG_H'.
97664         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
97665         Remove AT_FDCWD test.
97666         Do not consume the fd unless successful.
97667         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
97668         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
97669         block, so that we don't even try to compile it if settimeofday is
97670         available.  This works around a compilation failure on OSF1 V5.1,
97671         due to stime requiring a `long int*' while tv_sec is `int'.
97673 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
97675         Sync from coreutils.
97676         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
97677         against `yes', rather than just testing for nonempty.
97679 2005-10-01  Simon Josefsson  <jas@extundo.com>
97681         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
97682         and Darwin.
97684         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
97685         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
97686         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
97687         freeaddrinfo and gai_strerror are declared by the POSIX headers.
97688         Check if struct addrinfo is declared.
97690 2005-10-01  Simon Josefsson  <jas@extundo.com>
97692         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
97693         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
97694         AI_* and EAI_* definitions.  Protect function declarations.
97696 2005-10-01  Jim Meyering  <jim@meyering.net>
97698         Sync from coreutils.
97700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
97701         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
97702         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
97703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
97704         in the inet and nsl libraries.  Required on Solaris 5.7.
97706 2005-10-01  Jim Meyering  <jim@meyering.net>
97708         Sync from coreutils.
97709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
97710         in the inet and nsl libraries.  Required on Solaris 5.7.
97712 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
97714         * lib/getdelim.c (getdelim): Remove unused variables.
97716 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
97718         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
97719         so that the code works even with ancient cpp.  Portability problem
97720         with GCC 2.7.2.1 reported by Thomas M.Ott.
97722 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
97724         * modules/regex (Depends-on): Add strcase.
97726         * modules/gethostname (Licence): Change from GPL to LGPL, since
97727         gethostname.c is a trivial implementation of a standard library
97728         function.
97729         * modules/poll (License): Change from GPL to LGPL, since it's
97730         derived from LGPL code.
97732 2005-09-27  Jim Meyering  <jim@meyering.net>
97734         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
97735         HAVE_CONFIG_H.
97737         * lib/intprops.h (signed_type_or_expr__): Define.
97738         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
97739         for unsigned types.
97741 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
97743         * lib/verify.h (verify_expr): Remove, replacing with:
97744         (verify_true): New macro that returns true instead of void.
97745         (verify_type__): Remove.
97746         (verify): Use verify_true rather than verify_type__.
97748 2005-09-26  Bruno Haible  <bruno@clisp.org>
97750         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
97751         is necessary.
97752         (lib_SOURCES): Remove mbchar.c.
97753         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
97754         (Files): Add m4/mbrtowc.m4.
97755         * modules/mbiter: Likewise.
97756         * modules/mbuiter: Likewise.
97758 2005-09-26  Bruno Haible  <bruno@clisp.org>
97760         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
97761         compile mbchar.c if they are not both present.
97762         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
97763         * m4/mbiter.m4 (gl_MBITER): Likewise.
97764         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
97765         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
97766         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
97768 2005-09-25  Jim Meyering  <jim@meyering.net>
97770         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
97771         also uses socklen_t.
97773 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
97775         * lib/utimens.c (ENOSYS): Define if not already defined.
97776         (futimens): Support having a null PATH if the file descriptor
97777         is nonnegative.
97779         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
97780         Remove.
97781         (__attribute): Define to empty unless GCC 3.1 or later.
97782         This works around a core dump on OpenBSD 3.4, which has GCC
97783         2.95.3, which dumps core when given __attribute__(()).  It also
97784         simplifies other tests, since we really don't want to bother with
97785         worrying about which ancient version of GCC supported what.
97786         Original problem reported by Yoann Vandoorselaere, with part of
97787         the fix suggested by Derek Price.
97789 2005-09-24  Jim Meyering  <jim@meyering.net>
97791         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
97792         so we can once again use a positive bitfield width of 1 -- now we
97793         don't have to explain why we were using a bitfield width of 2.
97795 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
97797         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
97798         and similarly for the other external symbols.  Problem reported
97799         by James Gallager.
97801         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
97802         bug reported by Jim Meyering.
97804         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
97805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
97806         not needed, since socklen is a prerequisite module.
97808 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
97810         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
97811         Problem reported by Eric Blake.
97812         (getaddrinfo): Initialize se so that it's not garbage.
97813         Redo internal storage allocation so that it doesn't make unportable
97814         assumptions about alignment.
97815         Fix a memory leak.
97817         * lib/utimens.c (futimens): Use futimesat if available.
97818         Prefer it to futimes since it doesn't have the futimes bug.
97820         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
97821         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
97822         Instead, declare a function that returns a pointer to an array,
97823         and use verify_type__ to declare the size of the array.
97824         Problem and germ of a solution reported by Bruno Haible.
97825         (verify_type__): Use 2, not 1, for bitfield size, to avoid
97826         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
97828 2005-09-23  Jim Meyering  <jim@meyering.net>
97830         Sync from coreutils.
97831         Correct build failure (socklen_t not defined) on at least
97832         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
97833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
97835 2005-09-23  Jim Meyering  <jim@meyering.net>
97837         * modules/getaddrinfo (Depends-on): Add socklen.
97839 2005-09-23  Bruno Haible  <bruno@clisp.org>
97841         * tests/test-verify.c: New file.
97843 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97845         Sync from coreutils.
97847         * modules/argmatch (Depends-on): Add verify.
97848         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
97849         unistd-safer.
97850         * modules/save-cwd (Depends-on): Likewise.
97852         * modules/openat (Files): Add lib/openat-die.c.
97853         (Depends-on): Remove error, exitfail.
97854         Add dirname.
97856         * modules/verify: New file.
97857         * MODULES.html.sh (Diagnostics <assert.h>): New section,
97858         with "verify" module.
97860 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97862         Sync from coreutils.
97864         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
97865         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
97866         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
97867         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
97868         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
97869         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
97870         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
97871         Don't bother checking for string.h, stdlib.h, unistd.h.
97872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
97873         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
97874         module's job.
97875         * m4/jm-macros.m4 (gl_MACROS): Likewise.
97876         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
97878         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
97879         (gl_GETDATE): Use it.
97881         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
97883 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97885         Sync from coreutils.
97887         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
97888         stat-time.h.
97889         * lib/argmatch.h: Include verify.h
97890         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
97891         (ARGMATCH_ASSERT): Remove; unused.
97892         * lib/canonicalize.c: Assume STDC_HEADERS.
97893         * lib/exclude.c: Include "strcase.h".
97894         * lib/regex_internal.h [!defined _LIBC]: Likewise.
97895         * lib/getusershell.c: Include stdio--.h rather than stdio.h
97896         and stdio-safer.h.
97897         (getusershell): Call fopen, not fopen_safer.
97898         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
97899         Do not include unistd-safer.h.
97900         (save_cwd): Don't call fd_safer; no longer needed
97901         now that we include fcntl--.h.
97903         * lib/getdate.y (relative_time): New type.
97904         (RELATIVE_TIME_0): New constant.
97905         (parser_control): Use relative_time instead of doing it ourselves.
97906         (%union): Add new relative_time rel member.
97907         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
97908         Now typeless.
97909         (relunit, relunit_snumber): Now of type rel.
97910         (zone, rel, relunit, get_date): Adjust to above changes.
97912         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
97913         Do not include unistd-safer.h.
97914         (getloadavg): Don't call fd_safer; no longer needed
97915         now that we include fcntl--.h.
97917         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
97918         (make_dir_parents): Treat ENOSYS like EEXIST.
97920         Improve quality of diagnostics on restore_cwd failure.
97921         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
97922         (make_dir_parents): Last arg is now int * (for errno), not bool *.
97923         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
97924         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
97925         each time through the loop.  Do not diagnose restore_cwd failure;
97926         that is the caller's job (and perhaps the caller does not care).
97928         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
97929         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
97930         If the file already exists but is not a directory, don't bother
97931         to try to make its parents.
97932         Close potential file descriptor leak if we can't chdir("/") (!).
97933         Don't always return true if chdir($PWD) fails; return true only
97934         if the requested action was done successfully (except for the
97935         chdir($PWD)).
97936         Don't log final directory unless we actually made it.
97937         Refactor to avoid duplicate code to fix up permissions.
97938         Don't attempt to fix up parent permissions if chdir($PWD) fails.
97940         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
97941         to make it a bit faster and (I hope) clearer.
97942         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
97943         Fix bug in formats like %2N.
97945         * lib/verify.h: New file.
97947 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97949         Sync from coreutils.
97950         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
97952 2005-09-22  Jim Meyering  <jim@meyering.net>
97954         Sync from coreutils.
97956         * m4/lstat.m4 (gl_FUNC_LSTAT):
97957         Use AC_LIBSOURCES to require lstat.c and lstat.h.
97958         Remove obsolete comment.
97959         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
97960         * m4/xstrtod.m4: Likewise.
97962         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
97964 2005-09-22  Jim Meyering  <jim@meyering.net>
97966         Sync from coreutils.
97968         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
97970         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
97971         the .tm_year member, since otherwise gcc-4.0 would now warn about
97972         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
97974         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
97975         order to avoid an unsuppressible warning from gcc on 64-bit systems.
97977         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
97978         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
97979         when run in a time zone for which daylight savings time is in effect
97980         for the starting date.
97982         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
97983         stop us from restricting permissions of just-created absolute-named
97984         directories.
97985         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
97986         to restore initial working directory.
97987         * lib/mkdir-p.c (make_dir_parents): New parameter:
97988         different_working_dir, to tell caller if/when we change the working
97989         directory and are unable to return to the initial one.
97990         * lib/mkdir-p.h (make_dir_parents): Update prototype.
97991         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
97992         `return false'.  This fixes a bug introduced on 2004-07-30.
97994         * lib/openat.c (fdopendir): Be sure to close the supplied
97995         file descriptor before returning.  This makes our replacement
97996         implementation a little closer to Solaris's, where fdopendir
97997         ties the file descriptor to the returned DIR* pointer.
97998         * lib/openat.c (unlinkat): New function.
97999         * lib/openat.h (unlinkat): Add prototype.
98000         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
98001         (openat_restore_fail): Rename from openat_restore_die.
98002         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
98004         Provide an alternative to exiting immediately upon save_cwd or
98005         restore_cwd failure.  Now, an application can arrange e.g.,
98006         to perform a longjump in that case.
98007         * lib/openat.c: Include dirname.h.
98008         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
98009         (rpl_openat, fdopendir, fstatat): Call openat_save_die
98010         and openat_restore_die rather than calling error directly.
98011         Don't include "error.h" or "exitfail.h"; they're no longer needed.
98013         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
98014         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
98015         define.
98017         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
98018         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
98019                             int utc, int nanoseconds);
98020         Background:
98021         date should not have to allocate a megabyte of virtual memory to
98022         handle a format argument like +%1048575T.  When implemented with
98023         strftime, it must allocate such a buffer, use strftime to fill it
98024         in, print it, then free it.
98025         With fprintftime, it simply prints everything and exits.
98026         With no need for memory allocation, that's one fewer way to fail.
98027         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
98028         optional field width, not before, so we accept %9:z, not %:9z.
98029         (my_strftime): Be sure to use L_('x') for literals.
98031         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
98032         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
98033         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
98034         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
98035         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
98036         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
98037         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
98038         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
98039         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
98040         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
98041         * lib/xgethostname.c, lib/xreadlink.c:
98042         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
98044         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
98045         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
98046         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
98047         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
98048         and don't include <sys/file.h>).
98050 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
98052         Sync from coreutils.
98054         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
98055         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
98056         [!LDAV_DONE]: Avoid unused variable warning.
98058 2005-09-21  Bruno Haible  <bruno@clisp.org>
98060         * lib/unicodeio.h (unicode_to_mb): New declaration.
98062 2005-09-20  Derek Price  <derek@ximbiot.com>
98064         * lib/getaddrinfo.c: Don't include <netdb.h> included from
98065         getaddrinfo.h.
98067 2005-09-20  Bruno Haible  <bruno@clisp.org>
98069         * gnulib-tool: Remove trailing slashes from the values specified for
98070         --source-base, --m4-base, --tests-base, --aux-dir.
98071         Suggested by Simon Josefsson <jas@extundo.com>.
98073 2005-09-20  Bruno Haible  <bruno@clisp.org>
98075         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
98076         func_modules_to_filelist, func_import, func_create_testdir): Make all
98077         sorting results locale-independent, so that gnulib-cache.m4 doesn't
98078         change when gnulib-tool is invoked in a different locale.
98080 2005-09-19  Simon Josefsson  <jas@extundo.com>
98082         * m4/socklen.m4: Fix typo.
98084 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98086         Use a consistent style for including <config.h>.
98087         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
98088         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
98089         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
98090         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
98091         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
98092         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
98093         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
98094         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
98095         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
98096         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
98097         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
98098         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
98099         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
98100         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
98101         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
98102         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
98103         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
98104         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
98105         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
98106         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
98107         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
98108         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
98109         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
98110         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
98111         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
98112         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
98113         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
98114         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
98115         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
98116         lib/xstrtoumax.c, lib/yesno.c:
98117         Standardize inclusion of config.h.
98118         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
98119         lib/inttostr.h:  Removed inclusion of config.h from header files.
98120         * lib/inttostr.c:  Adjusted in-tree users.
98121         * lib/timespec.h: Remove superfluous warning to include config.h.
98122         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
98123         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
98124         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
98125         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
98126         config.h with HAVE_CONFIG_H.
98128 2005-09-19  Jim Meyering  <jim@meyering.net>
98130         * modules/pathmax (License): Change to LGPL.
98132 2005-09-19  Derek Price  <derek@ximbiot.com>
98134         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
98136 2005-09-19  Bruno Haible  <bruno@clisp.org>
98138         * gnulib-tool (import): Provide default for --tests-base.
98140 2005-09-19  Bruno Haible  <bruno@clisp.org>
98142         * doc/quote.texi: New file, extracted from gnulib.texi.
98143         * doc/ctime.texi: New file, extracted from gnulib.texi.
98144         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
98145         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
98146         * doc/gnulib.texi: Include them.
98148 2005-09-18  Bruno Haible  <bruno@clisp.org>
98150         Portability fix.
98151         * gnulib-tool (func_readlink): New function.
98152         (func_ln_if_changed): Use it.
98154 2005-09-18  Bruno Haible  <bruno@clisp.org>
98156         * gnulib-tool: Support --with-tests also with --import.
98157         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
98158         (func_import): Use variables $testsbase and $inctests. Emit a
98159         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
98160         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
98161         SUBDIRS += $testsdir.
98162         (func_create_testdir): Update.
98164 2005-09-18  Bruno Haible  <bruno@clisp.org>
98166         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
98167         instead of $dry_run.
98168         (func_cp_if_changed, func_mv_if_changed): Remove functions.
98169         (func_ln_if_changed): Don't handle dry-run here.
98170         (func_import): In dry-run mode, detect more precisely which actions
98171         would be performed, and don't use "...ing" verbs.
98173 2005-09-18  Bruno Haible  <bruno@clisp.org>
98175         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
98176         (func_import): Use join on two temporary files instead of three nested
98177         loops, in order to determine which files are new or old.
98179 2005-09-18  Bruno Haible  <bruno@clisp.org>
98181         * gnulib-tool (func_import): Comment out code that spits out the
98182         new files with --dry-run.
98184 2005-09-18  Bruno Haible  <bruno@clisp.org>
98186         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
98188 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98190         * lib/stat-time.h: New file.
98191         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
98192         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
98193         in a different way.
98194         (timespec_cmp): New function.
98195         * lib/utimecmp.c: Include stat-time.h.
98196         (SYSCALL_RESOLUTION): Depend on whether various struct stat
98197         members exist, not on the obsolescent ST_MTIM_NSEC.
98198         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
98200 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98202         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
98204 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98206         * MODULES.html.sh (File system functions): Add stat-time.
98207         * modules/stat-time: New file.
98208         * modules/timespec (Files): Remove m4/st_mtim.m4; this
98209         is now done in a different way, by the stat-time module.
98210         * modules/utimecmp (Depends-on): Add stat-time.
98212 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
98214         * m4/st_mtim.m4: Remove.  Superseded by...
98215         * m4/stat-time.m4: New file.
98216         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
98217         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
98219 2005-09-15  Derek Price  <derek@ximbiot.com>
98221         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
98223 2005-09-15  Derek Price  <derek@ximbiot.com>
98225         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
98226         * lib/regex_internal.c: Ditto, using this...
98227         (__GNUC_PREREQ): ...new macro.
98228         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
98229         using...
98230         (__GNUC_PREREQ): ...this new macro.
98232         * lib/strstr.h: Include string.h. Define strstr as a macro here.
98234 2005-09-15  Derek Price  <derek@ximbiot.com>
98235             Paul Eggert  <eggert@cs.ucla.edu>
98237         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
98238         changes, consolidating in...
98239         * lib/regex_internal.h: ...this file.
98241 2005-09-13  Jim Meyering  <jim@meyering.net>
98243         * lib/canon-host.c: Filter through gnu indent and reword comments
98244         slightly.
98245         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
98247 2005-09-13  Derek Price  <derek@ximbiot.com>
98249         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
98250         failure.
98251         Reported by Jim Meyering  <jim@meyering.net>.
98253 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98255         * lib/base64.c: Typo.
98256         (base64_encode): Put b64str in initialized data section.
98258 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
98260         Merge glibc and coreutils changes into gnulib, plus a few
98261         extra fixes.
98262         * lib/md5.c: Use #error rather than a string.
98263         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
98264         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
98265         (__attribute__): Define to empty for non recent-GCC.
98266         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
98267         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
98268         Renamed from their non-__ counterparts, with new macros replacing
98269         them if not _LIBC.  Add __THROW attribute.
98270         (rol): Remove.
98271         (struct md5_ctx): Align buffer if using GCC.
98272         * lib/sha1.h (struct sha1_ctx): Likewise.
98273         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
98274         The old name was backwards.
98275         (NOTSWAP): Remove; not used.
98276         (rol): New macro, moved here from md5.h.
98277         (sha1_process_block): Remove a FIXME that doesn't make sense.
98279 2005-09-12  Derek Price  <derek@ximbiot.com>
98281         Return usable errors from canon-host.
98282         * lib/canon-host.h: New file.
98283         * lib/canon-host.c (canon_host): Wrap...
98284         (canon_host_r): ...this new function, which now relies exclusively on
98285         getaddrinfo.
98286         (ch_strerror): New function.
98287         (last_cherror): New global.
98288         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
98289         interface.
98290         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
98291         void *.
98292         (freeaddrinfo): Free ai->ai_canonname when set.
98294 2005-09-12  Derek Price  <derek@ximbiot.com>
98296         Make canon-host require getaddrinfo.
98297         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
98298         AC_LIBSOURCE canon-host.h.  Call...
98299         (gl_PREREQ_CANON_HOST): ...this new function, which requires
98300         gl_GETADDRINFO.
98301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
98303 2005-09-12  Derek Price  <derek@ximbiot.com>
98305         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
98306         LGPL.
98307         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
98309 2005-09-12  Derek Price  <derek@ximbiot.com>
98311         * lib/gai_strerror.c: Include config.h when available.  Include
98312         getaddrinfo.h before other headers to test interface.
98313         Reported by Larry Jones <lawrence.jones@ugs.com>.
98315 2005-09-12  Derek Price  <derek@ximbiot.com>
98316             Paul Eggert  <eggert@cs.ucla.edu>
98318         * modules/glob (Files): Add glob-libc.h.
98320 2005-09-12  Derek Price  <derek@ximbiot.com>
98321             Paul Eggert  <eggert@cs.ucla.edu>
98323         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
98324         glob_.h, glob-libc.h.
98325         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
98327 2005-09-12  Derek Price  <derek@ximbiot.com>
98328             Paul Eggert  <eggert@cs.ucla.edu>
98330         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
98331         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
98332         protecting things that should be done only in gnulib contexts.
98333         * lib/glob_.h: New file, containing only the glob things needed for
98334         gnulib.
98335         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
98336         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
98337         (glob, globfree, glob_pattern_p): Now defined simply in terms of
98338         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
98339         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
98340         and to respect the namespace rules better.
98342 2005-09-08  Simon Josefsson  <jas@extundo.com>
98344         * modules/socklen: New file.
98346 2005-09-08  Simon Josefsson  <jas@extundo.com>
98348         * m4/socklen.m4: New file.
98350 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98352         * modules/utimens (Files): Add m4/utimbuf.m4, since
98353         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
98354         Reported by Sergey Poznyakoff.
98356 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98358         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
98359         definitions, since that's the preferred style in glibc.
98360         Fix a minor spacing issue, and update copyright notice to match
98361         glibc's.
98363 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98365         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
98367 2005-09-06  Simon Josefsson  <jas@extundo.com>
98369         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
98370         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
98372 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98374         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
98375         warning.
98377 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98379         * config/srclist.txt: Add glibc bug 1302.
98381 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
98383         Change bitset word type from unsigned int to unsigned long int,
98384         as this has better performance on typical 64-bit hosts.
98385         Port bitset code to hosts with unusual word sizes.
98386         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
98387         (build_collating_symbol):
98388         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
98389         argument is a bitset.  This is merely a style issue, but it makes
98390         it clearer that an entire array is expected.
98391         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
98392         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
98393         Port to the case where bitset_word is not the same as unsigned int.
98394         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
98395         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
98396         Likewise.
98397         * lib/regexec.c (check_dst_limits_calc_pos_1,
98398         check_subexp_matching_top):
98399         (build_trtable, group_nodes_into_DFAstates):
98400         Likewise.
98401         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
98402         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
98403         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
98404         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
98405         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
98406         * lib/regcomp.c (optimize_subexps, lower_subexp):
98407         Work even if bitset_word has holes in its bitwise representation.
98408         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
98409         * lib/regexec.c (check_dst_limits_calc_pos_1,
98410         check_subexp_matching_top):
98411         Likewise.
98412         * lib/regex_internal.c (re_string_reconstruct):
98413         Don't assume UCHAR_MAX == 255.
98414         * lib/regex_internal.h (bitset_set_all): Likewise.
98415         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
98416         All uses changed.
98417         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
98418         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
98419         All uses changed.
98420         (BITSET_WORD_MAX): New macro.
98421         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
98422         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
98423         (bitset_empty, bitset_copy):
98424         Prefer sizeof (bitset) to multiplying it out ourselves.
98425         (bitset_not_merge): Remove; unused.
98426         (bitset_contain): Return bool, not unsigned int with one bit on.
98427         All callers changed.
98428         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
98429         alignment than re_node_set; do this by defining a new internal
98430         type struct dests_alloc and using it to allocate memory.
98432 2005-09-05  Bruno Haible  <bruno@clisp.org>
98434         * gnulib-tool (func_import): Fix comparison in handling of symbolic
98435         links.
98437 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
98439         * modules/size_max (Makefile.am): Add size_max.h
98441 2005-09-04  Derek Price  <derek@ximbiot.com>
98443         * gnulib-tool (func_import): Fix reversed $symbolic logic.
98445 2005-09-03  Simon Josefsson  <jas@extundo.com>
98447         * gnulib-tool: Fix typo.
98449 2005-09-03  Simon Josefsson  <jas@extundo.com>
98451         * config/srclist.txt: Add glibc bug 1293.
98453 2005-09-03  Derek Price  <derek@ximbiot.com>
98455         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
98456         From Larry Jones <lawrence.jones@ugs.com>.
98458 2005-09-02  Simon Josefsson  <jas@extundo.com>
98460         * modules/socklen: New file.
98462 2005-09-02  Simon Josefsson  <jas@extundo.com>
98464         * modules/havelib: New module.
98466         * modules/gettext, modules/iconv, modules/lock, modules/readline:
98467         Use havelib.
98469 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
98471         Check for arithmetic overflow when calculating sizes, to prevent
98472         some buffer-overflow issues.  These patches are conservative, in the
98473         sense that when I couldn't determine whether an overflow was possible,
98474         I inserted a run-time check.
98475         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
98476         macros.
98477         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
98478         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
98479         (re_xnrealloc, re_x2nrealloc): New inline functions.
98480         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
98481         parse_bracket_exp):
98482         (build_equiv_class, build_charclass): Check for arithmetic overflow
98483         in size expression calculations.
98484         * lib/regex_internal.c (re_string_realloc_buffers):
98485         (build_wcs_upper_buffer, re_node_set_add_intersect):
98486         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
98487         (re_dfa_add_node, register_state): Likewise.
98488         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
98489         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
98490         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
98491         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
98493 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
98495         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
98496         m4/ulonglong.m4.  Problem reported by Martin Lambers.
98498 2005-09-02  Bruno Haible  <bruno@clisp.org>
98500         Support for lib vs. lib64 distinction on biarch platforms.
98501         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
98502         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
98503         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
98505 2005-09-02  Bruno Haible  <bruno@clisp.org>
98507         * gnulib-tool (import): In the other first-use case, provide defaults
98508         as well.
98510 2005-09-02  Bruno Haible  <bruno@clisp.org>
98512         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
98513         patches not yet found in the latest gettext release.
98515 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
98517         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
98518         to avoid a collision with bits/local_lim.h in glibc.
98519         All uses changed.  Problem reported by Dmitry V. Levin in
98520         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
98522         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
98523         bugs in int versus size_t comparisons.
98524         (re_string_context_at): Fix bug where the code assumed that
98525         Idx is signed.
98527         Use bool where appropriate.
98528         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
98529         All callers changed.
98530         (calc_eclosure_iter): Likewise, for ROOT arg.
98531         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
98532         (build_charclass_op): Likewise, for NON_MATCH arg.
98533         * lib/regex_internal.c (re_string_allocate, re_string_construct):
98534         (re_string_construct_common): Likewise, for ICASE arg.
98535         * lib/regexec.c (re_search_2_stub, re_search_stub):
98536         Likewise, for RET_LEN arg.
98537         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
98538         (set_regs): Likewise, for FL_BACKTRACK arg.
98539         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
98540         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
98541         (calc_eclosure_iter, parse_bracket_exp):
98542         Use bool for internal variables that are booleans.
98543         * lib/regexec.c (re_search_internal, check_matching,
98544         proceed_next_node):
98545         (set_regs, build_sifted_states, sift_states_bkref):
98546         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
98547         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
98548         (find_collation_sequence_value):
98549         Likewise.
98550         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
98551         (re_node_set_compare):
98552         Return bool, not int. All callers changed.
98553         * lib/regexec.c (check_halt_node_context, check_dst_limits):
98554         (build_trtable, check_node_accept): Likewise.
98555         * lib/regex_internal.h: Include stdbool.h.
98557         Fix bugs uncovered when converting to bool.
98558         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
98559         failure instead of charging ahead blindly.
98560         * lib/regex_internal.c (register_state): Likewise.
98561         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
98562         for freeing internal storage.
98563         (group_nodes_into_DFA_states): Use unsigned int, not int, for
98564         bitset pieces used as boolean, to avoid undefined behavior
98565         on hosts that do int overflow checking.
98567 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
98569         * config/srclist.txt: Add glibc bugs 1285-1287.
98571 2005-09-01  Jim Meyering  <jim@meyering.net>
98573         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
98574         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
98575         Require gl_STAT_MACROS, too.
98577 2005-09-01  Bruno Haible  <bruno@clisp.org>
98579         * gnulib-tool (import): In the first-use case, provide defaults.
98581 2005-09-01  Bruno Haible  <bruno@clisp.org>
98583         * gnulib-tool (func_import): Remove the .tmp files.
98585 2005-09-01  Bruno Haible  <bruno@clisp.org>
98587         * gnulib-tool (func_import): Fix handling of symbolic links.
98589 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98591         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
98592         old glibc regex code mishandles strings longer than 2**31 bytes.
98593         This patch fixes this when the regex code is used in gnulib
98594         (i.e., outside glibc).
98596         This patch should not affect the use of the regex code inside
98597         glibc.  No doubt this problem also needs to be handled for glibc
98598         as well, but the result will be an incompatible change to the
98599         glibc ABI, and the old ABI will have to be supported too.  That
98600         can be the subject for another patch.
98602         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
98603         governing whether the rest of this patch is active.  By default,
98604         the macro is disabled and the patch has no effect.
98605         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
98606         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
98607         (struct re_pattern_buffer, re_search, re_search_2, re_match):
98608         (re_match_2, re_set_registers): Use the new types.
98609         * lib/regex_internal.h (Idx, re_hashval_t): New types.
98610         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
98611         New macros.
98612         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
98613         (re_string_context_at, bin_tree_t, re_dfastate_t):
98614         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
98615         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
98616         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
98617         (re_string_char_size_at, re_string_wchar_at):
98618         (re_string_elem_size_at):
98619         Use the new types and macros to port to 64-bit hosts.
98620         Use unsigned types for internal values, so that the code
98621         mostly works even for arrays larger than SSIZE_MAX.
98622         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
98623         (search_duplicated_node, calc_eclosure_iter, fetch_number):
98624         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
98625         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
98626         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
98627         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
98628         (calc_inveclosure, parse_dup_op, build_range_exp):
98629         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
98630         (fetch_number, create_token_tree, mark_opt_subexp):
98631         Likewise.
98632         * lib/regex_internal.c (re_string_construct_common,
98633         create_ci_newstate):
98634         (create_cd_newstate, re_string_allocate, re_string_construct):
98635         (re_string_realloc_buffers, build_wcs_upper_buffer):
98636         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
98637         (re_string_reconstruct, re_string_peek_byte_case):
98638         (re_string_fetch_byte_case, re_string_context_at):
98639         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
98640         (re_node_set_init_copy, re_node_set_add_intersect):
98641         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98642         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98643         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
98644         (re_acquire_state, re_acquire_state_context, register_state):
98645         Likewise.
98646         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
98647         search_cur_bkref_entry):
98648         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
98649         (re_search_internal, re_search_2_stub, re_search_stub)
98650         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
98651         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
98652         (update_cur_sifted_state, check_dst_limits):
98653         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
98654         (check_subexp_limits, sift_states_bkref, merge_state_array):
98655         (check_subexp_matching_top, get_subexp, get_subexp_sub):
98656         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
98657         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
98658         (expand_bkref_cache, check_node_accept_bytes):
98659         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
98660         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
98661         (acquire_init_state_context, check_halt_node_context):
98662         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
98663         (sift_states_backward, clean_state_log_if_needed):
98664         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
98665         (find_recover_state, transit_state_sb, transit_state_mb):
98666         (transit_state_bkref, build_trtable, match_ctx_clean):
98667         Likewise.
98668         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
98669         to work around an assumption that REG_MISSING is negative.
98671         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
98672         (seek_collating_symbol_entry) [defined _LIBC]:
98673         (lookup_collation_sequence_value) [defined _LIBC]:
98674         (build_range_exp, build_collating_symbol) [defined _LIBC]:
98675         Use prototypes rather than old-style function definitions.
98676         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
98677         (transit_state_sb) [0]:
98678         (find_collation_sequence_value) [defined _LIBC]: Likewise.
98680         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
98681         rm_eo.
98683         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
98684         (optimize_subexps, lower_subexp):
98685         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
98686         since the signed shift might overflow.  Use 1u<<31 instead.
98687         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
98688         Likewise.
98689         * lib/regexec.c (check_dst_limits_calc_pos_1,
98690         check_subexp_matching_top): Likewise.
98692         * lib/regcomp.c (optimize_subexps, lower_subexp):
98693         Use CHAR_BIT rather than 8, for clarity.
98694         * lib/regexec.c (check_dst_limits_calc_pos_1):
98695         (check_subexp_matching_top): Likewise.
98696         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
98697         have to worry about portability issues when shifting it left.
98698         Remove no-longer-needed test for table_size > 0.
98699         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
98700         in a word, as the resulting behavior is undefined.
98701         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
98702         in one case, a <= should have been an <, and in another case the
98703         whole test was missing.
98704         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
98705         the standard name CHAR_BIT.
98706         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
98707         this is not true on one's complement and signed-magnitude hosts.
98709         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
98710         next_last_offset.
98711         (struct re_dfa_t): Remove unused member states_alloc.
98712         * lib/regcomp.c (init_dfa): Don't initialize unused members.
98714 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98716         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
98717         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
98718         and large-file glibc and in 32-bit large-file Solaris.
98720 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98722         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
98723         lengths fit in regoff_t; this isn't true if regoff_t is the same
98724         width as size_t.
98725         * lib/regex.c (re_search_internal): 5th arg is LAST_START
98726         (= START + RANGE) instead of RANGE.  This avoids overflow
98727         problems when regoff_t is the same width as size_t.
98728         All callers changed.
98729         (re_search_2_stub): Check for overflow when adding the
98730         sizes of the two strings.
98731         (re_search_stub): Check for overflow when adding START
98732         to RANGE; if it occurs, substitute the extreme value.
98734 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98736         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
98738 2005-08-31  Jim Meyering  <jim@meyering.net>
98740         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
98741         a pointer-to-const.
98742         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
98743         (register_state): Likewise.
98744         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
98745         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
98746         (group_nodes_into_DFAstates): Likewise.
98748 2005-08-31  Jim Meyering  <jim@meyering.net>
98750         * check-module: Add a FIXME comment.
98752 2005-08-31  Eric Blake  <ebb9@byu.net>
98754         * modules/unistd-safer (Files): Add unistd--.h.
98755         * modules/stdio-safer (Files): Add stdio--.h.
98757 2005-08-31  Derek Price  <derek@ximbiot.com>
98759         * lib/getdelim.c (getdelim): Return EOF on EOF.
98760         Reported by Larry Jones <lawrence.jones@ugs.com>.
98762 2005-08-31  Bruno Haible  <bruno@clisp.org>
98764         Avoid unnecessary diffs in the generated lib/Makefile.am.
98765         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
98766         the generated files.
98767         (func_import): Don't set cmd.
98769 2005-08-31  Bruno Haible  <bruno@clisp.org>
98771         * lib/strstr.c: Include <stddef.h>, for NULL.
98772         * lib/strcasestr.c: Likewise.
98773         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98775 2005-08-31  Bruno Haible  <bruno@clisp.org>
98777         * gnulib-tool: New option --macro-prefix.
98778         (func_import): Use macro_prefix.
98779         (import): Handle option --macro-prefix.
98781 2005-08-31  Bruno Haible  <bruno@clisp.org>
98783         * gnulib-tool (import): Rename most ac_* variables to cached_*.
98784         Also use new variables cached_lgpl, cached_libtool.
98786 2005-08-31  Bruno Haible  <bruno@clisp.org>
98788         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
98789         always instantiating them.
98791 2005-08-31  Bruno Haible  <bruno@clisp.org>
98793         * gnulib-tool (func_import): Read the previous cached settings
98794         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
98795         earlier added by gnulib but are now dropped. Warn when a gnulib file
98796         overwrites a non-gnulib file.
98798 2005-08-31  Bruno Haible  <bruno@clisp.org>
98800         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
98801         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
98802         projects that don't keep autogenerated files in CVS. Put into
98803         actioncmd only the specified modules, not the transitive closure.
98805 2005-08-31  Bruno Haible  <bruno@clisp.org>
98807         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
98808         Create directories that shall be filled.
98809         (import): Don't look for gl_* macros in configure.ac. Recurse across
98810         all directories containing a gnulib-cache.m4 files, if meaningful.
98812 2005-08-31  Bruno Haible  <bruno@clisp.org>
98814         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
98815         (import): Set seen_libtool when we see gl_LIBTOOL.
98817 2005-08-31  Bruno Haible  <bruno@clisp.org>
98819         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
98820         declaration macro definitions from generated gnulib.m4.
98822 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
98824         * lib/iconvme.h: Add prototype for iconv_alloc.
98826 2005-08-29  Simon Josefsson  <jas@extundo.com>
98828         * lib/iconvme.c: Fix errno.
98830 2005-08-29  Bruno Haible  <bruno@clisp.org>
98832         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
98833         that it works when the directory contains spaces.
98835 2005-08-29  Bruno Haible  <bruno@clisp.org>
98837         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
98839 2005-08-29  Bruno Haible  <bruno@clisp.org>
98841         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
98842         Emit more advice.
98844 2005-08-29  Bruno Haible  <bruno@clisp.org>
98845         and Stepan Kasal  <kasal@ucw.cz>
98847         * check-module: If more parameters are given, check each of them
98848         separately; add more exceptions, as noted by Jim Meyering.
98849         (check_module): New procedure.
98850         (%exempt_header): Now contains all exceptions.
98852 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
98854         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
98856 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
98858         * lib/iconvme.c: Split iconv_string into iconv_alloc.
98860 2005-08-28  Bruno Haible  <bruno@clisp.org>
98862         * m4/gnulib-tool.m4: New file.
98864 2005-08-27  Jim Meyering  <jim@meyering.net>
98866         * modules/unistd-safer (Files): Add pipe-safer.c.
98867         * modules/fcntl-safer (Files): Add creat-safer.c.
98869 2005-08-27  Jim Meyering  <jim@meyering.net>
98871         * m4/stdlib-safer.m4: New file.  From coreutils.
98872         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
98873         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
98874         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
98875         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
98876         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
98878 2005-08-27  Jim Meyering  <jim@meyering.net>
98880         * lib/fopen-safer.c: Merge minor changes from coreutils.
98881         * lib/dup-safer.c: Likewise.
98882         * lib/fd-safer.c: Likewise.
98884         Merge from coreutils.
98885         * lib/stdio--.h: New file.
98886         * lib/stdlib--.h: New file.
98887         * lib/mkstemp-safer.c: New file.
98889         GNU tar needs these.
98890         * lib/pipe-safer.c: New file.
98891         * lib/creat-safer.c: New file.
98892         * lib/fcntl--.h (creat): Define to creat_safer.
98893         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
98894         * lib/unistd--.h (pipe): Define to pipe_safer.
98895         * lib/unistd-safer.h: Declare pipe_safer.
98897 2005-08-26  Simon Josefsson  <jas@extundo.com>
98899         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
98900         Haible <bruno@clisp.org>.
98902 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
98904         * lib/regex_internal.h: Remove all references to
98905         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
98906         or better.
98907         (bitset_not, bitset_merge, bitset_not_merge):
98908         (bitset_mask, re_string_allocate, re_string_construct):
98909         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
98910         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
98911         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
98912         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
98913         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98914         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98915         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
98916         (re_acquire_state_context):
98917         Remove unnecessary forward decls.
98918         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
98919         Put __attribute at function definition,
98920         now that the function decl has been removed.
98921         * lib/regex_internal.c (re_string_peek_byte_case):
98922         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
98923         Likewise.
98925 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
98927         * m4/regex.m4: Add AC_PREREQ(2.50).
98928         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
98930 2005-08-25  Simon Josefsson  <jas@extundo.com>
98932         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
98933         __fsetlocking.
98935 2005-08-25  Simon Josefsson  <jas@extundo.com>
98937         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
98938         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
98939         GLIBC specific code.
98941 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98943         Make regex safe for g++.  This fixes one real bug (an "err"
98944         that should have been "*err").  g++ problem reported by
98945         Sam Steingold.
98946         * lib/regex_internal.h (re_calloc): New macro, consistent with
98947         re_malloc etc.  All callers of calloc changed to use re_calloc.
98948         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
98949         not int.  All callers changed.
98950         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
98951         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
98952         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
98953         (find_recover_state): Change "err" to "*err"; this fixes what
98954         appears to be a real bug.
98955         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
98956         versus int.
98958 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98960         * modules/regex (Depends-on): Add malloc, since the code
98961         assumes that !malloc(0) means failure.
98963 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98965         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
98967         alloca modernization/simplification for regex.
98968         * lib/regex.c: Remove portability cruft for alloca.  This no longer
98969         needs to be at the start of the file, and can be moved into
98970         regex_internal.h and simplified.
98971         * lib/regex_internal.h: Include <alloca.h>.
98972         (__libc_use_alloca) [!defined _LIBC]: New macro.
98973         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
98974         now works outside glibc.
98976 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98978         * config/srclist.txt: Add glibc bugs 1241, 1245.
98980 2005-08-25  Jim Meyering  <jim@meyering.net>
98982         * lib/open-safer.c: Include <config.h>.
98983         Otherwise, we'd lose LARGEFILE support in any file using
98984         e.g. "fcntl--.h"
98986 2005-08-25  Bruno Haible  <bruno@clisp.org>
98988         * m4/minmax.m4: Require autoconf 2.52.
98989         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
98990         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
98991         alternatives of translit over the alphabet.
98992         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
98994 2005-08-24  Simon Josefsson  <jas@extundo.com>
98996         * tests/test-getpass.c: New file.
98998 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
99000         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
99001         for GNU regex features.
99003 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
99005         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
99006         * lib/regex.h (regerror): Likewise.
99008         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
99009         requires this.  (The code never needed it.)
99011         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
99012         All uses of recently-renamed identifiers changed to use the new,
99013         POSIX-compliant names.  The code will build and run just fine
99014         without these changes, but it's better to eat our own dog food
99015         and use the standard-conforming names.
99017         * lib/regex.h: Fix a multitude of POSIX name space violations.
99018         These changes have an effect only for programs that define
99019         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
99020         do not change anything for programs compiled in the normal way.
99021         Also, there is no effect on the ABI.
99023         (_REGEX_SOURCE): New macro.
99024         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
99025         defined and _GNU_SOURCE is not; this fixes a name space violation.
99027         Rename the following macros to obey POSIX requirements.
99028         The old names are still visible as macros if _REGEX_SOURCE is defined.
99029         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
99030         RE_BACKSLASH_ESCAPE_IN_LISTS.
99031         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
99032         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
99033         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
99034         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
99035         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
99036         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
99037         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
99038         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
99039         (REG_INTERVALS): renamed from RE_INTERVALS.
99040         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
99041         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
99042         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
99043         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
99044         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
99045         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
99046         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
99047         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
99048         RE_UNMATCHED_RIGHT_PAREN_ORD.
99049         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
99050         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
99051         (REG_DEBUG): renamed from RE_DEBUG.
99052         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
99053         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
99054         unusual, since we can't clash with the POSIX REG_ICASE.
99055         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
99056         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
99057         (REG_NO_SUB): renamed from RE_NO_SUB.
99058         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
99059         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
99060         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
99061         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
99062         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
99063         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
99064         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
99065         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
99066         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
99067         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
99068         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
99069         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
99070         RE_SYNTAX_POSIX_MINIMAL_BASIC.
99071         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
99072         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
99073         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
99074         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
99075         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
99076         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
99077         (REG_FIXED): Renamed from REGS_FIXED.
99078         (REG_NREGS): Renamed from RE_NREGS.
99080         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
99081         of other REG_* macros, since POSIX says the user is allowed to
99082         #undef these macros selectively.
99084         (reg_errcode_t): Update comment stating what other tables need
99085         to be consistent.
99087         Rename the following enum values to obey POSIX requirements.
99088         The old names are still visible as macros.
99089         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
99090         is not defined, since GNU is supposed to be a superset of POSIX as
99091         much as possible, and since we want reg_errcode_t to be a signed
99092         type for implementation consistency.
99093         (_REG_NOERROR): Renamed from REG_NOERROR.
99094         (_REG_NOMATCH): Renamed from REG_NOMATCH.
99095         (_REG_BADPAT): Renamed from REG_BADPAT.
99096         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
99097         (_REG_ECTYPE): Renamed from REG_ECTYPE.
99098         (_REG_EESCAPE): Renamed from REG_EESCAPE.
99099         (_REG_ESUBREG): Renamed from REG_ESUBREG.
99100         (_REG_EBRACK): Renamed from REG_EBRACK.
99101         (_REG_EPAREN): Renamed from REG_EPAREN.
99102         (_REG_EBRACE): Renamed from REG_EBRACE.
99103         (_REG_BADBR): Renamed from REG_BADBR.
99104         (_REG_ERANGE): Renamed from REG_ERANGE.
99105         (_REG_ESPACE): Renamed from REG_ESPACE.
99106         (_REG_BADRPT): Renamed from REG_BADRPT.
99107         (_REG_EEND): Renamed from REG_EEND.
99108         (_REG_ESIZE): Renamed from REG_ESIZE.
99109         (_REG_ERPAREN): Renamed from REG_ERPAREN.
99110         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
99111         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
99112         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
99113         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
99115         (_REG_RE_NAME, _REG_RM_NAME): New macros.
99116         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
99117         changed.  But support the old name if the new one is not defined
99118         and if _REGEX_SOURCE.
99120         Change the following member names in struct re_pattern_buffer.
99121         The old names are still supported if !_REGEX_SOURCE.
99122         The new names are always supported, regardless of _REGEX_SOURCE.
99123         (re_buffer): Renamed from buffer.
99124         (re_allocated): Renamed from allocated.
99125         (re_used): Renamed from used.
99126         (re_syntax): Renamed from syntax.
99127         (re_fastmap): Renamed from fastmap.
99128         (re_translate): Renamed from translate.
99129         (re_can_be_null): Renamed from can_be_null.
99130         (re_regs_allocated): Renamed from regs_allocated.
99131         (re_fastmap_accurate): Renamed from fastmap_accurate.
99132         (re_no_sub): Renamed from no_sub.
99133         (re_not_bol): Renamed from not_bol.
99134         (re_not_eol): Renamed from not_eol.
99135         (re_newline_anchor): Renamed from newline_anchor.
99137         Change the following member names in struct re_registers.
99138         The old names are still supported if !_REGEX_SOURCE.
99139         The new names are always supported, regardless of _REGEX_SOURCE.
99140         (rm_num_regs): Renamed from num_regs.
99141         (rm_start): Renamed from start.
99142         (rm_end): Renamed from end.
99144         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
99145         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
99146         Prepend __ to parameter names.
99148         Undo yesterday's changes.
99150 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
99152         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
99153         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
99154         lib/regex.c.
99156 2005-08-24  Jim Meyering  <jim@meyering.net>
99158         Sync from coreutils.
99159         * m4/fcntl-safer.m4: New file.
99161         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
99162         and object files for this module.
99164 2005-08-24  Jim Meyering  <jim@meyering.net>
99166         Sync from coreutils.
99167         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
99169 2005-08-24  Jim Meyering  <jim@meyering.net>
99171         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
99172         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
99174 2005-08-24  Jim Meyering  <jim@meyering.net>
99176         * modules/fcntl-safer: New module.
99177         * modules/fts (Depends-on): Add fcntl-safer.
99178         * MODULES.html.sh (File descriptor based Input/Output):
99179         Add fcntl-safer.
99181 2005-08-24  Bruno Haible  <bruno@clisp.org>
99183         Support for unit test modules.
99184         * modules/README: Mention tests modules.
99185         * modules/TEMPLATE-TESTS: New file.
99186         * gnulib-tool: New options --extract-tests-module, --with-tests and
99187         --tests-base (unused for the moment).
99188         (testsbase, inctests): New variables.
99189         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
99190         (func_verify_module): Exclude TEMPLATE-TESTS.
99191         (func_verify_nontests_module, func_verify_tests_module): New functions.
99192         (func_get_dependencies): Add implicit dependency for tests modules.
99193         (func_get_tests_module): New function.
99194         (func_modules_transitive_closure): When --with-tests was specified,
99195         include the unit tests as well, unless explicitly avoided.
99196         (func_emit_lib_Makefile_am): Ignore the tests modules here.
99197         (func_emit_tests_Makefile_am): New function.
99198         (func_create_testdir): When --with-tests was specified, emit a
99199         tests/ directory.
99200         * MODULES.html.sh (Future developments): Update.
99202 2005-08-24  Bruno Haible  <bruno@clisp.org>
99204         * modules/tls-tests: New file.
99205         * tests/test-tls.c: New file, from GNU gettext.
99207 2005-08-24  Bruno Haible  <bruno@clisp.org>
99209         * modules/lock-tests: New file.
99210         * tests/test-lock.c: New file, from GNU gettext.
99212 2005-08-24  Bruno Haible  <bruno@clisp.org>
99214         * lib/lock.h: Add multiple inclusion guard.
99215         * lib/tls.h: Add multiple inclusion guard.
99217 2005-08-24  Bruno Haible  <bruno@clisp.org>
99219         * gnulib-tool: Add support for the --aux-dir option to
99220         --create-testdir, --create-megatestdir, --test, --megatest.
99221         (func_create_testdir, func_create_megatestdir): Optionally emit a
99222         AC_CONFIG_AUX_DIR directive.
99223         (create-testdir, create-megatestdir, test, megatest): Provide a
99224         default value for $auxdir.
99226 2005-08-24  Bruno Haible  <bruno@clisp.org>
99228         * gnulib-tool (import): Use compound statement instead of subshell
99229         where possible.
99231 2005-08-24  Bruno Haible  <bruno@clisp.org>
99233         * gnulib-tool (import): Change --aux-dir default to "build-aux".
99235 2005-08-24  Bruno Haible  <bruno@clisp.org>
99237         * gnulib-tool (func_version): Update.
99239 2005-08-24  Bruno Haible  <bruno@clisp.org>
99241         * gnulib-tool (func_import, func_create_testdir,
99242         func_create_megatestdir): Quote all autoconf macro arguments.
99244 2005-08-24  Bruno Haible  <bruno@clisp.org>
99246         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
99247         option --force, because --force causes the aclocal.m4 of each
99248         subdirectory to be newer than the corresponding config.h.in.
99250 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99252         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
99253         All contents moved to gl_REGEX.
99254         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
99255         assume that it does.
99257 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99259         * lib/regex.h (REG_NOSYS)
99260         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
99261         Define, since POSIX requires it as of 2001.
99262         (_REG_ENOSYS)
99263         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
99264         New private symbol, used to keep the enum signed in all cases.
99265         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
99266         Youngman in
99267         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
99269         * lib/regex_internal.c (re_string_skip_chars, register_state):
99270         (calc_state_hash):
99271         Remove forward decls; no longer needed now that we use prototypes.
99272         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
99273         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
99274         (clean_state_log_if_needed): Likewise.
99276 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99278         * config/srclist.txt: Add glibc bugs 1231-1233.
99280 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99282         Fix problems reported by Sam Steingold in
99283         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
99284         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
99285         assumed that reg_errcode_t is a signed type, which is not
99286         necessarily true if _XOPEN_SOURCE is not defined.
99287         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
99288         since some compilers warn about it otherwise.
99290 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99292         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
99293         (init_word_char, create_initial_state, duplicate_node_closure):
99294         (fetch_token, peek_token_bracket, build_range_exp):
99295         (build_collating_symbol): Remove forward decls; no longer needed
99296         now that we use prototypes.
99298         * lib/regcomp.c:
99299         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
99300         (re_compile_fastmap_iter, regcomp, regerror, regfree):
99301         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
99302         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
99303         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
99304         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
99305         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
99306         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
99307         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
99308         (build_range_exp, build_collating_symbol, parse_bracket_exp):
99309         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
99310         (build_charclass, build_charclass_op, fetch_number, create_tree):
99311         (create_token_tree, mark_opt_subexp, duplicate_tree):
99312         Use prototypes rather than old-style definitions.
99314         * lib/regex_internal.c:
99315         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
99316         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
99317         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
99318         (re_string_reconstruct, re_string_peek_byte_case):
99319         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
99320         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
99321         (re_node_set_init_copy, re_node_set_add_intersect):
99322         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
99323         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
99324         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
99325         (re_acquire_state, re_acquire_state_context, register_state):
99326         (create_ci_newstate, create_cd_newstate, free_state):
99327         Likewise.
99328         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
99329         re_search_2):
99330         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
99331         (re_search_internal, prune_impossible_nodes):
99332         (acquire_init_state_context, check_matching, static):
99333         (check_halt_node_context, check_halt_state_context, proceed_next_node):
99334         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
99335         (update_regs, sift_states_backward, build_sifted_states):
99336         (clean_state_log_if_needed, merge_state_array):
99337         (update_cur_sifted_state, add_epsilon_src_nodes):
99338         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
99339         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
99340         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
99341         (find_recover_state, check_subexp_matching_top, transit_state_mb):
99342         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
99343         (check_arrival, check_arrival_add_next_nodes):
99344         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
99345         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
99346         (check_node_accept_bytes, check_node_accept, extend_buffers):
99347         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
99348         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
99349         (sift_ctx_init):
99350         Likewise.
99352         * lib/regex_internal.h:
99353         (re_string_allocate, re_string_construct, re_string_reconstruct):
99354         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
99355         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
99356         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
99357         (re_string_context_at, re_string_peek_byte_case):
99358         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
99359         is defined, since we now use prototypes always.
99361         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
99362         C89 or better.  All uses removed.
99364 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99366         * config/srclist.txt: Add glibc bugs 1220-1227.
99368 2005-08-20  Jim Meyering  <jim@meyering.net>
99370         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
99371         of unused local, dfa.
99373 2005-08-20  Bruno Haible  <bruno@clisp.org>
99375         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
99377 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99379         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
99380         (re_node_set_insert_last, re_dfa_add_node):
99381         Rename local variables to avoid GCC shadowing warnings.
99383 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99385         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
99386         [defined lint]: Suppress bogus uninitialized-variable warnings.
99388         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
99389         and let the caller return REG_ESPACE if out of space.  This
99390         removes an uninitialied-variable warning with GCC 4.0.1, and also
99391         avoids taking the address of a local variable.  All callers
99392         changed.
99394 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99396         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
99397         $LIBCSRC/posix/regexec.c.
99398         Add glibc bug 1217 for regcomp.c.
99400 2005-08-19  Jim Meyering  <jim@meyering.net>
99402         * lib/regexec.c (proceed_next_node): Redo local variables to
99403         avoid GCC shadowing warnings.
99405 2005-08-18  Bruno Haible  <bruno@clisp.org>
99407         * lib/strstr.c (strstr): Fix return value in multibyte case.
99408         * lib/strcasestr.c (strcasestr): Likewise.
99410 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
99412         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
99414 2005-08-17  Jim Meyering  <jim@meyering.net>
99416         Make the %s format (seconds since the epoch) work for a negative
99417         number and when used with a zero-padded field width, e.g. %015s.
99419         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
99420         label so that it precedes the code to set `digits'.  Otherwise,
99421         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
99422         print `00-22'.  Now, it prints `-0022', as it should.
99424 2005-08-17  Bruno Haible  <bruno@clisp.org>
99426         * modules/strstr (Files): Add m4/mbrtowc.m4.
99427         (Depends-on): Add mbuiter.
99429 2005-08-17  Bruno Haible  <bruno@clisp.org>
99431         * modules/strcasestr: New file.
99432         * MODULES.html.sh (String handling, based on ANSI C 89): Add
99433         strcasestr.
99435 2005-08-17  Bruno Haible  <bruno@clisp.org>
99437         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
99439 2005-08-17  Bruno Haible  <bruno@clisp.org>
99441         * modules/mbuiter: New file.
99442         * MODULES.html.sh (Extended multibyte and wide character utilities):
99443         Add mbuiter.
99445 2005-08-17  Bruno Haible  <bruno@clisp.org>
99447         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
99448         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
99450 2005-08-17  Bruno Haible  <bruno@clisp.org>
99452         * m4/strcasestr.m4: New file.
99454 2005-08-17  Bruno Haible  <bruno@clisp.org>
99456         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
99457         * lib/strstr.c: Completely rewritten, with multibyte locale support.
99459 2005-08-17  Bruno Haible  <bruno@clisp.org>
99461         * lib/strcasestr.h: New file.
99462         * lib/strcasestr.c: New file.
99464 2005-08-17  Bruno Haible  <bruno@clisp.org>
99466         * lib/strcasecmp.c: Use mbuiter.h.
99468 2005-08-17  Bruno Haible  <bruno@clisp.org>
99470         * lib/mbuiter.h: New file.
99472 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
99474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
99475         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
99476         and gl_GETOPT are both invoked via different paths (as happens
99477         with GNU tar CVS because it uses both argp and getopt), the former
99478         wins.
99480 2005-08-16  Bruno Haible  <bruno@clisp.org>
99482         * modules/tls: New file.
99483         * MODULES.html.sh (Multithreading): Add tls.
99485 2005-08-16  Bruno Haible  <bruno@clisp.org>
99487         * modules/strnlen1: New file.
99488         * MODULES.html.sh (String handling): Add strnlen1.
99490 2005-08-16  Bruno Haible  <bruno@clisp.org>
99492         * modules/strcase (Files): Add m4/mbrtowc.m4.
99493         (Depends-on): Add strnlen1, mbchar.
99495 2005-08-16  Bruno Haible  <bruno@clisp.org>
99497         * modules/mbiter: New file.
99498         * MODULES.html.sh (Extended multibyte and wide character utilities):
99499         Add mbiter.
99501 2005-08-16  Bruno Haible  <bruno@clisp.org>
99503         * modules/mbfile: New file.
99504         * MODULES.html.sh (Extended multibyte and wide character utilities):
99505         Add mbfile.
99507 2005-08-16  Bruno Haible  <bruno@clisp.org>
99509         * modules/mbchar: New file.
99510         * MODULES.html.sh (Extended multibyte and wide character utilities):
99511         New section.
99513 2005-08-16  Bruno Haible  <bruno@clisp.org>
99515         * m4/tls.m4: New file, from GNU gettext.
99517 2005-08-16  Bruno Haible  <bruno@clisp.org>
99519         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
99520         always.
99521         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
99523 2005-08-16  Bruno Haible  <bruno@clisp.org>
99525         * m4/mbiter.m4: New file.
99527 2005-08-16  Bruno Haible  <bruno@clisp.org>
99529         * m4/mbfile.m4: New file.
99531 2005-08-16  Bruno Haible  <bruno@clisp.org>
99533         * m4/mbchar.m4: New file.
99535 2005-08-16  Bruno Haible  <bruno@clisp.org>
99537         * lib/tls.h: New file, from GNU gettext.
99538         * lib/tls.c: New file, from GNU gettext.
99540 2005-08-16  Bruno Haible  <bruno@clisp.org>
99542         * lib/strnlen1.h: New file.
99543         * lib/strnlen1.c: New file.
99545 2005-08-16  Bruno Haible  <bruno@clisp.org>
99547         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
99548         (mbi_init): Update.
99549         (mbi_avail, mbi_advance): Let the iteration end before the terminating
99550         NUL byte, not after it.
99552 2005-08-16  Bruno Haible  <bruno@clisp.org>
99554         * lib/strcase.h (strcasecmp): Add note in comments.
99555         * lib/strncasecmp.c: Use code from strcasecmp.c.
99556         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
99557         (strcasecmp): Work correctly in multibyte locales.
99559 2005-08-16  Bruno Haible  <bruno@clisp.org>
99561         * lib/mbiter.h: New file.
99563 2005-08-16  Bruno Haible  <bruno@clisp.org>
99565         * lib/mbfile.h: New file.
99567 2005-08-16  Bruno Haible  <bruno@clisp.org>
99569         * lib/mbchar.h: New file.
99570         * lib/mbchar.c: New file.
99572 2005-08-16  Bruno Haible  <bruno@clisp.org>
99574         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
99575         the valid ones. Makes the comparison operations transitive:
99576         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
99577         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
99579 2005-08-15  Simon Josefsson  <jas@extundo.com>
99581         * modules/ssize_t (License): Change to 'unlimited'.
99583         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
99585 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99587         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
99588         Add comments for each pending glibc patch.
99590 2005-08-15  Bruno Haible  <bruno@clisp.org>
99592         * lib/regex.h (__restrict_arr): Don't define to __restrict if
99593         __cplusplus is defined.
99595 2005-08-14  Jim Meyering  <jim@meyering.net>
99597         Sync from coreutils.
99599         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
99600         Use the hash-table-based cycle-detection code not just when
99601         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
99602         Reported by James Youngman in
99603         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
99604         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
99605         FTS_TIGHT_CYCLE_CHECK.
99606         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
99607         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
99608         once again.
99609         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
99610         * lib/fts.c (fd_safer): Remove decl.
99611         Include fcntl--.h rather than unistd-safer.h
99612         (fts_safe_changedir): Don't call fd_safer; no longer needed
99613         now that we include fcntl--.h.
99615 2005-08-12  Simon Josefsson  <jas@extundo.com>
99617         * modules/getndelim2: Use ssize_t module.
99618         * modules/getnline: Likewise.
99619         * modules/safe-read: Likewise.
99620         * modules/xreadlink: Likewise.
99622         * modules/ssize_t: New file.
99624 2005-08-12  Simon Josefsson  <jas@extundo.com>
99626         * m4/readline.m4: Look for termcap, curses or ncurses if required.
99628 2005-08-12  Simon Josefsson  <jas@extundo.com>
99630         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99631         ssize_t.
99633 2005-08-12  Simon Josefsson  <jas@extundo.com>
99635         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
99636         readline, getdelim and check_version.
99637         (Support for systems lacking ISO C 99: Sizes of integer types):
99638         Add size_max.
99640 2005-08-12  Bruno Haible  <bruno@clisp.org>
99642         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
99644 2005-08-11  Simon Josefsson  <jas@extundo.com>
99646         * modules/readline: New file.
99648         * modules/strnlen (Files): Add strnlen.h.
99650 2005-08-11  Simon Josefsson  <jas@extundo.com>
99652         * m4/readline.m4: New file.
99654 2005-08-11  Simon Josefsson  <jas@extundo.com>
99656         * lib/readline.h, readline.c: New file.
99658 2005-08-11  Simon Josefsson  <jas@extundo.com>
99660         * doc/gnulib.texi (Initial import, Finishing touches): Mention
99661         gl_AVOID.
99663 2005-08-11  Bruno Haible  <bruno@clisp.org>
99665         * lib/strnlen.h (strnlen): Change parameter name to match comment.
99667 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
99669         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
99671 2005-08-10  Simon Josefsson  <jas@extundo.com>
99673         * tests/test-iconvme.c: New file.
99675 2005-08-10  Simon Josefsson  <jas@extundo.com>
99677         * m4/strnlen.m4: New file.
99679         * m4/strndup.m4: Don't check for strnlen declaration, done in
99680         strnlen.m4.
99682 2005-08-10  Simon Josefsson  <jas@extundo.com>
99684         * lib/strndup.c: Use strnlen.h.
99686         * lib/strnlen.h: New file.
99688 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99690         * README: Typos.
99692 2005-08-02  Simon Josefsson  <jas@extundo.com>
99694         * modules/readline: New file.
99696 2005-08-02  Simon Josefsson  <jas@extundo.com>
99698         * modules/getdelim: New file.
99700         * modules/getline: Rewrite, don't use getndelim2.
99702 2005-08-02  Simon Josefsson  <jas@extundo.com>
99704         * m4/getline.m4: Separate out getdelim stuff into separate module.
99706         * m4/getdelim.m4: New file.
99708 2005-08-02  Simon Josefsson  <jas@extundo.com>
99710         * lib/getline.h, getline.c: Rewrite.
99712         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
99714 2005-07-31  Bruno Haible  <bruno@clisp.org>
99716         * lib/lock.h (gl_lock_initializer): New macro.
99717         (gl_lock_define_initialized): Use it.
99718         (gl_rwlock_initializer): New macro.
99719         (gl_rwlock_define_initialized): Use it.
99720         (gl_recursive_lock_initializer): New macro.
99721         (gl_recursive_lock_define_initialized): Use it.
99723 2005-07-30  Karl Berry  <karl@gnu.org>
99725         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
99726         Report from Ben Pfaff, regarding getopt.
99728 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
99730         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
99731         normal way.
99732         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
99733         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
99734         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
99735         (gl_GETOPT): Use the new macros.  Most of the implementation
99736         is moved to the new macros.  This is for programs like Emacs
99737         that don't want all the functionality of gl_GETOPT.
99739 2005-07-26  Bruno Haible  <bruno@clisp.org>
99741         * m4/lock.m4: Update from GNU gettext.
99743 2005-07-26  Bruno Haible  <bruno@clisp.org>
99745         * lib/lock.h: Update from GNU gettext.
99746         * lib/lock.c: Update from GNU gettext.
99748 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
99750         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
99751         obsolescent AC_TRY_RUN.  Include the default includes files, for
99752         'exit'.
99754 2005-07-24  Bruno Haible  <bruno@clisp.org>
99756         * modules/visibility: New file.
99757         * MODULES.html.sh (Misc): Add visibility.
99759 2005-07-24  Bruno Haible  <bruno@clisp.org>
99761         * m4/visibility.m4: New file.
99763 2005-07-24  Bruno Haible  <bruno@clisp.org>
99765         * doc/visibility.texi: New file.
99767 2005-07-22  Bruno Haible  <bruno@clisp.org>
99769         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
99770         $(ALLOCA_H), redundant through BUILT_SOURCES.
99771         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
99772         redundant through BUILT_SOURCES.
99773         * modules/byteswap (Makefile.am): Remove explicit dependency on
99774         $(BYTESWAP_H), redundant through BUILT_SOURCES.
99775         * modules/fnmatch (Makefile.am): Remove explicit dependency on
99776         $(FNMATCH_H), redundant through BUILT_SOURCES.
99777         * modules/getopt (Makefile.am): Remove explicit dependency on
99778         $(GETOPT_H), redundant through BUILT_SOURCES.
99779         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
99780         redundant through BUILT_SOURCES.
99781         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
99782         redundant through BUILT_SOURCES.
99783         * modules/stdbool (Makefile.am): Remove explicit dependency on
99784         $(STDBOOL_H), redundant through BUILT_SOURCES.
99785         * modules/stdint (Makefile.am): Remove explicit dependency on
99786         $(STDINT_H), redundant through BUILT_SOURCES.
99787         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
99788         Remove explicit dependency on $(SYSEXITS_H).
99789         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
99791 2005-07-18  Simon Josefsson  <jas@extundo.com>
99793         * lib/check-version.c (check_version): Accept identical versions too.
99795 2005-07-18  Bruno Haible  <bruno@clisp.org>
99797         * modules/lock: New file.
99798         * MODULES.html.sh (Multithreading): New section.
99800 2005-07-18  Bruno Haible  <bruno@clisp.org>
99802         * m4/lock.m4: New file, from GNU gettext.
99804 2005-07-18  Bruno Haible  <bruno@clisp.org>
99806         * lib/lock.h: New file, from GNU gettext.
99807         * lib/lock.c: New file, from GNU gettext.
99809 2005-07-18  Bruno Haible  <bruno@clisp.org>
99811         * lib/lock.h (gl_once_t): New type.
99812         (gl_once_define, gl_once): New macros.
99813         * lib/lock.c (fresh_once): New variable.
99814         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
99815         functions.
99817 2005-07-16  Simon Josefsson  <jas@extundo.com>
99819         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
99820         workaround, suggested by Bruno.
99822 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
99824         * modules/xalloc (Depends-on): Add xalloc-die.
99825         * modules/xvasprintf (Depends-on): Add xalloc-die.
99827 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
99829         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
99830         with a minor change.
99832 2005-07-15  Bruno Haible  <bruno@clisp.org>
99834         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
99835         When using lib/poll.c, define poll as rpl_poll.
99837 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
99839         * modules/argp (Depends-on): Remove unlocked-io.
99841 2005-07-14  Derek Price  <derek@ximbiot.com>
99843         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
99844         for glob symlink bug.
99846 2005-07-14  Bruno Haible  <bruno@clisp.org>
99848         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
99849         Instead, test for *_unlocked function declarations directly.
99851 2005-07-11  Simon Josefsson  <jas@extundo.com>
99853         * modules/size_max: New file.
99855         * modules/xsize: Depend on size_max module for size_max.m4.
99857 2005-07-11  Simon Josefsson  <jas@extundo.com>
99859         * lib/size_max.h: New file.
99861 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
99863         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
99864         copyright symbol and the year.
99865         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
99866         (version_etc_va): Use parameterized copyright notice.
99867         Reword to conform to the current GNU coding standards.
99869 2005-07-11  Karl Berry  <karl@gnu.org>
99871         * doc/gnulib.texi (Quoting): new node.
99872         (Initial import): more info, from Patrice.
99874 2005-07-11  Bruno Haible  <bruno@clisp.org>
99876         * gnulib-tool (func_usage): Document option --avoid.
99877         (Command line options): Handle --avoid.
99878         (func_acceptable): New function.
99879         (func_modules_transitive_closure): Use it.
99881 2005-07-11  Bruno Haible  <bruno@clisp.org>
99883         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
99884         Reported by Jim Meyering.
99886 2005-07-10  Bruno Haible  <bruno@clisp.org>
99888         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
99889         Needed when size_t is smaller than 'unsigned int'.
99890         Reported by Paul Eggert.
99892 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99894         * modules/argp (Depends-on): Add unlocked-io
99896 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99898         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
99899         block of defines.
99901 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99903         * config/srclist.txt: Comment out regcomp.c, since we have a porting
99904         fix now.
99906 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
99907         and Paul Eggert  <eggert@cs.ucla.edu>
99909         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
99910         in wint_t, not wchar_t.  Remove now-unnecessary cast.
99912 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99914         * modules/regex (Files): Add lib/regex_internal.c,
99915         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
99916         (Depends-on): Add extensions.
99917         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
99919 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99921         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
99922         pathconf.
99923         * m4/same.m4 (gl_SAME): Likewise.
99924         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
99926         * m4/regex.m4: Adjust to new libc regex implementation.
99927         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
99928         all the .c and .h parts of (the new) regex.
99929         Quote the m4 stuff better.
99930         Check for RE_ICASE bug of old gnulib.
99931         Check for REG_STARTEND of recent libc.
99932         Rename local variables from jm_* to gl_*.
99933         Quote operand of "test -f".
99934         Say "recent enough" version of libc, not "version 2".
99935         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
99936         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
99937         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
99938         Remove check for btowc, isascii.
99939         Require AM_LANGINFO_CODESET.
99941 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99943         * lib/regex.c, regex.h: Sync from libc.
99944         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
99945         * lib/regexec.c:
99946         New files, synced from libc, except that regex_internal.h
99947         currently has a small porting fix.
99949 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99951         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
99952         regex_internal.c, regexec.c.
99953         Add regex_internal.h too, but as a comment, since the libc version
99954         is currently broken in gnulib mode.
99956 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99958         Support programs like Emacs that use gnulib but not gettext.
99959         * MODULES.html.sh (Internationalization functions): Add gettext-h.
99960         * modules/gettext-h: New file.
99961         * modules/gettext (Files): Remove lib/gettext.h.
99962         (Depends-on): Add gettext-h.
99963         (Makefile.am): Remove lib_SOURCES.
99964         * modules/argmatch, modules/c-stack, modules/closeout:
99965         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
99966         * modules/execute, modules/file-type, modules/getaddrinfo:
99967         * modules/getopt, modules/human, modules/javacomp:
99968         * modules/javaexec, modules/mkdir-p, modules/obstack:
99969         * modules/openat, modules/pagealign_alloc, modules/pipe:
99970         * modules/quotearg, modules/regex, modules/rpmatch:
99971         * modules/unicodeio, modules/userspec, modules/version-etc:
99972         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
99973         * modules/xsetenv:
99974         Depend on gettext-h, not gettext.
99976 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99978         * gnulib-tool (func_import): Add support for 'public domain' license.
99979         * modules/alloca, modules/atexit, modules/memmove:
99980         Now public domain, not GPL.
99981         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
99982         * modules/realloc, modules/strerror, modules/strtod:
99983         Now LGPL, not GPL.
99985 2005-07-05  Bruno Haible  <bruno@clisp.org>
99987         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
99988         autoconf CVS. Needed for mingw.
99990 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99992         Remove the dependency of the strftime module on the tzset module.
99993         * modules/strftime (Depends-on): Remove dependency on tzset.
99995 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99997         Remove the dependency of the strftime module on the tzset module.
99998         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
99999         gl_FUNC_TZSET_CLOBBER.
100001 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100003         Remove the dependency of the strftime module on the tzset module.
100004         * lib/strftime.c (my_strftime)
100005         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
100006         Copy the input structure, to work around some of the bug with
100007         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
100008         Solaris releases, you should also use the tzset module, but we won't
100009         require it as a dependency any more since we don't want LGPLed code
100010         to depend on GPLed code.
100012 2005-07-02  Jim Meyering  <jim@meyering.net>
100014         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
100015         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
100016         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
100017         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
100019 2005-07-02  Jim Meyering  <jim@meyering.net>
100021         * lib/backupfile.c (backup_args): Change a `0' to NULL.
100023 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100025         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
100026         declares only 'struct timespec;' (!).
100028 2005-07-01  Jim Meyering  <jim@meyering.net>
100030         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
100031         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
100032         * lib/save-cwd.c, tempname.c:
100033         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100034         and don't include <sys/file.h>).
100036 2005-06-29  Jim Meyering  <jim@meyering.net>
100038         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
100039         type name.  Use the variable name instead.
100040         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
100041         Likewise.
100043 2005-06-28  Simon Josefsson  <jas@extundo.com>
100045         * modules/check-version (Files): Add check-version.m4.
100047 2005-06-28  Simon Josefsson  <jas@extundo.com>
100049         * m4/check-version.m4: New file, suggested by Jim Meyering
100050         <jim@meyering.net>.
100052 2005-06-28  Simon Josefsson  <jas@extundo.com>
100054         * lib/check-version.h, lib/check-version.c: New files.
100056 2005-06-28  Simon Josefsson  <jas@extundo.com>
100058         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
100059         collision with global variable.  Better indentation.  Don't
100060         increment buffer pointer beyond buffer end.  Based on comments
100061         from Paul Eggert <eggert@cs.ucla.edu>.
100063         * lib/base64.h: Indent.
100065 2005-06-28  Simon Josefsson  <jas@extundo.com>
100067         * doc/gnulib.texi (Library version handling): New section.
100069 2005-06-28  Jim Meyering  <jim@meyering.net>
100071         * check-module (find_included_lib_files): Hard-code another
100072         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
100073         but modules/fts-lgpl (correctly) does not list those files.
100075         * modules/canonicalize (Files): Add lib/pathmax.h.
100077 2005-06-25  Simon Josefsson  <jas@extundo.com>
100079         * modules/check-version: New file.
100081 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
100083         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
100084         initializer of struct addrinfo, as an indication that we don't
100085         care how many members the structure has.
100087 2005-06-24  Derek Price  <derek@ximbiot.com>
100088         and Bruno Haible  <bruno@clisp.org>
100090         Remove stat module & update lstat.
100091         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
100092         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100093         * m4/stat.m4: Remove this file.
100095 2005-06-24  Derek Price  <derek@ximbiot.com>
100096         and Bruno Haible  <bruno@clisp.org>
100098         Remove stat module & update lstat.
100099         * lib/stat.c: Remove this file...
100100         (slash_aware_lstat): ...moving this content and its support...
100101         * lib/lstat.c (rpl_lstat): ...into here.
100102         * lib/lstat.h: New file.
100104 2005-06-24  Derek Price  <derek@ximbiot.com>
100105         and Bruno Haible  <bruno@clisp.org>
100107         Remove stat module & update lstat.
100108         * config/srclist.txt (libc sources): Remove stat.
100110 2005-06-24  Derek Price  <derek@ximbiot.com>
100111         and Bruno Haible  <bruno@clisp.org>
100113         Remove stat module & update lstat.
100114         * MODULES.html.sh (stat): Remove.
100115         * MODULES.html: Regenerated.
100116         * modules/lstat (Description): Correct function name.
100117         (Files): Add "lstat.h".
100118         (Depends-on): Remove stat, add xalloc, stat-macros.
100119         * modules/stat: Remove this file.
100120         (Include): Add "lstat.h", remove <sys/stat.h>.
100122 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100124         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
100125         (ranged_convert): Don't save conversion in a temporary struct.
100126         This causes a warning with GCC 4.0.0, and anyway in the typical
100127         case it's not worth the extra 100 bytes or so of code.
100128         (ranged_convert, __mktime_internal): When calling a function via a
100129         pointer P, use P () rather than (*P) (), as we now assume C89 or
100130         better.
100132 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100134         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
100135         "who -r" failed to give output.  Problem reported by Tim Waugh.
100137         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
100138         (xcalloc): Use it to avoid needless tests.
100139         Problem reported by Jim Meyering.
100141 2005-06-20  Derek Price  <derek@ximbiot.com>
100143         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
100144         unnecessary for Autoconfs > 2.59c.
100146 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100148         * lib/argp.h (__option_is_short): Check upper limit of
100149         __key. Isprint() requires its argument to have the value
100150         of an unsigned char or EOF.
100152 2005-06-16  Jim Meyering  <jim@meyering.net>
100154         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
100155         when either N or S is zero.
100157 2005-06-16  Derek Price  <derek@ximbiot.com>
100159         * m4/bison.m4: Declare YACC & YFLAGS precious.
100161 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
100163         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
100164         multibyte string or pattern, fall back on unibyte matching.
100165         Problem reported by James Youngman.
100167 2005-06-08  Bruno Haible  <bruno@clisp.org>
100169         * modules/csharpcomp: New file.
100170         * MODULES.html.sh (C#): Add csharpcomp.
100172 2005-06-08  Bruno Haible  <bruno@clisp.org>
100174         * m4/csharpcomp.m4: New file, from GNU gettext.
100176 2005-06-08  Bruno Haible  <bruno@clisp.org>
100178         * lib/csharpcomp.h: New file, from GNU gettext.
100179         * lib/csharpcomp.c: New file, from GNU gettext.
100180         * lib/csharpcomp.sh.in: New file, from GNU gettext.
100182 2005-06-08  Bruno Haible  <bruno@clisp.org>
100184         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
100185         warning on mingw.
100187 2005-06-07  Derek Price  <derek@ximbiot.com>
100189         Sync from CVS.
100190         * lib/glob_.h: Indent nested #ifdef.
100192 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100194         Sync from coreutils.
100195         Use "file name" when talking about file names, instead of "filename"
100196         or "path", as per the GNU coding standards.
100197         * lib/mkdir-p.c: Renamed from makepath.c.
100198         (make_dir_parents): Renamed from make_path.  All callers changed.
100199         * lib/mkdir-p.h: Likewise.  All includers changed.
100200         * lib/filenamecat.c: Renamed from path-concat.c.
100201         (file_name_concat): Renamed from path_concat.  All callers changed.
100202         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
100203         * lib/filenamecat.h: Likewise.  All includers changed.
100204         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
100205         in comments or local variable names.
100206         * lib/basename.c: Likewise.
100207         * lib/canonicalize.c, canonicalize.h: Likewise.
100208         * lib/dirname.c, dirname.h: Likewise.
100209         * lib/euidaccess.c: Likewise.
100210         * lib/exclude.c: Likewise
100211         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
100212         * lib/fsusage.c, fsuage.h: Likewise.
100213         * lib/fts.c, fts_.h: Likewise.
100214         * lib/getcwd.c: Likewise.
100215         * lib/getloadavg.c: Likewise.
100216         * lib/mkstemp.c: Likewise.
100217         * lib/mountlist.c, mountlist.h: Likewise.
100218         * lib/openat.c, openat.h: Likewise.
100219         * lib/readlink-stub.c: Likewise.
100220         * lib/readutmp.c, readutmp.h: Likewise.
100221         * lib/rename.c: Likewise.
100222         * lib/rmdir.c: Likewise.
100223         * lib/same.c: Likewise.
100224         * lib/savedir.c: Likewise.
100225         * lib/stripslash.c: Likewise.
100226         * lib/tempname.c: Likewise.
100227         * lib/xreadlink.c: Likewise.
100228         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
100229         All uses changed.
100230         * lib/exclude.h: Likewise.
100232         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
100233         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100234         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
100235         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100236         * lib/pathmax.h: Include <limits.h> unconditionally, since other
100237         files have been getting away with it for years (MORE/BSD 4.3
100238         is extinct now).
100239         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
100240         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100242         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
100243         Define to 256, not 255, as per modern POSIX.
100245 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100247         Sync from coreutils.
100248         Use "file name" when talking about file names, instead of "filename"
100249         or "path", as per the GNU coding standards.
100250         * MODULES.html.sh: mkdir-p renamed from makepath.
100251         filenamecat renamed from path-concat.
100252         * modules/filenamecat: Renamed from modules/path-concat.
100253         (Files): filenamecat.h and filenamecat.c renamed from
100254         path-concat.h and path-concat.c.
100255         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
100256         (Include): filenamecat.h, not path-concat.h.
100257         * modules/mkdir-p: Renamed from modules/makepath.
100258         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
100259         makepath.c.
100260         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
100261         (Include): mkdir-p.h, not makepath.h.
100263 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100265         Sync from coreutils.
100266         * m4/mkdir-p.m4: Renamed from makepath.m4.
100267         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
100268         Rename files from makepath.c to mkdir-p.c, and from
100269         makepath.h to mkdir-p.h.
100270         * m4/filenamecat.m4: Renamed from path-concat.m4.
100271         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
100272         Rename files from path-concat.c to filenamecat.c,
100273         and from path-concat.h to filenamecat.h.
100274         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
100275         "file name" in local variables or comments.
100276         * m4/rename.m4: Likewise.
100278 2005-06-01  Bruno Haible  <bruno@clisp.org>
100280         * modules/csharpexec: New file.
100281         * MODULES.html.sh (C#): New section.
100283 2005-06-01  Bruno Haible  <bruno@clisp.org>
100285         * m4/csharp.m4: New file, from GNU gettext.
100286         * m4/csharpexec.m4: New file, from GNU gettext.
100288 2005-06-01  Bruno Haible  <bruno@clisp.org>
100290         * lib/csharpexec.h: New file, from GNU gettext.
100291         * lib/csharpexec.c: New file, from GNU gettext.
100292         * lib/csharpexec.sh.in: New file, from GNU gettext.
100294 2005-05-31  Derek Price  <derek@ximbiot.com>
100295             Paul Eggert  <eggert@cs.ucla.edu>
100297         Sync from cvs.
100298         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
100300 2005-05-31  Derek Price  <derek@ximbiot.com>
100301             Paul Eggert  <eggert@cs.ucla.edu>
100303         Sync from cvs.
100304         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
100306 2005-05-29  Derek Price  <derek@ximbiot.com>
100308         * config/srclist.txt (glob_.h, glob.c): Add these files.
100310 2005-05-29  Derek Price  <derek@ximbiot.com>
100312         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
100313         * modules/glob: New file.
100314         * modules/getlogin_r: Add link to POSIX spec in description.
100316 2005-05-29  Derek Price  <derek@ximbiot.com>
100317             Paul Eggert  <eggert@cs.ucla.edu>
100319         * m4/glob.m4: New file.
100321 2005-05-29  Derek Price  <derek@ximbiot.com>
100322             Paul Eggert  <eggert@cs.ucla.edu>
100324         * lib/glob_.h, lib/glob.c: New files.
100326 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100328         * modules/fts (Files): Remove m4/inttypes-pri.m4.
100329         * modules/fts-lgpl (Depends-on): Remove gettext.
100331 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
100334         and don't require gt_INTTYPES_PRI.
100336 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100338         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
100340         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
100341         the configuration hassle isn't worth it.
100342         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
100343         (LONGEST_MODIFIER, PRIuMAX): Remove.
100345 2005-05-27  Bruno Haible  <bruno@clisp.org>
100347         * lib/getlogin_r.h: Remove second include of <stddef.h>.
100349 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
100351         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
100352         _POSIX_PTHREAD_SEMANTICS for Solaris.
100354 2005-05-25  Derek Price  <derek@ximbiot.com>
100356         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
100358 2005-05-25  Derek Price  <derek@ximbiot.com>
100359             Paul Eggert  <eggert@cs.ucla.edu>
100361         * modules/getlogin_r, m4/getlogin_r.m4: New files.
100362         * lib/getlogin_r.c, getlogin_r.h: New files.
100364 2005-05-25  Bruno Haible  <bruno@clisp.org>
100365             Derek Price  <derek@ximbiot.com>
100367         * lib/getlogin_r.h: Simplify API documentation.
100369 2005-05-23  Derek Price  <derek@ximbiot.com>
100371         * modules/minmax (Files): Add m4/minmax.m4.
100372         (configure.ac): Add gl_MINMAX.
100374 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100376         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
100377         so that unistd-safer.h (GPL'ed code) need not be included.
100379 2005-05-22  Bruno Haible  <bruno@clisp.org>
100381         * m4/minmax.m4: New file.
100382         Based on a patch by Derek Price <derek@ximbiot.com>.
100384 2005-05-22  Bruno Haible  <bruno@clisp.org>
100386         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
100387         (INT64_MIN): Fix definition.
100388         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
100390         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
100391         NEED_SIGNED_INT_TYPES.
100393         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
100394         HAVE_SYSTEM_INTTYPES.
100396 2005-05-22  Bruno Haible  <bruno@clisp.org>
100398         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
100399         Also include <sys/param.h> if it defines MIN, MAX.
100400         Based on a patch by Derek Price <derek@ximbiot.com>.
100402 2005-05-21  Jim Meyering  <jim@meyering.net>
100404         * modules/fts (Files): Add m4/inttypes-pri.m4.
100405         (Depends-on): Add lstat and remove gettext.  Alphabetize.
100407 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100409         New fts module.
100410         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
100411         (setup_dir, free_dir): New functions.
100412         (enter_dir, leave_dir): Define trivial
100413         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
100414         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
100415         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
100416         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
100417         Move to fts-cycle.c.
100418         (fts_open): Use setup_dir.
100419         (fts_close): Use free_dir.
100420         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
100421         This adds a label and some gotos, but the alternatives were messier.
100422         Check for memory allocation failure when entering a dir.
100423         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
100424         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
100425         (FTS): New member fts_cycle, that is a union that contains the
100426         old active_dir_ht and cycle_state.  All uses changed to mention
100427         fts_cycle.ht and fts_cycle.state.
100428         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
100429         fts.c, with the following changes:
100430         (setup_dir, free_dir): New functions.
100431         (enter_dir): Now returns bool.  Return true if successful, false
100432         if memory exhausted.  All callers changed.
100433         Do not bother partly cleaning up on
100434         memory allocation failure; that is free_dir's job.
100435         However, free ad if hash_insert fails, to avoid memory leak.
100436         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
100437         fts->fts_options to see which union member to use.
100439 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100441         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
100442         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
100444 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100446         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
100448 2005-05-20  Jim Meyering  <jim@meyering.net>
100450         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
100451         Now a macro, to pacify GCC.
100453 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
100455         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
100456         of -1.
100458 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
100460         * lib/chown.c (rpl_chown): Return -1 on failure.
100462 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
100464         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
100465         Don't check for stddef.h.
100466         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
100467         don't use its results.
100468         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
100469         since we include them unconditionally.  Don't require
100470         AM_STDBOOL_H, since stdbool is a prerequisite.
100471         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
100472         since we assume C89 or better.
100473         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
100474         as we don't use their results.
100475         Don't check for fchdir, memmove, memset, strrchr, as we use
100476         them unconditionally.
100477         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
100478         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
100480 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
100482         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
100483         Include <stddef.h> unconditionally, since we assume C89 now.
100484         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
100485         * lib/fts.c: Include fts_.h first, to check interface.
100486         Do not include intprops.h; no longer needed.
100487         Include cycle-check.h and hash.h, since fts_.h no longer does.
100488         Remove unnecessary casts of closedir to void.
100489         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
100490         decide whether to decrement nlinks.
100491         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
100492         (FTS): Use struct hash_table * instead of Hash_table, so that
100493         we no longer need to include hash.h here.
100495 2005-05-18  Jim Meyering  <jim@meyering.net>
100497         * modules/dirfd (License): Change to LGPL.  Most of the code
100498         is already in the public domain.
100500 2005-05-18  Jim Meyering  <jim@meyering.net>
100502         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
100503         Reported by Yoann Vandoorselaere.
100505 2005-05-17  Jim Meyering  <jim@meyering.net>
100507         * m4/fts.m4: New file, from coreutils.
100509 2005-05-17  Jim Meyering  <jim@meyering.net>
100511         * lib/fts.c, lib/fts_.h: New files, from coreutils.
100513 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100515         Sync from coreutils.
100516         * m4/unlinkdir.m4: New file.
100518 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100520         Sync from coreutils.
100521         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
100522         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
100523         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
100524         White space changes only.
100525         * lib/makepath.c (make_path): Port to hosts where leading "//" is
100526         special.
100527         * lib/yesno.c: Include getline.h, not ctype.h.
100528         (yesno): Don't remove leading white space; POSIX doesn't allow it.
100529         Use getline to remove arbitrary restriction on response length.
100531 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100533         * config/srclist-update: Spell out "Street" in FSF postal
100534         mail address; this is the style the FSF seems to prefer.
100536         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
100537         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
100538         this updates FSF postal mail address.
100540         Sync from coreutils.
100541         * modules/unlinkdir: New file.
100542         * modules/yesno (Depends-on): Add getline.
100543         * MODULES.html.sh (File system functions): Add unlinkdir.
100545 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100547         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
100548         lib/strsep.h:
100549         Change the initial comment to refer to GPL, not LGPL.
100550         gnulib-tool will change it to LGPL as needed.
100552         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
100553         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
100554         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
100555         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
100556         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
100557         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
100558         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
100559         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
100560         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
100561         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
100562         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
100563         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
100564         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
100565         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
100566         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
100567         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
100568         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
100569         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
100570         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
100571         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
100572         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
100573         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
100574         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
100575         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
100576         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
100577         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
100578         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
100579         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
100580         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
100581         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
100582         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
100583         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
100584         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
100585         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
100586         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
100587         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
100588         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
100589         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
100590         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
100591         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
100592         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
100593         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
100594         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
100595         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
100596         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
100597         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
100598         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
100599         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
100600         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
100601         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
100602         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
100603         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
100604         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
100605         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
100606         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
100607         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
100608         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
100609         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
100610         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
100611         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
100612         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
100613         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
100614         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
100615         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
100616         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
100617         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
100618         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
100619         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
100620         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
100621         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
100622         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
100623         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
100624         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
100625         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
100626         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
100627         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
100628         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
100629         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
100630         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
100631         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
100632         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
100633         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
100634         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
100635         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
100636         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
100637         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
100638         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
100639         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
100640         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
100641         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
100642         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
100643         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
100644         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
100645         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
100646         lib/yesno.c, lib/yesno.h:
100647         Update FSF postal mail address.
100649 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100651         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
100652         tests/test-memmem.c, tests/test-stpncpy.c:
100653         Update FSF postal mail address.
100655 2005-05-13  Bruno Haible  <bruno@clisp.org>
100657         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
100658         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
100659         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
100660         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
100661         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
100662         Add support for 64-bit integers in the MSVC compiler.
100664 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100666         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
100668 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
100670         * gnulib-tool (func_import): Sort and uniquify recommended includes.
100672 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
100674         * doc/getdate.texi (General date syntax): Don't say that date
100675         date --iso-8601=ns generates acceptable dates; it doesn't yet.
100676         Problem reported by Nic Ferrier.
100678 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100680         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
100681         specified in ai_socktype. Fix invalid ai_protocol
100682         check. ai_protocol is usually set to 0 or depending on
100683         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
100684         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
100685         ai_socktype / ai_protocol in the returned addrinfo structure.
100687 2005-05-10  Simon Josefsson  <jas@extundo.com>
100689         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
100690         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100692 2005-05-10  Karl Berry  <karl@gnu.org>
100694         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
100695         (from http://www.gnu.org/licenses).
100696         * doc/COPYING.LIB: also rename to COPYING.LESSER.
100697         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
100698         fdl.texi suffices.
100700 2005-05-10  Karl Berry  <karl@gnu.org>
100702         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
100703         (COPYING.DOC): remove.
100705         * config/srclist-update: new FSF address.
100707 2005-05-10  Derek Price  <derek@ximbiot.com>
100709         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
100710         possible.
100712 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100713             Bruno Haible  <bruno@clisp.org>
100715         * modules/inet_ntop: New file.
100716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100717         inet_ntop.
100719 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100720             Bruno Haible  <bruno@clisp.org>
100722         * m4/inet_ntop.m4: New file.
100724 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100725             Bruno Haible  <bruno@clisp.org>
100727         * lib/inet_ntop.h: New file.
100728         * lib/inet_ntop.c: New file, from glibc with modifications.
100730 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
100732         * modules/time_r (License): Change to LGPL.
100733         * modules/extensions (License): Change to LGPL.  Actually,
100734         the license is more permissive than that, but currently gnulib-tool
100735         doesn't know how to handle more-permissive licenses.
100737         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
100738         Problem reported by Dave Love.
100740 2005-05-08  Jim Meyering  <jim@meyering.net>
100742         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
100743         blank.
100745 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
100747         * modules/argmatch (Depends-on): Add stdbool.
100748         * modules/backupfile (Depends-on): Likewise.
100749         * modules/chdir-long (Depends-on): Likewise.
100750         * modules/closeout (Depends-on): Likewise.
100751         * modules/cycle-check (Depends-on): Likewise.
100752         * modules/dirname (Depends-on): Likewise.
100753         * modules/fnmatch (Depends-on): Likewise.
100754         * modules/fsusage (Depends-on): Likewise.
100755         * modules/fwriteerror (Depends-on): Likewise.
100756         * modules/getcwd (Depends-on): Likewise.
100757         * modules/getloadavg (Depends-on): Likewise.
100758         * modules/hard-locale (Depends-on): Likewise.
100759         * modules/makepath (Depends-on): Likewise.
100760         * modules/mountlist (Depends-on): Likewise.
100761         * modules/nanosleep (Depends-on): Likewise.
100762         * modules/posixtm (Depends-on): Likewise.
100763         * modules/quotearg (Depends-on): Likewise.
100764         * modules/readtokens (Depends-on): Likewise.
100765         * modules/readtokens0 (Depends-on): Likewise.
100766         * modules/readutmp (Depends-on): Likewise.
100767         * modules/save-cwd (Depends-on): Likewise.
100768         * modules/strftime (Depends-on): Likewise.
100769         * modules/userspec (Depends-on): Likewise.
100770         * modules/utimecmp (Depends-on): Likewise.
100771         * modules/xgetcwd (Depends-on): Likewise.
100772         * modules/xnanosleep (Depends-on): Likewise.
100773         * modules/xstrtod (Depends-on): Likewise.
100774         * modules/yesno (Depends-on): Likewise.
100776 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
100778         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
100779         needless checks.
100781 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100783         Merge from coreutils.  Among other things,
100784         add bulletproofing for cases where stdin, stdout, or stderr are closed.
100785         * lib/fd-safer.c: New file.
100786         * lib/fcntl-safer.h, open-safer.c: Remove.
100787         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
100788         * lib/dup-safer.c: Include unistd-safer.h first.
100789         Don't include errno.h.
100790         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
100791         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
100792         * lib/file-type.c: Rely on file-type.h change.
100793         * lib/getloadavg.c: Include unistd-safer.h.
100794         (getloadavg): Use safer open.
100795         * lib/getusershell.c: Include "stdio-safer.h".
100796         (getusershell): Use safer fopen.
100797         * lib/long-options.c (long_options): Use NULL rather than 0.
100798         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
100799         'free'.
100800         * lib/modechange.c: Likewise.
100801         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
100802         (MODE_DONE): New constant.
100803         (struct mode_change): Remove 'next' member.
100804         (make_node_op_equals): New function; like the old one of the
100805         same name, except it allocates an array.
100806         (mode_compile, mode_create_from_ref): Use it.
100807         (mode_compile): Allocate result as an array, not a linked list.
100808         Parse octal string ourself, so that we catch mistakes like "+0".
100809         (mode_adjust): Arg is an array, not a linked list.
100810         * lib/modechange.c: Include stat-macros.h, xalloc.h.
100811         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
100812         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
100813         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
100814         Remove.  This is now stat-macros.h's job.
100815         (talloc): Remove.  All callers replaced by xalloc, so that
100816         our invokers don't have to worry about reporting memory failures.
100817         (make_node_op_equals): Remove.
100818         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
100819         New constants.
100820         (struct mode_change): Moved here from modechange.h.
100821         (mode_append_entry): Remove.
100822         (mode_compile): Remove MASKED_OPS arg, since it encouraged
100823         apps to have incorrect behavior.  Use simpler algorithm for head
100824         and tail.  Don't futz with umask; that's now the job of mode_adjust.
100825         Detect more invalid usages rather than having somewhat-random behavior.
100826         Don't insert an "a=" action, as that leads to incorrect behavior.
100827         (mode_compile, mode_create_from_ref): Return NULL on error instead
100828         of an enum, since now there's only one way to have an error.  All
100829         callers changed.
100830         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
100831         at the correct time.  Simplify calculation of "+u" and its ilk.
100832         Don't mishandle "+X".
100833         (mode_free): Remove "register" and localize decls.
100834         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
100835         (struct mode_change): Move to modechange.c; callers don't
100836         need to see this stuff.
100837         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
100838         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
100839         (mode_change, mode_adjust): Reflect the new signatures noted above.
100840         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
100841         that might redefine system include files.
100842         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
100843         (my_usleep): Use NULL rather than (void *) 0.
100844         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
100845         Use siginterrupt to specify that system calls should be interrupted.
100846         (rpl_nanosleep): Move initialization of suspended closer to call of
100847         my_usleep.
100848         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
100849         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
100850         (desirable_utmp_entry): New function.
100851         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
100852         using x2nrealloc, to simplify logic.
100853         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
100854         size calculation.  Do not assume utmp file is a regular file.
100855         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
100856         (READ_UTMP_CHECK_PIDS): New constant.
100857         * lib/save-cwd.c: Include unistd-safer.h.
100858         (save_cwd): Use fd_safer.
100859         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
100860         [!_LIBC] Include "stat-macros.h" instead.
100861         * lib/unistd-safer.h (fd_safer): New decl.
100863 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100865         * modules/getloadavg (Depends-on): Add unistd-safer.
100866         * modules/getusershell (Depends-on): Add stdio-safer.
100867         * modules/lstat (Depends-on): Remove xalloc.
100868         * modules/mkstemp (Depends-on): Add stat-macros.
100869         * modules/modechange (Depends-on): Remove xstrtol.
100870         Add stat-macros, xalloc.
100871         * modules/save-cwd (Depends-on): Add unistd-safer.
100872         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
100873         * modules/unistd-safer (Files): Add lib/fd-safer.c
100874         (Makefile.am): Remove lib_SOURCES.
100876         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
100877         Remove fcntl-safer; unistd-safer supersedes it.
100879 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
100882         AC_HEADER_STAT.
100883         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
100884         (gl_PREREQ_CHOWN): Remove.
100885         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
100886         it.  Don't require AC_HEADER_STAT.
100887         (gl_PREREQ_LSTAT): Remove.
100888         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
100889         Don't require AC_HEADER_STAT.
100890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
100891         (gl_PREREQ_RMDIR): Remove.
100892         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
100893         mention stat-macros.h or AC_HEADER_STAT, since we'll make
100894         the stat-macros module a prerequisite.
100895         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
100896         * m4/filemode.m4 (gl_FILEMODE): Likewise.
100897         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
100898         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
100899         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
100900         variable names.
100901         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
100902         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
100903         variable prefixes.
100904         * m4/fcntl-safer.m4: Remove.
100905         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
100906         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
100907         Invoke gl_PREREQ_FD_SAFER.
100908         (gl_PREREQ_FD_SAFER): New macro.
100909         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
100910         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
100911         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
100912         Remove duplicate call to AC_LIBOBJ(readutmp).
100913         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
100915         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
100916         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
100918 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100920         * MODULES.html.sh (Misc): Add byteswap.
100922 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100924         * modules/getcwd (Depends-on): Add extensions.
100925         * modules/openat (Depends-on): Likewise.
100927 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100929         * modules/byteswap: New file.
100931 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100933         * m4/byteswap.m4: New file.
100935 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100937         * lib/byteswap_.h: New file.
100939 2005-04-25  Karl Berry  <karl@gnu.org>
100941         * m4/gettext.m4: Update from GNU gettext 0.14.4.
100943 2005-04-25  Albert Chin  <china@thewrittenword.com>
100945         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
100946         Toolkit C bug.
100948 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
100950         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
100951         (func_ln_if_changed): Remove forcibly for no error message
100952         in case file does not exist.
100954 2005-04-19  Simon Josefsson  <jas@extundo.com>
100956         * gnulib-tool (Options): Make --symlink mean --symbolic.
100958 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
100960         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
100962 2005-04-16  Simon Josefsson  <jas@extundo.com>
100964         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
100966 2005-04-15  Simon Josefsson  <jas@extundo.com>
100968         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
100970 2005-04-15  Simon Josefsson  <jas@extundo.com>
100972         * gnulib-tool: Rename --symlink to --symbolic.
100974 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
100976         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
100977         symbolic links to files instead of copying/moving.  Add --aux-dir,
100978         specifying directory relative --dir where auxiliary build tools
100979         are placed.
100981 2005-04-14  Bruno Haible  <bruno@clisp.org>
100983         * modules/allocsa (License): Change to LGPL.
100984         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
100986 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100988         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
100989         that "UTC +1 second" continues to work.  Problem reported
100990         by Dmitry V. Levin.
100991         (relunit_snumber): New rule.
100992         (relunit): Use it.
100994 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100996         * lib/getdate.y (universal_time_zone_table): New constant.
100997         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
100998         universal_time_zone_table.
100999         (lookup_zone): Prefer universal_time_zone_table to
101000         local_time_zone_table, so that "GMT" time stamps are allowed in
101001         London during the summer.  Problem reported by Ian Abbott.
101003 2005-04-12  Jim Meyering  <jim@meyering.net>
101005         * lib/human.c (humblock): Set *options even when returning due to
101006         xstrtoumax conversion failure.  Thanks to a used-uninitialized
101007         warning from gcc-4.
101009 2005-04-09  Jim Meyering  <jim@meyering.net>
101011         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
101012         -Wuninitialized: initialize tm0.tm_year.
101014 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101016         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
101017         count, since there's no maximum.  All uses changed.
101018         Add member dsts_seen.
101019         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
101020         not being INT_MAX.
101021         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
101022         Use pc_rels_seen to decide whether a date is absolute.
101024         * lib/getdate.y (number): Don't overwrite year.
101025         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
101026         check.
101028 2005-04-02  Simon Josefsson  <jas@extundo.com>
101030         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
101031         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
101033 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
101035         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
101036         where no absolute path name can be longer than PATH_MAX.
101038 2005-03-27  Jim Meyering  <jim@meyering.net>
101040         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
101042 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
101044         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
101045         "one's complement" -> "ones' complement" in comment, as per Knuth.
101046         "value of type" -> "type or expression" in comment.
101047         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
101049 2005-03-26  Jim Meyering  <jim@meyering.net>
101051         Comment nits.
101052         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
101053         Correct typos: s/or/of/.
101055 2005-03-26  Jim Meyering  <jim@meyering.net>
101057         * modules/check-include-files: Move to ../ and rename to...
101058         * check-module: ...this.
101060 2005-03-25  Jim Meyering  <jim@meyering.net>
101062         * modules/xvasprintf (Files): Add xalloc.h.
101064 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
101066         * modules/gettext (Files): config/config.rpath ->
101067         build-aux/config.rpath
101068         * modules/iconv (Files): Likewise.
101069         Problem reported by Oskar Liljeblad.
101071 2005-03-23  Jim Meyering  <jim@meyering.net>
101073         * modules/check-include-files: New script to check for
101074         missing dependencies, multiple includes, etc.
101076         * modules/c-strtold (Depends-on): Add xalloc.
101077         * modules/c-strtod (Depends-on): Add xalloc.
101078         * modules/hash (Depends-on): Add xalloc.
101079         (Files): Remove lib/xalloc.h.
101081         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
101082         * modules/userspec (Files): Add lib/inttostr.h.
101084 2005-03-23  Jim Meyering  <jim@meyering.net>
101086         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
101088 2005-03-22  Jim Meyering  <jim@meyering.net>
101090         * modules/stat-macros: New module.
101091         * modules/canonicalize, modules/euidaccess, modules/file-type,
101092         * modules/filemode, modules/lchown, modules/makepath,
101093         * modules/rmdir, modules/stat: Depend on new stat-macros module
101094         rather than listing lib/stat-macros.h manually.
101095         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
101097 2005-03-22  Jim Meyering  <jim@meyering.net>
101099         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
101101 2005-03-22  Bruno Haible  <bruno@clisp.org>
101103         * config/srclist.txt: Replace target directory 'config' with
101104         'build-aux'.
101105         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
101106         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
101107         ../build-aux/.
101109 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
101111         * modules/chdir-long (Depends-on): Add mempcpy.
101113         * modules/acl, modules/backupfile, modules/c-strtod,
101114         modules/c-strtold, modules/canon-host, modules/canonicalize,
101115         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
101116         modules/exclude, modules/exitfail, modules/file-type,
101117         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
101118         modules/getdate, modules/getline, modules/getpagesize,
101119         modules/getpass, modules/getugroups, modules/group-member,
101120         modules/hard-locale, modules/hash, modules/human, modules/idcache,
101121         modules/inttostr, modules/long-options, modules/makepath,
101122         modules/md5, modules/memcasecmp, modules/memcoll,
101123         modules/modechange, modules/mountlist, modules/path-concat,
101124         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
101125         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
101126         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
101127         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
101128         modules/strftime, modules/strndup, modules/strverscmp,
101129         modules/timespec, modules/unlocked-io, modules/userspec,
101130         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
101131         modules/yesno:
101132         Remove lib_SOURCES line from Makefile.am section, as this is now
101133         done automatically by the corresponding Autoconf macro.
101135 2005-03-21  Jim Meyering  <jim@meyering.net>
101137         Changes imported from coreutils.
101139         * lib/cycle-check.c: Don't include xalloc.h.
101141         * lib/path-concat.c: Don't include assert.h.
101142         (path_concat): Remove assertion that would have triggered
101143         for ABASE starting with more than one slash.
101144         Reported by Andreas Schwab.
101146         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
101147         properly when ABASE is an absolute file name.
101148         Correct the description of this function.
101149         Include <assert.h>.
101150         Add an assertion and a test driver.
101151         This fixes a bug introduced on 2004-07-02.
101152         Andreas Schwab reported the resulting failure of cp --parents:
101153         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
101155 2005-03-21  Jim Meyering  <jim@meyering.net>
101157         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
101158         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
101160 2005-03-21  Jim Meyering  <jim@meyering.net>
101161         and  Paul Eggert  <eggert@cs.ucla.edu>
101163         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
101164         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
101165         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
101166         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
101167         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
101168         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
101169         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
101170         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
101171         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
101172         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
101173         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
101174         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
101175         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
101176         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
101177         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
101178         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
101179         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
101180         for these modules.
101182 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
101184         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
101185         (which shouldn't happen), generate nothing instead of returning 0
101186         immediately, so that nstrftime (NULL, ...) doesn't return 0.
101188 2005-03-16  Bruno Haible  <bruno@clisp.org>
101190         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
101191         HAVE_LONGLONG_64BIT.
101193 2005-03-16  Bruno Haible  <bruno@clisp.org>
101195         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
101196         HAVE_LONGLONG_64BIT.
101198 2005-03-16  Bruno Haible  <bruno@clisp.org>
101200         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
101201         HAVE_LONGLONG_64BIT.
101203 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
101205         * lib/strftime.c (my_strftime): Prepend space to format so that we can
101206         reliably distinguish strftime failure from empty output on POSIX
101207         hosts.
101209 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
101211         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
101212         (iconv_string): Don't guess a size-zero buffer, as that might cause
101213         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
101214         result would be 'too large', where 'too large' is (heuristically)
101215         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
101216         overflow concerns.  This will prevent some unwanted malloc failures
101217         when the inputs are very large.
101219 2005-03-15  Karl Berry  <karl@gnu.org>
101221         * config/srclist.txt (config.rpath): from gettext.
101222         * config/config.rpath: update.
101224 2005-03-15  Bruno Haible  <bruno@clisp.org>
101226         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
101227         to 'negate'.
101229         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
101230         variable.
101232         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
101233         results.
101235 2005-03-14  Simon Josefsson  <jas@extundo.com>
101237         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
101238         <fx@gnu.org>.
101240 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
101242         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
101243         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
101244         intprops.h.
101245         * lib/strtol.c: Likewise.
101247 2005-03-14  Jim Meyering  <jim@meyering.net>
101249         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
101250         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
101251         to be nonzero so that we (and caller) can detect the difference
101252         between a valid zero-length expansion and an error return, even
101253         when the underlying strftime fails before writing anything into
101254         that location.
101256 2005-03-14  Bruno Haible  <bruno@clisp.org>
101258         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
101259         Update from GNU gettext 0.14.3.
101261 2005-03-10  Jim Meyering  <jim@meyering.net>
101263         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
101265 2005-03-10  Jim Meyering  <jim@meyering.net>
101267         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
101268         so that this module works on systems without fchdir.
101270 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
101272         Factor int-properties macros into a single file, except for
101273         glibc-related files.
101274         * lib/intprops.h: New file.
101275         * lib/getloadavg.c: Include it instead of limits.h.
101276         (INT_STRLEN_BOUND): Remove.
101277         * lib/human.c: Include intprops.h.
101278         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
101279         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
101280         302/1000.
101281         * lib/inttostr.h: Include intprops.h instead of limits.h.
101282         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
101283         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
101284         for consistency with intprops.h.
101285         (time_t_is_integer, twos_complement_arithmetic): Use them.
101286         * lib/sig2str.h: Include <signal.h>, intprops.h.
101287         (INT_STRLEN_BOUND): Remove.
101288         * lib/strftime.c (TYPE_SIGNED): Remove.
101289         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
101290         * lib/strtol.c: Adjust comments to match intprops.h.
101291         * lib/userspec.c: Include intprops.h.
101292         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
101293         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
101294         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
101295         instead of rolling our own expressions.
101296         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
101298         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
101299         instead of int.
101300         (my_strftime): Do not mishandle years close to INT_MAX, by doing
101301         the right thing even if adding 1900 would overflow.  Similarly
101302         for tm_mon + 1 and tm_yday + 1.
101303         Make %Y always equivalent to %C%y, and similarly for %G and %g.
101304         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
101305         (DO_SIGNED_NUMBER): New macro.
101306         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
101308 2005-03-07  Bruno Haible  <bruno@clisp.org>
101310         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
101312 2005-03-07  Bruno Haible  <bruno@clisp.org>
101314         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
101316 2005-03-04  Derek R. Price  <derek@ximbiot.com>
101318         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
101319         (func_import): Only replace files via --import when they have actually
101320         changed.
101322 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101324         * m4/mmap-anon.m4: New file.
101325         * m4/pagealign_alloc.m4: New file.
101327 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101328             Bruno Haible  <bruno@clisp.org>
101330         * modules/pagealign_alloc: New file.
101331         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
101333 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101334             Bruno Haible  <bruno@clisp.org>
101336         * lib/pagealign_alloc.h: New file.
101337         * lib/pagealign_alloc.c: New file.
101339 2005-03-03  Bruno Haible  <bruno@clisp.org>
101341         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
101342         Use an all-permissive copyright notice, recommended by RMS.
101344 2005-03-02  Bruno Haible  <bruno@clisp.org>
101346         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
101347         of AIX, the replacement has to be done only after <string.h> is
101348         included, therefore not in config.h. stpncpy.h does the replacement,
101349         and stpncpy.c uses it.
101351 2005-03-02  Bruno Haible  <bruno@clisp.org>
101353         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
101354         stpncpy.c uses it.
101356 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101358         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
101359         The workaround isn't strictly needed for POSIX conformance, and
101360         it's too much of a pain to configure and maintain.  We'll ask
101361         people to fix their kernels instead.
101362         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
101363         (NANOSLEEP_BUG_WORKAROUND): Remove.
101364         (xnanosleep): Remove the workaround.
101366 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101368         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
101369         Reported by Derek Price.
101370         (Include): Add "timespec.h".
101372         * modules/xnanosleep (Depends-on): Remove gethrxtime.
101374 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101376         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
101377         to detect nanosleep bug.
101379 2005-03-01  Bruno Haible  <bruno@clisp.org>
101381         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
101383 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101385         * modules/gethrxtime: New file.
101386         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
101387         (Depends-on): Add gethrxtime.
101388         (configure.ac): Add gl_XNANOSLEEP.
101389         (Makefile.am): Remove lib_SOURCES line.
101391 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101393         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
101394         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
101396 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101398         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
101399         * lib/timespec.h (gettime): Return void, since it always
101400         succeeds now.  All uses changed.
101401         * lib/gettime.c (gettime): Likewise.
101402         [HAVE_NANOTIME]: Prefer nanotime.
101403         Assume gettimeofday succeeds, as POSIX requires.
101404         Assime time () succeeds, since other code already does.
101405         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
101406         (timespec_subtract): Remove.
101407         (NANOSLEEP_BUG_WORKAROUND): New constant.
101408         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
101409         things considerably.  Use it only on GNU/Linux hosts, since the
101410         workaround shouldn't be needed elsewhere.
101412 2005-02-24  Bruno Haible  <bruno@clisp.org>
101414         * modules/gettext (Files): Add m4/glibc2.m4.
101416 2005-02-24  Bruno Haible  <bruno@clisp.org>
101418         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
101419         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
101420         * m4/progtest.m4:
101421         Update from GNU gettext 0.14.2.
101422         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
101424 2005-02-24  Bruno Haible  <bruno@clisp.org>
101426         * lib/localcharset.c: Update from GNU gettext 0.14.2.
101427         * lib/config.charset: Update from GNU gettext 0.14.2.
101429 2005-02-24  Bruno Haible  <bruno@clisp.org>
101431         * lib/gettext.h: Update from GNU gettext 0.14.2.
101433 2005-02-23  Simon Josefsson  <jas@extundo.com>
101435         * m4/iconvme.m4: New file.
101437 2005-02-23  Jim Meyering  <jim@meyering.net>
101439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
101440         change.
101441         Thanks to Bruno Haible for catching it.
101443 2005-02-22  Simon Josefsson  <jas@extundo.com>
101445         * modules/iconvme: New file.
101447         * MODULES.html.sh: Add iconvme.
101449 2005-02-22  Simon Josefsson  <jas@extundo.com>
101451         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
101453 2005-02-22  Simon Josefsson  <jas@extundo.com>
101455         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
101457 2005-02-22  Jim Meyering  <jim@meyering.net>
101459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
101460         s/ifndef/ifdef/.
101462 2005-02-20  Neil Conway  <neilc@samurai.com>
101464         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
101465         returned by OSX/Darwin if the specified buffer is not large
101466         enough for the hostname.
101468 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101470         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
101471         pass it to _help, otherwise the latter coredumps trying to
101472         dereference state.root_argp.
101474 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101476         * modules/chdir-long (Depends-on): Add memrchr.
101477         * modules/memrchr (Files): Add lib/memrchr.h.
101478         (Include): "memrchr.h".
101480 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101482         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
101484 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101486         * lib/memrchr.h: New file.
101487         * lib/chdir-long.c: Include it.
101488         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
101489         Don't bother including stddef.h.
101491 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
101493         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
101494         inclusion.
101495         Include <sys/types.h>, for dev_t.
101496         (ME_DUMMY, ME_REMOTE): Move from here....
101497         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
101498         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
101499         Dmitry V. Levin.
101500         Include mountlist.h first, to test the interface.
101502 2005-01-29  Bruno Haible  <bruno@clisp.org>
101504         * lib/progname.c (program_name): Initialize.
101505         Needed when linking statically on MacOS X.
101507 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101509         Sync from coreutils.
101510         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
101511         (Depends-on): Add c-strtod.
101512         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
101514 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101516         Sync from coreutils.
101517         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
101519         Remove files that are specific to coreutils.
101520         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
101522 2005-01-28  Bruno Haible  <bruno@clisp.org>
101524         * modules/javacomp: New file.
101525         * MODULES.html.sh (Java): Add javacomp.
101527 2005-01-28  Bruno Haible  <bruno@clisp.org>
101529         * m4/javacomp.m4: New file, from GNU gettext.
101531 2005-01-28  Bruno Haible  <bruno@clisp.org>
101533         * lib/javacomp.sh.in: New file, from GNU gettext.
101534         * lib/javacomp.h: New file, from GNU gettext.
101535         * lib/javacomp.c: New file, from GNU gettext.
101537 2005-01-26  Simon Josefsson  <jas@extundo.com>
101539         * lib/gai_strerror.c: Use GPL in header.
101541 2005-01-26  Bruno Haible  <bruno@clisp.org>
101543         * modules/javaexec: New file.
101544         * MODULES.html.sh (Java): Add javaexec.
101546 2005-01-26  Bruno Haible  <bruno@clisp.org>
101548         * m4/javaexec.m4: New file, from GNU gettext.
101550 2005-01-26  Bruno Haible  <bruno@clisp.org>
101552         * lib/javaexec.sh.in: New file, from GNU gettext.
101553         * lib/javaexec.h: New file, from GNU gettext.
101554         * lib/javaexec.c: New file, from GNU gettext.
101556 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101558         * modules/lchown (Depends-on): Remove lchown.h
101560 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101562         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
101563         must be defined if the header file was not found, in order
101564         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
101566 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101568         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
101569         initializers for struct pentry_state.
101570         (__argp_error): Check return value of __asprintf
101571         (__argp_failure): Translate error message
101573         * lib/argp-parse.c: Removed braces around the expansion of N_()
101575 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101577         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
101578         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
101579         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
101580         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
101581         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
101582         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
101583         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
101584         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
101585         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
101586         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
101587         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
101588         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
101589         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
101590         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
101591         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
101592         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
101593         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
101594         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
101595         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
101596         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
101597         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
101598         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
101599         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
101600         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
101601         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
101602         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
101603         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
101604         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
101605         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
101606         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
101607         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
101608         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
101609         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
101610         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
101611         xstrtol.m4, xstrtoumax.m4, yesno.m4:
101612         Use an all-permissive copyright notice, recommended by RMS.
101614 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
101616         * modules/chdir-long (Depends-on): Remove mempcpy.
101618 2005-01-21  Jim Meyering  <jim@meyering.net>
101620         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
101621         same value as for Solaris 9.
101623         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
101624         component length.  This included changing the parameter to be
101625         of type `char *' rather than `char const *'.
101626         * lib/chdir-long.h (chdir_long): Update prototype.
101628         * lib/openat.c (fdopendir, fstatat): New functions.
101629         * lib/openat.h: Include headers required for use of DIR and struct
101630         stat.
101631         [AT_SYMLINK_NOFOLLOW]: Define.
101632         (fdopendir, fstatat): Add prototypes.
101634 2005-01-21  Bruno Haible  <bruno@clisp.org>
101636         * modules/classpath: New file.
101637         * MODULES.html.sh (Java): Add classpath.
101639 2005-01-21  Bruno Haible  <bruno@clisp.org>
101641         * lib/classpath.h: New file, from GNU gettext.
101642         * lib/classpath.c: New file, from GNU gettext.
101644 2005-01-20  Simon Josefsson  <jas@extundo.com>
101646         * modules/version-etc-fsf: New file.
101648 2005-01-20  Simon Josefsson  <jas@extundo.com>
101650         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
101651         * lib/version-etc.c: Remove version_etc_copyright.
101652         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
101653         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
101655 2005-01-20  Simon Josefsson  <jas@extundo.com>
101657         * lib/base64.h (isbase64): Add.
101659         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
101660         using a unsigned prototype, don't inline.
101661         (base64_decode): Use it.
101663 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101665         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
101666         it.
101668 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101670         * lib/save-cwd.c (save_cwd): Remove code to support the case
101671         where fchdir is missing or flaky.
101673 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101675         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
101677 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
101679         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
101680         AC_LIBSOURCES now does this.
101681         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
101682         with new ullong_max module.
101684 2005-01-19  Bruno Haible  <bruno@clisp.org>
101686         * modules/sh-quote: New file.
101687         * MODULES.html.sh (Executing programs): Add sh-quote.
101689 2005-01-19  Bruno Haible  <bruno@clisp.org>
101691         * lib/sh-quote.h: New file, from GNU gettext.
101692         * lib/sh-quote.c: New file, from GNU gettext.
101694 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101696         Merge from coreutils.
101697         * m4/ullong_max.m4: New file.
101698         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
101699         (gl_MACROS): Assume localeconv exists.
101701 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101703         Merge changes from coreutils, as described below in several
101704         changelogs dated today.
101706         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
101707         (O_DIRECTORY): Remove; not needed here, since "." must be
101708         a directory.  All uses removed.
101709         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
101710         universal on Suns, and we also need to test for IRIX.
101711         Revamp code to use 'if' rather than '#if'.
101712         Avoid unnecessary comparison of cwd->desc to 0.
101714         * lib/utimens.c (futimens): Robustify the previous patch, by checking
101715         for known valid error numbers rather than observed invalid ones.
101717 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101719         * modules/ullong_max: New file.
101721         * modules/chdir-long, modules/openat: New files.
101722         * modules/save-cwd (Depends-on): Depend on chdir-long.
101723         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
101725 2005-01-18  Jim Meyering  <jim@meyering.net>
101727         Merge from coreutils.
101728         * m4/chdir-long.m4, m4/openat.m4: New files.
101729         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
101730         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
101731         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
101732         is sane and DOES follow symlinks.  Besides, testing 20 different
101733         systems found no broken chown implementations.
101734         Prompted by a change in rsync's copy of this macro.
101735         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
101737         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
101739         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
101740         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
101741         NULL-means-set-to-current-time semantics.
101742         Remove temporary file immediately, rather than waiting
101743         for configure's at-exit trap code to do it.
101745 2005-01-18  Jim Meyering  <jim@meyering.net>
101747         * lib/version-etc.c (version_etc_copyright): Update copyright date.
101749         * lib/utimens.c (futimens): Account for the fact that futimes
101750         can also fail with errno == ENOSYS or errno == ENOENT.
101751         Patch from Dmitry V. Levin.
101753         Change the name of the robust chdir function from chdir to chdir_long.
101754         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
101755         (restore_cwd): Use chdir_long, not chdir.
101756         * lib/chdir-long.c: Renamed from chdir.c.
101757         * lib/chdir-long.h: Renamed from chdir.h.
101758         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
101759         Hurd.
101761 2005-01-18  Bruno Haible  <bruno@clisp.org>
101763         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
101764         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
101765         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
101766         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
101767         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
101768         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
101769         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
101770         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
101771         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
101772         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
101773         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
101774         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
101775         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
101776         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
101777         Use an all-permissive copyright notice, recommended by RMS.
101779 2005-01-18  Bob Proulx  <bob@proulx.com>
101781         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
101782         simplify offsetof() macro construct to avoid compile failure with
101783         native HP-UX 11.0 ANSI C compiler.
101785 2005-01-17  Bruno Haible  <bruno@clisp.org>
101787         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
101788         redundant because stpncpy.m4 takes care of it.
101790 2005-01-17  Bruno Haible  <bruno@clisp.org>
101792         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
101794 2005-01-17  Bruno Haible  <bruno@clisp.org>
101796         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
101797         used.
101799 2005-01-17  Bruno Haible  <bruno@clisp.org>
101801         * lib/fwriteerror.h (fwriteerror): Change specification to include
101802         fclose.
101803         * lib/fwriteerror.c: Include <stdbool.h>.
101804         (fwriteerror): At the end, close the file stream. Record whether
101805         stdout was already closed.
101807 2005-01-17  Bruno Haible  <bruno@clisp.org>
101809         * lib/execute.c (environ): Declare if needed.
101810         * lib/pipe.c (environ): Likewise.
101811         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
101813 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101815         * modules/argp: Depend on vsnprintf
101817 2005-01-10  Jim Meyering  <jim@meyering.net>
101819         * modules/closeout (Depends-on): Add atexit.
101821 2005-01-06  Bruno Haible  <bruno@clisp.org>
101823         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
101825 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101827         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
101828         definitions to be after all include files, to avoid collisions.
101829         Problem reported by Bob Proulx.
101831 2005-01-04  Jim Meyering  <jim@meyering.net>
101833         Changes imported from coreutils.
101834         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
101835         as the mkstemp template, use a temporary directory and an
101836         8.3-friendly template to avoid trouble on systems like DJGPP.
101837         Reported by Juan M. Guerrero via Stepan Kasal.
101838         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
101839         close. Remove the temporary directory right away, rather than waiting
101840         for configure's at-exit trap code to do it.
101841         Suggestion from Stepan Kasal.
101843 2005-01-01  Simon Josefsson  <jas@extundo.com>
101845         * gnulib-tool: Print #include directives when --import'ing.
101847 2004-12-28  Simon Josefsson  <jas@extundo.com>
101849         * tests/test-base64.c: Include required header files.  Remove
101850         unused variables.
101852 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101854         * modules/error (Depends-on): Remove gettext.
101856 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101858         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
101859         not needed.  This removes a dependency on the gettext module.
101860         [defined _LIBC]: Do not include <libintl.h>; not needed.
101862 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101864         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
101865         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
101867 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101869         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
101870         HAVE_DECL_STRTOLD.
101872 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101874         * modules/getdate (Depends-on): Remove alloca-opt.
101876 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101878         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
101880 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101882         * lib/argp-parse.c: Include <stddef.h>.
101883         (alignof, alignto): New macros.
101884         (parser_init): Don't assume that void * is aligned sufficiently
101885         for struct option.
101887         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
101888         need to extend the stack.
101889         (YYINITDEPTH): New macro, so that the initial stack isn't overly
101890         large.
101892 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101894         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
101896 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101898         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
101899         (2004-10-24) change.  Apparently this was a false alarm.
101901         * modules/getdate: Depend on alloca-opt, not alloca.
101903 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101905         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
101906         Remove now-obsolete comment about AIX.
101907         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
101908         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
101909         (YYMAXDEPTH): New macro.
101911 2004-12-18  Simon Josefsson  <jas@extundo.com>
101913         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
101915 2004-12-18  Bruno Haible  <bruno@clisp.org>
101917         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
101919 2004-12-18  Bruno Haible  <bruno@clisp.org>
101921         * lib/fatal-signal.c (fatal_signals): Make non-const.
101922         (init_fatal_signals): New function.
101923         (uninstall_handlers, install_handlers): Ignore signals that were set to
101924         SIG_IGN.
101925         (at_fatal_signal): Call init_fatal_signals.
101926         (init_fatal_signal_set): Likewise. Ignore signals that were set to
101927         SIG_IGN.
101928         Reported by Paul Eggert.
101930 2004-12-18  Bruno Haible  <bruno@clisp.org>
101932         * doc/alloca.texi: New file.
101933         * doc/alloca-opt.texi: New file.
101935 2004-12-17  Jim Meyering  <jim@meyering.net>
101937         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
101938         Otherwise, install-sh could exit with improper exit status when
101939         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
101941 2004-12-16  Simon Josefsson  <jas@extundo.com>
101943         * tests/test-base64.c: Add license.
101945 2004-12-15  Stepan Kasal  <address@hidden>
101947         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
101949 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
101951         * modules/getcwd (Files): Add m4/d-ino.m4.
101952         Suggested by Mark D. Baushke.
101954 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101956         * lib/getdate.y (textint): New member "negative".
101957         (time_zone_hhmm): New function.
101958         Expect 14 shift-reduce conflicts, not 13.
101959         (o_colon_minutes): New rule.
101960         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
101961         (yylex): Set the "negative" member of signed numbers.
101963 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101965         * doc/getdate.texi (Time of day items, Time zone items):
101966         Describe new formats +00:00, UTC+00:00.
101968 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
101970         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
101971         spurious "-l"s.  Problem reported by Stepan Kasal.
101973 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
101975         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
101976         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
101978 2004-12-04  Simon Josefsson  <jas@extundo.com>
101980         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
101981         Vandoorselaere <yoann@prelude-ids.org>.
101983 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101985         Changes imported from coreutils.
101986         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
101987         exist.
101988         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
101990 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101992         Changes imported from coreutils.
101993         * lib/hard-locale.c: Assume <locale.h> exists.
101994         Include "strdup.h".
101995         (GLIBC_VERSION): New macro.
101996         (hard_locale): Assume setlocale exists.
101997         Rewrite to avoid #ifdef.
101998         Use strdup rather than malloc + strcpy.
101999         * lib/human.c: Assume <locale.h> exists.
102000         (human_readable): Assume localeconv exists.
102002 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
102004         * modules/hard-locale (Depends-on): Add strdup.
102006 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
102008         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
102009         convert T2, not T.  (Imported from libc.)
102011 2004-11-30  Simon Josefsson  <jas@extundo.com>
102013         * modules/restrict (License): Change to LGPL.
102015 2004-11-30  Simon Josefsson  <jas@extundo.com>
102017         * m4/restrict.m4: Add copyright and copying conditions.
102019 2004-11-30  Simon Josefsson  <jas@extundo.com>
102021         * m4/base64.m4: New file.
102023 2004-11-30  Simon Josefsson  <jas@extundo.com>
102025         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
102026         base64.
102028         * tests/test-base64.c: New file.
102030         * modules/base64: New file.
102032 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
102034         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
102035         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
102037         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
102039 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
102041         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
102042         (__getcwd.c): Don't restore errno; glibc doesn't.
102043         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
102044         first, falling back to our code only if its results look suspicious.
102045         Ensure that the resulting buffer is only as large as necessary.
102047         * lib/readutmp.c: Include readutmp.h first.
102048         Include <errno.h>, since readutmp.h no longer does that.
102049         * lib/readutmp.h: Don't include <errno.h>,
102050         <sys/param.h>, <time.h>; not needed to establish interface.
102051         (errno): Remove decl.
102052         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
102053         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
102054         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
102056 2004-11-28  Simon Josefsson  <jas@extundo.com>
102058         * lib/base64.h, base64.c: New file.
102060 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
102062         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
102064 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
102066         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
102067         (Depends-on): Remove pathmax, same.  Add mempcpy.
102068         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
102069         (Makefile.am): Append getcwd.h to lib_SOURCES.
102070         (Include): Add getcwd.h.
102071         (Maintainer): Change from Jim Meyering to "all, glibc",
102072         since getdate now uses intended-for-glibc code.
102073         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
102074         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
102076 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102078         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
102079         HP's ANSI C compiler.
102080         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
102081         Declaring int functions causes warnings on some modern systems and
102082         shouldn't be needed to compile on ancient ones.
102083         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
102084         defined.
102086         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
102087         with the following changes.
102088         (__set_errno): Parenthesize properly.
102089         Include <stdbool.h>.
102090         (MIN, MAX, MATCHING_INO): New macros.
102091         (__getcwd): Define with prototype, not K&R form.
102092         Use heuristics to allocate default buffer on stack if possible.
102093         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
102094         behavior, and to avoid the PATH_MAX limit when computing
102095         ../../../../...
102096         Use MATCHING_INO to compare inode number to file.
102097         Check for arithmetic overflow in size calculations.
102098         Fix bug in reallocation of dot array that caused getcwd to fail
102099         on directories nested deeper than 75.
102100         Be more careful about saving errno on error.
102101         Do not use realloc; use only free+malloc, as this is a bit
102102         more flexible and avoids a needless copy operation.
102103         Do not inspect st_dev and st_ino for symbolic links; POSIX
102104         doesn't specify the latter.
102105         Check for closedir errors.
102106         Avoid needless casts.
102107         Use "#ifdef weak_alias" around weak_alias, to be like other
102108         glibc code.
102109         The following changes to getcwd.c have effect only when used in
102110         gnulib; they have no effect inside glibc proper.
102111         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
102112         as alloca isn't used.
102113         (alloca, __alloca): Likewise.
102114         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
102115         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
102116         unconditionally, as gnulib assumes C89 or better.
102117         Do not include <sys/param.h>.
102118         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
102119         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
102120         better.
102121         (NULL) [!defined NULL]: Remove; we assume C89 or better.
102122         Include <dirent.h> in a way that is compatible with modern Autoconf.
102123         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
102124         New macros, if not already defined.
102125         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
102126         Use "_LIBC", not "defined _LIBC", for consistency.
102127         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
102128         a mempcpy module.
102129         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
102130         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
102131         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
102132         credit only to Jim Meyering and adjust the copyright dates.
102133         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
102134         <stdlib.h>, <unistd.h>, "pathmax.h".
102135         Instead, include "xgetcwd.h" (first) and "getcwd.h".
102136         (INITIAL_BUFFER_SIZE): Remove.
102137         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
102139 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
102142         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
102143         Use the _ONCE methods, for efficiency.
102144         Check for fcntl.h.  In test program, include <errno.h>
102145         and <fcntl.h> if available.  Remove old K&R cruft from
102146         test program.  Check for common errors in GNU/Linux,
102147         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
102148         don't do AC_LIBOBJ, as that's getcwd.m4's job.
102149         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
102150         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
102151         name accordingly.
102152         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
102153         accommodate new getcwd.c.
102154         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
102155         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
102156         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
102157         that's all we need now.
102159 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102161         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
102162         argp-parse.c depends on getopt internals, that means we should
102163         always use our getopt, to be on the safe side.
102164         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
102165         order not to spoil the result of an eventual previous invocation
102166         of gl_GETOPT_SUBSTITUTE.
102168 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102170         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
102171         redefinition warnings. To avoid them, include the defines
102172         in `#if !defined __need_getopt ... #endif'. The only place
102173         where __getopt_argv_const is used is in definitions
102174         of getopt_long and getopt_long_only below, which are as well
102175         protected by `#ifndef __need_getopt'.
102176         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
102177         __need_getopt after including <stdio.h> and <unistd.h> These
102178         headers might have defined it.
102180 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
102182         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
102184 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
102186         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
102187         (futimens): New function, which uses futimes if available.
102188         (futimens, utimens): Support timespec==NULL, with same semantics
102189         as utime and utimens.
102190         * lib/utimens.h (futimens): New decl.
102192 2004-11-23  Jim Meyering  <jim@meyering.net>
102194         * lib/getopt_.h: Remove trailing blanks.
102196 2004-11-23  Jim Meyering  <jim@meyering.net>
102198         * lib/__fpending.c: Add comment.
102200 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
102202         * modules/canonicalize (Depends-on): Add xreadlink.
102203         Problem reported by James Youngman.
102205 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102207         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
102208         New macros.
102209         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
102210         optopt): Use them instead of invoking ## directly; otherwise, the
102211         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
102213 2004-11-19  Bruno Haible  <bruno@clisp.org>
102215         * lib/strtok_r.c: Move comments from here...
102216         * lib/strtok_r.h: ... to here.
102218 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102220         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
102221         implementations that mishandle size_t overflow.
102223 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102225         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
102226         might fail.  Problem reported by Yoann Vandoorselaere.
102227         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
102228         implementations that mishandle size_t overflow.
102230 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102232         * modules/canon-host (Depends-on): Add strdup.
102234 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102236         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
102238 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102240         * lib/canon-host.c: Include "strdup.h".
102241         (canon_host): Use getaddrinfo if available, so that IPv6 works.
102242         Use strdup instead of malloc/strcpy to duplicate strings.
102244         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
102245         (human_space_before_unit): New constant.
102246         * lib/human.c (human_readable): Support it.
102248         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
102249         (xgetcwd): Set errno correctly when failing.
102250         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
102251         the failure is actually due to a PATH_MAX problem.
102253         Further getopt changes to make it more likely that glibc will
102254         buy the changes back.
102255         * lib/getopt.c (POSIXLY_CORRECT): New constant.
102256         (getopt): Use it, so to preserve glibc semantic
102257         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
102258         when compiling for libc.
102259         * lib/getopt_.h (__getopt_argv_const): Bring it back.
102260         (getopt_long, getopt_long_only): Use it.
102262         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
102263         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
102264         (getopt): Argv is now char * const *, as per standard.
102265         (_getopt_internal_r, _getopt_internal): Argv is now char **,
102266         not char *__getopt_argv_const *.
102267         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
102268         _getopt_long_only_r): Likewise.
102269         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
102270         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
102271         _getopt_long_r, _getopt_long_only_r): Likewise.
102272         * lib/getopt_.h (__getopt_argv_const): Remove.
102273         (getopt): Argv is now char * const *, as per standard.
102275         * lib/getdate.y (tORDINAL): New token.
102276         (day, relunit): Allow it for relative times.
102277         (relative_time_table): Use tORDINAL for ordinals.
102279 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102281         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
102282         Document that "second" isn't allowed as an ordinal number.
102284 2004-11-16  Jim Meyering  <jim@meyering.net>
102286         * modules/closeout (Depends-on): Add fpending.
102288 2004-11-15  Jim Meyering  <jim@meyering.net>
102290         * lib/closeout.c: Include "__fpending.h" once again.
102291         Include <stdbool.h>.
102292         (close_stdout): Don't fail just because stdout was closed initially,
102293         since some programs don't write to stdout in the normal course of
102294         operation (other than --version and --help), and we don't want this
102295         function to make e.g. `touch file >&-' fail.
102296         But do fail if it was closed and someone has tried to write to it.
102297         E.g., `printf foo >&-' must fail.
102299 2004-11-13  Jim Meyering  <jim@meyering.net>
102301         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
102303 2004-11-12  Simon Josefsson  <jas@extundo.com>
102305         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
102306         small doc fix is still pending.
102308 2004-11-11  Simon Josefsson  <jas@extundo.com>
102310         * modules/strtok_r: New file.
102312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102313         strtok_r.
102315 2004-11-11  Simon Josefsson  <jas@extundo.com>
102317         * m4/strtok_r.m4: New file.
102319         * m4/getopt.m4: Replace opterr.
102321 2004-11-11  Simon Josefsson  <jas@extundo.com>
102323         * lib/strtok_r.h, strtok_r.c: New file.
102325 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
102327         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
102328         of replacing opterr, getopt, etc.  This should handle the
102329         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
102331 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
102333         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
102334         we can stop lying to compilers about the constness of argv when we
102335         are compiled outside glibc.
102336         (getopt, getopt_long, getopt_long_only): Use it.
102337         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
102338         _getopt_internal, getopt): Likewise.
102339         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
102340         _getopt_long_only_r): Likewise.
102341         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
102342         _getopt_long_r, _getopt_long_only_r): Likewise.
102344         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
102345         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
102346         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
102347         the other external symbols.
102348         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
102349         declaration, since the above renaming now works around collisions.
102351 2004-11-11  Jim Meyering  <jim@meyering.net>
102353         * lib/linebreak.c: Remove trailing blanks.
102354         * lib/alloca_.h: Likewise.
102355         * lib/acosl.c: Likewise.
102356         * lib/euidaccess.c: Likewise.
102357         * lib/allocsa.h: Likewise.
102359 2004-11-10  Simon Josefsson  <jas@extundo.com>
102361         * m4/getaddrinfo.m4: New file.
102363 2004-11-10  Simon Josefsson  <jas@extundo.com>
102365         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
102367 2004-11-10  Simon Josefsson  <jas@extundo.com>
102369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102370         getaddrinfo.
102372         * modules/getaddrinfo: New file.
102374 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102376         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
102378 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102380         * lib/mktime.c (SHR): New macro, which is a portable
102381         substitute for >> that should work even on Crays.
102382         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
102383         Problem reported by Mark D. Baushke in
102384         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
102385         * lib/getdate.y (SHR): Likewise.
102386         (tm_diff): Use it.
102387         * lib/strftime.c (SHR): Likewise.
102388         (tm_diff): Use it.
102389         * lib/quotearg.c (struct quoting_options): Use unsigned int for
102390         quote_these_too, so that right shifts are well defined.  All uses
102391         changed.
102393 2004-11-10  Jim Meyering  <jim@meyering.net>
102395         Ensure that no close failure goes unreported.
102396         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
102397         return early when it seems there's nothing to flush.
102398         Don't include __fpending.h.
102400 2004-11-10  Jim Meyering  <jim@meyering.net>
102402         * modules/closeout (Depends-on): Remove fpending.
102404 2004-11-10  Jim Meyering  <jim@meyering.net>
102406         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
102408 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102410         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
102411         gl_FUNC_STRFTIME.
102412         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
102413         and AC_REQUIRE when possible, to avoid duplicate checks.
102414         Check for <wchar.h>.
102416 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102418         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
102420 2004-11-09  Bruno Haible  <bruno@clisp.org>
102422         * m4/sockpfaf.m4: New file.
102424 2004-11-05  Bruno Haible  <bruno@clisp.org>
102426         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
102427         Reported by Mark D. Baushke <mdb@cvshome.org>.
102429 2004-11-04  Bruno Haible  <bruno@clisp.org>
102431         2004-09-11  Bruno Haible  <bruno@clisp.org>
102432                 * allocsa.valgrind: New file.
102433         2004-02-06  Bruno Haible  <bruno@clisp.org>
102434                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
102435                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
102436                 Reported by Christopher Seip <chris.seip@hp.com>.
102438 2004-11-04  Bruno Haible  <bruno@clisp.org>
102440         * modules/allocsa (Files): Add lib/allocsa.valgrind.
102441         (Makefile.am): Distribute it.
102443 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
102445         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
102446         with errno == ERANGE if the buffer is too small.
102447         Problem reported by Mark D. Baushke.
102449 2004-11-03  Albert Chin  <china@thewrittenword.com>
102450             Paul Eggert  <eggert@cs.ucla.edu>
102452         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
102453         equivalent, substitute $ac_type for equivalent type rather than
102454         blindly using uint32_t *always* which won't work if uint32_t is not
102455         available.  Define _UINT32_T to work around typedef of uint32_t if
102456         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
102457         2.5.1.
102459 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102461         * m4/jm-macros.m4: Sync from coreutils.
102462         (gl_MACROS): Check for mbrlen, for pathchk.
102463         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
102465 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102467         * lib/xreadlink.c (MAXSIZE): New macro.
102468         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
102469         size does not exceed MAXSIZE.  Avoid cast.
102470         As suggested by Mark D. Baushke in
102471         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
102472         if readlink fails with buffer size just under MAXSIZE, try again
102473         with MAXSIZE.
102475 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102477         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
102479 2004-11-02  Derek R. Price  <derek@ximbiot.com>
102480         and  Paul Eggert  <eggert@cs.ucla.edu>
102482         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
102483         (get_date): Overparenthesize to avoid GCC warning.
102485 2004-11-02  Bruno Haible  <bruno@clisp.org>
102487         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
102488         returns void.
102490 2004-11-02  Bruno Haible  <bruno@clisp.org>
102492         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
102493         function returns void.
102495 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
102497         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
102498         fflush_unlocked, flockfile, funlockfile, funlockfile,
102499         fputs_unlocked, putc_unlocked.
102501 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
102503         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
102504         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
102505         already declared.
102507 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102509         * modules/getdate (Files): Add doc/getdate.texi.
102510         (Depends-on): Add setenv, xalloc.
102512 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102514         * lib/getdate.y: Add support for TZ="foo" within a date string.
102515         Fix some bugs near time_t boundaries.  Reject dates with
102516         out-of-range components, e.g., "Sept 31".
102517         Include <stdlib.h>, "setenv.h", "xalloc.h".
102518         (ISDIGIT_LOCALE): Remove; unused.
102519         Note that the TZ and time functions used here are not reentrant.
102520         (mktime_ok, get_tz): New functions.
102521         (TZBUFSIZE): New constant.
102522         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
102523         This requires that we sometimes generate our own TZ="XXX..." setting.
102525 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102527         * doc/getdate.texi: New file, from coreutils with modifications for
102528         the new TZ parsing.
102530 2004-10-27  Derek R. Price  <derek@ximbiot.com>
102532         * lib/mktime.c (not_equal_tm): Remove redundant check.
102534 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102536         * modules/regex (lib_SOURCES): Add regex.c.
102537         Reported by James Youngman in
102538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
102540 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102542         * lib/getdate.y: Use Bison 1.875 features, and some minor
102543         code cleanups.  This change does not affect semantics.
102544         Don't include <stdlib.h>; no longer needed.
102545         Don't include unlocked-io.h; only the "#if TEST" code uses
102546         stdio, and performance isn't crucial there.
102547         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
102548         Bison 1.875 features as described below.
102549         All uses of "PC." replaced by "pc->".
102550         (YYSTYPE): Add a forward declaration.
102551         (yylex, yyerror): Use full prototypes in forward decls.
102552         Use "%pure-parser" rather than obsolescent "%pure_parser".
102553         Use %parse-param and %lex-param instead of obsolescent
102554         YYPARSE_PARAM and YYLEX_PARAM.
102555         (meridian_table, month_and_day_table, time_units_table,
102556         relative_time_table, time_zone_table, military_table,
102557         lookup_zone, lookup_word, get_date):
102558         Use NULL instead of 0 where appropriate.
102559         (to_hour): Avoid abort (), to avoid a dependency on
102560         stdlib.h.
102561         (yyerror, yylex): Now accepts parser_control * arg.
102562         (main) [TEST]: Use '\0' rather than 0 for char.
102564 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
102566         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
102568 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
102570         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
102571         It's now the caller's responsibility to handle the case where
102572         !HAVE_GETPAGESIZE && !defined getpagesize.
102574         * lib/mktime.c (leapyear): Arg is long int, not int.
102576 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
102578         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
102580 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
102582         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
102583         missing.  Problem reported by James Youngman.
102585 2004-10-16  Simon Josefsson  <jas@extundo.com>
102587         * gnulib-tool: Fix comments.  Fix parse problem.
102588         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
102590 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
102592         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
102593         implementation of getopt_long.  Problem reported by Alexander Taler in:
102594         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
102596 2004-10-15  Bruno Haible  <bruno@clisp.org>
102598         * gnulib-tool: Untabify. Initialize supplied_libname.
102599         (func_usage): More homogenous output.
102600         (func_modules_transitive_closure, func_modules_to_filelist,
102601         func_emit_lib_Makefile_am): New functions.
102602         (func_import): New function, extracted from big case statement. Use
102603         func_get_license, func_modules_transitive_closure,
102604         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
102605         opt_lgpl. Don't use test -a, as it's not portable.
102606         (func_create_testdir): Use func_modules_transitive_closure,
102607         func_modules_to_filelist, func_emit_lib_Makefile_am.
102609 2004-10-15  Bruno Haible  <bruno@clisp.org>
102611         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
102613 2004-10-15  Bruno Haible  <bruno@clisp.org>
102615         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
102616         the portions belonging to each module.
102617         Suggested by Derek Robert Price <derek@ximbiot.com>.
102619 2004-10-12  Simon Josefsson  <jas@extundo.com>
102621         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
102622         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
102623         to real functions.
102625 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102627         * modules/vsnprintf: New file.
102629 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102631         * m4/vsnprintf.m4: New file.
102633 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102635         * lib/vsnprintf.h: New file.
102636         * lib/vsnprintf.c: New file.
102638 2004-10-11  Bruno Haible  <bruno@clisp.org>
102640         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
102641         vsnprintf.
102643 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102645         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
102647 2004-10-07  Bruno Haible  <bruno@clisp.org>
102649         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
102650         fits into the provided buffer.
102652 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102654         * lib/diacrit.c, diacrit.h: Add GPL notice.
102656         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
102657         notice.
102658         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
102659         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
102660         This avoids a potential constant-folding bug.
102662 2004-10-05  Bruno Haible  <bruno@clisp.org>
102664         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
102665         for the declaration of strsep.
102667 2004-10-05  Bruno Haible  <bruno@clisp.org>
102669         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
102671 2004-10-04  Simon Josefsson  <jas@extundo.com>
102673         * modules/memmem: New file.
102674         * tests/test-memmem.c: New file.
102675         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
102677 2004-10-04  Simon Josefsson  <jas@extundo.com>
102679         * m4/memmem.m4: New file.
102681 2004-10-04  Simon Josefsson  <jas@extundo.com>
102683         * lib/memmem.h: New file.
102684         * lib/memmem.c: New file, taken from glibc.
102686 2004-10-04  Simon Josefsson  <jas@extundo.com>
102688         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
102689         '#ifdef USE_UNLOCKED_IO'.
102691 2004-10-04  Simon Josefsson  <jas@extundo.com>
102693         * config/srclist.txt: Add memmem from glibc.
102695 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102697         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
102699         * modules/argmatch, modules/argp, modules/closeout, modules/error,
102700         modules/exclude, modules/getdate, modules/getline,
102701         modules/getndelim2, modules/getpass, modules/getpass-gnu,
102702         modules/getusershell, modules/linebuffer, modules/md5,
102703         modules/mountlist, modules/posixtm, modules/readtokens,
102704         modules/readutmp, modules/regex, modules/sha1,
102705         modules/version-etc, modules/yesno:
102706         Remove dependency on unlocked-io.
102708 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102710         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
102712         * m4/unlocked-io.m4: Add copyright notice.
102713         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
102715 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102717         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
102718         * lib/xmalloc.c (xmemdup): Likewise.
102719         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
102720         XFREE): Remove these long-obsolescent macros.
102721         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
102722         * lib/xstrdup.c: Remove.
102724         * lib/regex.c (re_comp): Cast gettext return value to char *,
102725         Problem reported by Martin Neitzel via Mark D. Baushke.
102727 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102729         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
102730         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
102731         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
102732         regex.c, sha1.c, version-etc.c, yesno.c:
102733         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
102734         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
102735         the includer's responsibility.
102737         Sync from coreutils.
102739         * lib/modechange.c (mode_compile): Don't decrement a pointer that
102740         points to the start of a string, as the C Standard says the
102741         resulting behavior is undefined.
102743         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
102744         simple -> simple_backups, numbered_existing ->
102745         numbered_existing_backups, numbered -> numbered_backups
102746         to avoid shadowing problems.  All uses changed.
102747         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
102748         * lib/backupfile.c (check_extension, numbered_backup):
102749         Rename locals to avoid shadowing 'basename'.
102750         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
102751         once.
102753         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
102754         * lib/.cvsignore: Add getopt.h.
102756 2004-10-04  Bruno Haible  <bruno@clisp.org>
102758         * modules/README: New file.
102759         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
102760         not a module.
102762 2004-10-02  Jim Meyering  <jim@meyering.net>
102764         * lib/dirfd.h, getpagesize.h: Add copyright notice.
102766 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102768         * modules/strsep: New file.
102770 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102772         * m4/strsep.m4: New file.
102774 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102776         * lib/strsep.h: New file.
102777         * lib/strsep.c: New file.
102779 2004-10-01  Simon Josefsson  <jas@extundo.com>
102781         * lib/snprintf.c (snprintf): Handle size==0.
102783 2004-10-01  Simon Josefsson  <jas@extundo.com>
102784             Bruno Haible  <bruno@clisp.org>
102786         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
102787         (snprintf): Declare 'args'.
102789 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
102791         * lib/snprintf.c: Remove comments as to why each header is needed.
102793 2004-10-01  Bruno Haible  <bruno@clisp.org>
102795         * MODULES.html.sh: Add strsep.
102797 2004-09-30  Simon Josefsson  <jas@extundo.com>
102799         * modules/snprintf: New file.
102801 2004-09-30  Simon Josefsson  <jas@extundo.com>
102803         * m4/snprintf.m4: New file.
102805 2004-09-30  Simon Josefsson  <jas@extundo.com>
102807         * lib/snprintf.h, lib/snprintf.c: New files.
102809 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102811         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
102812         (hol_entry_help): Never translate an empty string.
102813         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
102814         * lib/argp.h (OPTION_NO_TRANS): New option.
102816 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102818         * modules/argp (Maintainer): Replace Simon Josefsson
102819         by Sergey Poznyakoff.
102821 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102823         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
102824         changes merged back into glibc.
102826 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102828         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
102830 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102832         * lib/xvasprintf.c: Include xalloc.h.
102833         (xvasprintf): Use xalloc_die, not xmalloc_die.
102835 2004-09-29  Bruno Haible  <bruno@clisp.org>
102837         * modules/alloca-opt: New file, derived from modules/alloca.
102838         * modules/allocsa: Depend on alloca-opt instead of alloca.
102839         * modules/setenv: Likewise.
102840         * modules/vasnprintf: Likewise.
102841         * MODULES.html.sh: Add alloca-opt.
102843 2004-09-28  Simon Josefsson  <jas@extundo.com>
102845         * gnulib-tool: New parameter --lgpl, to asseert that modules are
102846         LGPL, and to replace license template from GPL to LGPL.
102848 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102850         * modules/dummy: Change license to LGPL.
102852 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102854         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
102856 2004-09-24  Simon Josefsson  <jas@extundo.com>
102858         * modules/minmax (License): Change from GPL to LGPL.
102860 2004-09-23  Simon Josefsson  <jas@extundo.com>
102862         * gnulib-tool (--import): Typo.
102864 2004-09-23  Simon Josefsson  <jas@extundo.com>
102866         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
102868 2004-09-22  Bruno Haible  <bruno@clisp.org>
102870         * modules/*: Add 'License' field.
102871         * gnulib-tool: Accept --extract-license option.
102872         (func_get_license): New function.
102874 2004-09-21  Bruno Haible  <bruno@clisp.org>
102876         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
102877         Reported by Simon Josefsson.
102879 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102881         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
102882         gl_AC_TYPE_LONG_LONG.
102884 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102886         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
102888 2004-09-18  Simon Josefsson  <jas@extundo.com>
102889         and  Paul Eggert  <eggert@cs.ucla.edu>
102891         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
102892         calls with autoreconf.  Define GL_LIB.
102894 2004-09-14  Karl Berry  <karl@gnu.org>
102896         * config/srclist.txt: unsync setenv.c, sigh.
102898 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102900         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
102901         Problem reported by Bruno Haible in:
102902         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
102904 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102906         * config/srclist.txt: Comment out argp-pvh.c.
102908 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
102910         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
102911         in case some system header has #define'd it.  Problem reported by
102912         Soeren D. Schulze in
102913         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
102915 2004-09-09  Karl Berry  <karl@gnu.org>
102917         * regex.[ch]: delete from the root.  These were supposed to be
102918                 synced with emacs cvs, but this has not happened for about
102919                 a year, and anyway nothing else uses emacs regex.[ch].
102920                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
102921                 lib/regex[.ch] is untouched.
102923 2004-09-09  Bruno Haible  <bruno@clisp.org>
102925         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
102927 2004-09-09  Bruno Haible  <bruno@clisp.org>
102929         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
102930         modifications.
102931         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
102933 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102935         * modules/xvasprintf: New file.
102936         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
102938 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102940         * lib/xvasprintf.h: New file.
102941         * lib/xvasprintf.c: New file.
102942         * lib/xasprintf.c: New file.
102944 2004-09-08  Bruno Haible  <bruno@clisp.org>
102946         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
102948 2004-09-08  Bruno Haible  <bruno@clisp.org>
102950         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
102951         length is > INT_MAX.
102952         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
102953         more.
102955 2004-09-08  Bruno Haible  <bruno@clisp.org>
102957         * lib/stdint_.h: New file, taken from GNU clisp.
102959 2004-09-08  Bruno Haible  <bruno@clisp.org>
102960             Oskar Liljeblad  <oskar@osk.mine.nu>
102962         * modules/stdint: New file.
102963         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
102965 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102967         Import from coreutils.
102968         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
102969         strings on unbounded length.  alloca's performance benefits aren't
102970         that important here.
102971         (V_STRDUP): Remove.
102972         (parse_with_separator): New function, with most of the internals
102973         of the old parse_user_spec.  Allow user to omit both user and group,
102974         for compatibility with FreeBSD.
102975         Clone only the user name, not the entire spec.
102976         Do not set *uid, *gid unless entirely successful.
102977         Avoid memory leak in some failing cases.
102978         Fix regression for USER.GROUP reported by Dmitry V. Levin in
102979         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
102980         (parse_user_spec): Rewrite to use parse_with_separator.
102982 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102984         * modules/userspec: Don't depend on alloca.
102986 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102988         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
102990 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102992         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
102993         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
102994         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
102996 2004-08-16  Simon Josefsson  <jas@extundo.com>
102998         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
102999         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
103000         Add --dry-run for --import.
103001         Let user provided command line parameters override configure.ac
103002         settings.
103004 2004-08-12  Simon Josefsson  <jas@extundo.com>
103006         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
103007         as discussed with Paul Eggert in threads rooted at
103008         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
103009         and
103010         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
103011         Before, the test was empty, and relied on ELIDE_CODE in source
103012         code.)
103013         (gl_PREREQ_GETOPT): New macro.
103014         (gl_GETOPT): Use them.
103016 2004-08-12  Simon Josefsson  <jas@extundo.com>
103018         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
103019         * lib/getopt_.h: Renamed from getopt.h.
103021 2004-08-12  Simon Josefsson  <jas@extundo.com>
103023         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
103024         Change default library name from libfoo to libgnu.
103025         Now, if you have a configure.ac that says:
103026                 gl_SOURCE_BASE(gl)
103027                 gl_M4_BASE(gl/m4)
103028                 gl_MODULES(error getopt etcetera)
103029                 gl_INIT
103030         you can import all you need by running:
103031                 ../gnulib/gnulib-tool --import
103033         * modules/getopt (Files): Rename getopt.h to getopt_.h.
103034         (Makefile.am): Rewrite, use logic from argz.
103035         (Include): Use <getopt.h> instead of "getopt.h".
103037 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103039         * modules/argp (Files): Add m4/unlocked-io.m4.
103040         (Depends-on): Add extensions.
103042 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103044         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
103045         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
103046         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
103047         Check for program_invocation_name, program_invocation_short_name,
103048         flockfile, funlockfile, features.h, _getopt_long_only_r.
103050 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103052         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
103053         its complicated substitute.
103054         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
103055         and program_invocation_name.
103056         (__argp_basename) [!_LIBC]: Remove; the only use was
103057         replaced by its body.
103058         (__argp_short_program_name): Change condition from
103059         !defined __argp_short_program_name to
103060         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
103061         to match argp-namefrob.h.
103062         (__argp_failure): Don't assume strerror_r returns char *.
103063         * lib/argp-parse.c (N_): Define unconditionally.
103064         (argp_default_options): Fill out initializers with 0 to avoid
103065         gcc warnings.
103067 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103069         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
103070         getopt1.c.
103072 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
103074         Merge from coreutils.
103076         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
103078         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
103079         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
103081 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
103083         Merge from coreutils.
103085         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
103086         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
103087         for Reliant Unix 5.43.
103089         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
103090         (union fooround): Use uintmax_t, not long int.
103091         The rest is a merge from libc:
103092         [defined _LIBC]: Include <shlib-compat.h>.
103093         (_obstack) [defined _LIBC]: Remove after 2.3.4.
103095         * lib/settime.c (settime): Recode to avoid warning with
103096         Sun Forte C 6U2.
103098         * lib/strverscmp.c: Convert to UTF-8.
103100 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
103102         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
103103         m4/uintmax_t.m4.
103105 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103107         * modules/xalloc-die: New file.
103108         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
103110         * modules/md5 (Files): Add m4/uint32_t.m4.
103111         * modules/sha1: Renamed from modules/sha.
103112         (Files):
103113         Rename lib/sha.h to lib/sha1.h.
103114         Rename lib/sha.c to lib/sha1.c.
103115         Rename m4/sha.m4 to m4/sha1.m4.
103116         (lib_SOURCES): Likewise.
103117         (configure.ac): Rename gl_SHA to gl_SHA1.
103118         (Include): sha.h -> sha1.h.
103120 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103122         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
103123         * m4/sha1.m4: Renamed from sha.m4.
103124         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
103126 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103128         * lib/obstack.h (obstack_empty_p):
103129         Don't assume that chunk->contents is suitably aligned.
103130         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
103131         Likewise. Problem reported by Benno in
103132         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
103134         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
103135         readable.  This could be improved further but it'd take some work.
103137 2004-08-08  Simon Josefsson  <jas@extundo.com>
103139         * modules/xgethostname (Depends-on): Remove exit and error (not
103140         used).
103142         * modules/getpass-gnu: Add getpass.h.
103143         (Depends-on): Add stdbool.
103144         * modules/getpass: Add getpass.h.
103146 2004-08-08  Simon Josefsson  <jas@extundo.com>
103148         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
103149         Check getpass declaration.
103151 2004-08-08  Simon Josefsson  <jas@extundo.com>
103153         * lib/xgethostname.c: Don't include error.h (not used).
103155         * lib/getpass.h: Add.
103156         * lib/getpass.c: Include getpass.h first.
103158 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
103160         * lib/xalloc-die.c: New file.
103161         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
103162         All uses removed.
103163         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
103164         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
103165         xalloc-die.c.
103166         (_, N_, xalloc_die): Move to xalloc-die.c.
103167         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
103168         so that we needn't mess with xalloc_msg_memory_exhausted.
103170         * lib/sha1.h: Renamed from sha.h.
103171         (SHA1_H): Renamed from _SHA_H.
103172         (sha1_ctx): Renamed from sha_ctx.
103173         (sha1_init_ctx): Renamed from sha_init_ctx.
103174         (sha1_process_block): Renamed from sha_process_block.
103175         (sha1_process_bytes): Renamed from sha_process_bytes.
103176         (sha1_finish_ctx): Renamed from sha_finish_ctx.
103177         (sha1_read_ctx): Renamed from sha_read_ctx.
103178         (sha1_stream): Renamed from sha_stream.
103179         (sha1_buffer): Renamed from sha_buffer.
103180         * lib/sha1.c: Likewise; renamed from sha.c.
103181         Do not include <sys/types.h>.
103182         Include <stddef.h> rather than <stdlib.h>.
103184 2004-08-08  Bruno Haible  <bruno@clisp.org>
103186         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
103187         FILESYSTEM_PREFIX_LEN.
103188         * lib/progreloc.c: Likewise.
103189         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
103191 2004-08-06  Simon Josefsson  <jas@extundo.com>
103193         * modules/progname (Depends-on): Don't depend on stdbool.
103195 2004-08-06  Simon Josefsson  <jas@extundo.com>
103197         * modules/getsubopt: New file.
103198         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103199         getsubopt.
103201 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103203         More merge from coreutils.
103205         * m4/utimens.m4, m4/utimecmp.m4: New files.
103206         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
103207         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
103208         prereq.m4, sha.m4: Import changes from coreutils.
103210 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103212         More merge from coreutils.
103213         * modules/raise, modules/readtokens0, modules/utimens:
103214         * modules/utimecmp, module/xnanosleep: New files.
103215         * modules/strftime: Add lib/strftime.h.
103216         Change include from <time.h> to "strftime.h".
103217         * modules/yesno: Add lib/yesno.h.
103218         * modules/backupfile: Remove lib/addext.c.
103219         * modules/euidaccess: Add stat-macros.h.
103220         * modules/canonicalize, modules/euidaccess,
103221         modules/filemode, modules/lchown, modules/makepath,
103222         modules/rmdir, modules/stat: Likewise.
103224 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103226         Merge from tar.
103227         * lib/argp-help.c (make_hol, hol_append): Don't assume that
103228         SIZE_MAX is a valid preprocessor constant.
103229         (__argp_basename): Change from "#ifndef _LIBC"
103230         to "#ifndef __argp_short_program_name", so that
103231         we don't compile these functions for tar.
103233         More merges from coreutils.
103234         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
103235         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
103236         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
103237         * lib/addext.c: Remove; no longer needed.
103238         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
103239         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
103240         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
103241         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
103242         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
103243         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
103244         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
103245         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
103246         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
103247         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103248         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
103249         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
103250         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
103251         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
103252         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
103253         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
103254         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
103255         Import changes from coreutils.
103257 2004-08-05  Simon Josefsson  <jas@extundo.com>
103259         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
103261 2004-08-05  Simon Josefsson  <jas@extundo.com>
103263         * m4/getsubopt.m4: New file.
103265 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103267         Merge from coreutils.
103269         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
103270         * m4/getcwd-path-max.m4: New files.
103272         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
103273         FILESYSTEM_PREFIX_LEN ->
103274         FILE_SYSTEM_PREFIX_LEN.
103275         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
103276         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
103277         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
103278         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
103280         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
103281         prerequisite modules now handle the DOS stuff.
103282         Don't check for unistd.h.
103284 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103286         Merge from coreutils.
103288         * lib/.gdb-history: Remove; this doesn't belong here.
103290         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
103291         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
103292         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
103293         * lib/getcwd.c: New files.
103295         * lib/dirname.h: Include <stdbool.h>.
103296         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
103297         for consistency with POSIX terminology.  All uses changed.
103298         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
103299         (strip_trailing_slashes): Use bool for booleans.
103300         * lib/stripslash.c (strip_trailing_slashes): Likewise.
103302         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
103303         sometimes returns a positive errno value even when it succeeds.
103304         (print_errno_message) [!LIBC]: Fall back on strerror if
103305         __strerror_r fails.
103307         * lib/path-concat.c (mempcpy): Don't define if a system header defines
103308         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
103309         (longest_relative_suffix): New function.
103310         (path_concat): Use it.  Assume first argument is not NULL.
103311         Port to DOS.  Omit redundant separators.
103312         Report an error instead of returning NULL.
103313         Use mempcpy instead of memcpy.
103314         (xpath_concat): Remove: not declared or used.
103316         * lib/same.h: Include <stdbool.h>
103317         (same_name): Return bool, not int.
103318         * lib/same.c (same_name): Likewise.
103319         (errno): Don't declare; we assume C89 or better now.
103321         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
103322         if not already defined.
103324         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
103325         * lib/dup-safer.c (errno): Likewise.
103327 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103329         Merge from coreutils.
103330         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
103331         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
103332         * modules/path-concat: Don't depend on strdup.
103334 2004-08-03  Simon Josefsson  <jas@extundo.com>
103336         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
103337         * lib/progname.h: Don't include stdbool.h.
103339 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103341         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
103342         * MODULES.html.sh (func_all_modules): Remove fatal.
103344 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103346         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
103348 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103350         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
103351         working.
103353 2004-08-02  Simon Josefsson  <jas@extundo.com>
103355         * lib/getsubopt.h: New file, with comments from Bruno Haible.
103356         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
103357         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
103359 2004-08-01  Simon Josefsson  <jas@extundo.com>
103361         * lib/xgetdomainname.c: Include stdlib.h, for free().
103363 2004-07-19  Bruno Haible  <bruno@clisp.org>
103365         * MODULES.html.sh (func_all_modules): Add dummy.
103367 2004-07-16  Simon Josefsson  <jas@extundo.com>
103369         * modules/dummy: New file.
103371 2004-07-16  Simon Josefsson  <jas@extundo.com>
103373         * lib/dummy.c: New file.
103375 2004-07-16  Bruno Haible  <bruno@clisp.org>
103377         * lib/backupfile.h: Add extern "C" for C++.
103378         * lib/closeout.h: Likewise.
103379         * lib/copy-file.h: Likewise.
103380         * lib/findprog.h: Likewise.
103381         * lib/full-write.h: Likewise.
103382         * lib/pathname.h: Likewise.
103383         * lib/progname.h: Likewise.
103384         * lib/stpcpy.h: Likewise.
103385         * lib/stpncpy.h: Likewise.
103386         * lib/strcase.h: Likewise.
103387         * lib/strstr.h: Likewise.
103388         * lib/xalloc.h: Likewise.
103390         * lib/mbswidth.h: Add extern "C" for C++.
103391         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
103393 2004-07-13  Robert Millan  <robertmh@gnu.org>
103395         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
103397 2004-07-09  Simon Josefsson  <jas@extundo.com>
103399         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
103400         failed without this.)
103402 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
103404         * modules/chown (Files): Add lib/fchown-stub.c, since
103405         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
103407 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
103409         * lib/fchown-stub.c: New file.
103411 2004-06-24  Jim Meyering  <jim@meyering.net>
103413         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
103415 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103417         * modules/argz: Omit "#include".
103419         * MODULES.html.sh (func_all_modules): Add calloc, to match
103420         2004-06-01 addition of calloc module.
103422 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103424         * m4/argz.m4: New file, which is autoupdated from libtool.
103426 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103428         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
103429         libtool.
103431 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103433         * config/srclist-update: Don't insist on "USA." before the
103434         close-comment, as libtool omits the period and puts the */ on a
103435         separate line.
103436         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
103437         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
103439 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
103441         * modules/argz: New file.
103442         * MODULES.html.sh (func_all_modules): Add argz.
103444 2004-06-12  Jim Meyering  <jim@meyering.net>
103445         and  Paul Eggert  <eggert@cs.ucla.edu>
103447         * modules/hash (Files): Add lib/xalloc.h.
103448         * modules/pipe (Depends-on): Add wait-process.
103449         * modules/stat (Depends-on): Add xalloc.
103450         * modules/userspec (Files): Add lib/userspec.h.
103451         * modules/xstrto
103453         Upgrade from gettext-0.13.
103454         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
103455         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
103456         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
103458 2004-06-10  Jim Meyering  <jim@meyering.net>
103460         * lib/calloc.c: New file.
103462 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103464         * lib/getdate.y (yylex): Allow space between sign and number.
103465         Problem reported by Dan Jacobson.
103467 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
103469         Merge from coreutils CVS.
103471         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
103472         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
103473         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
103474         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
103475         xstrtol.m4: Fix copyright date and/or serial number.
103477         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
103478         See if we need an fchown replacement.
103479         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
103480         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
103481         and use the replacement function if we detect either defect.
103483         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
103484         gl_UTIMECMP.
103486 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
103487         and  Jim Meyering  <jim@meyering.net>
103489         Merge from coreutils CVS.
103491         * lib/stat-macros.h: New file, with contents from file-type.h
103492         and coreutils' system.h.
103493         * lib/file-type.c: Include "stat-macros.h".
103494         * lib/file-type.h (file_type): Move all macro definitions to new file,
103495         stat-macros.h.
103497         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
103498         Wrap old code with this conditional.
103499         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
103500         function that does not dereference symlinks.
103501         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
103503         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
103504         dependency problems.
103505         (xreadlink): Accept new arg SIZE, for efficiency.
103506         All decls and uses changed.
103507         * lib/xreadlink.h: Include <stddef.h>, for size_t.
103509         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
103510         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
103512         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
103513         sysexits.h.
103515 2004-06-01  Jim Meyering  <jim@meyering.net>
103517         * m4/calloc.m4: New file.
103519 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
103521         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
103522         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
103523         Also, fix a typo in a diagnostic.
103525 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
103527         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
103528         or AC_FUNC_REALLOC.
103530 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
103532         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
103533         macros to be defined.
103534         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
103535         the allocator returns NULL because the requested size is zero.
103537 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103539         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
103540         var.  Add comment explaining why libc still defines it.  This
103541         merges the following patch from glibc:
103542         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
103544 2004-05-20  Andreas Schwab  <schwab@suse.de>
103546         * m4/free.m4: Replace free if it not known to work, not the other
103547         way round.
103549 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
103551         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
103552         present in glibc since revision 1.1 of this file.
103553         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
103554         obstack_alignment_mask, obstack_alloc, obstack_base,
103555         obstack_blank, obstack_blank_fast, obstack_chunk_size,
103556         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
103557         obstack_grow0, obstack_init, obstack_int_grow,
103558         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
103559         obstack_next_free, obstack_object_size, obstack_ptr_grow,
103560         obstack_ptr_grow_fast, obstack_room): Remove declarations of
103561         nonexistent functions.
103563 2004-05-18  Karl Berry  <karl@gnu.org>
103565         * config/srclist.txt: break link for vasnprintf.c.
103567 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103569         Port obstack to the AS/400, where pointers are 16 bytes wide and
103570         you cannot cast an integer to a valid pointer.  This patch is
103571         currently waiting to be integrated into glibc; see
103572         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
103574         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
103575         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
103576         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
103577         (struct obstack): temp member is now a union of a pointer and
103578         an integer, instead of an integer.  All integer uses changed.
103579         This does not affect the physical layout of struct obstack,
103580         except on hosts (like the AS/400) where the size or alignment of
103581         void * is greater than that of ptrdiff_t.
103582         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
103583         __STDC__)]: Store temporary in pointer member of union, not
103584         integer member.
103585         * lib/obstack.c: Include <stddef.h>, for offsetof.
103586         (struct fooalign): Remove; it doesn't need a name.
103587         (union fooround): Change double to long double, and add void *.
103588         (DEFAULT_ALIGNMENT): Use offsetof to compute.
103589         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
103590         not a macro.  Hence the values are always int; so remove all
103591         casts-to-int in uses.
103593 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103595         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
103596         we can get this patch merged into glibc.
103598 2004-05-17  Derek R. Price  <derek@ximbiot.com>
103599             Paul Eggert  <eggert@cs.ucla.edu>
103601         * m4/argp: Depend on alloca.
103603 2004-05-17  Derek R. Price  <derek@ximbiot.com>
103604             Paul Eggert  <eggert@cs.ucla.edu>
103606         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
103607         freecoding.
103609 2004-05-17  Bruno Haible  <bruno@clisp.org>
103611         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
103612         precision that consists of a '.' followed by an empty digit string.
103613         Patch by Tor Lillqvist <tml@iki.fi>.
103615 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103617         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
103618         for backward compatibility with older code.  We need our own
103619         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
103620         it under some other name, and our alloca.h will define it.
103622 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103623             Derek Price  <derek@ximbiot.com>
103625         * lib/alloca.c: Include <alloca.h>, to get our interface.
103626         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
103627         include <alloca.h> first.  Use C89 prototype for alloca; this
103628         requires including <stddef.h> for size_t.  Use extern "C" if C++.
103629         Use #elif for simplicity, since we can assume C89 now.
103630         Don't try to source the system alloca.h since it will not be found
103631         and to prevent recursively including its replacement.
103632         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
103633         * lib/regex.c: Likewise.
103635 2004-05-16  Derek Price  <derek@ximbiot.com>
103636             Paul Eggert  <eggert@cs.ucla.edu>
103638         getline cleanup.  This changes the getndelim2 API: both order of
103639         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
103640         no delimiter).
103642         * lib/getline.c: Don't include stddef.h or stdio.h, since our
103643         interface does that.
103644         (getline): Always use getdelim, so that we don't have two
103645         copies of this code.
103646         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
103647         if available.
103648         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
103649         (GETNDELIM2_MAXIMUM): New macro.
103650         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
103651         instead of the old practice of delim2==0.  All callers changed.
103652         Return -1 on overflow, instead of returning junk.
103653         Do not set *linesize unless allocation succeeds.
103654         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
103655         that we include sys/types.h.
103656         * lib/getnline.h: Likewise.
103657         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
103658         (getndelim2): Reorder arguments.
103659         * lib/getnline.c (getnline, getndelim):
103660         Don't discard the NMAX argument.
103661         (getnline): Invoke getndelim, to avoid code duplication.
103662         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
103663         of (size_t) -1 by callers of the getnline family.
103665 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103667         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
103668         Check for gettimeofday.
103669         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
103670         Check for settimeofday, stime.
103672 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103674         * lib/nanosleep.c (suspended): Change its type from int to
103675         sig_atomic_t volatile.
103676         (first_call): Make it private to rpl_nanosleep, and have it
103677         be zero initially as that's a bit faster.
103678         (my_usleep): Round up fractional times instead of truncating them,
103679         as this is the usual meaning for 'sleep'.
103681         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
103682         doesn't work.
103683         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
103684         (ENOSYS): Define if not defined.
103685         (settime): Fall back on stime if it exists and settimeofday fails.
103686         But don't bother with fallbacks if a method fails with errno == EPERM.
103688 2004-05-11  Jim Meyering  <jim@meyering.net>
103690         Prior to this change, the save_cwd caller required read access to the
103691         current directory on most systems (ones with the fchdir function).
103693         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
103694         fails, try write-only, and finally, resort to using xgetcwd.
103696 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103698         * lib/obstack.c, obstack.h: Import changes from libc.
103700 2004-04-28  Bruno Haible  <bruno@clisp.org>
103702         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
103703         also implicitly appends .exe to executables.
103704         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
103705         accepts Windows pathnames.
103706         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
103707         Treat Cygwin like Windows, since it now accepts Windows pathnames.
103708         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
103709         Treat Cygwin like Windows, since it now accepts Windows pathnames.
103710         Reported by Derek Robert Price <derek@ximbiot.com>.
103712 2004-04-21  Karl Berry  <karl@gnu.org>
103714         * config/srclist.txt (localcharset.c): break sync.
103716 2004-04-20  Paul Eggert  <eggert@twinsun.com>
103718         * m4/host-os.m4: Add a copyright notice.
103720 2004-04-20  Jim Meyering  <jim@meyering.net>
103722         Change UTILS_ to gl_ in AC_DEFINE'd names.
103723         Change utils_- and jm_-prefixed variables, too.
103724         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
103725         UTILS_FUNC_MKDIR_TRAILING_SLASH.
103726         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
103728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
103729         Don't emit trailing blanks.
103730         Also rename jm_-prefixed variables to have gl_ prefix.
103732         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
103733         Also rename jm_-prefixed variables to have gl_ prefix.
103735         * m4/jm-macros.m4: Reflect the renamings.
103736         * m4/prereq.m4: Likewise.
103738 2004-04-20  Jim Meyering  <jim@meyering.net>
103740         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
103741         memory.
103743 2004-04-20  Jim Meyering  <jim@meyering.net>
103744             Bruno Haible  <bruno@clisp.org>
103746         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
103747         memory when realloc fails.
103749 2004-04-19  Jim Meyering  <jim@meyering.net>
103751         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
103752         now that readutmp.c may call `free (0)'.
103754 2004-04-19  Bruno Haible  <bruno@clisp.org>
103756         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
103757         * m4/inttypes_h.m4: Likewise.
103758         * m4/stdint_h.m4: Likewise.
103759         * m4/intmax_t.m4: Likewise.
103760         * m4/uintmax_t.m4: Likewise.
103762 2004-04-18  Jim Meyering  <jim@meyering.net>
103764         * m4/prereq.m4: Don't forbid jm_ prefix.
103766         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
103767         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
103768         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
103769         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
103770         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
103771         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
103772         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
103773         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
103774         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
103775         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
103776         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
103777         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
103778         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
103779         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
103780         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
103781         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
103782         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
103783         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
103784         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
103786 2004-04-18  Jim Meyering  <jim@meyering.net>
103788         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
103789         failure, don't leak memory and do call END_UTMP_ENT.
103791 2004-04-16  Jim Meyering  <jim@meyering.net>
103793         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
103794         coreutils' stat program.
103795         (gl_PREREQ): Don't require jm_PREREQ_STAT.
103797 2004-04-11  Paul Eggert  <eggert@twinsun.com>
103799         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
103800         C89.
103801         (CHAR_BIT): Remove, since we assume C89.
103802         Include <stdint.h> if available, as per current Autoconf CVS advice.
103804 2004-03-31  Jim Meyering  <jim@meyering.net>
103806         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
103807         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
103808         * m4/xalloc.m4: Likewise.
103810 2004-03-30  Paul Eggert  <eggert@twinsun.com>
103812         Merge from coreutils.
103814         * m4/inttostr.m4: New file.
103815         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
103816         Require AM_STDBOOL_H and gl_TIMESPEC instead.
103817         Require gl_CLOCK_TIME.
103818         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
103820 2004-03-30  Paul Eggert  <eggert@twinsun.com>
103822         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
103823         not bool, to be more consistent with Unix conventions.
103824         Suggested by Bruno Haible.
103826         Merge from coreutils.
103828         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
103829         * lib/umaxtostr.c: New files.
103831         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
103832         the usual <time.h> dance.
103833         (get_date): Change signature to support fractional time stamps.
103834         All callers changed.
103835         * lib/getdate.y: Include "getdate.h" first, as we can now
103836         assume C89 and don't need to worry about 'const'.
103837         Similarly, include "unlocked-io.h" near start, not in middle.
103838         Include <limits.h>.
103839         (textint.value): Use long int rather than int.
103840         (textint.digits): Use size_t rather than int.
103841         (BILLION, LOG10_BILLION): New constants.
103842         (parser_control): New member rel_ns.  Members day_ordinal,
103843         time_zone, month, day, hour, minutes, rel_year, rel_month,
103844         rel_day, rel_hour, rel_minutes, rel_seconds
103845         are now long int, not int.  Member seconds is now struct timespec,
103846         not int.  New member timespec_seen.  Members dates_seen, days_seen,
103847         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
103848         not int.
103849         (%union.intval): Now long int, not int.
103850         New member timespec.
103851         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
103852         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
103853         (spec): Now is a timespec or an item list.
103854         (timespec, items): New nonterminals.
103855         (time, rel, relunit, number, get_date):
103856         Add support for fractional seconds.
103857         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
103858         (gmtime, localtime, mktime): Remove decls; not needed with C89.
103859         (to_hour): First arg is now long int, not int.
103860         (to_year): Returns long int, not int.
103861         Don't treat year -70 like 70.
103862         (tm_diff): Returns long int, not int.
103863         (lookup_word): Use bool instead of int when appropriate.
103864         (yylex): Use size_t for count, not int.
103865         Detect overflow when parsing large integer constants.
103866         Add support for fractions.
103867         (get_date): Make pointers 'const' if possible.
103868         Use more-portable code to detect integer overflow.
103869         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
103870         Don't use ctime; it's not reliable if the year has >4 digits.
103872         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
103873         This is for compatibility with BSD.
103875         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
103876         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
103877         From coreutils' system.h.
103879         * lib/userspec.c: Don't include "posixver.h".
103880         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
103881         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
103882         compatible extension.  Simplify code by removing a boolean int
103883         that was always nonzero if a string was nonnull.
103885 2004-03-30  Jim Meyering  <jim@meyering.net>
103887         Merge from coreutils.
103889         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
103890         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
103891         on some systems one must include <grp.h> before it.
103892         Reported by Christian Krackowizer.
103894 2004-03-30  Jim Meyering  <jim@meyering.net>
103896         Merge from coreutils.
103898         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
103900         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
103901         an empty input stream.
103903         * lib/readtokens.c: Include <stdbool.h>.
103904         (readtoken): Use `size_t' rather than int/long.
103905         All callers adjusted.
103906         Use `bool' rather than `int' where appropriate.
103907         Use memset rather than an explicit loop.
103908         Use x2nrealloc rather than xrealloc.
103909         Allow the use of `\0' as a delimiter.
103910         (readtokens): Likewise.
103911         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
103913 2004-03-30  Jim Meyering  <jim@meyering.net>
103915         * m4/realloc.m4: Remove file, since now it does no more than
103916         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
103917         the `configure.ac' section of module/realloc.
103918         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
103920 2004-03-30  Bruno Haible  <bruno@clisp.org>
103922         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
103923         nonnull.
103925 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103927         Merge changes to getloadavg.c from coreutils and Emacs.
103929         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
103930         Define to an expression, not to the empty string.
103931         Include cloexec.h and xalloc.h.
103932         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
103933         Use set_cloexec_flag rather than rolling our own.
103934         * lib/cloexec.c, lib/cloexec.h: New files.
103936 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103938         * m4/cloexec.m4: New file.
103940 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103942         * lib/getopt.h: Sync with libc CVS.
103944 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103945             Bruno Haible  <bruno@clisp.org>
103947         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
103948         mbswidth.
103950 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103951             Bruno Haible  <bruno@clisp.org>
103953         * lib/mbswidth.h: Include <wchar.h> only if
103954         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
103955         <wchar.h>.
103956         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
103958 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103960         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
103961         Sync with libc CVS.
103962         * lib/getopt_int.h: New file, also synced from libc.
103964 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103966         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
103967         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
103968         Bring back getopt.c, getopt.h, getopt1.c.
103970 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103972         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
103973         All uses changed.  Check for sa_sigaction member; this fixes
103974         a bug first reported by Jason Andrade in
103975         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103977 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103979         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
103980         '#if' expressions.  Unlike the code it replaces, it does not
103981         depend on (defined _SC_PAGESIZE).  However, it does depend on
103982         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
103983         first reported by Jason Andrade in
103984         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103986 2004-02-25  Simon Josefsson  <jas@extundo.com>
103988         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
103990 2004-02-25  Simon Josefsson  <jas@extundo.com>
103992         * lib/strdup.h: New file.
103993         * lib/strdup.c: Include it.
103994         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
103995         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
103997 2004-02-23  Karl Berry  <karl@gnu.org>
103999         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
104000         (from fencepost.gnu.org:/gd/gnuorg).
104002 2004-02-23  Karl Berry  <karl@gnu.org>
104004         * config/srclistvars.sh (GNUORG) [karl]: redefine.
104005         * config/srclist.txt: add maintain/standards documents.
104007 2004-02-18  Bruno Haible  <bruno@clisp.org>
104009         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
104010         Reported by Derek Robert Price <derek@ximbiot.com>.
104012 2004-02-16  Karl Berry  <karl@gnu.org>
104014         * config/mkinstalldirs, install-sh: update from automake.
104016 2004-02-06  Karl Berry  <karl@gnu.org>
104018         * m4/po.m4: update from gettext 0.14.1.
104020 2004-02-06  Karl Berry  <karl@gnu.org>
104022         * lib/config.charset: update from gettext 0.14.1.
104024 2004-02-05  Paul Eggert  <eggert@twinsun.com>
104026         Add comments and code, prompted by suggestions from Bruno Haible
104027         for sh-quote.
104028         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
104029         describing the enum quoting_style values.
104030         * lib/quotearg.c (quotearg_alloc): New function.
104031         (quotearg_buffer_restyled): Treat lone { and } as special.
104032         Treat = as special.  Work around bug with older shells
104033         that "see" a '\' that is really the 2nd byte of a multibyte char.
104034         Quote empty string with shell_quoting_style.
104036 2004-02-03  Bruno Haible  <bruno@clisp.org>
104038         * m4/pipe.m4: New file, from GNU gettext.
104040 2004-02-03  Bruno Haible  <bruno@clisp.org>
104042         * lib/pipe.h: New file, from GNU gettext.
104043         * lib/pipe.c: New file, from GNU gettext.
104045 2004-01-27  Bruno Haible  <bruno@clisp.org>
104047         * m4/execute.m4: New file, from GNU gettext.
104049 2004-01-27  Bruno Haible  <bruno@clisp.org>
104051         * lib/execute.h: New file, from GNU gettext.
104052         * lib/execute.c: New file, from GNU gettext.
104053         * lib/w32spawn.h: New file, from GNU gettext.
104055 2004-01-24  Paul Eggert  <eggert@twinsun.com>
104057         Merge from diffutils.
104059         * lib/file-type.c (file_type): Add typed memory objects.
104060         * lib/file-type.h (S_TYPEISTMO): New macro.
104062         * lib/c-stack.h (c_stack_action): Remove argv argument.
104063         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
104064         (die): Don't calculate message unless segv_action returns.
104065         (get_stack_location, min_address_from_argv, max_address_from_argv,
104066         volatile stack_base, volatile_stack_size): Remove.
104067         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
104068         that every segmentation violation is a stack overflow.  (Ouch!)
104069         See Debian bug 136249 (still outstanding) for more info about why
104070         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
104072 2004-01-24  Paul Eggert  <eggert@twinsun.com>
104074         Exit-status fix from coreutils.
104076         Use exit_failure consistently in place of EXIT_FAILURE,
104077         so that program exit statuses are consistent on failure.
104079         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
104080         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
104081         * lib/argmatch.h: Comment fix to match the above.
104082         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
104083         Now a macro referring to exit_failure, instead of a separate
104084         variable.  Include "exitfail.h" to get it.
104085         * lib/xstrtol.h: Include "exitfail.h".
104086         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
104088         * lib/long-options.c (parse_long_options): Use prototype
104089         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
104090         for clarity.
104092 2004-01-21  Jim Meyering  <jim@meyering.net>
104094         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
104095         so as not to conflict with a different-sized __mktime_internal
104096         function in GNU libc.
104097         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
104098         Problem building statically-linked `ls' reported by Michael Brunnbauer.
104100 2004-01-20  Karl Berry  <karl@gnu.org>
104102         * config/config.guess: update from config.
104104         * config/srclistvars.sh: GNUWWWLICENSES for karl.
104106 2004-01-20  Bruno Haible  <bruno@clisp.org>
104108         Safer stack allocation.
104109         * lib/setenv.c: Include allocsa.h.
104110         (alloca): Remove fallback definition.
104111         (freea): Remove macro.
104112         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
104113         instead of freea.
104115 2004-01-20  Bruno Haible  <bruno@clisp.org>
104117         * m4/eealloc.m4: New file, from GNU gettext.
104119 2004-01-20  Bruno Haible  <bruno@clisp.org>
104121         * m4/allocsa.m4: New file, from GNU gettext.
104123 2004-01-20  Bruno Haible  <bruno@clisp.org>
104125         * lib/xallocsa.h: New file, from GNU gettext.
104126         * lib/xallocsa.c: New file, from GNU gettext.
104128 2004-01-20  Bruno Haible  <bruno@clisp.org>
104130         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
104132 2004-01-20  Bruno Haible  <bruno@clisp.org>
104134         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
104135         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
104136         specially.
104138 2004-01-20  Bruno Haible  <bruno@clisp.org>
104140         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
104141         patch.
104143 2004-01-20  Bruno Haible  <bruno@clisp.org>
104145         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
104147 2004-01-20  Bruno Haible  <bruno@clisp.org>
104149         * lib/eealloc.h: New file.
104151 2004-01-20  Bruno Haible  <bruno@clisp.org>
104153         * lib/binary-io.h: Avoid warnings on Cygwin.
104155 2004-01-20  Bruno Haible  <bruno@clisp.org>
104157         * lib/allocsa.h: New file, from GNU gettext.
104158         * lib/allocsa.c: New file, from GNU gettext.
104160 2004-01-18  Karl Berry  <karl@gnu.org>
104162         * doc/gpl.texi, doc/lgpl.texi: new files.
104164 2004-01-18  Karl Berry  <karl@gnu.org>
104166         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
104167         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
104169 2004-01-15  Paul Eggert  <eggert@twinsun.com>
104171         Merge from coreutils.
104173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
104174         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
104175         (gl_DEFAULT_POSIX2_VERSION): Move
104176         the documentation from 'configure' into 'config.hin',
104177         so that 'configure --help' isn't burdened by it and
104178         we don't have to worry about its formatting there.
104179         Reword the documentation so that it's more succinct
104180         and can be run together into a single paragraph.
104181         * m4/same.m4 (gl_SAME): Check for pathconf.
104183 2004-01-15  Paul Eggert  <eggert@twinsun.com>
104185         Merge from coreutils.
104187         * lib/posixver.c: Include posixver.h.
104189         * lib/same.c: Include <stdbool.h>, <limits.h>.
104190         (_POSIX_NAME_MAX): Define if not defined.
104191         (MIN): New macro.
104192         (same_name): If file names are silently truncated, report
104193         that the file names are the same if they are the same after
104194         the silent truncation.
104196         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
104197         conversion function.
104198         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
104199         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
104200         longer needed.
104202 2004-01-15  Jim Meyering  <jim@meyering.net>
104204         Merge from coreutils.
104206         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
104207         if no library is required.
104208         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
104209         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
104210         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
104211         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
104212         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
104213         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
104214         value, $ac_cv_search_crypt, if it's "none required".
104215         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
104216         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
104217         not gl_FUNC_GETLOADAVG.
104218         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
104219         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
104221 2004-01-15  Jim Meyering  <jim@meyering.net>
104223         Merge from coreutils.
104225         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
104226         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
104227         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
104229         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
104230         optional configure-time default.
104232         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104234         * lib/xreadlink.c (xreadlink): Correct outdated comment.
104236 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
104238         Merge from coreutils.
104240         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
104241         value, $ac_cv_search_nanosleep, if it's "none required".
104243 2004-01-14  Paul Eggert  <eggert@twinsun.com>
104245         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
104246         with like-named macro in fnmatch.c.
104247         (EXT): Use an internal constant instead.
104249         Merge fnmatch patches from glibc.
104250         * lib/fnmatch.c (mbsinit): Remove define.
104251         Add libc_hidden_ver (__fnmatch, fnmatch).
104252         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
104253         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
104255 2004-01-14  Karl Berry  <karl@gnu.org>
104257         * config/install-sh: update from automake.
104259 2004-01-13  Karl Berry  <karl@gnu.org>
104261         * config/install-sh: update from automake.
104263 2004-01-09  Karl Berry  <karl@gnu.org>
104265         * config/install-sh: update from automake.
104267 2004-01-05  Karl Berry  <karl@gnu.org>
104269         * config/config.{sub,guess}: update from config.
104271 2003-12-31  Karl Berry  <karl@gnu.org>
104273         * config/depcomp: update from automake.
104275 2003-12-14  Karl Berry  <karl@gnu.org>
104277         * lib/config.charset: update from gettext-runtime.
104279 2003-12-03  Paul Eggert  <eggert@twinsun.com>
104281         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
104282         Bug reported by Alfred M. Szmidt.
104284 2003-12-03  Bruno Haible  <bruno@clisp.org>
104286         * m4/gettext.m4: Upgrade from gettext-0.13.
104287         * m4/po.m4: Upgrade from gettext-0.13.
104288         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
104289         * m4/intmax.m4: New file, from gettext-0.13.
104290         * m4/printf-posix.m4: New file, from gettext-0.13.
104292 2003-11-29  Karl Berry  <karl@gnu.org>
104294         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
104296 2003-11-25  Paul Eggert  <eggert@twinsun.com>
104297             Bruno Haible  <bruno@clisp.org>
104299         * lib/printf-parse.h: Don't include sys/types.h.
104300         (ARG_NONE): New macro.
104301         (char_directive): Change type of *arg_index fields to size_t.
104302         * lib/printf-parse.c: Don't include sys/types.h.
104303         (SSIZE_MAX): Remove macro.
104304         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
104305         Remove unnecessary overflow check.
104306         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
104307         fields.
104309 2003-11-25  Bruno Haible  <bruno@clisp.org>
104311         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
104313 2003-11-25  Bruno Haible  <bruno@clisp.org>
104315         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
104316         gt_TYPE_SSIZE_T.
104318 2003-11-24  Paul Eggert  <eggert@twinsun.com>
104320         * modules/alloca: Remove dependency on xalloc.
104322 2003-11-24  Paul Eggert  <eggert@twinsun.com>
104324         * lib/alloca.c: Remove dependency on xalloc module.
104325         (xalloc_die): Remove.
104326         (memory_full) [!defined emacs]: New macro.
104327         [!defined emacs]: Don't include xalloc.h.
104328         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
104329         address arithmetic overflows.  Change datatypes a bit to avoid
104330         unnecessary casts.
104332 2003-11-22  Jim Meyering  <jim@meyering.net>
104334         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
104335         s/size/size_t/.
104337 2003-11-21  Karl Berry  <karl@gnu.org>
104339         * config/config.{sub,guess}: update from config.
104341 2003-11-18  Karl Berry  <karl@gnu.org>
104343         * config/config.{sub,guess}: update from config.
104345         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
104347 2003-11-17  Paul Eggert  <eggert@twinsun.com>
104349         * README: Mention that S+T cannot overflow if S is the size of
104350         an existing object and T is sufficiently small.
104352 2003-11-17  Jim Meyering  <jim@meyering.net>
104354         On systems without utime and without a utimes function capable of
104355         dealing with a NULL struct utimbuf* argument, this utime replacement
104356         could -- in unusual circumstances -- leak a file descriptor.
104357         * lib/utime.c: Include <unistd.h> and <errno.h>.
104358         (utime_null): Be sure to close `fd' and to preserve errno.
104359         Reported by Geoff Collyer via Arnold Robbins.
104361 2003-11-17  Bruno Haible  <bruno@clisp.org>
104363         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
104364         (Depends-on): Add xsize.
104366 2003-11-17  Bruno Haible  <bruno@clisp.org>
104368         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
104370 2003-11-17  Bruno Haible  <bruno@clisp.org>
104372         * lib/vasnprintf.c (alloca): Remove fallback definition.
104373         (freea): Remove definition.
104374         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
104375         Reported by Paul Eggert.
104377 2003-11-16  Paul Eggert  <eggert@twinsun.com>
104378             Bruno Haible  <bruno@clisp.org>
104380         Protect against address arithmetic overflow.
104381         * lib/printf-args.h: Include stddef.h.
104382         (arguments): Change type of field 'count' to size_t.
104383         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
104384         'unsigned int' where appropriate.
104385         * lib/printf-parse.h: Include sys/types.h.
104386         (char_directive): Change type of *arg_index fields to ssize_t.
104387         (char_directives): Change type of fields 'count', max_*_length to
104388         size_t.
104389         * lib/printf-parse.c: Include sys/types.h and xsize.h.
104390         (SSIZE_MAX): Define fallback value.
104391         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
104392         instead of 'int' where appropriate. Check a_allocated, d_allocated
104393         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
104394         * lib/vasnprintf.c: Include xsize.h.
104395         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
104396         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
104397         overflow. Avoid wraparound when converting a width or precision from
104398         decimal to binary.
104400 2003-11-16  Bruno Haible  <bruno@clisp.org>
104402         Update from GNU gettext.
104403         * lib/printf-parse.c: Generalize to it can be compiled for wide
104404         strings.
104405         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
104406         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
104407         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
104408         SNPRINTF): New macros.
104409         Don't include <alloca.h> if the file is used inside libintl.
104410         (local_wcslen): New function, for Solaris 2.5.1.
104411         (VASNPRINTF): Use it instead of wcslen.
104413 2003-11-16  Bruno Haible  <bruno@clisp.org>
104415         * lib/xsize.h (xmax): New function.
104416         (xsum, xsum3, xsum4): Declare as "pure" functions.
104418 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104420         * modules/xalloc (Files): Undo latest change, since xalloc.h
104421         no longer needs SIZE_MAX or PTRDIFF_MAX.
104423 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104425         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
104426         gl_PTRDIFF_MAX.
104428 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104430         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
104431         "return", to pacify some unknown compiler.  Problem reported
104432         by Joerg Schilling.
104434 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104436         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
104437         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
104438         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
104439         heuristic is just as accurate as far as we know, and it removes a
104440         dependency on size_max.m4 and ptrdiff_max.m4.
104442 2003-11-11  Bruno Haible  <bruno@clisp.org>
104444         * modules/xsize (Files): Add m4/size_max.m4.
104445         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
104447 2003-11-11  Bruno Haible  <bruno@clisp.org>
104449         * m4/size_max.m4: New file.
104450         * m4/ptrdiff_max.m4: New file.
104451         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
104452         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
104453         (gl_XALLOC): Invoke it.
104455 2003-11-11  Bruno Haible  <bruno@clisp.org>
104457         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
104458         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
104459         defined.
104461 2003-11-10  Paul Eggert  <eggert@twinsun.com>
104463         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
104464         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
104465         rejected some allocations of exactly SIZE_MAX - 2 bytes.
104466         From Bruno Haible.
104467         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
104468         not (size_t) -1, since it's defined here.
104470 2003-11-09  Karl Berry  <karl@gnu.org>
104472         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
104474 2003-11-06  Paul Eggert  <eggert@twinsun.com>
104476         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
104477         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
104478         Reject sizes of exactly SIZE_MAX bytes.
104479         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
104480         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
104482 2003-11-05  Bruno Haible  <bruno@clisp.org>
104484         * lib/xsize.h: Include limits.h, to avoid a possible collision with
104485         SIZE_MAX defined in <limits.h> on Solaris.
104487 2003-11-04  Jim Meyering  <jim@meyering.net>
104489         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
104490         variable names, rather than @VAR@.
104491         * modules/poll: Likewise.
104493 2003-11-04  Bruno Haible  <bruno@clisp.org>
104495         * modules/xsize: New file.
104496         * modules/linebreak: Depend on xsize.
104497         * MODULES.html.sh (func_all_modules): Add xsize.
104499 2003-11-04  Bruno Haible  <bruno@clisp.org>
104501         * m4/xsize.m4: New file.
104503 2003-11-04  Bruno Haible  <bruno@clisp.org>
104505         * lib/xsize.h: New file.
104506         * lib/linebreak.c: Include xsize.h.
104507         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
104508         argument for overflow.
104509         Suggested by Paul Eggert.
104511 2003-11-03  Karl Berry  <karl@gnu.org>
104513         * config/config.{guess,sub}: update from config.
104515 2003-11-03  Jim Meyering  <jim@meyering.net>
104517         * modules/userspec (lib_SOURCES): Add userspec.h.
104518         (Include): Add "userspec.h".
104519         Improve description.
104521 2003-11-03  Jim Meyering  <jim@meyering.net>
104523         * lib/userspec.c: Include "userspec.h".
104524         * lib/userspec.h: New file.
104526 2003-11-03  Bruno Haible  <bruno@clisp.org>
104528         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
104530 2003-11-03  Bruno Haible  <bruno@clisp.org>
104532         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
104533         available, to avoid (extremely rare) race condition.
104534         Suggested by Paul Eggert.
104536 2003-11-02  Karl Berry  <karl@gnu.org>
104538         * config/srclist.txt (vasprintf.c): sync broken, sigh.
104540 2003-10-31  Paul Eggert  <eggert@twinsun.com>
104542         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
104543         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
104544         (read_filesystem_list): Set and use me_type_malloced.
104545         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
104546         whatever the type happens to be), for brevity and consistency.
104547         Check for size calculation overflow on Alphas running OSF/1.
104549 2003-10-31  Jim Meyering  <jim@meyering.net>
104551         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
104553         * lib/linebuffer.c: Include <string.h> for declaration of memset.
104555 2003-10-30  Paul Eggert  <eggert@twinsun.com>
104556             Bruno Haible  <bruno@clisp.org>
104558         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
104559         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
104561 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
104563         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
104564         netbsd*-gnu*.  Suggested by Robert Millan.
104566 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104568         * modules/group-member: Depend on stdbool.
104570 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104572         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
104574 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104576         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
104577         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
104578         after the 'gnu' in these cases.  This fixes some bugs in the
104579         previous change, and is based on suggestions by Robert Millan.
104581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104583         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
104584         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
104585         no longer needed.
104586         * lib/quotearg.c (quotearg_n_options): Use it.
104587         * lib/group-member.c: Include <stdbool.h>.
104588         (free_group_info): Arg is now const *; don't free arg.
104589         (get_group_info): Now returns bool and accepts struct group_info *,
104590         rather than returning a malloc'ed struct group_info *.
104591         All uses changed.  Check for overflow in internal size calculation.
104593         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
104594         rather than xmalloc/xrealloc.
104595         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
104596         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
104597         conformance bug: the old code used a pointer after freeing the
104598         storage that it addressed.
104599         * lib/hash.c (hash_initialize): Simplify the code by using
104600         xalloc_oversized rather than doing it by hand.
104601         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
104602         the buffer preserved.  Use free and xmalloc instead.
104603         * lib/quotearg.c (quotearg_n_options): Likewise.
104604         Use a simpler test for size overflow.  Don't use xalloc_oversized
104605         because unsigned int might be wider than size_t (!); this suggests
104606         that we should switch from unsigned int to size_t for slot numbers.
104608 2003-10-28  Paul Eggert  <eggert@twinsun.com>
104610         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
104611         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
104612         NetBSD kernels.  Requested by Richard Stallman.
104614 2003-10-27  Paul Eggert  <eggert@twinsun.com>
104616         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
104617         to allocate the returned structure.  Do not allocate a subarray,
104618         as x2nrealloc will do that.
104619         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
104620         instead of xnrealloc.
104621         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
104623 2003-10-27  Bruno Haible  <bruno@clisp.org>
104625         * lib/stdbool_.h: Better support for BeOS.
104627 2003-10-26  Paul Eggert  <eggert@twinsun.com>
104629         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
104630         now uses inline.
104632 2003-10-26  Paul Eggert  <eggert@twinsun.com>
104634         * lib/xalloc.h (xalloc_oversized): New static inline function, for
104635         callers that want to do their own size-overflow checking.  Include
104636         <stdbool.h>, since xalloc_oversized returns bool.
104637         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
104638         to use xalloc_oversized.
104640         Add two functions x2realloc, x2nrealloc, for programs that grow
104641         arrays dynamically by doubling their sizes.
104642         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
104643         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
104644         New functions.
104646         Port to C99 semantics for 'inline' of external functions.
104647         Bug reported by Bruno Haible.
104648         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
104649         with the old contents of xnmalloc.
104650         (xnmalloc, xmalloc): Use it.
104651         (xnrealloc_inline): New static inline function,
104652         with the old contents of xnrealloc.
104653         (xnrealloc, xrealloc): Use it.
104655         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
104656         that.
104658 2003-10-26  Karl Berry  <karl@gnu.org>
104660         * config/srclist.txt (COPYING.DOC): no longer available from
104661         /gd/gnuorg; don't know where the ultimate source is.
104663 2003-10-25  Paul Eggert  <eggert@twinsun.com>
104665         Fix several address-calculation bugs in the hash modules,
104666         plus some minor code cleanup.
104668         * lib/hash.h: Include <stdbool.h>, for bool.
104669         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
104670         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
104671         hash_get_n_entries, hash_get_max_bucket_length,
104672         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
104673         hash_rehash): Use size_t rather than unsigned.
104674         * lib/hash.c (struct hash_table, hash_get_n_buckets,
104675         hash_get_n_buckets_used, hash_get_n_entries,
104676         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
104677         hash_get_entries, hash_do_for_each, hash_string, is_prime,
104678         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
104679         Likewise.
104680         (SIZE_MAX): Define if not defined.
104681         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
104682         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
104683         hash_print):
104684         Use const * when possible.
104685         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
104686         (check_tuning): Fix bug: if tuning parameters were very close to
104687         0 or 1, rounding errors could have caused subscript violations.
104688         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
104689         (hash_initialize): Add 'fail:' label
104690         to free table and return NULL, and use it to simplify code.
104691         Use calloc rather than clearing the storage ourself.
104692         (hash_initialize, hash_rehash): Check for arithmetic overflow in
104693         buffer size calculations.
104694         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
104695         Include <stddef.h>, for size_t.
104696         * lib/hash-pjw.c (hash_pjw): Likewise.
104697         Switch to method described by Bruno Haible.
104698         Include <limits.h>, for CHAR_BIT.
104699         (SIZE_BITS): New macro.
104701 2003-10-23  Paul Eggert  <eggert@twinsun.com>
104703         * m4/getline.m4 (AM_FUNC_GETLINE):
104704         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
104705         hosts.  Problem reported by Derek Robert Price in
104706         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
104707         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
104708         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
104710 2003-10-21  Paul Eggert  <eggert@twinsun.com>
104712         * lib/getndelim2.c (getndelim2): When size calculation overflows,
104713         ceiling the allocation at NMAX bytes rather than silently
104714         discarding input bytes before NMAX is reached.  This makes
104715         a difference only if NMAX exceeds SIZE_MAX / 2.
104717         * lib/obstack.c: Merge from glibc.
104718         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
104719         Add libc_hidden_def (_obstack_newchunk).
104720         (_obstack_free) [! defined _LIBC]: Remove.
104721         [defined _LIBC]: Make a strong alias from obstack_free, rather than
104722         a clone of the function body.
104723         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
104724         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
104726         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
104727         glibc.
104728         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
104729         arg to memcpy.
104731         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
104732         (obstack_ptr_grow_fast, obstack_int_grow_fast):
104733         Don't use lvalue casts, as GCC plans to remove support for them
104734         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
104735         was also present in the non-GCC version, indicating that this
104736         code had always been buggy and had never been widely used.
104737         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
104738         Use the fast variant of each macro, rather than copying the
104739         definiens of the fast variant; that way, we'll be more likely to
104740         catch future bugs in the fast variants.
104742 2003-10-20  Bruno Haible  <bruno@clisp.org>
104744         * modules/wait-process: New file.
104745         * MODULES.html.sh (func_all_modules): Add wait-process.
104747 2003-10-20  Bruno Haible  <bruno@clisp.org>
104749         * m4/wait-process.m4: New file.
104751 2003-10-20  Bruno Haible  <bruno@clisp.org>
104753         * lib/wait-process.h: New file, from GNU gettext.
104754         * lib/wait-process.c: New file, from GNU gettext.
104756 2003-10-19  Jim Meyering  <jim@meyering.net>
104758         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
104759         HPUX 10.20.
104761 2003-10-18  Karl Berry  <karl@gnu.org>
104763         * config/config.guess: update from config.
104765 2003-10-16  Paul Eggert  <eggert@twinsun.com>
104767         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
104768         (getgroups): First arg is int, not size_t.
104769         Don't let 'free' mangle errno.
104771 2003-10-16  Paul Eggert  <eggert@twinsun.com>
104773         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
104775 2003-10-16  Karl Berry  <karl@gnu.org>
104777         * config/config.{guess,sub}: update from config.
104779 2003-10-16  Jim Meyering  <jim@meyering.net>
104781         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
104782         memcpy.
104784 2003-10-15  Paul Eggert  <eggert@twinsun.com>
104786         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
104787         (SIZE_MAX): Remove.
104788         (new_exclude, add_exclude_file): Initial size no longer needs to
104789         be a power of 2.
104790         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
104791         our own address arithmetic overflow checking.
104793         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
104794         (fnmatch): Do not alloca more than 2000 wide characters;
104795         instead, use malloc for large buffers.
104796         Check for address arithmetic overflow, and return -1
104797         with errno set to ENOMEM in that case.
104798         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
104799         (NEW_PATTERN): Do not alloca more than 8000 bytes;
104800         instead, return -1.  Check for address arithmetic overflow.
104802 2003-10-14  Paul Eggert  <eggert@twinsun.com>
104804         Handle invalid suffixes and overflow independently, so that
104805         callers can treat them independently as needed.  Fix some bugs in
104806         suffix handling, e.g., "100k@" was not diagnosed as an invalid
104807         suffix for a human-readable blocksize.  The major caller-visible
104808         change is the addition of a new
104809         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
104810         that both overflow and suffix chars were found.
104812         * lib/human.c (humblock): Don't check separately for invalid suffix
104813         char; that is xstrtoumax's job (now that its bug is fixed).
104814         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
104815         INTMAX_MAX]: New macros.
104816         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
104817         TYPE_MAXIMUM): New macros.
104818         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
104819         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
104820         if overflow occurs, as it's what __strtol does and it's more useful
104821         in practice.
104822         (__xstrtol): If __strtol reports some error other than ERANGE,
104823         reflect it to the caller as LONGINT_INVALID.  If it reports
104824         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
104825         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
104826         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
104827         value.
104828         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
104829         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
104830         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
104831         [defined UINTMAX_MAX]: New macros.
104833 2003-10-14  Bruno Haible  <bruno@clisp.org>
104835         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
104837 2003-10-14  Bruno Haible  <bruno@clisp.org>
104839         * m4/sig_atomic_t: New file, from GNU gettext.
104840         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
104842 2003-10-14  Bruno Haible  <bruno@clisp.org>
104844         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
104845         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
104846         Also use volatile where needed.
104848 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104850         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
104851         Change maintainer from Bruno Haible to 'all'.
104853 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104855         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
104857 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104859         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
104860         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
104861         and define in terms of the other primitives.
104862         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
104863         (SIZE_MAX): Define if not already defined.
104864         (array_size_overflow): New function.
104865         (xalloc_die): Abort instead of exiting if 'error' returns.
104866         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
104867         (xmalloc, xrealloc): Use them.
104868         (xcalloc): Check for address arithmetic overflow.
104869         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
104870         a bit faster than strcpy.
104872 2003-10-10  Simon Josefsson  <jas@extundo.com>
104874         * modules/argp (Depends-on): Add restrict and strcase.
104876 2003-10-10  Simon Josefsson  <jas@extundo.com>
104878         * m4/argp.m4: Add AC_C_INLINE.
104880 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104882         Merge getpass from libc, plus a few fixes.
104884         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
104885         Include <stdbool.h>.
104886         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
104887         __fsetlocking to empty.
104888         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
104889         do include <bits/libc-lock.h>.
104890         Do not include <fcntl.h>; not needed.
104891         [_LIBC]: Include <wchar.h>.
104892         (NOTCANCEL_MODE): New macro.
104893         (flockfile, funlockfile) [_LIBC]: New macros.
104894         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
104895         [!_LIBC]: New macros.
104896         (call_fclose): New function.
104897         (getpass): Use it.  Save tty stream separately; this simplifies the
104898         code and makes it more reliable if stdin happens to equal stdout.
104899         Invoke __fsetlocking on tty.
104900         Handle thread cancellation if needed.
104901         Namespace cleanup (use __tcgetattr, __getline).
104902         Use bool for Booleans.
104903         [USE_IN_LIBIO]: Handle wide streams.
104904         [!_LIBC]: Unconditionally do the fseek, since we don't know what
104905         stream might go where.
104907         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
104908         doesn't have to include <stdio.h> before us.
104909         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
104910         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
104911         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
104912         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
104913         if not declared, so that we can use getpass.c code from libc without
104914         rewriting it.
104915         (flockfile, ftrylockfile, funlockfile): New macros.
104917 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104919         * modules/getpass: Depend on stdbool.
104921 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
104925 2003-10-07  Karl Berry  <karl@gnu.org>
104927         * config/config.{guess,sub}: update from config.
104929 2003-10-06  Jim Meyering  <jim@meyering.net>
104930             Bruno Haible  <bruno@clisp.org>
104932         This lets translators provide better translations for the
104933         "Written by ..." part of --version output.
104934         * lib/version-etc.h: Include stdarg.h.
104935         (version_etc_copyright): Declare as readonly.
104936         (version_etc): Make this function variadic with a NULL-terminated list
104937         of author name strings.
104938         (version_etc_va): New declaration.
104939         * lib/version-etc.c: Include stdarg.h, stdlib.h.
104940         (version_etc_copyright): Declare as readonly.
104941         (version_etc_va): New function. Provide a different translatable string
104942         for each possible number of authors < 10. Abbreviate when there are 10
104943         authors or more.
104944         (version_etc): Make this function variadic. Call version_etc_va.
104945         Suggestion from Gary V. Vaughan.
104947         * lib/long-options.h (parse_long_options): Change prototype: the
104948         authors string is moved to the end and becomes variadic.
104949         * lib/long-options.c: Include stdarg.h.
104950         (parse_long_options): Make this function variadic, too.
104951         Call version_etc_va, not version_etc.
104953 2003-10-06  Bruno Haible  <bruno@clisp.org>
104955         * modules/version-etc-2: Remove file.
104956         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
104958 2003-10-06  Bruno Haible  <bruno@clisp.org>
104960         * modules/fatal-signal: New file.
104961         * MODULES.html.sh (func_all_modules): Add fatal-signal.
104963 2003-10-06  Bruno Haible  <bruno@clisp.org>
104965         * m4/fatal-signal.m4: New file.
104966         * m4/signalblocking.m4: New file, from GNU gettext.
104968 2003-10-06  Bruno Haible  <bruno@clisp.org>
104970         * lib/version-etc-2.h: Remove file.
104971         * lib/version-etc-2.c: Remove file.
104973 2003-10-06  Bruno Haible  <bruno@clisp.org>
104975         * lib/fatal-signal.h: New file, from GNU gettext.
104976         * lib/fatal-signal.c: New file, from GNU gettext.
104978 2003-10-05  Paul Eggert  <eggert@twinsun.com>
104980         * README: Rework advice for preventing empty .o files.
104981         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
104982         not <sys/types.h>.
104984 2003-10-04  Karl Berry  <karl@gnu.org>
104986         * lib/argp*: update from libc.
104988 2003-10-04  Karl Berry  <karl@gnu.org>
104990         * config/config.{guess,sub}: update from config.
104992 2003-10-02  Bruno Haible  <bruno@clisp.org>
104994         * modules/lchown (Include): Add lchown.h.
104995         * modules/time_r (Include): Use "..." syntax.
104996         * modules/xgetdomainname (Include): Add xgetdomainname.h.
104998 2003-10-01  Simon Josefsson  <jas@extundo.com>
105000         * MODULES.html.sh (func_all_modules): Move gethostname from section
105001         'based on' to section 'lacking' POSIX:2001.
105003 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
105005         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
105006         to output mode on the same stream.
105008 2003-09-29  Paul Eggert  <eggert@twinsun.com>
105010         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
105011         Fix arg typo in previous patch.
105013 2003-09-28  Jim Meyering  <jim@meyering.net>
105015         * lib/error.c: Correct cpp indentation.
105017 2003-09-27  Paul Eggert  <eggert@twinsun.com>
105019         * modules/free: New file.
105021 2003-09-27  Paul Eggert  <eggert@twinsun.com>
105023         * m4/free.m4: New file.
105025 2003-09-27  Paul Eggert  <eggert@twinsun.com>
105027         * lib/minmax.h (MIN, MAX)
105028         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
105029         Omit the special code that used __typeof__, since we worry that
105030         it could be more trouble than it's worth.  See:
105031         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
105032         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
105034         * lib/free.c: New file.
105036 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
105038         Trivial fixes to Makefile.am parts of module listings.
105039         * modules/strstr: Append strstr.h to lib_SOURCES.
105040         * modules/strcase: Likewise, for strcase.h.
105042 2003-09-27  Karl Berry  <karl@gnu.org>
105044         * config/mkinstalldirs: update from automake.
105046 2003-09-26  Paul Eggert  <eggert@twinsun.com>
105048         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
105049         (error_tail): Do not loop, reallocating temporary buffer, since
105050         the output cannot contain more wide characters than the input
105051         contains bytes, the size must be big enough already.  This avoids
105052         one potential size overflow calculation.  Check for size overflow
105053         when calculating temporary buffer size.  Free temporary buffer
105054         when done, if it was allocated with malloc; this plugs a memory
105055         leak.  Remove casts from void * to pointers, that are no longer
105056         needed now that we're assuming C89 or better.
105058         Merge error changes from glibc.
105060         * lib/error.c, error.h: Update copyright notice header to match glibc.
105061         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
105062         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
105063         Disable cancellation while printing error.
105064         * lib/error.h: Prepend __ to parameter names.
105066 2003-09-26  Jim Meyering  <jim@meyering.net>
105068         * lib/error.c (error_tail): Move some declarations
105069         into inner scope where the local variables are used.
105071 2003-09-26  Bruno Haible  <bruno@clisp.org>
105073         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
105074         stpncpy().
105075         Don't define stpncpy through config.h; it's now done through stpncpy.h.
105077 2003-09-26  Bruno Haible  <bruno@clisp.org>
105079         * lib/stpncpy.h (gnu_stpncpy): New declaration.
105080         (stpncpy): Define as alias for gnu_stpncpy.
105081         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
105083 2003-09-25  Simon Josefsson  <jas@extundo.com>
105085         * lib/xgetdomainname.h: New file.
105086         * lib/xgetdomainname.c: New file.
105088 2003-09-25  Simon Josefsson  <jas@extundo.com>
105089             Bruno Haible  <bruno@clisp.org>
105091         * modules/getdomainname: New file.
105092         * modules/xgetdomainname: New file.
105093         * MODULES.html.sh (func_all_modules): Add getdomainname,
105094         xgetdomainname.
105096 2003-09-25  Simon Josefsson  <jas@extundo.com>
105097             Bruno Haible  <bruno@clisp.org>
105099         * m4/getdomainname.m4: New file.
105101 2003-09-25  Simon Josefsson  <jas@extundo.com>
105102             Bruno Haible  <bruno@clisp.org>
105104         * lib/getdomainname.h: New file.
105105         * lib/getdomainname.c: New file.
105107 2003-09-25  Karl Berry  <karl@gnu.org>
105109         * lib/argp-fmtstream.c, argp-help.c: update from libc.
105111 2003-09-25  Karl Berry  <karl@gnu.org>
105113         * config/install-sh: update from automake.
105115 2003-09-25  Bruno Haible  <bruno@clisp.org>
105117         * modules/version-etc-2: New file, from modules/version-etc with
105118         modifications.
105119         * MODULES.html.sh (func_all_modules): Add version-etc-2.
105121 2003-09-25  Bruno Haible  <bruno@clisp.org>
105123         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
105124         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
105126 2003-09-24  Simon Josefsson  <jas@extundo.com>
105128         * modules/xgethostname: Add xgethostname.h.
105130 2003-09-24  Paul Eggert  <eggert@twinsun.com>
105132         * lib/linebuffer.c (freebuffer): Don't free the argument, just
105133         the buffer associated with the argument.  Bug reported by
105134         Simon Josefsson.
105136 2003-09-24  Paul Eggert  <eggert@twinsun.com>
105138         * README: Document assumptions that 'int' is at least 32 bits
105139         wide, that integer arithmetic is 2's complement without overflow,
105140         that there are no holes in integer values, that adding sizes of
105141         two nonoverlapping objects can't overflow, and that all-bits-zero
105142         yields scalar zero.  Fix spelling and capitalization typos.
105144 2003-09-19  Karl Berry  <karl@gnu.org>
105146         * lib/argp.h: update from libc.
105148 2003-09-17  Paul Eggert  <eggert@twinsun.com>
105150         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
105151         to avoid spurious warnings like "AC_RUN_IFELSE was called before
105152         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
105154 2003-09-17  Paul Eggert  <eggert@twinsun.com>
105156         * gnulib-tool: Use "test -h", not "test -L", for portability
105157         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
105158         (tags_regexp): Remove, since \| doesn't conform to POSIX.
105159         (sed_extract_prog): Issue s commands one-by-one, rather than
105160         using \| in one s command.
105162 2003-09-16  Paul Eggert  <eggert@twinsun.com>
105164         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
105165         input error, instead of returning NULL the next time we are called
105166         (and therefore losing track of errno).
105168 2003-09-16  Bruno Haible  <bruno@clisp.org>
105170         * gnulib-tool (func_create_testdir): Warn about duplicated
105171         dependencies.
105173 2003-09-15  Paul Eggert  <eggert@twinsun.com>
105175         * modules/argmatch, modules/fatal, modules/obstack,
105176         modules/xalloc, modules/xgethostname: Sort dependencies by
105177         importance, not alphabetically.
105179 2003-09-15  Paul Eggert  <eggert@twinsun.com>
105181         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
105182         fails, so that the caller gets the proper errno.
105184         * lib/readutmp.c (read_utmp): Likewise.
105185         Check for fstat error.  Close stream and free storage
105186         when failing.
105188 2003-09-14  Karl Berry  <karl@gnu.org>
105190         * config/srclist.txt (strdup.c): disable for c89 changes.
105192 2003-09-14  Jim Meyering  <jim@meyering.net>
105194         * lib/getloadavg.c: Correct cpp indentation.
105195         * lib/strdup.c: Likewise.
105196         * lib/vasnprintf.c: Likewise.
105198 2003-09-14  Bruno Haible  <bruno@clisp.org>
105200         * modules/fwriteerror: New file.
105201         * MODULES.html.sh (func_all_modules): Add fwriteerror.
105203 2003-09-14  Bruno Haible  <bruno@clisp.org>
105205         * lib/fwriteerror.h: New file.
105206         * lib/fwriteerror.c: New file.
105208 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105210         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
105211         modules/xgethostname, modules/xalloc: Depend on exit.
105213 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105215         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
105217         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
105218         and AC_MINIX, too, so that their extensions are available.
105220         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
105221         This macro has been superseded by gl_BACKUPFILE.
105223         More patches to assume C89 or better.
105225         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
105227         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
105228         unconditionally.
105229         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
105230         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
105231         Include <string.h>, <stdlib.h> unconditionally.
105232         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
105233         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
105234         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
105235         headers or for string.h.
105236         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
105237         or strtoul.
105239         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
105240         headers.
105241         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
105242         * m4/userspec.m4 (gl_USERSPEC): Likewise.
105243         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
105244         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
105245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
105247         memcpy, memset.
105248         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
105249         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
105250         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
105251         strtol.
105252         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
105253         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
105254         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
105255         strtoul.
105257 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105259         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
105260         * lib/obstack.c [!defined _LIBC]: Likewise.
105261         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
105262         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
105263         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
105265         More changes to assume C89 or better.
105267         * lib/error.c (error_tail): Assume vprintf.
105269         * lib/argmatch.c (getenv): Remove decl.
105270         * lib/progreloc.c (get_full_program_name): Define via prototype.
105271         * lib/setenv.c (clearenv): Likewise.
105272         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
105273         needed.
105274         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
105275         (malloc, memcpy): Remove decls.
105276         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
105277         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
105278         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
105279         (memcpy): Remove macro.
105280         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
105281         (__P): Remove.  All uses removed.
105282         (PTR): Remove.  All uses changed to void *.
105283         (CHAR_BIT, NULL): Remove.
105284         (spaces, zeros, memset_space, memset_zero)
105285         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
105286         Remove.
105287         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
105288         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
105289         Define with prototype.
105290         Remove now-unnecessary prototype decl.
105291         (extra_args_spec): Assume ANSI C.  All uses changed.
105292         (extra_args_spec_iso): Remove.
105293         (my_strftime, emacs_strftimeu): Define via prototype.
105294         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
105295         unconditionally.
105296         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
105297         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
105298         (strtoul, strtol): Remove decls.
105299         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
105300         LONG_MAX): Remove.
105301         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
105302         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
105303         (LOCALE_PARAM_PROTO): New macro.
105304         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
105305         (INTERNAL (strtol), strtol): Define with a prototype.
105306         (PARAMS): Remove.  All uses removed.
105307         * lib/tempname.c: Include <string.h> unconditionally.
105308         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
105309         * lib/xgethostname.c (main): Define with a prototype.
105310         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
105311         Include <stdlib.h> unconditionally.
105312         (calloc, malloc, realloc, free): Remove decls.
105313         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
105314         Include <stdlib.h> unconditionally.  Sort include file names.
105315         (strtod): Remove.
105316         (xstrtod): Define with a prototype.
105317         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
105318         (strtol, strtoul): Remove decls.
105320 2003-09-11  Paul Eggert  <eggert@twinsun.com>
105322         More patches to assume C89 or better.
105323         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
105324         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
105325         string.h, memchr, STDC_HEADERS.
105327 2003-09-11  Paul Eggert  <eggert@twinsun.com>
105329         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
105330         Include <stdlib.h>, <string.h> unconditionally.
105331         Remove now-unnecessary cast to char *.
105332         * lib/strnlen.c: Include <string.h> unconditionally.
105333         * lib/yesno.c (yesno): Define with a prototype.
105335 2003-09-11  Bruno Haible  <bruno@clisp.org>
105337         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
105339 2003-09-10  Jim Meyering  <jim@meyering.net>
105341         * lib/error.c: Correct indentation of cpp directives.
105343 2003-09-10  Bruno Haible  <bruno@clisp.org>
105345         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
105346         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
105347         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
105348         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
105349         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
105350         <stdlib.h> and <string.h> checks.
105351         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
105352         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
105354 2003-09-10  Bruno Haible  <bruno@clisp.org>
105356         * lib/strcspn.c: Include <string.h> unconditionally.
105357         * lib/strpbrk.c: Include <string.h> unconditionally.
105358         * lib/strstr.c: Include <string.h> unconditionally.
105359         * lib/unicodeio.c: Include <string.h> unconditionally.
105360         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
105361         * lib/unsetenv.c: Likewise.
105362         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
105363         * lib/yesno.c: Include <stdlib.h> unconditionally.
105364         (rpmatch): Add prototype.
105366 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105368         More patches to assume C89 or better.
105369         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
105370         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
105371         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
105372         or for string.h.
105373         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
105374         stdlib.h.
105375         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
105376         C headers.
105377         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
105378         string.h.
105379         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
105380         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
105381         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
105382         or for string.h.
105383         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
105384         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
105385         C headers.
105386         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
105387         memcpy.
105388         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
105389         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
105390         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
105391         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
105392         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
105393         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
105394         string.h, free.
105395         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
105396         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
105397         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
105398         C headers, or for string.h.
105399         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
105400         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
105401         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
105402         headers, memory.h, stdlib.h, string.h, strings.h.
105403         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
105404         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
105405         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
105406         strchr.
105407         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
105408         headers, memory.h, string.h.
105409         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
105410         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
105411         free.
105412         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
105413         headers.
105414         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
105415         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
105416         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
105417         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
105418         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
105420 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105422         More K&R removal.
105424         * lib/acosl.c (main): Use a prototype.
105425         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
105426         tanl.c: Likewise.
105428         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
105430         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
105431         (getopt, etopt_long, getopt_long_only, _getopt_internal)
105432         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
105433         with a prototype.
105434         * lib/getopt.c (const): Remove macro.
105435         Include <string.h> unconditionally.
105436         (my_index): Remove; all uses changed to strchr.
105437         (strlen): Remove decl.
105438         (exchange): Remove forward decl; no longer needed.
105439         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
105440         Define with prototype.
105441         * lib/getopt1.c (const): Remove macro.
105442         (getopt_long, getopt_long_only, main): Define with prototype.
105444         * lib/getugroups.c: Include <string.h> unconditionally.
105446         * lib/getusershell.c: Include <stdlib.h> unconditionally.
105447         (getusershell, setusershell, endusershell, readname, main):
105448         Define with prototypes.
105450         * lib/group-member.c: Include group-member.h first.
105451         Include <stdlib.h> unconditionally.
105453         * lib/hard-locale.c: Include hard-locale.h first.
105454         Include <stdlib.h>, <string.h> unconditionally.
105456         * lib/hash.c (free, malloc): Remove decls.
105457         Include <stdlib.h> unconditionally.
105459         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
105460         (getenv): Do not declare.
105462         * lib/idcache.c: Include <string.h> unconditionally.
105464         * lib/long-options.c: Include long-options.h first, to test interface.
105465         Include <stdlib.h> unconditionally.
105467         * lib/makepath.c: Include makepath.h first, to test interface.
105468         Include <stdlib.h> and <string.h> unconditionally.
105470         * lib/linebuffer.c: Include <stdlib.h>.
105471         (free): Remove decl.
105473         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
105474         stddef.h. rpl_malloc returns void *, not char *.
105475         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
105476         prototype.
105478         * lib/md5.h: Include <limits.h> unconditionally.
105479         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
105480         (__P): Remove; all uses removed.
105481         * lib/md5.c: Include "md5.h" first.
105482         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
105483         md5_buffer, md5_process_bytes, md5_process_block):
105484         Define with prototypes.
105485         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
105486         * lib/sha.c: Include "sha.h" first.
105487         Include <stdlib.h>, <string.h> unconditionally.
105489         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
105490         * lib/memcmp.c (__ptr_t): Likewise.
105491         * lib/memrchr.c (__ptr_t): Likewise.
105492         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
105493         Include <string.h> unconditionally.
105494         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
105495         * lib/memchr.c: Include <stdlib.h> unconditionally.
105496         * lib/memchr.c (LONG_MAX): Remove.
105497         * lib/memrchr.c (LONG_MAX): Likewise.
105498         * lib/memchr.c (__memchr): Define via a prototype.
105499         * lib/memrchr.c (__memrchr): Likewise.
105500         * lib/memcmp.c (__P): Remove, and remove all uses.
105501         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
105502         Remove forward decls; no longer needed.
105503         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
105504         Use types required by C89 in prototype.
105506         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
105507         * lib/savedir.c: Likewise.
105508         * lib/mkdir.c (free): Remove decl.
105509         * lib/rmdir.c (rmdir): Define with a prototype.
105510         * lib/savedir.c: Include savedir.h first, to test interface.
105512         * lib/mktime.c (STDC_HEADERS): Remove.
105513         Include <stdlib.h>, <string.h> unconditionally.
105515         * lib/modechange.c: Include <stdlib.h> unconditionally.
105516         (malloc): Remove decl.
105518         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
105519         (free): Remove decl.
105521         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
105522         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
105523         (This type really should be intptr_t, but that's a C99ism.)
105524         (_obstack_memcpy): Remove: all uses changed to memcpy.
105525         Include <string.h> unconditionally.
105526         (struct obstack): Assume __STDC__ for types of members
105527         chunkfun, freefun, extra_arg.
105528         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
105529         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
105530         obstack_begin, obstack_specify_allocation,
105531         obstack_specify_allocation_with_arg, obstack_chunkfun,
105532         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
105533         Remove unprototyped decls and the macros that use them.
105534         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
105535         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
105536         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
105537         (defined __STDC__ && __STDC__)]:
105538         Remove nonprototyped code.
105539         Include <stdlib.h> unconditionally.
105540         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
105541         _obstack_allocated_p, _obstack_free, obstack_free,
105542         _obstack_memory_used, print_and_abort):
105543         Define using prototypes.
105544         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
105545         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
105546         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
105547         obstack_next_free, obstack_object_size, obstack_room) [0]:
105548         Remove unused, unprototyped code.
105550         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
105552         * lib/physmem.c (physmem_total, physmem_available, main): Define
105553         with prototypes.
105555         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
105556         (main): Define with a prototype.
105558         * lib/posixver.c (getenv): Remove decl.
105560         * lib/putenv.c (malloc): Returns void *, not char *.
105561         Include <string.h> unconditionally.
105562         (strchr, memcpy, NULL): Do not define.
105564         * lib/readtokens.c: Include readtokens.h first, to test interface.
105565         Include <stdlib.h>, <string.h> unconditionally.
105566         (init_tokenbuffer): Define with a prototype.
105568         * lib/regex.c (PARAMS): Remove.  All uses removed.
105569         All uses of _RE_ARGS removed, too.
105570         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105571         unconditionally.
105572         (bzero): Assume memset exists.
105573         (memcmp, memcpy, NULL): Remove.
105574         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
105575         char, or assignments to local vars of type signed char.
105576         (init_syntax_once, PREFIX(extract_number_and_incr),
105577         PREFIX(print_partial_compiled_pattern),
105578         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
105579         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
105580         PREFIX(regex_grow_registers), PREFIX(regex_compile),
105581         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
105582         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
105583         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
105584         wcs_compile_range, byte_compile_range, truncate_wchar,
105585         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
105586         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
105587         count_mbs_length, wcs_re_match_2_internal,
105588         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
105589         PREFIX(alt_match_null_string_p),
105590         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
105591         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
105592         regfree, PREFIX(extract_number)): Define with prototype.  Remove
105593         now-unnecessary declaration, if any.
105594         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
105595         regcomp, regexec):
105596         Remove now-unnecessary casts among pointer types.
105597         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
105599         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
105600         (free): Remove decl.
105602         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
105604         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
105605         (free): Remove decl.
105607         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
105608         * lib/xgetcwd.c: Likewise.
105610         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
105611         (free): Remove decl.
105613         * lib/strchrnul.c (strchrnul): Define with a prototype.
105614         Fix bug: c_in was not converted to char before searching.
105616         The following changes are not K&R related:
105618         * lib/group-member.h: Include <sys/types.h>, so that this file is
105619         self-contained.
105620         * lib/makepath.h: Likewise.
105622         * lib/getusershell.c (readname, default_index, line_size, readname):
105623         Use size_t, not int, for sizes.
105624         (readname): If the size overflows, report an error instead of
105625         looping forever.
105627 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105629         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
105630         libc.
105632 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105634         * README: New section: portability guidelines.
105636 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
105638         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
105639         C89 spec.
105641 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
105643         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
105645 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105647         Assume C89 or better; remove K&R cruft.
105648         A few of these changes were first proposed by Derek Robert Price
105649         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
105651         * lib/addext.c: Include <string.h> unconditionally.
105652         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
105653         Don't declare getenv or malloc.
105655         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
105656         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
105657         (NULL): Remove.
105658         (find_stack_direction, alloca): Use prototypes.
105660         * lib/atexit.c (atexit): Define using a prototype.
105662         * lib/basename.c, dirname.c, stripslash.c:
105663         Include <string.h> unconditionally.
105665         * lib/bcopy.c: Include <stddef.h>.
105666         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
105668         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
105670         * lib/error.h (error, error_at_line, error_print_progname)
105671         [! (defined (__STDC__) && __STDC__)]: Remove decls.
105672         * lib/error.c: Include error.h first, to check interface.
105673         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
105674         (VA_START): Remove; all uses changeed to va_start.
105675         (exit, strerror): Remove decls.
105676         (error_print_progname): Prototype uncondionally.
105677         Don't include <errno.h>; no longer needed.
105678         (private_strerror): Remove.
105679         (error_tail): Always define.
105680         (error, error_at_line): Assume C89 or better; always use prototypes.
105681         * lib/fatal.c: Include "fatal.h" first, to test interface.
105682         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
105683         (VA_START): Remove; all uses changed to va_start.
105684         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
105685         this case.
105686         (exit): Remove decl.
105687         (fatal): Prototype unconditionally.  Assume va_start works.
105688         Abort at end, to pacify gcc.
105690         * lib/euidaccess.c (main): Define with a prototype.
105692         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
105694         * lib/exitfail.c: Include <stdlib.h> unconditionally.
105696         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
105697         prototypes.
105698         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
105699         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
105700         (getenv): Remove decl.
105701         (fnmatch): Define using a prototype.
105702         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
105703         (FCT): Define using a prototype.
105705         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
105707         * lib/gethostname.c: Include <stddef.h>.
105708         (gethostname): Define with prototype.  Length is size_t, not int.
105710 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105712         Assume C89 or better; remove K&R cruft.
105713         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
105714         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
105715         string.h, getenv, malloc.
105716         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
105717         headers.
105718         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
105719         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
105720         do not check for strerror.
105721         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
105722         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
105723         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
105724         do not check for doprnt or vprintf.
105725         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
105726         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
105728 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105730         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
105731         getversion.c should have been removed then, but was accidentally
105732         preserved.
105734         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
105735         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
105737 2003-09-08  Karl Berry  <karl@gnu.org>
105739         * config/config.sub, config.guess, srclistvars.sh: update from savannah
105740                 config, forget about prep.
105742         * config/depcomp, missing: update from automake.
105744 2003-09-07  Paul Eggert  <eggert@twinsun.com>
105746         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
105747         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
105749 2003-09-07  Paul Eggert  <eggert@twinsun.com>
105751         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
105752         copy_tm_result.  Bug reported by Simon Josefsson in
105753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
105755 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105757         * m4/time_r.m4: New file.
105758         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
105759         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
105760         is. Check for timegm declaration.
105761         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
105762         Do not check for gmtime_r.
105763         Replace mktime if __mktime_internal does not exist and if mktime
105764         hasn't been replaced already.
105766 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105768         * lib/time_r.c, lib/time_r.h: New files.
105770         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
105771         __localtime_r.
105772         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
105773         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
105775         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
105776         __gmtime_r.
105777         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
105778         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
105779         Include <time_r.h>.
105781         * lib/timegm.c: Switch to glibc implementation, with the following
105782         changes:
105783         [defined HAVE_CONFIG_H]: Include <config.h>.
105784         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
105785         (__mktime_internal) [!defined _LIBC]: New decl.
105786         (__gmtime_r) [!defined _LIBC]: New macro and function.
105787         (timegm): Use a prototype, since gnulib assumes C89.
105788         Do not bother declaring tmp to be const, as it's not really usefu.
105789         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
105790         (timegm): Declare only if HAVE_DECL_TIMEGM.
105792 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105794         * MODULES.html.sh (func_all_modules): Add time_r.
105795         * modules/time_r: New file.
105796         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
105797         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
105799 2003-09-03  Paul Eggert  <eggert@twinsun.com>
105801         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
105802         Bug reported by Lute Kamstra in
105803         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
105805         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
105806         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
105807         course with correspondingly smaller numbers for tomorrow and
105808         yesterday.  From Tadayoshi Funaba.  Originally installed into
105809         sh-utils on 1999-08-07, but the patch got lost (I guess during the
105810         coreutils merge?).
105812 2003-08-31  Simon Josefsson  <jas@extundo.com>
105814         * modules/timegm: New file.
105815         * MODULES.html.sh (func_all_modules): Add timegm.
105817 2003-08-31  Simon Josefsson  <jas@extundo.com>
105819         * m4/timegm.m4: New file.
105821 2003-08-31  Simon Josefsson  <jas@extundo.com>
105823         * lib/timegm.h: New file.
105824         * lib/timegm.c: New file.  Based on
105825         wget-1.8.2/src/http.c:mktime_from_utc.
105827 2003-08-31  Karl Berry  <karl@gnu.org>
105829         * lib/argp.h: update from libc.
105831 2003-08-28  Bruno Haible  <bruno@clisp.org>
105833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
105834         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
105835         followed by '#define fnmatch fnmatch_posix' gives an error.
105837 2003-08-28  Bruno Haible  <bruno@clisp.org>
105839         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
105840         warning on QNX, which defines O_BINARY to 000000.
105842 2003-08-27  Jim Meyering  <jim@meyering.net>
105844         * m4/mkstemp.m4: Require that the system mkstemp be able to create
105845         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
105846         would fail after 32.  Reported by Danny Levinson.  Details here:
105847         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
105849 2003-08-24  Bruno Haible  <bruno@clisp.org>
105851         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
105852         MSVC7 <stdio.h> is included later.
105854 2003-08-22  Simon Josefsson  <jas@extundo.com>
105856         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
105858 2003-08-20  Karl Berry  <karl@gnu.org>
105860         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
105862 2003-08-20  Bruno Haible  <bruno@clisp.org>
105864         * modules/progname: New file.
105865         * MODULES.html.sh (func_all_modules): Add progname.
105867 2003-08-20  Bruno Haible  <bruno@clisp.org>
105869         * lib/progname.h: New file, from GNU gettext.
105870         * lib/progname.c: New file, from GNU gettext.
105871         * lib/progreloc.c: New file, from GNU gettext.
105873 2003-08-19  Jim Meyering  <jim@meyering.net>
105875         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
105876         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
105878 2003-08-19  Bruno Haible  <bruno@clisp.org>
105880         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
105881         more.
105883 2003-08-19  Bruno Haible  <bruno@clisp.org>
105885         * lib/xstrdup.c: Assume <string.h> exists.
105887 2003-08-18  Paul Eggert  <eggert@twinsun.com>
105889         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
105890         in makefile rules.
105892 2003-08-18  Jim Meyering  <jim@meyering.net>
105894         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
105895         * m4/lib-ld.m4: Likewise.
105897 2003-08-18  Jim Meyering  <jim@meyering.net>
105899         * lib/setenv.h: Indent nested cpp directive.
105900         * lib/vasnprintf.c: Remove trailing blanks.
105902 2003-08-17  Simon Josefsson  <jas@extundo.com>
105904         * modules/xstrndup: New file.
105905         * MODULES.html.sh (func_all_modules): Add xstrndup.
105907 2003-08-17  Simon Josefsson  <jas@extundo.com>
105909         * modules/argp: Fix autoconf macro name. Add more dependencies.
105911 2003-08-17  Simon Josefsson  <jas@extundo.com>
105913         * m4/xstrndup.m4: New file.
105915 2003-08-17  Simon Josefsson  <jas@extundo.com>
105917         * m4/argp.m4: New file.
105919 2003-08-17  Simon Josefsson  <jas@extundo.com>
105920             Bruno Haible  <bruno@clisp.org>
105922         * lib/xstrndup.h: New file.
105923         * lib/xstrndup.c: New file.
105925 2003-08-17  Bruno Haible  <bruno@clisp.org>
105927         * modules/strndup (Files, Include): Add lib/strndup.h.
105929 2003-08-17  Bruno Haible  <bruno@clisp.org>
105931         * modules/euidaccess (Files): Add lib/euidaccess.h.
105933 2003-08-17  Bruno Haible  <bruno@clisp.org>
105935         * lib/strndup.h: New file.
105937 2003-08-17  Bruno Haible  <bruno@clisp.org>
105939         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
105940         like AC_GNU_SOURCE.
105941         * modules/extensions (configure.ac): Comment out the invocation of
105942         gl_USE_SYSTEM_EXTENSIONS.
105944 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105946         Merges from coreutils, etc.
105947         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
105948         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
105949         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
105950         fixing a typo.
105951         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
105952         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
105954 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105956         Document merge from coreutils.
105957         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
105958         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
105959         * modules/utime: Add m4/utimes-null.m4.
105961 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105963         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
105964         space, undoing this 2003-08-12 change:
105965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105967 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105969         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
105970         strtoul.c from libc, undoing this 2003-08-12 change:
105971         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105973 2003-08-16  Jim Meyering  <jim@meyering.net>
105975         Merges from coreutils.
105976         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
105977         prefix.  Adjust cache variables similarly.  Create 500 rather than
105978         just 300 files, to exercise bug on Darwin6.5, too.
105979         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
105980         $missing_dir.
105981         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
105982         AM_SYS_POSIX_TERMIOS.
105983         Reported by mkc@mathdogs.com.
105984         Also change use of $am_cv_sys_posix_termios
105985         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
105986         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
105987         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
105988         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
105989         in /proc/mounts until it finds one with matching device number.  This
105990         is unnecessary when the FILE argument *is* a mount point.  No stat call
105991         is necessary in that case.  So, disable the statvfs-testing code on
105992         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
105993         as RedHat bug# 84846.
105994         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105995         to 1MB, so as not to render systems with no stack size limit (e.g.,
105996         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105997         Include <unistd.h>.  On some systems,
105998         it is required for the definition of _SC_PAGESIZE.
106000 2003-08-16  Jim Meyering  <jim@meyering.net>
106002         Merge from coreutils.
106003         * lib/xstrtoimax.c: #else #if -> #elif.
106004         * lib/xstrtoumax.c: Likewise.
106006 2003-08-16  Jim Meyering  <jim@meyering.net>
106008         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
106009         * m4/utimes.m4: Removed.
106010         * m4/utimes-null.m4: Renamed from utimes.m4.
106012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
106013         to 1MB, so as not to render systems with no stack size limit (e.g.,
106014         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
106015         Include <unistd.h>.  On some systems,
106016         it is required for the definition of _SC_PAGESIZE.
106018 2003-08-16  Jim Meyering  <jim@meyering.net>
106019         and Paul Eggert  <eggert@cs.ucla.edu>
106021         Merges from coreutils, etc.
106023         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
106024         using the latest version from cvs.  This avoids problems with #line
106025         directives using a vendor (Sun) compiler.
106026         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
106027         Don't set GETGROUPS_LIB here; now it's
106028         done via getgroups.m4's wrapper function.
106029         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
106030         rather than just in sh-util/configure.in, so that the
106031         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
106032         same.
106033         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
106034         AC_FUNC_GETLOADAVG where to find getloadavg.c.
106035         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
106036         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
106037         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
106038         Remove code that is now done by the newly-required macros.
106039         Append $(EXEEXT) to DF_PROG.
106040         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
106041         Do not invoke or require the following here,
106042         since prereq.m4 or some gnulib .m4 now does this for us:
106043         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
106044         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
106045         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
106046         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
106047         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
106048         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
106049         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
106050         AC_FUNC_OBSTACK.
106051         Do not replace the following functions, as this is now the job
106052         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
106053         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
106054         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
106055         atexit getpass, strdup, getpagesize.
106056         Replace 'raise'.
106057         Do not check for the following functions, as this is now the job
106058         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
106059         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
106060         setregid.
106061         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
106062         Check for sys/sysctl.h.
106063         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
106064         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
106065         of checking for ssize_t ourselves.
106067         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
106068         Require every macro that gnulib/modules/* suggests for us.
106069         (jm_PREREQ_ADDEXT): New macro.
106070         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
106071         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
106073         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
106074         (gl_PHYSMEM): Use it.
106075         Also check for `table' function.
106076         Check for new headers and functions.
106077         Add check for sys/sysmp.h.
106078         With suggestions from Kaveh Ghazi.
106079         Ignore headers that are present but cannot be compiled.  This
106080         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
106081         C 5.4.
106083 2003-08-15  Paul Eggert  <eggert@twinsun.com>
106085         Document merge from coreutils.
106086         * modules/userspec: Depend on posixver.
106087         * modules/strftime: Depend on tzset.
106089 2003-08-15  Paul Eggert  <eggert@twinsun.com>
106091         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
106092         rather than tab, after '#' in shell-script copyright notices.
106093         Suggested by Bruno Haible.
106095 2003-08-15  Paul Eggert  <eggert@twinsun.com>
106097         * config/srclist-update: Use three spaces, rather than tab, after '#'
106098         in shell-script copyright notices.  Suggested by Bruno Haible.
106099         Remove unnecessary parenthesization in regular expression.
106101 2003-08-15  Jim Meyering  <jim@meyering.net>
106103         Merge from coreutils.
106104         * lib/xgethostname.c: Include <stdlib.h>.
106105         (xghostname): Don't exit for anything other than memory-related
106106         failure; just return NULL.
106107         * lib/userspec.c: Include "posixver.h".
106108         (parse_user_spec): Accept `.' as a separator only
106109         in pre-POSIX-200112 mode.
106110         * lib/strtoimax.c: Use #elif rather than #else #if.
106111         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
106112         Remove function, now that we can rely on a working tzset function.
106113         [!_LIBC]: Ensure that the required autoconf test has been run.
106114         [!defined _NL_CURRENT && HAVE_STRFTIME]:
106115         Use underlying_strftime for %r.
106116         * lib/sha.c: Merge in some clean-up and optimization changes from
106117         glibc.
106118         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
106119         Ensure that it is a multiple of 64.
106120         Rearrange loop exit tests so as to avoid performing an
106121         additional fread after encountering an error or EOF.
106122         * lib/realloc.c: Update copyright date.
106124 2003-08-15  Jim Meyering  <jim@meyering.net>
106125         and Paul Eggert  <eggert@twinsun.com>
106127         Merge from coreutils.
106128         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
106129         member but strut utmpx does not.  Needed for AIX 4.3.3.
106130         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
106132 2003-08-15  Jim Meyering  <jim@meyering.net>
106133         and Paul Eggert  <eggert@cs.ucla.edu>
106135         Merges from coreutils, etc.
106136         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
106137         Require gl_FUNC_TZSET_CLOBBER.
106138         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
106139         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
106140         members.
106142 2003-08-14  Paul Eggert  <eggert@twinsun.com>
106144         Help the merge from coreutils.
106145         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
106146         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
106147         * m4/tzset.m4: Use it too.
106149 2003-08-14  Paul Eggert  <eggert@twinsun.com>
106151         * modules/tzset: New file.
106153 2003-08-14  Jim Meyering  <jim@meyering.net>
106155         Merges from coreutils.
106156         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
106157         variable names, rather than @FNMATCH_H@.
106158         * modules/alloca: Likewise for $(ALLOCA_H).
106160         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
106161         the three copies of the literal target, `fnmatch.h'.
106162         * modules/alloca (alloca.h): Likewise.
106164 2003-08-14  Jim Meyering  <jim@meyering.net>
106166         Merge from coreutils.
106167         * m4/tzset.m4: New file.
106168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
106169         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
106170         otherwise, AIX 5.1 systems would end up using the latter.
106171         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
106172         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
106173         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
106174         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
106176 2003-08-14  Jim Meyering  <jim@meyering.net>
106178         Merge from coreutils.
106179         * lib/obstack.h: Whitespace changes.
106180         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
106181         and xcalloc return values.
106182         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
106183         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
106184         hang on OSF/1 5.1 for DIR on both local and remote file systems.
106185         Reported by (and fix confirmed by) Nelson H. F. Beebe.
106186         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
106187         error from mntctl.
106188         Use mntctl's return value to drive the entry-processing loop, since
106189         we can't rely on the value of the vmt_length member in the last
106190         entry.  On some systems doing so could result in exhausting
106191         virtual memory.  Based in part on a patch from Mike Jetzer.
106193 2003-08-14  Jim Meyering  <jim@meyering.net>
106194         and Paul Eggert  <eggert@twinsun.com>
106196         Merges from coreutils, plus other fixes.
106197         * lib/physmem.c: Merge in portability changes from gcc/libiberty
106198         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
106199         for credits and details.  Thanks to Kaveh Ghazi for helping
106200         to keep these files in sync.
106201         (ARRAY_SIZE): Define it.
106202         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
106203         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
106204         (memcasecmp): Don't assume size_t fits in unsigned int.
106205         Remove casts and duplicate code.
106206         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
106207         (memcpy): Remove definition.
106208         Merge in some clean-up and optimization changes from glibc.
106209         [BLOCKSIZE]: Move definition to top of file.
106210         Ensure that it is a multiple of 64.
106211         Rearrange loop exit tests so as to avoid performing an
106212         additional fread after encountering an error or EOF.
106213         * lib/md5.h (md5_uintptr): Define.
106214         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
106215         return to the initial working directory.  Preserve errno
106216         for caller.
106217         * lib/idcache.c: Include "xalloc.h".
106218         (xmalloc, xrealloc): Remove decls.
106219         (getuser): Remove casts no longer required in C89.
106220         * lib/human.c: Include stdio.h, for sprintf.
106221         * lib/group-member.c: Include "xalloc.h".
106222         (xmalloc, xrealloc): Remove decls.
106223         (get_group_info): Remove casts no longer required in C89.
106224         * lib/getusershell.c (readname): Remove casts no longer required in
106225         C89.
106226         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
106227         * lib/getline.c: Whitespace fix, from coreutils.
106229 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106231         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
106232         Check for isascii.
106234         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
106235         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
106236         Undo previous (whitespace-only) change.
106238 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106240         * lib/exclude.c: Include <ctype.h>
106241         (IN_CTYPE_DOMAIN): New macro.
106242         (is_space): New fn.
106243         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
106244         and empty lines.
106246         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
106247         Undo previous (whitespace-only) change.
106249 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106251         * config/srclist-update: Change update back to the old behavior,
106252         leaving whitespace alone.  Use one 'sed' command rather than a
106253         pipeline.
106254         (fixlicense): Now a variable, not a function.
106255         (remove_trailing_blanks): Remove.
106256         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
106257         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
106258         Undo previous (whitespace-only) change.
106260 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106262         Merge from coreutils.
106263         * modules/euidaccess: Add lib_SOURCES, include for new
106264         file euidaccess.h
106266 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106268         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
106269         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
106270         Normalize leading white space and remove trailing white space.
106272         Merge from coreutils
106273         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
106275         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
106276         0.12.1.  These files are now being upgraded automatically by
106277         ../config/srclist-update.
106279 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106281         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
106282         Normalize leading white space and remove trailing white space.
106283         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
106284         notice, as per ../config/srclist-update.
106286         Merge from coreutils.
106287         * lib/euidaccess.h: New file.
106288         * lib/euidaccess.c: Include it.
106289         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
106290         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
106291         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
106293 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106295         * config/srclist-update: Add copyright notice.
106296         (remove_id_lines, remove_trailing_blanks): New constants.
106297         (fixfile): Use them to normalize spacing a bit in copied files.
106298         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
106299         Normalize leading white space and remove trailing white space.
106301         * config/texinfo.tex: Sync with texinfo.
106303         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
106304         strtoul.c from libc, to merge coreutils whitespace changes.
106306         * config/srclist.txt: Get the following m4 files from gettext:
106307         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
106308         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
106309         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
106310         wint_t.m4.
106312 2003-08-12  Karl Berry  <karl@gnu.org>
106314         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
106315         been made.
106317 2003-08-11  Paul Eggert  <eggert@twinsun.com>
106319         * modules/gnu-source, m4/gnu-source.m4:
106320         Remove; we're assuming Autoconf 2.54 or later now.
106321         Suggested by Bruno Haible.
106322         * MODULES.html.sh (func_all_modules): Remove gnu-source.
106324 2003-08-11  Bruno Haible  <bruno@clisp.org>
106326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
106328 2003-08-11  Bruno Haible  <bruno@clisp.org>
106330         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
106331         (vasnprintf): Use it instead of wcslen.
106333 2003-08-11  Bruno Haible  <bruno@clisp.org>
106335         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
106336         value to ensure that _Bool promotes to int. Use #define for _Bool when
106337         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
106339 2003-08-10  Karl Berry  <karl@gnu.org>
106341         * lib/regex.h: update from libc (whitespace fix).
106343 2003-08-09  Paul Eggert  <eggert@twinsun.com>
106345         Merge some files from coreutils.  These changes were
106346         originally made by Jim Meyering.
106347         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
106348         many older Unixes require this.
106349         * lib/alloca.c (alloca): Remove cast to argument of free;
106350         no longer needed in C89.
106351         * lib/alloca_.h, regex.h: Fix white space to match
106352         what GNU indent does.
106354 2003-08-09  Paul Eggert  <eggert@twinsun.com>
106356         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
106357         apparently Emacs's Unicode mode got confused before my 2003-08-05
106358         checkin.
106360 2003-08-08  Paul Eggert  <eggert@twinsun.com>
106362         * m4/extensions.m4: New file.
106363         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
106364         Require gl_USE_SYSTEM_EXTENSIONS.
106365         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
106366         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
106368 2003-08-08  Paul Eggert  <eggert@twinsun.com>
106370         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
106371         * modules/extensions, modules/gnu-source: New files.
106372         * modules/timespec, modules/unlocked-io: Depend on extensions.
106374 2003-08-07  Paul Eggert  <eggert@twinsun.com>
106376         * modules/restrict: New file.
106377         * MODULES.html.sh (func_all_modules): Add restrict.
106378         * modules/regex: Depend on restrict.
106380 2003-08-07  Paul Eggert  <eggert@twinsun.com>
106382         * m4/restrict.m4: New file.
106383         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
106385 2003-08-07  Bruno Haible  <bruno@clisp.org>
106387         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
106388         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
106390 2003-08-07  Bruno Haible  <bruno@clisp.org>
106392         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
106393         makes the module 'getndelim2' compatible with the module 'getline'.
106395 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106397         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
106398         byte with "\201" to avoid glitches when editing that source file
106399         with multi-gnome-terminal.
106401 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106403         * lib/bumpalloc.h: Remove.
106405 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106407         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
106408         * modules/bumpalloc: Remove.
106410 2003-08-04  Paul Eggert  <eggert@twinsun.com>
106412         * lib/getloadavg.c: Change copyright notice and spacing to conform to
106413         GNU coding style.
106415         Merge from coreutils.
106416         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
106417         1. From glibc.
106418         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
106419         from Karl Berry, implemented by Jim Meyering.
106420         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
106421         from Dmitry V. Levin.
106422         Remove anachronistic cast of xrealloc.
106423         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
106424         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
106425         type. Otherwise, it wouldn't compile with at least /bin/cc on
106426         ymp-cray-unicos9.0.2.X.
106427         Combine two mostly-identical uses of alloca into one.
106428         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
106430 2003-08-04  Dave Love  <d.love@dl.ac.uk>
106432         [From Emacs.]
106434         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
106435         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
106436         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
106437         obsolete NLIST_NAME_UNION.
106438         [__GNU__]: Undef BSD and FSCALE.
106439         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
106441 2003-08-03  Paul Eggert  <eggert@twinsun.com>
106443         * lib/stdbool_.h (_Bool): Make it signed char, instead of
106444         an enum type, so that it's guaranteed to promote to int.  See:
106445         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
106447 2003-08-03  Karl Berry  <karl@gnu.org>
106449         * config/depcomp: update from automake.
106451 2003-07-31  Paul Eggert  <eggert@twinsun.com>
106453         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
106454         (strerror): Don't assume that a printable int fits in 14 bytes.
106456 2003-07-31  Bruno Haible  <bruno@clisp.org>
106458         * modules/getpass-gnu: New file.
106459         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
106461 2003-07-31  Bruno Haible  <bruno@clisp.org>
106463         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
106465 2003-07-24  Karl Berry  <karl@gnu.org>
106467         * config/missing: update from automake.
106469 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
106470             Bruno Haible  <bruno@clisp.org>
106472         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
106473         * lib/getline.c (getline, getdelim): Likewise.
106474         Remove _GNU_SOURCE define; now it's defined in config.h through
106475         m4/getline.m4.
106477 2003-07-23  Karl Berry  <karl@gnu.org>
106479         * config/config.sub: update from prep.
106481 2003-07-22  Paul Eggert  <eggert@twinsun.com>
106483         * modules/xalloc (Depends-on): Add exitfail.
106484         * modules/xmemcoll: Likewise.
106486 2003-07-22  Paul Eggert  <eggert@twinsun.com>
106488         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
106489         over-parenthesization in macros.
106491         Sync with coreutils.
106493         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
106494         required by C99.
106496         Use `exit_failure' for xalloc and xmemcoll instead of their own
106497         private exit-failure variables.
106498         * lib/xalloc.h (xalloc_exit_failure): Remove.
106499         * lib/xmalloc.c: Likewise.  Include exitfail.h.
106500         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
106501         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
106502         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
106503         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
106505 2003-07-20  Jim Meyering  <jim@meyering.net>
106507         * modules/closeout (Depends-on): Add exitfail.
106508         Suggestion from Bruno Haible.
106510 2003-07-19  Karl Berry  <karl@gnu.org>
106512         * config/config.sub: update from prep.
106514 2003-07-18  Paul Eggert  <eggert@twinsun.com>
106516         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
106517         Remove.
106518         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
106519         to test that it can stand by itself.  Include "exitfail.h".
106520         Clients should set exit_failure instead.
106521         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
106523 2003-07-18  Bruno Haible  <bruno@clisp.org>
106525         * modules/getndelim2: New file.
106526         * modules/getline: Share files with module getndelim2.
106527         * modules/getnline: Depend on getndelim2 instead of sharing files with
106528         it. Add getnline.c to lib_SOURCES.
106529         * MODULES.html.sh (func_all_modules): Add getndelim2.
106531 2003-07-18  Bruno Haible  <bruno@clisp.org>
106533         * m4/getndelim2.m4: New file.
106534         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
106535         invoke gl_PREREQ_GETNDELIM2.
106536         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
106537         gl_PREREQ_GETNDELIM2.
106538         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
106539         gl_GETNDELIM2.
106541 2003-07-18  Bruno Haible  <bruno@clisp.org>
106543         * lib/getndelim2.h: New file.
106544         * lib/getndelim2.c: Make into a module of its own. Include config.h,
106545         getndelim2.h.
106546         (getndelim2): Make non-static. Change return type to ssize_t.
106547         * lib/getline.h: Change argument names.
106548         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
106549         * lib/getnline.c: Include getndelim2.h.
106551 2003-07-18  Andreas Schwab  <schwab@suse.de>
106553         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
106555 2003-07-17  Karl Berry  <karl@gnu.org>
106557         * config/config.sub: update from prep.
106559 2003-07-17  Bruno Haible  <bruno@clisp.org>
106561         * modules/getnline: New file.
106562         * modules/getline: Add lib/getndelim2.c to source file list.
106563         * MODULES.html.sh (func_all_modules): Add getnline.
106565 2003-07-17  Bruno Haible  <bruno@clisp.org>
106567         * m4/getnline.m4: New file.
106569 2003-07-17  Bruno Haible  <bruno@clisp.org>
106571         * m4/Makefile.am.in: Remove file.
106572         * m4/Makefile.am: Remove file.
106573         * m4/Makefile.in: Remove file.
106575 2003-07-17  Bruno Haible  <bruno@clisp.org>
106577         * lib/getnline.h: New file.
106578         * lib/getnline.c: New file.
106579         * lib/getndelim2.c: New file, extracted from getline.c.
106580         (getndelim2): Renamed from getdelim2, with added nmax argument.
106581         * lib/getline.c: Include getndelim2.c.
106582         (getdelim2): Moved out to getndelim2.c.
106583         (getline, getdelim): Update.
106585 2003-07-17  Bruno Haible  <bruno@clisp.org>
106587         * lib/Makefile.am: Remove file.
106588         * lib/Makefile.in: Remove file.
106590 2003-07-17  Bruno Haible  <bruno@clisp.org>
106592         * configure.in: Remove file.
106593         * Makefile.in: Remove file.
106595 2003-07-17  Bruno Haible  <bruno@clisp.org>
106597         * MODULES.html.sh: Put the </BODY> right before </HTML>.
106599 2003-07-16  Karl Berry  <karl@gnu.org>
106601         * config/srclist-update: was running fixlicense twice, which caused
106602                 texinfo.tex to be nullified for some reason.  Simplify,
106603                 $gplsrc is no longer needed as far as I can see?
106605 2003-07-16  Jim Meyering  <jim@meyering.net>
106607         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
106609 2003-07-15  Paul Eggert  <eggert@twinsun.com>
106611         * config/srclist.txt: Get the following files from gettext-runtime/intl
106612         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
106613         ref-del.sin.  From Bruno Haible.
106614         * config/srclist-update (fixfile): Change grep pattern again, since the
106615         previous fix didn't work (there was another trailing $).  Use
106616         '[$]' to escape the $s.
106618 2003-07-15  Karl Berry  <karl@gnu.org>
106620         * lib/vasnprintf.c: update from gettext.
106622 2003-07-15  Karl Berry  <karl@gnu.org>
106624         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
106625         gets expanded when surrounded by '$'.
106627 2003-07-15  Jim Meyering  <jim@meyering.net>
106629         * modules/save-cwd: Don't depend on error.  From Derek Price.
106631 2003-07-15  Jim Meyering  <jim@meyering.net>
106633         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
106635 2003-07-14  Simon Josefsson  <jas@extundo.com>
106637         * modules/mempcpy: New file.
106638         * MODULES.html.sh (func_all_modules): Add mempcpy.
106640 2003-07-14  Simon Josefsson  <jas@extundo.com>
106642         * m4/mempcpy.m4: New file.
106644 2003-07-14  Simon Josefsson  <jas@extundo.com>
106646         * lib/mempcpy.h: New file.
106647         * lib/mempcpy.c: New file.
106649 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106651         * modules/getdate, modules/posixtm: Depend on mktime.
106653 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106655         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
106656         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
106657         unicodeio.c, unicodeio.h, unlocked-io.h:
106658         Switch from LGPL to GPL.
106660 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106662         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
106663         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
106664         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
106665         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
106666         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
106667         updated automatically by ../config/srclist-update.  This changes
106668         their license from LPGL to GPL.
106670 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106672         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
106673         assumed to refer to the root of the most recent stable gettext version.
106674         * config/srclistvars.sh: Add defaults for eggert.
106675         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
106676         Match "This program" as well as "The program".  This is needed
106677         for gettext.
106679 2003-07-14  Jim Meyering  <jim@meyering.net>
106681         Don't emit diagnostics.  Let callers do that.
106682         * lib/save-cwd.c: Don't include "error.h".
106683         (save_cwd): Don't call error.  Ensure that errno is valid
106684         when returning nonzero.
106686         * lib/save-cwd.h (restore_cwd): Update prototype.
106687         * lib/save-cwd.c (restore_cwd): Remove two parameters.
106688         Simplify.  Don't call error upon failure.  Let callers do that.
106689         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
106690         when auditing is enabled.  But don't bother updating the #if.
106692 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
106694         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
106695         it breaks C++ compilation.
106696         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
106698 2003-07-10  Simon Josefsson  <jas@extundo.com>
106700         * modules/strchrnul (Makefile.am): Add strchrnul.h.
106702 2003-07-10  Jim Meyering  <jim@meyering.net>
106704         * m4/clock_time.m4: Remove trailing blank.
106705         * m4/intmax_t.m4: Likewise.
106707 2003-07-10  Jim Meyering  <jim@meyering.net>
106709         * lib/vasnprintf.c: Remove trailing blanks.
106710         Make cpp indentation consistent.
106712 2003-07-09  Paul Eggert  <eggert@twinsun.com>
106714         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
106715         posixver.c, strftime.c, strnlen.c, strverscmp.c:
106716         Switch from LGPL to GPL.
106718 2003-07-09  Paul Eggert  <eggert@twinsun.com>
106720         * config/srclist.txt: Sort sublists.  Add
106721         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
106722         that differ from gnulib for one reason or another; we'd like this list
106723         to be smaller but for now let's document what we have.
106725 2003-07-08  Paul Eggert  <eggert@twinsun.com>
106727         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
106728         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
106729         and sweeter "eval x=$x".
106730         * config/srclist.txt: Get lib/argp* from glibc.
106732 2003-07-07  Paul Eggert  <eggert@twinsun.com>
106734         * lib/mktime.c: Fix some boundary cases and remove need for floating
106735         point.
106737         Issue a compile-time diagnostic if time_t is floating point, or if
106738         two's complement arithmetic is not in effect, or if arithmetic
106739         right shift does not propagate the sign.  These assumptions were
106740         all in the original code but they weren't checked.
106742         (TIME_T_MIDPOINT, verify): New macros.
106743         (__isleap): Remove; it has integer overflow problems.
106744         (leapyear): New function, without those problems.
106745         (ydhms_tm_diff): Remove; splitting into two parts.
106746         (ydhms_diff): New function, containing the arithmetic part of
106747         the old ydhms_tm_diff function.  Issue a compile-time
106748         diagnostic if we are not using C99 integer division.
106749         Avoid casts when possible.
106750         (guess_time_tm): New function, containing the checking part of
106751         the old ydhms_tm_diff function.  Return the new value, rather than
106752         the difference between it and the old.  Accept a new argument T
106753         so that *T specifies the old value.  Check for overflow in the result.
106755         (__mktime_internal): Use a time_t offset, not a long int offset.
106756         This undoes the 2003-06-04 change, which is no longer needed now
106757         that we have better overflow checking.
106758         (localtime_offset): Likewise.
106760         (__mktime_internal): Avoid harmful overflow on hosts where time_t
106761         and long are 64-bit but int is only 32-bit.
106762         (ydhms_diff): Use long int to store year1 and yday1.
106763         Issue a compile-time diagnostic if long int is not wide enough.
106765         (__mktime_internal): Use long int to store adjusted year and yday.
106766         Use plain C rather than preprocessor commands, if that doesn't
106767         affect efficiency.
106768         Check for overflow (and try to repair) after each probe
106769         rather than checking only at the very end.  This avoids some bugs
106770         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
106771         does not equal GMT offset at maximum time).
106772         Use integer to check for overflow rather than floating point; this
106773         is more portable to non-IEEE hosts, and is a tad faster.
106774         When we detect that we are oscillating between two values,
106775         don't check whether tm_isdst has the requested value, since
106776         we already know the answer.  When tm_isdst has the wrong value,
106777         use a different heuristic to find the right one, based on the
106778         extreme values actually observed in practice in tz2003a,
106779         rather than the (overly optimistic) "previous 3 calendar quarters".
106781         (not_equal_tm, print_tm, check_result): Use "const T" rather than
106782         "T const" to accommodate glibc style.
106783         (check_result): Use less-confusing report format.  "long" -> "long int.
106784         (main): Likewise.
106785         Don't loop if the iteration overflows time_t.
106786         Allow a negative step in the iteration.
106788 2003-07-06  Karl Berry  <karl@gnu.org>
106790         * config/depcomp: update from automake.
106791         * config/config.sub: update from prep.
106793 2003-07-03  Karl Berry  <karl@gnu.org>
106795         * config/config.guess: update from prep.
106797 2003-07-01  Paul Eggert  <eggert@twinsun.com>
106799         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
106800         xreadlink.c now includes it unconditionally.
106802 2003-07-01  Paul Eggert  <eggert@twinsun.com>
106804         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
106805         having it depend on HAVE_SYS_TYPES_H.
106807 2003-07-01  Bruno Haible  <bruno@clisp.org>
106809         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
106810         <sys/types.h> should be sufficient.
106811         Reported by Paul Eggert.
106813 2003-06-26  Karl Berry  <karl@gnu.org>
106815         * config/depcomp: update from automake.
106817 2003-06-26  Bruno Haible  <bruno@clisp.org>
106819         * modules/human: Depend on module stdbool.
106821 2003-06-25  Bruno Haible  <bruno@clisp.org>
106823         * modules/readlink: New file.
106824         * modules/xreadlink: Depend on it.
106825         * MODULES.html.sh (func_all_modules): Add readlink.
106827 2003-06-25  Bruno Haible  <bruno@clisp.org>
106829         * m4/readlink.m4: New file.
106831 2003-06-25  Bruno Haible  <bruno@clisp.org>
106833         * lib/readlink.c: New file.
106835 2003-06-22  Karl Berry  <karl@gnu.org>
106837         * config/srclist.txt: update mkinstalldirs from automake.
106838         * config/mkinstalldirs: update.
106840 2003-06-22  Bruno Haible  <bruno@clisp.org>
106842         Portability to mingw32.
106843         * m4/ssize_t.m4: New file, from GNU gettext.
106844         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
106845         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
106847 2003-06-22  Bruno Haible  <bruno@clisp.org>
106849         * modules/safe-read: Add m4/ssize_t.m4.
106850         * modules/xreadlink: Add m4/ssize_t.m4.
106852 2003-06-20  Bruno Haible  <bruno@clisp.org>
106854         Assume C89, so PARAMS isn't needed.
106855         * lib/unicodeio.h (PARAMS): Remove.
106856         * lib/unicodeio.c: Don't use PARAMS.
106858 2003-06-18  Karl Berry  <karl@gnu.org>
106860         * config/config.{guess,sub}: update from prep.
106862 2003-06-18  Jim Meyering  <jim@meyering.net>
106864         Merge changes from coreutils.
106865         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
106866         Remove explicit declarations of xmalloc and realloc.
106867         Include xalloc.h.
106868         (read_utmp): Remove anachronistic cast of xmalloc.
106870 2003-06-17  Paul Eggert  <eggert@twinsun.com>
106872         Assume C89, so PARAMS isn't needed.
106873         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
106874         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
106875         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
106876         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
106877         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
106878         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
106879         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
106880         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
106881         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
106882         lib/xstrtod.h, lib/xstrtol.h: Likewise.
106883         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
106884         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
106885         no longer needed. Anyway, config.h should always be included before any
106886         other file.
106888 2003-06-11  Simon Josefsson  <jas@extundo.com>
106890         * modules/sysexits: New file.
106891         * MODULES.html.sh (func_all_modules): Add sysexits.
106893 2003-06-11  Simon Josefsson  <jas@extundo.com>
106895         * lib/sysexit_.h: New file.
106897 2003-06-11  Derek Price  <derek@ximbiot.com>
106899         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
106900         necessary.
106902 2003-06-11  Bruno Haible  <bruno@clisp.org>
106904         * m4/sysexits.m4: New file.
106906 2003-06-10  Simon Josefsson  <jas@extundo.com>
106908         * lib/argp.h: New file, from glibc.
106909         * lib/argp-ba.c: New file, from glibc.
106910         * lib/argp-eexst.c: New file, from glibc.
106911         * lib/argp-fmtstream.c: New file, from glibc.
106912         * lib/argp-fmtstream.h: New file, from glibc.
106913         * lib/argp-fs-xinl.c: New file, from glibc.
106914         * lib/argp-help.c: New file, from glibc.
106915         * lib/argp-namefrob.h: New file, from glibc.
106916         * lib/argp-parse.c: New file, from glibc.
106917         * lib/argp-pv.c: New file, from glibc.
106918         * lib/argp-pvh.c: New file, from glibc.
106919         * lib/argp-xinl.c: New file, from glibc.
106921 2003-06-10  Simon Josefsson  <jas@extundo.com>
106923         * modules/strchrnul: New file.
106925 2003-06-10  Simon Josefsson  <jas@extundo.com>
106927         * modules/argp: New file.
106929 2003-06-10  Simon Josefsson  <jas@extundo.com>
106931         * m4/strchrnul.m4: New file.
106933 2003-06-10  Simon Josefsson  <jas@extundo.com>
106935         * lib/strchrnul.h: New file.
106936         * lib/strchrnul.c: New file.
106938 2003-06-10  Bruno Haible  <bruno@clisp.org>
106940         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
106942 2003-06-07  Karl Berry  <karl@gnu.org>
106944         * config/config.{guess,sub}: update from prep.
106946 2003-06-07  Jim Meyering  <jim@meyering.net>
106948         * modules/strtod: Use $(...) notation, not @...@ for
106949         AC_REPLACE'd variables.
106950         * modules/localcharset: Likewise.
106952 2003-06-07  Jim Meyering  <jim@meyering.net>
106954         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
106955         in place of my name in the copyright comment.
106956         Remove definition and uses of __P.
106958         From coreutils.
106959         * lib/stat.c: Don't declare xmalloc explicitly.
106960         Instead, include "xalloc.h".
106961         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
106962         xrealloc, and xcalloc return values.
106963         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
106964         Improve comment.
106965         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
106967 2003-06-07  Bruno Haible  <bruno@clisp.org>
106969         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
106970         avoid AC_CONFIG_LINKS.
106971         * modules/fnmatch (Makefile.am): Use explicit creation rule for
106972         fnmatch.h, to avoid AC_CONFIG_LINKS.
106973         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
106975 2003-06-07  Bruno Haible  <bruno@clisp.org>
106977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
106978         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
106979         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106980         directory.
106981         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
106982         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106983         directory.
106985 2003-06-06  Jim Meyering  <jim@meyering.net>
106987         Merge from coreutils.
106988         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
106989         Consolidate declarations and initializations of *_base* locals.
106991         Merge from coreutils.
106992         This avoids a core dump on systems without GNU putenv,
106993         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
106994         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
106995         (unsetenv): New static function, from GNU libc.
106996         (rpl_putenv): Use it.
106998         * lib/modechange.c: Remove trailing blanks.
107000         Merge from coreutils.
107001         * lib/fsusage.c: Remove declaration of statfs.
107002         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
107004         * lib/posixtm.c: Include <stdbool.h> unconditionally.
107006 2003-06-06  Jim Meyering  <jim@meyering.net>
107008         * lib/stdbool_.h: Renamed from stdbool.h.in.
107010 2003-06-06  Jim Meyering  <jim@meyering.net>
107011             Bruno Haible  <bruno@clisp.org>
107013         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
107014         Adjust Makefile.am snippet not to redirect directly to target.
107015         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
107017 2003-06-05  Paul Eggert  <eggert@twinsun.com>
107019         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
107020         mismatch, look in future quarters as well as past.  This fixes a
107021         bug when processing fall-backwards gaps immediately after a long
107022         period of daylight-saving time.
107024         * lib/mktime.c: Assume freestanding C89 or better.
107025         (HAVE_LIMITS_H): Remove.  Assume it's 1.
107026         (__P): Remove; not used.
107027         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
107028         (mktime, not_equal_tm, print_tm, check_result,
107029         main): Use prototypes.  Use const * where appropriate.
107030         (main): Fix typo in testing code that uncovered by above changes.
107031         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
107033 2003-06-04  Paul Eggert  <eggert@twinsun.com>
107035         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
107036         locale.h, localeconv.  This merges changes from coreutils.
107038         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
107039         It can be removed after the next Autoconf is released.
107040         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
107041         needed.
107043 2003-06-04  Paul Eggert  <eggert@twinsun.com>
107045         * lib/mktime.c: Fix Debian bug 177940
107046         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
107047         (localtime_offset): Now long int, not time_t, because we want it
107048         to be guaranteed to be signed.  All uses changed.
107049         (__mktime_internal): If overflow would occur when adding offset,
107050         don't add it.
107052         Merge 'human' changes from coreutils.  Rewrite to support
107053         locale-specific notations like thousands separators.
107054         * lib/human.c: Simplify authorship notice.
107055         Include human.h immediately after config.h.
107056         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
107057         <limits.h>: Do not include, since human.h does.
107058         (SIZE_MAX, UINTMAX_MAX): New macros.
107059         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
107060         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
107061         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
107062         (power_letter): Renamed from suffixes.
107063         (generate_suffix_backwards): Remove.
107064         (adjust_value): Now takes int style (because of human.h changes)
107065         and long double value (for greater precision on some platforms).
107066         (group_number): New function.
107067         (human_readable): Use it.  Use integer options, not enum.
107068         Put the options before the sizes in the arg list.
107069         Support all the new options.
107070         The old human_readable function has been removed;
107071         use inttostr.h instead.
107072         (human_readable, default_block_size, humblock):
107073         Use uintmax_t, not int, for block sizes.
107074         (human_readable_inexact, block_size_types): Remove.
107075         (block_size_opts): New constant.
107076         (human_options): Renamed from human_block_size, with new signature
107077         that allows block sizes up to UINTMAX_MAX.  All callers changed.
107078         * lib/human.h: Add copyright and authorship notice.
107079         Include <limits.h> and <stdbool.h> unconditionally.
107080         (PARAMS): Remove.  All uses removed.
107081         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
107082         (enum human_inexact_style): Remove tag; now a nameless enum.
107083         (human_floor, human_ceiling, human_round_to_even): Now have
107084         values 2, 0, 1 rather than -1, 1, 0.
107085         (human_group_digits, human_suppress_point_zero, human_autoscale,
107086         human_base_1024, human_SI, human_B): New constants.
107087         (human_readable_inexact, human_block_size): Remove.
107088         (human_readable): Size args are now uintmax_t, not int.
107089         (human_options): New decl.
107091         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
107092         unnecessary now that we assume C89 or better.  This change
107093         imported from coreutils.
107095         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
107096         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
107097         in the 2003-05-30 sync from glibc.
107099         .h files should stand alone, but we shouldn't include <sys/types.h>
107100         if we can get away with just <stddef.h>.
107102         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
107103         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
107104         rather than <sys/types.h>, as we merely need size_t.
107105         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
107106         to get size_t.
107107         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
107108         Include <stdio.h>, to get FILE.
107109         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
107110         memcasecmp.h has included <stddef.h> and all we need is size_t.
107111         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
107112         our interface, instead of including <sys/types.h>
107114 2003-06-04  Paul Eggert  <eggert@twinsun.com>
107116         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
107117         now, as glibc mktime is buggy on non-glibc systems.
107119 2003-06-03  Karl Berry  <karl@gnu.org>
107121         * config/config.sub: update from prep.
107123 2003-06-02  Paul Eggert  <eggert@twinsun.com>
107125         [from coreutils]
107126         Fix some minor time-related bugs with POSIX time arguments.
107127         Some valid time stamps were being rejected (notably -1, and
107128         time stamps before 1900 on 64-bit hosts).  And some invalid
107129         time stamps were being accepted, e.g. September 31.
107131         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
107132         that we can return (time_t) -1 successfully.
107133         * lib/posixtm.c: Likewise.
107134         [HAVE_STDBOOL_H]: Include <stdbool.h>.
107135         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
107136         (t): Remove static var.
107137         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
107138         of static var.  All uses changed.
107139         (year): Do not reject years before 1900; they can occur with
107140         64-bit time_t.
107141         (posix_time_parse): Do not check for out-of-range components;
107142         that is now the caller's responsibility, since our checks were
107143         only approximations.
107144         (posixtime): Use mktime to check for out-of-range components,
107145         since it knows them exactly.
107146         If mktime returns (time_t) -1, check whether an error actually occurred
107147         by invoking localtime on -1.
107148         (main) [TEST_POSIXTIME]: Check for input data errors, and report
107149         posixtime failures better.
107150         Improve the test data (in comments only).
107152 2003-06-02  Karl Berry  <karl@gnu.org>
107154         * config/mkinstalldirs (version): new variable.
107155         (--version): new option.
107156         (usage): improve message.
107158 2003-05-30  Karl Berry  <karl@gnu.org>
107160         * lib/mktime.c: update from libc.
107162 2003-05-30  Bruno Haible  <bruno@clisp.org>
107164         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
107165         * config/config.rpath: Upgrade to gettext-0.12.1.
107167 2003-05-30  Bruno Haible  <bruno@clisp.org>
107169         * m4/gettext.m4: Upgrade to gettext-0.12.1.
107170         * m4/nls.m4: New file, from gettext-0.12.1.
107171         * m4/po.m4: New file, from gettext-0.12.1.
107172         * m4/progtest.m4: Upgrade to gettext-0.12.1.
107174 2003-05-30  Bruno Haible  <bruno@clisp.org>
107176         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
107177         * lib/localcharset.h: Likewise.
107178         * lib/localcharset.c: Likewise.
107180 2003-05-29  Karl Berry  <karl@gnu.org>
107182         * config/config.rpath: update from gettext.
107184 2003-05-28  Paul Eggert  <eggert@twinsun.com>
107186         Assume the headers required for C89 freestanding compilers.
107187         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
107188         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
107189         * m4/human.m4 (gl_HUMAN): Likewise.
107190         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
107191         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
107192         * m4/userspec.m4 (gl_USERSPEC): Likewise.
107193         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
107194         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107195         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
107197 2003-05-28  Paul Eggert  <eggert@twinsun.com>
107199         Assume the headers required for C89 freestanding compilers.
107200         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
107201         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
107202         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
107203         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
107204         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
107205         define, since <limits.h> is guaranteed to do that.
107206         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
107207         * lib/exclude.c: Include <stdbool.h> unconditionally.
107208         * lib/tempname.c: Include <stddef.h> unconditionally.
107209         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
107210         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
107211         <stddef.h> does that.
107212         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
107213         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
107214         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
107215         needed.
107216         * lib/xstrtol.c: Likewise.
107217         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
107218         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
107220         * lib/addext.c (addext): Use assignment rather than cast, to avoid
107221         warnings on some platforms.
107223         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
107224         arbitrarily.
107226 2003-05-26  Jim Meyering  <jim@meyering.net>
107228         Merge in a change from coreutils:
107229         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
107230         that is guaranteed to be `no'.  Use `no_such_member' to indicate
107231         that condition, rather than `-1' which is slightly misleading.
107232         Change the name of the cache variable to have the gl_ prefix.
107233         Prompted by a patch from Richard Dawe for DJGPP.
107235 2003-05-24  Karl Berry  <karl@gnu.org>
107237         * config/config.guess: update from prep.
107239 2003-05-22  Karl Berry  <karl@gnu.org>
107241         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
107243 2003-05-20  Karl Berry  <karl@gnu.org>
107245         * config/config.guess: update from prep.
107247 2003-05-18  Karl Berry  <karl@gnu.org>
107249         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
107250         might actually be set by the user.
107252         * config/depcomp, install-sh, mdate-sh: update from automake.
107254 2003-05-17  Bruno Haible  <bruno@clisp.org>
107256         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
107257         invalid expansion for AC_EGREP_CPP.
107258         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
107259         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
107260         Suggested by Akim Demaille <akim@epita.fr> in
107261         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
107263 2003-05-12  Jim Meyering  <jim@meyering.net>
107265         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
107266         the space-padded-by-default conversion specifiers, %e, %k, %l.
107268 2003-05-12  Bruno Haible  <bruno@clisp.org>
107270         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
107271         the string is longer than 4 KB.
107273 2003-05-11  Karl Berry  <karl@gnu.org>
107275         * config/config.{guess,sub}: update from prep.
107277 2003-05-09  Bruno Haible  <bruno@clisp.org>
107279         * modules/error: Add m4/strerror_r.m4 to file list.
107281 2003-05-03  Bruno Haible  <bruno@clisp.org>
107283         Upgrade to Unicode-4.0.
107284         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
107285         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
107286         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
107287         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
107288         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
107289         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
107290         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
107291         Change width of U+E0100..U+E01EF from 1 to 0.
107293 2003-04-25  Jim Meyering  <jim@meyering.net>
107295         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
107296         of type size_t, not int.
107298 2003-04-25  Bruno Haible  <bruno@clisp.org>
107300         * lib/copy-file.c: Include <stddef.h>, for size_t.
107302 2003-04-21  Paul Eggert  <eggert@twinsun.com>
107304         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
107305         code which expansion is under static control.  Patch imported from
107306         Akim Demaille's patch to Bison; see
107307         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
107309 2003-04-14  Bruno Haible  <bruno@clisp.org>
107311         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
107313 2003-04-11  Jim Meyering  <jim@meyering.net>
107315         Merge changes from Coreutils.
107317         2003-03-22  Jim Meyering  <jim@meyering.net>
107319         * lib/strftime.c (widen): Cast alloca return value to proper type.
107321         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
107323         From GNU libc.
107324         * lib/strftime.c (my_strftime): Handle very large width
107325         specifications for numeric values correctly.  Improve checks for
107326         overflow.
107328         2003-01-19  Jim Meyering  <jim@meyering.net>
107330         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
107331         definitions.
107332         (nl_get_alt_digit) [! defined my_strftime]: Define.
107333         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
107334         _nl_get_alt_digit and _nl_get_walt_digit.
107336         * lib/strftime.c (my_strftime): Merge in locale-related changes from
107337         libc. These changes have no effect outside of _LIBC.
107339 2003-04-10  Bruno Haible  <bruno@clisp.org>
107341         * modules/findprog: New file.
107342         * MODULES.html.sh (func_all_modules): Add it.
107344 2003-04-10  Bruno Haible  <bruno@clisp.org>
107346         * m4/findprog.m4: New file.
107347         * m4/eaccess.m4: New file.
107349 2003-04-10  Bruno Haible  <bruno@clisp.org>
107351         * lib/findprog.h: New file, from GNU gettext.
107352         * lib/findprog.c: New file, from GNU gettext.
107354 2003-04-05  Jim Meyering  <jim@meyering.net>
107356         Merge changes from Coreutils.
107358         * lib/exclude.h (PARAMS): Remove definition and uses.
107359         * lib/exclude.c: Remove uses of `PARAMS'.
107361         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
107362         Add test-cases for DOS filenames. Declare program_name.
107363         (main): Set up program_name.  Patch by Rich Dawe.
107365         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107366         error from mntctl.
107367         Use mntctl's return value to drive the entry-processing loop, since
107368         we can't rely on the value of the vmt_length member in the last
107369         entry.  On some systems doing so could result in exhausting
107370         virtual memory.  Based in part on a patch from Mike Jetzer.
107372 2003-04-04  Bruno Haible  <bruno@clisp.org>
107374         * modules/linebreak: New file.
107375         * MODULES.html.sh (func_all_modules): Add it.
107377 2003-04-04  Bruno Haible  <bruno@clisp.org>
107379         * m4/linebreak.m4: New file.
107381 2003-04-04  Bruno Haible  <bruno@clisp.org>
107383         * lib/linebreak.h: New file, from GNU gettext.
107384         * lib/linebreak.c: New file, from GNU gettext with slight
107385         modifications.
107386         * lib/lbrkprop.h: New file, from GNU gettext.
107388 2003-04-03  Bruno Haible  <bruno@clisp.org>
107390         * modules/utf8-ucs4: New file.
107391         * modules/utf16-ucs4: New file.
107392         * modules/ucs4-utf8: New file.
107393         * modules/ucs4-utf16: New file.
107394         * MODULES.html.sh (func_all_modules): Add them.
107396 2003-04-03  Bruno Haible  <bruno@clisp.org>
107398         * m4/utf-ucs4.m4: New file.
107399         * m4/ucs4-utf.m4: New file.
107401 2003-04-03  Bruno Haible  <bruno@clisp.org>
107403         * lib/utf8-ucs4.h: New file, from GNU gettext.
107404         * lib/utf16-ucs4.h: New file, from GNU gettext.
107405         * lib/ucs4-utf8.h: New file, from GNU gettext.
107406         * lib/ucs4-utf16.h: New file, from GNU gettext.
107408 2003-04-02  Bruno Haible  <bruno@clisp.org>
107410         * modules/binary-io: New file.
107411         * MODULES.html.sh (func_all_modules): Add it.
107413 2003-04-02  Bruno Haible  <bruno@clisp.org>
107415         * lib/binary-io.h: New file, from GNU gettext.
107417 2003-04-01  Bruno Haible  <bruno@clisp.org>
107419         * modules/pathname: New file.
107420         * MODULES.html.sh (func_all_modules): Add it.
107422 2003-04-01  Bruno Haible  <bruno@clisp.org>
107424         * lib/pathname.h: New file, from GNU gettext.
107425         * lib/concatpath.c: New file, from GNU gettext.
107427 2003-03-30  Bruno Haible  <bruno@clisp.org>
107429         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
107431 2003-03-30  Bruno Haible  <bruno@clisp.org>
107433         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
107434         function chown() doesn't exist.
107436 2003-03-28  Bruno Haible  <bruno@clisp.org>
107438         * modules/copy-file: New file.
107439         * MODULES.html.sh (func_all_modules): Add it.
107441 2003-03-28  Bruno Haible  <bruno@clisp.org>
107443         * m4/copy-file.m4: New file.
107445 2003-03-28  Bruno Haible  <bruno@clisp.org>
107447         * lib/copy-file.h: New file, from GNU gettext.
107448         * lib/copy-file.c: New file, from GNU gettext.
107450 2003-03-18  Jim Meyering  <jim@meyering.net>
107452         * lib/quote.c (quote_n): Fix typo in comment.
107454 2003-03-18  Bruno Haible  <bruno@clisp.org>
107456         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
107457         checking.
107458         * m4/onceonly_2_57.m4: Likewise.
107460 2003-03-17  Bruno Haible  <bruno@clisp.org>
107462         * m4/onceonly.m4: Require autoconf 2.54 or newer.
107463         (m4_quote): Remove macro.
107464         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
107466 2003-03-14  Jim Meyering  <jim@meyering.net>
107468         Merge changes from Coreutils.
107469         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
107470         to be const, in order to avoid warnings.
107471         (obstack_room): Likewise.
107472         (obstack_empty_p): Likewise.
107474 2003-03-14  Bruno Haible  <bruno@clisp.org>
107476         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
107477         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
107479 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107481         Merge changes from Bison.
107482         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
107483         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
107484         when compiling Bison 1.875's `bitset bset = obstack_alloc
107485         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
107486         * lib/hash.c: Include <stdbool.h> unconditionally.
107488 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107490         * m4/onceonly.m4 (m4_quote): New macro.
107491         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
107492         Quote AC_FOREACH variable-expansions properly.
107494 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107496         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
107498 2003-03-09  Paul Eggert  <eggert@twinsun.com>
107500         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
107501         Reported by Bruce Becker; see:
107502         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
107504 2003-03-03  Paul Eggert  <eggert@twinsun.com>
107505             Bruno Haible  <bruno@clisp.org>
107507         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
107508         Reported by John Hughes, see
107509         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
107511 2003-02-20  Bruno Haible  <bruno@clisp.org>
107513         * MODULES.html.sh (func_all_modules): Add poll.
107515 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107517         * modules/poll: New file.
107519 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107521         * lib/poll_.h: New file.
107522         * lib/poll.c: New file.
107524 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107526         * m4/poll.m4: New file.
107528 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107530         * modules/mathl: New file.
107532 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107534         * lib/mathl.h: New file.
107535         * lib/acosl.c: New file.
107536         * lib/asinl.c: New file.
107537         * lib/atanl.c: New file.
107538         * lib/ceill.c: New file.
107539         * lib/cosl.c: New file.
107540         * lib/expl.c: New file.
107541         * lib/floorl.c: New file.
107542         * lib/frexpl.c: New file.
107543         * lib/ldexpl.c: New file.
107544         * lib/logl.c: New file.
107545         * lib/sincosl.c: New file.
107546         * lib/sinl.c: New file.
107547         * lib/sqrtl.c: New file.
107548         * lib/tanl.c: New file.
107549         * lib/trigl.c: New file.
107550         * lib/trigl.h: New file.
107552 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107554         * m4/mathl.m4: New file.
107556 2003-02-18  Bruno Haible  <bruno@clisp.org>
107558         * MODULES.html.sh (func_all_modules): Add mathl.
107560 2003-02-17  Bruno Haible  <bruno@clisp.org>
107562         * modules/mkdtemp: New module.
107563         * MODULES.html.sh (func_all_modules): Add it.
107565 2003-02-17  Bruno Haible  <bruno@clisp.org>
107567         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
107569 2003-02-17  Bruno Haible  <bruno@clisp.org>
107571         * lib/mkdtemp.h: New file, from GNU gettext.
107572         * lib/mkdtemp.c: New file, from GNU gettext.
107574 2003-02-02  Jim Meyering  <jim@meyering.net>
107576         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
107577         e.g. glibc-2.2.93.
107579 2003-01-31  Bruno Haible  <bruno@clisp.org>
107581         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
107582         'rpl_rename'.
107583         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
107584         'rpl_strnlen'.
107585         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
107586         'rpl_strtod'.
107587         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
107588         'rpl_utime'.
107590 2003-01-31  Bruno Haible  <bruno@clisp.org>
107592         * lib/rename.c: #undef rename before defining rpl_rename.
107593         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
107595 2003-01-30  Bruno Haible  <bruno@clisp.org>
107597         * modules/vasnprintf, modules/vasprintf: New modules.
107598         * MODULES.html.sh (func_all_modules): Add them.
107600 2003-01-30  Bruno Haible  <bruno@clisp.org>
107602         * m4/signed.m4: New file, from GNU gettext.
107603         * m4/longdouble.m4: New file, from GNU gettext.
107604         * m4/wchar_t.m4: New file, from GNU gettext.
107605         * m4/wint_t.m4: New file, from GNU gettext.
107606         * m4/vasnprintf.m4: New file.
107607         * m4/vasprintf.m4: New file.
107609 2003-01-30  Bruno Haible  <bruno@clisp.org>
107611         * lib/printf-args.h: New file, from GNU gettext.
107612         * lib/printf-args.c: New file, from GNU gettext.
107613         * lib/printf-parse.h: New file, from GNU gettext.
107614         * lib/printf-parse.c: New file, from GNU gettext.
107615         * lib/vasnprintf.h: New file, from GNU gettext.
107616         * lib/vasnprintf.c: New file, from GNU gettext.
107617         * lib/asnprintf.c: New file, from GNU gettext.
107618         * lib/vasprintf.h: New file, from GNU gettext with modifications.
107619         * lib/vasprintf.c: New file, from GNU gettext.
107620         * lib/asprintf.c: New file, from GNU gettext.
107622 2003-01-29  Bruno Haible  <bruno@clisp.org>
107624         * modules/stpncpy: New module.
107625         * MODULES.html.sh (func_all_modules): Add it.
107627 2003-01-29  Bruno Haible  <bruno@clisp.org>
107629         * m4/stpncpy.m4: New file.
107631 2003-01-29  Bruno Haible  <bruno@clisp.org>
107633         * lib/stpncpy.h: New file, from GNU gettext with modifications.
107634         * lib/stpncpy.c: New file, from GNU gettext with modifications.
107636 2003-01-28  Bruno Haible  <bruno@clisp.org>
107638         * modules/c-ctype: New module.
107639         * MODULES.html.sh (func_all_modules): Add it.
107641 2003-01-28  Bruno Haible  <bruno@clisp.org>
107643         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
107644         Paul Eggert.
107645         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
107646         Paul Eggert.
107648 2003-01-27  Bruno Haible  <bruno@clisp.org>
107650         * modules/xsetenv: New module.
107651         * MODULES.html.sh (func_all_modules): Add it.
107653 2003-01-27  Bruno Haible  <bruno@clisp.org>
107655         * lib/xsetenv.h: New file, from GNU gettext.
107656         * lib/xsetenv.c: New file, from GNU gettext.
107658 2003-01-23  Jim Meyering  <jim@meyering.net>
107660         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
107661         from working on systems without dirfd (at least Irix and OSF1/Tru64).
107663 2003-01-23  Bruno Haible  <bruno@clisp.org>
107665         * modules/minmax: New module.
107666         * MODULES.html.sh (func_all_modules): Add it.
107668 2003-01-23  Bruno Haible  <bruno@clisp.org>
107670         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
107671         Eggert.
107673 2003-01-22  Bruno Haible  <bruno@clisp.org>
107675         * modules/exit: New module.
107676         * MODULES.html.sh (func_all_modules): Add it.
107678 2003-01-22  Bruno Haible  <bruno@clisp.org>
107680         * lib/exit.h: New file, from GNU gettext.
107682 2003-01-19  Bruno Haible  <bruno@clisp.org>
107684         * gnulib-tool: Recognize option --extract-maintainer.
107685         (func_get_maintainer): New function.
107686         * modules/*: Add Maintainer entry.
107688 2003-01-16  Jim Meyering  <jim@meyering.net>
107690         * m4/regex.m4: The `regex' struct is both input and output.
107691         Initialize it before each use.  Patch by Tim Waugh.
107693 2003-01-16  Bruno Haible  <bruno@clisp.org>
107695         * MODULES.html.sh: Add a table of contents. Add the module name as
107696         leftmost column. Add hyperlinks.
107698 2003-01-15  Bruno Haible  <bruno@clisp.org>
107700         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
107702 2003-01-15  Bruno Haible  <bruno@clisp.org>
107704         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
107705         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
107706         suffix.
107708 2003-01-15  Bruno Haible  <bruno@clisp.org>
107710         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
107712 2003-01-15  Bruno Haible  <bruno@clisp.org>
107714         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
107715         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
107717 2003-01-14  Jim Meyering  <jim@meyering.net>
107719         * lib/same.c (same_name): Tweak a comment.
107721 2003-01-14  Bruno Haible  <bruno@clisp.org>
107723         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
107724         when a string comparison is sufficient.
107726 2003-01-14  Bruno Haible  <bruno@clisp.org>
107728         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
107729         'unsigned int'.
107731 2003-01-14  Bruno Haible  <bruno@clisp.org>
107733         * lib/hash-pjw.c: Add comment about low quality of this function.
107735 2003-01-13  Bruno Haible  <bruno@clisp.org>
107737         * modules/stpcpy: Distribute lib/stpcpy.h.
107738         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
107740 2003-01-13  Bruno Haible  <bruno@clisp.org>
107742         * modules/*: Add a description.
107743         * modules/strpbrk: Fix Makefile.am snippet.
107744         * modules/strtoimax: Fix dependencies.
107745         * modules/strtoumax: Likewise.
107747 2003-01-13  Bruno Haible  <bruno@clisp.org>
107749         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
107750         * modules/alloca (Makefile.am): All object files depend on alloca.h.
107751         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
107753 2003-01-13  Bruno Haible  <bruno@clisp.org>
107755         * gnulib-tool (func_create_testdir): Store config/* files in the main
107756         directory.
107757         * config.rpath: Move to ...
107758         * config/config.rpath: ... here.
107759         * modules/gettext: Contains config/config.rpath, not config.rpath.
107760         * modules/iconv: Likewise.
107762 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107764         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107765         to avoid collisions with libcurses and libreadline.
107767         * m4/getstr.m4: Remove.
107768         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
107770 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107772         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107773         to avoid collisions with libcurses and libreadline.
107775         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
107776         * lib/getstr.h, getstr.c: Remove.
107777         * lib/getline.c: Include "getline.h", to check interface.
107778         Move body of old getstr.c here: this defines MIN_CHUNK and
107779         declares getdelim2, which is renamed from getstr.
107780         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
107782         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
107783         All uses changed.
107784         * lib/linebuffer.h: Likewise.
107785         (readline): Remove backward-compatibility macro.
107787 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107789         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107790         to avoid collisions with libcurses and libreadline.
107791         * getstr: Remove.
107792         * MODULES.html.sh: Remove getstr.
107793         * modules/getline: Depend on unlocked-io, not getstr.
107795 2003-01-12  Jim Meyering  <jim@meyering.net>
107797         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
107799 2003-01-10  Bruno Haible  <bruno@clisp.org>
107801         * modules/alloca: Change Makefile.am requirements. Simplify Include
107802         requirements. Add lib/alloca_.h to file list.
107804 2003-01-10  Bruno Haible  <bruno@clisp.org>
107806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
107808 2003-01-10  Bruno Haible  <bruno@clisp.org>
107810         * lib/alloca_.h: New file.
107811         * lib/getdate.y: Unconditionally include alloca.h.
107812         * lib/makepath.c: Likewise.
107813         * lib/setenv.c: Likewise.
107814         * lib/userspec.c: Likewise.
107816 2003-01-09  Karl Berry  <karl@gnu.org>
107818         * MODULES.html.sh: include `dirname $0` in PATH, to find
107819         gnulib-tool.
107821 2003-01-09  Bruno Haible  <bruno@clisp.org>
107823         * modules/stdbool: Change configure.ac, Makefile.am requirements.
107824         Simplify Include requirements. Add lib/stdbool.h.in to file list.
107826 2003-01-09  Bruno Haible  <bruno@clisp.org>
107828         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
107830 2003-01-09  Bruno Haible  <bruno@clisp.org>
107832         * lib/stdbool.h.in: New file.
107834 2003-01-09  Bruno Haible  <bruno@clisp.org>
107836         * gnulib-tool (func_all_modules): Ignore files ending in ~.
107837         * MODULES.html.sh: Likewise.
107839 2003-01-08  Jim Meyering  <jim@meyering.net>
107841         * lib/full-write.c: Undefine and define-away `const' after inclusion
107842         of errno.h, not before.  Suggestion from Bruno Haible.
107844 2003-01-08  Bruno Haible  <bruno@clisp.org>
107846         * modules/full-read: Depend on full-write.
107848 2003-01-08  Bruno Haible  <bruno@clisp.org>
107850         * lib/safe-read.c: Include specification header first, to ensure its
107851         selfcontainedness.
107852         * lib/full-write.c: Likewise.
107854 2003-01-07  Jim Meyering  <jim@meyering.net>
107856         * lib/full-write.c: Rework so that it may serve to define full_read,
107857         too.
107858         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
107860 2003-01-07  Bruno Haible  <bruno@clisp.org>
107862         * lib/strtoimax.c: Include <stdint.h> as an alternative to
107863         <inttypes.h>.
107864         * lib/xstrtol.h: Likewise.
107865         * lib/xstrtoimax.c: Likewise.
107866         * lib/xstrtoumax.c: Likewise.
107867         * lib/human.h: Likewise.
107869         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
107870         on systems that have <inttypes.h> but not <stdint.h>.
107872 2003-01-07  Bruno Haible  <bruno@clisp.org>
107874         * MODULES.html.sh: Add copyright notice.
107875         (missed_files): Omit CVS directory entries.
107876         (func_module): Make it work with sed-3.02.
107877         * MODULES.txt: Remove file.
107879 2003-01-06  Jim Meyering  <jim@meyering.net>
107881         * lib/version-etc.c: Update year in translatable copyright string.
107883 2003-01-03  Karl Berry  <karl@gnu.org>
107885         * config/config.{guess,sub}: update from prep.
107887 2003-01-02  Karl Berry  <karl@gnu.org>
107889         * doc/COPYING.DOC: belatedly updated to 1.2.
107891 2003-01-01  Karl Berry  <karl@gnu.org>
107893         * gnulib-tool (func_verify_module): report module name $module in
107894         error message, not $1.
107895         * gnulib-tool (create-testdir): don't complain if destdir couldn't
107896         be created, only if it doesn't exist.
107897         * gnulib-tool (last_checkin_date): don't expand the $Date here.
107899 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107901         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
107903 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107905         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
107906         memcmp if strcoll doesn't work.
107908 2002-12-31  Bruno Haible  <bruno@clisp.org>
107910         * lib/utime.c (utime_null): No need to call ftruncate if the file was
107911         nonempty.
107913 2002-12-31  Bruno Haible  <bruno@clisp.org>
107915         * lib/memcoll.c (STRCOLL): New macro.
107916         (memcoll): Use it.
107918 2002-12-31  Bruno Haible  <bruno@clisp.org>
107920         * lib/localcharset.h: New file.
107921         * lib/localcharset.c: Include it.
107922         * lib/unicodeio.c: Likewise.
107924 2002-12-31  Bruno Haible  <bruno@clisp.org>
107926         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
107927         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
107929 2002-12-31  Bruno Haible  <bruno@clisp.org>
107931         * lib/getline.h: Include <stddef.h>, for size_t.
107933         * lib/unicodeio.h: Include <stddef.h>, for size_t.
107934         * lib/unicodeio.c: Don't include <stddef.h>.
107936 2002-12-31  Bruno Haible  <bruno@clisp.org>
107938         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
107939         HAVE_TM_ZONE.
107941 2002-12-24  Karl Berry  <karl@gnu.org>
107943         * config/config.guess: update from prep.
107945 2002-12-24  Bruno Haible  <bruno@clisp.org>
107947         General infrasructure.
107948         * m4/README: Rewritten.
107949         * m4/onceonly.m4: New file.
107950         * m4/onceonly_2_57.m4: New file.
107952         Module atexit.
107953         * m4/atexit.m4: New file.
107955         Module strtod.
107956         * m4/strtod.m4: New file.
107958         Module strtol.
107959         * m4/strtol.m4: New file.
107961         Module strtoul.
107962         * m4/strtoul.m4: New file.
107964         Module memchr.
107965         * m4/memchr.m4: New file.
107967         Module memcmp.
107968         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
107969         (jm_FUNC_MEMCMP): Invoke it.
107971         Module memcpy.
107972         * m4/memcpy.m4: New file.
107974         Module memmove.
107975         * m4/memmove.m4: New file.
107977         Module memset.
107978         * m4/memset.m4: New file.
107980         Module strcspn.
107981         * m4/strcspn.m4: New file.
107983         Module strpbrk.
107984         * m4/strpbrk.m4: New file.
107986         Module strstr.
107987         * m4/strstr.m4: New file.
107989         Module strerror.
107990         * m4/strerror.m4: New file.
107992         Module mktime.
107993         * m4/mktime.m4: Renamed from jm-mktime.m4.
107994         (gl_PREREQ_MKTIME): New macro.
107995         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
107997         Module malloc.
107998         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
107999         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
108000         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
108002         Module realloc.
108003         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
108004         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
108005         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
108007         Module strftime.
108008         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
108009         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
108010         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
108011         gl_TM_GMTOFF.
108012         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
108014         Module xalloc.
108015         * m4/xalloc.m4: New file.
108017         Module alloca.
108018         * m4/alloca.m4: New file.
108020         Module putenv.
108021         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
108022         (jm_FUNC_PUTENV): Invoke it.
108024         Module setenv.
108025         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
108026         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
108027         when invoked twice.
108028         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
108029         gt_FUNC_SETENV.
108031         Module memrchr.
108032         * m4/memrchr.m4: New file.
108034         Module stpcpy.
108035         * m4/stpcpy.m4: New file.
108037         Module strcase.
108038         * m4/strcase.m4: New file.
108040         Module strdup.
108041         * m4/strdup.m4: New file.
108043         Module strnlen.
108044         * m4/strnlen.m4: New file.
108046         Module strndup.
108047         * m4/strndup.m4: New file.
108049         Module xstrtod.
108050         * m4/xstrtod.m4: New file.
108052         Module xstrtol.
108053         * m4/xstrtol.m4: New file.
108055         Module getdate.
108056         * m4/getdate.m4: New file.
108058         Module unlocked-io.
108059         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
108060         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
108061         * m4/jm-glibc-io.m4n: Remove file.
108063         Module long-options.
108064         * m4/long-options.m4: New file.
108066         Module md5.
108067         * m4/md5.m4: New file.
108069         Module sha.
108070         * m4/sha.m4: New file.
108072         Module getstr.
108073         * m4/getstr.m4: New file.
108075         Module getline.
108076         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
108077         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
108078         <sys/types.h>, for size_t. Use the function name gnu_getline, not
108079         simply getline. Infoke gl_PREREQ_GETLINE.
108081         Module obstack.
108082         * m4/obstack.m4: New file.
108084         Module hash.
108085         * m4/hash.m4: New file.
108087         Module readtokens.
108088         * m4/readtokens.m4: New file.
108090         Module strverscmp.
108091         * m4/strverscmp.m4: New file.
108093         Module stdbool.
108094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
108095         OSF/1.
108097         Module strtoll.
108098         * m4/strtoll.m4: New file.
108100         Module strtoull.
108101         * m4/strtoull.m4: New file.
108103         Module strtoimax.
108104         * m4/strtoimax.m4: New file.
108106         Module strtoumax.
108107         * m4/strtoumax.m4: New file.
108109         Module xstrtoimax.
108110         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
108111         jm_AC_PREREQ_XSTRTOIMAX.
108112         Moved the strtol prerequisites to strtol.m4.
108113         Moved the strtoll prerequisites to strtoll.m4.
108114         Moved the strtoimax prerequisites to strtoimax.m4.
108116         Module xstrtoumax.
108117         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
108118         jm_AC_PREREQ_XSTRTOUMAX.
108119         Moved the strtoul prerequisites to strtoul.m4.
108120         Moved the strtoull prerequisites to strtoull.m4.
108121         Moved the strtoumax prerequisites to strtoumax.m4.
108123         Module chown.
108124         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
108125         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
108127         Module dup2.
108128         * m4/dup2.m4: New file.
108130         Module ftruncate.
108131         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
108132         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
108134         Module getgroups.
108135         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
108136         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
108138         Module gettimeofday.
108139         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
108140         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
108141         gl_PREREQ_GETTIMEOFDAY.
108143         Module mkdir.
108144         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
108145         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
108147         Module mkstemp.
108148         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
108149         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
108150         jm_AC_TYPE_UINTMAX_T.
108151         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
108153         Module stat.
108154         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
108155         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
108157         Module lstat.
108158         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
108159         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
108161         Module timespec.
108162         * m4/timespec.m4 (gl_TIMESPEC): New macro.
108163         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
108164         * m4/st_mtim.m4: Indentation.
108166         Module nanosleep.
108167         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
108168         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
108169         gl_PREREQ_NANOSLEEP.
108171         Module regex.
108172         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
108173         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
108174         (gl_REGEX): New macro.
108176         Module rename.
108177         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
108178         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
108180         Module rmdir.
108181         * m4/rmdir.m4: New file.
108183         Module utime.
108184         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
108185         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
108186         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
108188         Module dirname.
108189         * m4/dirname.m4: New file.
108191         Module getopt.
108192         * m4/getopt.m4: New file.
108194         Module unistd-safer.
108195         * m4/unistd-safer.m4: New file.
108197         Module fnmatch.
108198         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
108199         declaration.
108200         (gl_PREREQ_FNMATCH_EXTRA): New macro.
108201         (gl_FUNC_FNMATCH_POSIX): New macro.
108202         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
108203         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
108204         simply fnmatch.
108206         Module exclude.
108207         * m4/exclude.m4: New file.
108209         Module human.
108210         * m4/human.m4: New file.
108212         Module acl.
108213         * m4/acl.m4: Nop.
108215         Module backupfile.
108216         * m4/backupfile.m4: New file.
108217         * m4/d-ino.m4: Indentation.
108219         Module fsusage.
108220         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
108221         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
108222         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
108224         Module dirfd.
108225         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
108226         requirements.
108228         Module euidaccess.
108229         * m4/euidaccess.m4: New file.
108231         Module file-type.
108232         * m4/file-type.m4: New file.
108234         Module fileblocks.
108235         * m4/fileblocks.m4: New file.
108237         Module filemode.
108238         * m4/filemode.m4: New file.
108240         Module isdir.
108241         * m4/isdir.m4: New file.
108243         Module lchown.
108244         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
108245         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
108247         Module makepath.
108248         * m4/makepath.m4: New file.
108250         Module modechange.
108251         * m4/modechange.m4: New file.
108253         Module mountlist.
108254         * m4/mountlist.m4: New file.
108255         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
108256         Indentation.
108258         Module path-concat.
108259         * m4/path-concat.m4: New file.
108261         Module pathmax.
108262         * m4/pathmax.m4: New file.
108264         Module same.
108265         * m4/same.m4: New file.
108267         Module save-cwd.
108268         * m4/save-cwd.m4: New file.
108270         Module savedir.
108271         * m4/savedir.m4: New file.
108273         Module xgetcwd.
108274         * m4/xgetcwd.m4: New file.
108275         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
108277         Module xreadlink.
108278         * m4/xreadlink.m4: New file.
108280         Module safe-read.
108281         * m4/safe-read.m4: New file.
108283         Module safe-write.
108284         * m4/safe-write.m4: New file.
108286         Module closeout.
108287         * m4/closeout.m4: New file.
108289         Module stdio-safer.
108290         * m4/stdio-safer.m4: New file.
108292         Module getpass.
108293         * m4/getpass.m4: New file.
108295         Module getugroups.
108296         * m4/getugroups.m4: New file.
108298         Module group-member.
108299         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
108300         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
108302         Module idcache.
108303         * m4/idcache.m4: New file.
108305         Module userspec.
108306         * m4/userspec.m4: New file.
108308         Module gettime.
108309         * m4/clock_time.m4: New file.
108310         * m4/gettime.m4: New file.
108312         Module settime.
108313         * m4/settime.m4: New file.
108315         Module posixtm.
108316         * m4/posixtm.m4: New file.
108318         Module gethostname.
108319         * m4/gethostname.m4: New file.
108321         Module canon-host.
108322         * m4/canon-host.m4: New file.
108324         Module gettext.
108325         * m4/codeset.m4: New file, from gettext-0.11.5.
108326         * m4/gettext.m4: New file, from gettext-0.11.5.
108327         * m4/glibc21.m4: New file, from gettext-0.11.5.
108328         * m4/iconv.m4: New file, from gettext-0.11.5.
108329         * m4/intdiv0.m4: New file, from gettext-0.11.5.
108330         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
108331         * m4/inttypes.m4: New file, from gettext-0.11.5.
108332         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
108333         * m4/isc-posix.m4: New file, from gettext-0.11.5.
108334         * m4/lcmessage.m4: New file, from gettext-0.11.5.
108335         * m4/lib-ld.m4: New file, from gettext-0.11.5.
108336         * m4/lib-link.m4: New file, from gettext-0.11.5.
108337         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
108338         * m4/progtest.m4: New file, from gettext-0.11.5.
108339         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
108340         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
108341         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
108343         Module localcharset.
108344         * m4/localcharset.m4: New file.
108346         Module hard-locale.
108347         * m4/hard-locale.m4: New file.
108349         Module mbswidth.
108350         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
108351         onceonly macros.
108352         * m4/mbrtowc.m4: Add comment.
108354         Module memcasecmp.
108355         * m4/memcasecmp.m4: New file.
108357         Module memcoll.
108358         * m4/memcoll.m4: New file.
108360         Module unicodeio.
108361         * m4/unicodeio.m4: New file.
108363         Module rpmatch.
108364         * m4/rpmatch.m4: New file.
108366         Module yesno.
108367         * m4/yesno.m4: New file.
108369         Module exitfail.
108370         * m4/exitfail.m4: New file.
108372         Module c-stack.
108373         * m4/c-stack.m4 (gl_C_STACK): New macro.
108374         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
108376         Module error.
108377         * m4/error.m4 (gl_ERROR): New macro.
108378         (jm_PREREQ_ERROR): Use onceonly macros.
108380         Module fatal.
108381         * m4/fatal.m4: New file.
108383         Module getloadavg.
108384         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
108385         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
108387         Module getpagesize.
108388         * m4/getpagesize.m4: New file.
108390         Module getusershell.
108391         * m4/getusershell.m4: New file.
108393         Module physmem.
108394         * m4/physmem.m4: New file.
108396         Module posixver.
108397         * m4/posixver.m4: New file.
108399         Module quotearg.
108400         * m4/quotearg.m4: New file.
108402         Module quote.
108403         * m4/quote.m4: New file.
108405         Module readutmp.
108406         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
108408         Module sig2str.
108409         * m4/sig2str.m4: New file.
108411         Other.
108412         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
108413         ulonglong.m4.
108414         * m4/intmax_t.m4: New file.
108415         * m4/d-type.m4: Indentation.
108416         * m4/jm-macros.m4: Update.
108417         * m4/prereq.m4 (jm_PREREQ): Update.
108418         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
108419         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
108420         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
108421         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
108422         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
108423         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
108424         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
108425         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
108426         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
108427         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
108428         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
108429         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
108430         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
108431         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
108432         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
108433         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
108434         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
108435         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
108436         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
108438 2002-12-24  Bruno Haible  <bruno@clisp.org>
108440         * MODULES.txt: Update according to m4/ changes.
108442         Module gettext.
108443         * config.rpath: New file, from gettext-0.11.5.
108445         * modules/*: New module descriptions.
108446         * gnulib-tool: New file.
108447         * MODULES.html.sh: New file.
108449 2002-12-21  Karl Berry  <karl@gnu.org>
108451         * doc/fdl.texi: update to version 1.2.
108453 2002-12-19  Karl Berry  <karl@gnu.org>
108455         * config/config.guess: update from prep.
108457 2002-12-18  Bruno Haible  <bruno@clisp.org>
108459         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
108460         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
108462 2002-12-17  Bruno Haible  <bruno@clisp.org>
108464         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
108465         stdlib.h, string.h.
108467 2002-12-17  Bruno Haible  <bruno@clisp.org>
108469         * lib/canon-host.c (strdup): Remove unused declaration.
108471         * lib/fsusage.c: Include full_read.h.
108472         (get_fs_usage): Use full_read instead of safe_read.
108474         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
108476 2002-12-12  Karl Berry  <karl@gnu.org>
108478         * config/config.guess: update from prep.
108480 2002-12-11  Bruno Haible  <bruno@clisp.org>
108482         * m4/setenv.m4: New file, from gettext-0.11.5.
108484 2002-12-11  Bruno Haible  <bruno@clisp.org>
108486         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
108487         not unsetenv().
108488         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
108489         modifications:
108491         2002-12-11  Bruno Haible  <bruno@clisp.org>
108493                 * setenv.c (alloca): Fall back to malloc.
108494                 (freea): New macro.
108495                 (setenv): Use freea() to free memory allocated with alloca().
108497         2002-11-13  Bruno Haible  <bruno@clisp.org>
108499                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
108500                 function declarations.
108501                 * unsetenv.c (unsetenv): Likewise.
108503         2002-03-04  Bruno Haible  <bruno@clisp.org>
108505                 Portability to AIX 4.3.3.
108506                 * unsetenv.c: New file, extracted from setenv.c.
108507                 * setenv.c: Move the unsetenv() function to unsetenv.c.
108509         2001-12-20  Bruno Haible  <bruno@clisp.org>
108511                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
108512                 use malloc instead. For SunOS 4.
108514         2001-12-11  Bruno Haible  <bruno@clisp.org>
108516                 * setenv.c: Declare alloca.
108517                 (compar_fn_t): New typedef.
108518                 (KNOWN_VALUE, STORE_VALUE): Use it.
108520         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
108521         setenv.h.
108523 2002-12-10  Paul Eggert  <eggert@twinsun.com>
108525         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
108526         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
108527         Choose values that are less likely to collide with system fnmatch
108528         options.
108529         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
108530         defined (e.g., a pure POSIX system).
108531         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
108532         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
108534 2002-12-06  Paul Eggert  <eggert@twinsun.com>
108536         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
108537         a pain in practice to deal with generated m4 files.  This change
108538         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
108540         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
108541         and jm-glibc-io.m4, as they are no longer a special case.
108542         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
108543         kludge and the auto-generation stuff.  Check only whether the
108544         functions are declared, not whether they exist, since older hosts
108545         that don't declare the functions can't use the optimization anyway.
108547 2002-12-06  Jim Meyering  <jim@meyering.net>
108549         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
108551         Merge in changes from libc's misc/error.c, in preparation
108552         for the merge of gnulib's changes back into libc.
108554         * lib/error.c (_): Define only if not already defined.
108555         Move definition to follow all #include directives.
108556         Include unlocked-io.h only if !_LIBC.
108557         [_LIBC]: Include <libio/libioP.h>.
108558         [USE_IN_LIBIO]: Include <libio/iolibio.h>
108559         (fflush): Tweak definition to use INTUSE.
108560         (putc): Define.
108562 2002-12-05  Paul Eggert  <eggert@twinsun.com>
108564         * lib/alloca.c [defined emacs]: Include "lisp.h".
108565         (xalloc_die) [defined emacs]: New macro.
108566         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
108567         [! defined emacs]: Include <xalloc.h>.
108568         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
108569         (pointer): Typedef to POINTER_TYPE *.
108570         (malloc): Remove decl; we now always use xmalloc.
108571         (alloca): Use old-style definition, since Emacs needs this.
108572         Check for arithmetic overflow when computing combined size.
108574 2002-12-04  Paul Eggert  <eggert@twinsun.com>
108576         Do not generate unlocked-io.h automatically, since it's easier to
108577         maintain it by hand.
108579         * lib/unlocked-io.h: New file, from GNU diffutils,
108580         but with proper copyright notice and attribution.
108581         * lib/gen-uio: Remove.
108582         * lib/Makefile.am: Add copyright notice.
108583         (libfetish_a_SOURCES): Add unlocked-io.h.
108584         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
108585         (DISTCLEANFILES, io_functions): Remove macros.
108586         (EXTRA_DIST): Remove gen_uio.
108587         (unlocked-io.h): Remove rule.
108589 2002-12-04  Jim Meyering  <jim@meyering.net>
108591         Reflect the fact that stat.c and lstat.c are no longer generated.
108592         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
108593         (DISTCLEANFILES): Likewise.
108594         (EXTRA_DIST): Likewise.
108595         (all_local): Don't depend on stat.c or lstat.c.
108596         (stat.c, lstat.c): Remove rules.
108597         (EXTRA_DIST): Remove xstat.in.
108599         * lib/xstat.in: Remove file.  Contents moved into stat.c.
108600         * lib/stat.c: New file.  Contents mostly from xstat.in.
108601         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
108602         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
108604         * lib/safe-read.c: Rework so that it may serve to define safe_write,
108605         too.
108606         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
108608 2002-12-03  Jim Meyering  <jim@meyering.net>
108610         * lib/safe-read.c, safe-write.c: Change variable names and comments,
108611         but not semantics, to minimize the differences between these two files.
108612         (safe_read): Change comment to mention SAFE_READ_ERROR.
108614         * lib/safe-read.c (IS_EINTR): Define.
108615         (safe_read): Use IS_EINTR in place of in-function cpp directives.
108617 2002-12-02  Jim Meyering  <jim@meyering.net>
108619         * lib/safe-read.c (EINTR): Define.
108620         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
108621         (INT_MAX): Provide fallback.
108622         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
108624         * lib/safe-read.h (SAFE_READ_ERROR): Define.
108626 2002-12-02  Bruno Haible  <bruno@clisp.org>
108628         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
108629         Define, taken from safe-read.c.
108630         (INT_MAX): Provide fallback.
108631         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
108632         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
108634         * lib/safe-read.c (EINTR): Remove definition.
108635         (safe_read): Don't use EINTR if it is absent.
108637 2002-12-01  Jim Meyering  <jim@meyering.net>
108639         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
108640         zero.
108641         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
108643 2002-11-27  Paul Eggert  <eggert@twinsun.com>
108645         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
108646         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
108647         with `if (! (value < limit)) abort ();', for readability.
108649 2002-11-26  Karl Berry  <karl@gnu.org>
108651         * lib/strdup.c: copy from libc again, with jim's ok.
108652         * lib/.cppi-disable: re-add strdup.c
108654 2002-11-25  Karl Berry  <karl@gnu.org>
108656         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
108657         instead of "strtol.c".
108659 2002-11-25  Karl Berry  <karl@gnu.org>
108661         * config/install-sh: update from automake for variable quoting, $0 in
108662         error msgs, etc.
108664         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
108665         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
108666         entry.
108668 2002-11-25  Jim Meyering  <jim@meyering.net>
108670         * lib/mktime.c: Sync from libc, now that it has the latest fix.
108672 2002-11-24  Karl Berry  <karl@gnu.org>
108674         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
108675         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
108677 2002-11-24  Jim Meyering  <jim@meyering.net>
108679         Update from coreutils:
108681         * lib/mktime.c: Merge in changes from libc.
108683         Avoid a link-time failure on some Linux systems.
108684         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
108685         (otherwise).
108686         (__mon_yday): Declare with the STATIC attribute.
108687         (__mktime_internal): Likewise.
108688         Based on a report from Greg Schafer.
108690 2002-11-23  Jim Meyering  <jim@meyering.net>
108692         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
108693         Use `unsigned', not `int', as type of index.
108695         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
108697         * lib/fsusage.c: Remove unneeded parentheses around operands of
108698         `defined'.
108700 2002-11-22  Paul Eggert  <eggert@twinsun.com>
108702         * lib/quotearg.h: Allow multiple inclusion by surrounding with
108703         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
108704         so that we can be included first.
108705         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
108706         * lib/quotearg.c: Include quotearg.h immediately after config.h.
108707         No need to include stddef.h or sys/types.h any more.
108708         Surround local include files with "", not "<>".
108709         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
108710         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
108711         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
108712         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
108713         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
108714         (ISPRINT): Remove; no longer needed now that we assume C89.
108716         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
108717         Preserve errno.
108719         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
108720         quotearg_char): Use SIZE_MAX rather than
108721         (size_t) -1 when we are talking about "infinity".
108723         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
108725 2002-11-22  Paul Eggert  <eggert@twinsun.com>
108727         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
108728         hint that one should use `if (! x) abort ();' rather than `assert
108729         (x);', and anyway it's one less thing to worry about configuring.
108730         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
108731         hash_rehash, hash_insert): Use abort rather than assert.
108733 2002-11-22  Bruno Haible  <bruno@clisp.org>
108735         * lib/safe-read.h: Assume C89. Add comments.
108736         (safe_read): Change return type to size_t.
108737         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
108738         byte counts > SSIZE_MAX correctly.
108739         * lib/safe-write.h: New file.
108740         * lib/safe-write.c: New file.
108741         * lib/full-read.h: New file.
108742         * lib/full-read.c: New file.
108743         * lib/full-write.h: Assume C89. Add comments.
108744         * lib/full-write.c: Include safe-write.h.
108745         (full_write): Rewritten to use safe_write.
108746         Suggested by Jim Meyering and Paul Eggert.
108748 2002-11-21  Jim Meyering  <jim@meyering.net>
108750         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
108752         Merge in changes from the coreutils.
108754         2002-09-25  Paul Eggert  <eggert@twinsun.com>
108755         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
108756         <stdint.h>.
108757         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
108758         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
108759         int.  Work more efficiently if X is the same width as uintmax_t.
108760         Do not compare X to -1, to avoid bogus compiler warning.
108761         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
108762         Don't assume that f_frsize and f_bsize are the same type.
108764         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
108765         warning on FreeBSD.
108767         * lib/makepath.c (make_path): Restore umask *before* creating the final
108768         component.
108769         (make_path): Minor reformatting.
108771         * lib/xmalloc.c: Adjust to work with new autoconf macros,
108772         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
108773         HAVE_MALLOC/HAVE_REALLOC.
108775         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
108776         dummy ones.  At least on GNU/Linux systems, `auto' means something
108777         else.
108778         From Michael Stone.
108780 2002-11-21  Bruno Haible  <bruno@clisp.org>
108782         Remove case insensitive option matching.
108783         * lib/argmatch.h (argcasematch): Remove declaration.
108784         (ARGCASEMATCH): Remove macro.
108785         (__xargmatch_internal): Remove case_sensitive argument.
108786         (XARGMATCH): Update.
108787         (XARGCASEMATCH): Remove macro.
108788         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
108789         case_sensitive argument.
108790         (argcasematch): Remove function.
108791         (__xargmatch_internal): Remove case_sensitive argument.
108792         (main): Use XARGMATCH instead of XARGCASEMATCH.
108794         * lib/xmalloc.c: Change compile-time error message. Add comment about
108795         required autoconf version.
108797 2002-11-20  Paul Eggert  <eggert@twinsun.com>
108799         Merge argmatch cleanups from Bison.  Assume C89.
108801         * lib/argmatch.c: Include config.h here, not in argmatch.h.
108802         Include stdlib.h, for EXIT_FAILURE.
108803         Always include <string.h>, since we assume C89.
108804         (EXIT_FAILURE): Remove pre-C89 bug workaround.
108805         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
108806         Include <stddef.h> instead, since it's all we need for size_t.
108807         (PARAMS): Remove.  All uses removed.
108808         (ARRAY_CARDINALITY): Do not bother to #undef.
108809         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
108810         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
108811         Remove unnecessary parentheses.
108812         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
108813         Insert necessary parentheses.
108814         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
108815         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
108817 2002-11-19  Bruno Haible  <bruno@clisp.org>
108819         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
108820         * lib/mbswidth.h: Include <stddef.h>, for size_t.
108822         * lib/mbswidth.h (PARAMS): Remove macro.
108823         (mbswidth, mbsnwidth): Use ANSI C function declarations.
108824         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
108826         * lib/gcd.h (PARAMS): Remove macro.
108827         (gcd): Use ANSI C function declarations.
108828         * lib/gcd.c (gcd): Likewise.
108830 2002-11-15  Bruno Haible  <bruno@clisp.org>
108832         * lib/strcspn.c: Include <stddef.h>.
108833         (strcspn): Use ANSI C function declaration. Change return type to
108834         size_t. Use NULL.
108835         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
108836         (strpbrk): Use NULL.
108837         * lib/strpbrk.h (PARAMS): Remove macro.
108838         (strpbrk): Use ANSI C function declaration.
108839         * lib/strstr.c: Don't include <sys/types.h>.
108840         * lib/strstr.h (PARAMS): Remove macro.
108841         (strstr): Use ANSI C function declarations.
108843 2002-11-14  Karl Berry  <karl@gnu.org>
108845         * config/mkinstalldirs: `do' on separate line, instead of
108846         `for var; do'.
108848 2002-11-06  Bruno Haible  <bruno@clisp.org>
108850         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
108851         * lib/gcd.c (gcd): Likewise.
108853 2002-11-05  Bruno Haible  <bruno@clisp.org>
108855         * lib/gcd.h: New file, from gettext-0.11.5.
108856         * lib/gcd.c: New file, from gettext-0.11.5.
108858 2002-11-05  Bruno Haible  <bruno@clisp.org>
108860         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108861         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108862         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108863         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108865         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
108866         <libintl.h>.
108867         * lib/makepath.c: Include gettext.h instead of <locale.h> and
108868         <libintl.h>.
108870         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
108871         * lib/human.c: Include gettext.h instead of <libintl.h>.
108872         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
108873         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
108874         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
108875         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
108876         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
108877         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
108878         (textdomain): Remove definition.
108879         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
108881         * lib/long-options.c: Remove include of <libintl.h> and definition of
108882         _.
108883         * lib/same.c: Remove include of <libintl.h> and definition of _.
108885 2002-11-04  Owen Taylor  <otaylor@redhat.com>
108887         * lib/config.charset: A few additions for Solaris.
108889 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108891         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
108892         * lib/localcharset.c (locale_charset): Declare as extern "C".
108894 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108896         * lib/config.charset: msdos in uk_UA uses CP1125.
108898 2002-11-04  Bruno Haible  <bruno@clisp.org>
108900         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
108901         * lib/strcase.h: New file, from GNU gettext-0.11.5.
108902         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
108903         * lib/strstr.h: New file, from GNU gettext-0.11.5.
108904         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
108906 2002-11-04  Bruno Haible  <bruno@clisp.org>
108908         * lib/localcharset.c (locale_charset): Don't return an empty string.
108910 2002-11-04  Bruno Haible  <bruno@clisp.org>
108912         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
108913         aliases.
108915 2002-11-04  Bruno Haible  <bruno@clisp.org>
108917         * lib/config.charset: Update for newest glibc. Add canonical names
108918         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
108920 2002-11-04  Bruno Haible  <bruno@clisp.org>
108922         * lib/config.charset: Add support for NetBSD.
108924 2002-11-04  Bruno Haible  <bruno@clisp.org>
108926         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
108928 2002-11-01  Bruno Haible  <bruno@clisp.org>
108930         * configure.in: Add AC_CONFIG_AUX_DIR call.
108931         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
108932         test/Makefile.
108933         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
108935 2002-09-28  Karl Berry  <karl@gnu.org>
108937         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
108938         installed automake until the next release, since changes have been
108939         made.
108941 2002-09-25  Karl Berry  <karl@gnu.org>
108943         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
108944         * lib/getopt*: copy from libc/posix.
108945         * lib/gettext.h: copy from gettext.
108946         * lib/.cppi-disable: add strdup.c, gettext.h.
108948 2002-09-25  Karl Berry  <karl@gnu.org>
108950         * config/srclist.txt: enable gettext.h check.
108951         * config/config.{guess,sub}: update from prep.
108952         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
108953                 from automake 1.6.3.
108954         See srclist*.
108956 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
108958         * regex.c (PATFETCH): Remove the translating fetch.
108959         (PATFETCH_RAW): Rename to PATFETCH.
108960         (set_image_of_range): New fun.
108961         (SET_RANGE_TABLE_WORK_AREA): Use it.
108962         (regex_compile): Don't translate the pattern chars so eagerly.
108963         Only do it when inserting an `exactn' bytecode or when handling
108964         a char-range.
108965         (mutually_exclusive_p): Avoid empty statement.
108967 2002-07-06  Jim Meyering  <meyering@lucent.com>
108969         * m4/README: Don't mention Makefile.am.in.
108970         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
108972 2002-07-01  Jim Meyering  <meyering@lucent.com>
108974         * lib/c-stack.c: Include sys/time.h.
108975         From Volker Borchert.
108977 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
108981 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108983         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
108984         New macro.  Use it uniformly instead of
108985         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
108986         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
108987         reported by Vin Shelton.
108989 2002-06-22  Paul Eggert  <eggert@twinsun.com>
108991         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
108992         Do not assume SA_SIGINFO behavior.
108993         Bug reported by Jim Meyering on NetBSD 1.5.2.
108995 2002-06-22  Jim Meyering  <meyering@lucent.com>
108997         * m4/c-stack.m4: New file, from diffutils-2.8.2.
108998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
109000         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
109001         now that configure.ac uses AC_GNU_SOURCE.
109002         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
109003         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
109005         Update to latest tools.  Suggestions from Paul Eggert.
109006         * m4/stdbool.m4: New file, from diffutils-2.8.2.
109007         * m4/gnu-source.m4: Update from diffutils-2.8.2.
109008         * m4/fnmatch.m4: Likewise.
109009         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
109010         to AC_HEADER_STDBOOL
109012 2002-06-22  Jim Meyering  <meyering@lucent.com>
109014         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
109015         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
109017 2002-06-22  Jim Meyering  <meyering@lucent.com>
109019         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
109021         * lib/exitfail.c, exitfail.h: Likewise.
109022         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
109024         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
109025         of fnmatch.h.
109026         (EXTRA_DIST): Add fnmatch_loop.c.
109027         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
109029         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
109030         * lib/fnmatch.c: Update from diffutils-2.8.2.
109031         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
109032         * lib/fnmatch.h: Remove file.
109034 2002-06-21  Jim Meyering  <meyering@lucent.com>
109036         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
109037         * m4/mbrtowc.m4: Likewise.
109039         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
109040         * m4/mbswidth.m4: Reflect name change:
109041         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
109042         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
109044         * m4/lib-link.m4: Update from gettext-0.11.2.
109045         * m4/gettext.m4: Likewise.
109047         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
109048         From Alfred M. Szmidt.
109050 2002-06-18  Paul Eggert  <eggert@twinsun.com>
109052         * lib/file-type.h: Report an error if neither S_ISREG nor
109053         S_IFREG is defined, instead of using a test specific to glibc
109054         2.2.  This should be safe, since POSIX requires S_ISREG and
109055         Unix Version 7 had S_IFREG.  We don't need to check for
109056         <sys/types.h> since we don't use any symbols that it defines.
109058 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
109060         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
109061         $@-t, so that each temporary file name is unique and valid in the first
109062         8 characters, for operation under DOS.
109064 2002-06-15  Paul Eggert  <eggert@twinsun.com>
109066         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
109068 2002-06-15  Jim Meyering  <meyering@lucent.com>
109070         Work even with DJGPP 2.03, which lacks support for symlinks.
109071         From Richard Dawe.
109072         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
109073         is defined.
109074         * lib/lchown.c (S_ISLNK): Likewise.
109076 2002-06-15  Jim Meyering  <meyering@lucent.com>
109078         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
109079         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
109080         have been included before this file.
109082 2002-06-14  Jim Meyering  <meyering@lucent.com>
109084         * lib/file-type.h: Use the version from diffutils-2.8.2.
109085         * lib/file-type.c: Likewise.
109087 2002-06-07  Jim Meyering  <meyering@lucent.com>
109089         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
109090         They're needed at least for NetBSD 1.5.2.
109091         ($statxfs_includes): Include those same headers.
109092         ($statxfs_includes): Include sys/vfs.h if available.
109093         ($statxfs_includes): Likewise for sys/statvfs.h.
109094         Check for the following members in both structs statfs and statvfs:
109095         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
109097 2002-06-01  Jim Meyering  <meyering@lucent.com>
109099         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
109100         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
109102 2002-05-28  Jim Meyering  <meyering@lucent.com>
109104         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
109105         Reported by Volker Borchert.
109107 2002-05-27  Jim Meyering  <meyering@lucent.com>
109109         Fix a problem seen only on nonconforming systems whereby ls.c's
109110         use of localtime, and then of gettimeofday would cause trouble:
109111         the localtime call used to initialize rpl_gettimeofday's save
109112         mechanism would clobber ls's current local time information so
109113         that in any long listing the first file would always be listed
109114         with date 1970-01-01.  Analysis by Volker Borchert.
109116         * lib/gettimeofday.c (localtime): Undefine.
109117         (rpl_localtime): New function.
109119 2002-05-27  Jim Meyering  <meyering@lucent.com>
109121         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
109122         localtime.
109124         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
109125         use the replacement function; it wouldn't resolve at link time.
109126         Reported by Volker Borchert.
109128 2002-05-22  Jim Meyering  <meyering@lucent.com>
109130         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
109131         file-type.h.
109132         * lib/file-type.h: New file.
109133         * lib/file-type.c (file_type): New file/function.  Extracted from
109134         diffutils.
109136 2002-04-30  Jim Meyering  <meyering@lucent.com>
109138         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
109140 2002-04-29  Paul Eggert  <eggert@twinsun.com>
109142         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
109144 2002-04-29  Paul Eggert  <eggert@twinsun.com>
109146         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
109147         Do not check for alloca.h (no longer used) or stdbool.h (was never
109148         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
109150 2002-04-29  Paul Eggert  <eggert@twinsun.com>
109152         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
109154 2002-04-29  Jim Meyering  <meyering@lucent.com>
109156         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
109157         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
109158         Use AC_FUNC_STRNLEN here instead.
109160         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
109161         With autoconf-2.53a, it's part of AC_PROG_CC.
109163 2002-04-28  Paul Eggert  <eggert@twinsun.com>
109165         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
109166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
109168 2002-04-28  Paul Eggert  <eggert@twinsun.com>
109170         * lib/sig2str.h, lib/sig2str.c: New files.
109171         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
109173 2002-04-28  Paul Eggert  <eggert@twinsun.com>
109175         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
109176         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
109177         of 127, since 64 is the largest conceivable number for ancient
109178         nonstandard hosts.
109179         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
109181 2002-04-28  Jim Meyering  <meyering@lucent.com>
109183         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
109185 2002-04-24  Jim Meyering  <meyering@lucent.com>
109187         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
109188         (jm_PREREQ): Use it.
109190         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
109191         mach/mach.h fcntl.h.
109192         Check for this function: setlocale.
109194 2002-04-24  Jim Meyering  <meyering@lucent.com>
109196         * lib/gettext.h: New file, from Gettext.
109197         * lib/Makefile.am (INCLUDES): Remove -I../intl.
109198         (libfetish_a_SOURCES): Add gettext.h.
109200 2002-04-16  Jim Meyering  <meyering@lucent.com>
109202         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
109203         ut_pid, ut_id, ut_exit.
109205 2002-04-16  Jim Meyering  <meyering@lucent.com>
109207         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
109208         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
109209         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
109211 2002-04-12  Jim Meyering  <meyering@lucent.com>
109213         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
109214         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
109215         existence of the getmntinfo function.  Needed for Darwin 5.3.
109217         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
109218         This is necessary at least on Darwin 5.3.
109220         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
109221         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
109222         strnlen.o in the library, and that makes some versions of ranlib
109223         object.
109225 2002-04-12  Jim Meyering  <meyering@lucent.com>
109227         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
109229 2002-04-09  Jim Meyering  <meyering@lucent.com>
109231         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
109232         to be more precise.  Rather than saying we're checking whether the
109233         function `works', say what we're testing.
109234         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
109235         Reported by Bruno Haible.
109237 2002-03-10  Jim Meyering  <meyering@lucent.com>
109239         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
109240         Suggestion from Santiago Vila.
109242 2002-03-08  Jim Meyering  <meyering@lucent.com>
109244         * lib/rename.c: Mention that this wrapper is needed also on
109245         mips-dec-ultrix4.4 systems.
109247 2002-03-02  Jim Meyering  <meyering@lucent.com>
109249         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
109250         not HAVE_CLOCK_SETTIME.
109252 2002-02-27  Paul Eggert  <eggert@twinsun.com>
109254         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
109255         Check for clock_settime.
109257 2002-02-27  Paul Eggert  <eggert@twinsun.com>
109259         * lib/nanosleep.h: Rename to....
109260         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
109262         * lib/gettime.c: New file.
109263         * lib/settime.c: New file.
109264         * lib/stime.c: Remove.
109266         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
109267         timespec.h.  Remove nanosleep.h.
109269 2002-02-25  Paul Eggert  <eggert@twinsun.com>
109271         * m4/acl.m4: New file.
109272         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
109273         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
109275 2002-02-25  Paul Eggert  <eggert@twinsun.com>
109277         * lib/acl.c, lib/acl.h: New files.
109278         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
109280 2002-02-24  Jim Meyering  <meyering@lucent.com>
109282         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
109283         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
109284         cause trouble.  Reported by Nelson Beebe.
109286 2002-02-23  Paul Eggert  <eggert@twinsun.com>
109288         * lib/path-concat.c (xpath_concat): Reorder code to pacify
109289         compilers that don't know that xalloc_die never returns.
109291 2002-02-20  Jim Meyering  <meyering@lucent.com>
109293         * lib/getdate.c: Regenerate using bison-1.33.
109295 2002-02-17  Jim Meyering  <meyering@lucent.com>
109297         * config/config.guess (main): Don't use `head -1'; it's no longer
109298         portable. Use `sed 1q' instead.
109300 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
109302         * m4/codeset.m4: Upgrade to gettext-0.11.
109303         * m4/gettext.m4: Upgrade to gettext-0.11.
109304         * m4/glibc21.m4: Upgrade to gettext-0.11.
109305         * m4/iconv.m4: Upgrade to gettext-0.11.
109306         * m4/isc-posix.m4: Upgrade to gettext-0.11.
109307         * m4/lcmessage.m4: Upgrade to gettext-0.11.
109308         * m4/lib-ld.m4: New file, from gettext-0.11.
109309         * m4/lib-link.m4: New file, from gettext-0.11.
109310         * m4/lib-prefix.m4: New file, from gettext-0.11.
109311         * m4/progtest.m4: Upgrade to gettext-0.11.
109313 2002-02-15  Paul Eggert  <eggert@twinsun.com>
109315         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
109316         (jm_PREREQ): Use it.
109318 2002-02-15  Paul Eggert  <eggert@twinsun.com>
109320         * lib/posixver.c, lib/posixver.h: New files.
109321         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
109323 2002-02-02  Paul Eggert  <eggert@twinsun.com>
109324             Bruno Haible  <bruno@clisp.org>
109326         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
109327         (fwrite_success_callback): New declaration.
109328         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
109329         print_unicode_char. Call failure callback instead of error.
109330         (fwrite_success_callback): New function.
109331         (exit_failure_callback): New function.
109332         (fallback_failure_callback): New function.
109333         (print_unicode_char): Call unicode_to_mb.
109335 2002-01-26  Jim Meyering  <meyering@lucent.com>
109337         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
109338         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
109340 2002-01-26  Jim Meyering  <meyering@lucent.com>
109342         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
109344 2002-01-22  Paul Eggert  <eggert@twinsun.com>
109346         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
109348 2002-01-22  Jim Meyering  <meyering@lucent.com>
109350         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
109351         Otherwise, some versions of automake would omit the rule that makes
109352         Makefile from Makefile.in.
109354 2002-01-21  Paul Eggert  <eggert@twinsun.com>
109356         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
109357         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
109358         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
109359         (memcoll): Set errno to zero if there is no error.
109361         * lib/quotearg.c (quotearg_buffer_restyled):
109362         Fix bug with quoting buffers containing NUL when backslashing escapes.
109363         This bug was exposed by the other changes in this patch.
109364         (quotearg_n_options): New arg ARGSIZE.
109365         All callers changed.
109366         (quoting_options_from_style): New function.
109367         (quotearg_n_style): Use it.
109368         (quotearg_n_style_mem): New function.
109370         * lib/quotearg.h (quotearg_n_style_mem): New function.
109372 2002-01-19  Jim Meyering  <meyering@lucent.com>
109374         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
109375         Remove useless quotes: DF_PROG="df".
109376         * m4/strnlen.m4: New file.
109378 2002-01-16  Paul Eggert  <eggert@twinsun.com>
109380         * lib/backupfile.c (ISDIGIT): Comment fix.
109381         * lib/getdate.y (ISDIGIT): Likewise.
109382         * lib/posixtm.c (ISDIGIT, year): Likewise.
109383         * lib/strverscmp.c (ISDIGIT): Likewise.
109384         * lib/userspec.c (ISDIGIT): Likewise.
109386 2002-01-16  Jim Meyering  <meyering@lucent.com>
109388         * lib/getdate.y: Add three semicolons, each just before a closing
109389         brace. Bison (as of version 1.31) no longer papers over that mistake.
109391 2002-01-05  Jim Meyering  <meyering@lucent.com>
109393         * lib/version-etc.c (version_etc_copyright): Update copyright year.
109395 2001-12-19  Paul Eggert  <eggert@twinsun.com>
109397         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
109398         not silently exit merely because the output buffer happens to
109399         have nothing pending.
109401 2001-12-18  Paul Eggert  <eggert@twinsun.com>
109403         See the big note in ../ChangeLog.
109404         * lib/human.c (suffixes): Prefer K to k for 1024.
109405         (generate_suffix_backwards): New function.
109406         (human_readable_inexact): Use it.
109407         * lib/xstrtol.c (__xstrtol): If there is no number but there
109408         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
109409         Accept 'K' as well as 'k'.
109411 2001-12-15  Jim Meyering  <meyering@lucent.com>
109413         * lib/regex.h (__restrict_arr): Update from libc.
109415         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
109416         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
109417         (STREQ): Define.
109419 2001-12-14  Jim Meyering  <meyering@lucent.com>
109421         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
109422         Suggestion from Bruno Haible.
109424 2001-12-10  Jim Meyering  <meyering@lucent.com>
109426         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
109427         xrealloc, Instead, include "xalloc.h".
109428         (initbuffer): Don't cast xmalloc return value to char*.
109429         (readline): Reword comment.
109430         Don't cast xrealloc return value to char*
109431         Return NULL, not 0.
109433 2001-12-09  Jim Meyering  <meyering@lucent.com>
109435         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
109436         about `signed and unsigned type in conditional expression'.
109437         * lib/posixtm.c (posix_time_parse): Likewise.
109439         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
109441         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
109442         to avoid a pedantic warning.
109444         * lib/getstr.c: Don't include assert.h.
109445         (getstr): Remove warning-evoking assertions.
109446         Return -1 if offset parameter is out of bounds.
109447         Change the type of a local from int to size_t.
109449         * lib/strftime.c (my_strftime_localtime_r): Include this function
109450         definition in the `#if ! HAVE_TM_GMTOFF' block.
109452         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
109453         Include xalloc.h instead.
109455 2001-12-02  Jim Meyering  <meyering@lucent.com>
109457         * lib/tempname.c: Don't declare getenv, thus reverting the change of
109458         2001-11-18.  It's no longer necessary, now that stdlib.h is always
109459         included.
109461         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
109462         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
109464 2001-11-30  Akim Demaille  <akim@epita.fr>
109466         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
109467         before being defined.
109469 2001-11-27  Paul Eggert  <eggert@twinsun.com>
109471         * lib/quotearg.h (quotearg_n, quotearg_n_style):
109472         First arg is int, not unsigned.
109473         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
109474         (SIZE_MAX, UINT_MAX): New macros.
109475         (quotearg_n_options): Abort if N is negative.
109476         Avoid overflow check on hosts where size_t is 64 bits and int
109477         is 32 bits, as overflow is impossible there.
109478         Fix off-by-one typo that caused unnecessary reallocation.
109480 2001-11-27  Jim Meyering  <meyering@lucent.com>
109482         * lib/tempname.c: Merge with version from libc.
109483         * lib/regex.c: Likewise.
109485         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
109486         systems for which STDC_HEADERS is 0, it was not included, resulting in
109487         a warning about an integer-to-pointer conversion problem with getenv.
109488         Reported by Volker Borchert.
109490 2001-11-26  Jim Meyering  <meyering@lucent.com>
109492         * lib/gtod.h: Remove file.
109493         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
109494         * lib/gettimeofday.c: Don't include gtod.h.
109495         (GTOD_init): Remove function.
109496         (rpl_gettimeofday): Do its job here instead, rather than aborting.
109497         Suggestion from Volker Borchert.
109499 2001-11-23  Jim Meyering  <meyering@lucent.com>
109501         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
109502         it.
109503         * lib/hash.c (struct hash_table): Define it here instead.
109505 2001-11-22  Jim Meyering  <meyering@lucent.com>
109507         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
109509 2001-11-20  Jim Meyering  <meyering@lucent.com>
109511         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
109512         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
109514 2001-11-19  Jim Meyering  <meyering@lucent.com>
109516         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
109517         directory.  Use "conftestXXXXXX" as the template.
109518         Suggestion from Paul Eggert.
109520         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
109521         immediately, so the test doesn't mistakenly hit the max-open-files
109522         limit.
109524 2001-11-18  Paul Eggert  <eggert@twinsun.com>
109526         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
109527         (TEMPORARIES): New macro.
109528         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
109529         removes an artificial limitation (e.g. HP-UX 10.20, where
109530         TMP_MAX is 17576).
109532 2001-11-18  Jim Meyering  <meyering@lucent.com>
109534         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
109536 2001-11-18  Jim Meyering  <meyering@lucent.com>
109538         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
109539         on SunOS 4.
109541         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
109542         files will be created before anything else.
109544 2001-11-17  Paul Eggert  <eggert@twinsun.com>
109546         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
109547         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
109549 2001-11-17  Jim Meyering  <meyering@lucent.com>
109551         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
109552         Prompted by a report from Bob Proulx.
109554         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
109555         Instead, require UTILS_FUNC_MKSTEMP.
109557 2001-11-17  Jim Meyering  <meyering@lucent.com>
109559         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
109560         Now, that's done as part of AC_FUNC_STRTOD.
109562 2001-11-17  Jim Meyering  <meyering@lucent.com>
109564         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
109565         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
109566         rather than group writable.  Patch by Juan F. Codagnone.
109568         * lib/readtokens.c: Remove explicit declarations of xmalloc and
109569         xrealloc, Instead, include "xalloc.h".
109571         * lib/mountlist.c: Include unlocked-io.h after all system headers.
109572         Remove explicit declarations of xmalloc, xrealloc,
109573         and xstrdup.  Instead, include "xalloc.h".
109575         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
109576         unlocked-io.h.
109577         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
109578         Likewise.
109579         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
109581         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
109582         Reported by Padraig Brady.
109584         * lib/mkstemp.c: #undef mkstemp.
109585         Include config.h.
109586         (rpl_mkstemp): Rename from mkstemp.
109587         Protoize.
109589 2001-11-16  Jim Meyering  <meyering@lucent.com>
109591         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
109592         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
109593         determine the amount of total physical memory, use pstat_getstatic.
109594         HPUX-11 doesn't define _SC_PHYS_PAGES.
109595         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
109596         If sysconf couldn't be used to determine the amount of available
109597         physical memory, use both pstat_getstatic and pstat_getdynamic.
109598         Based on a patch from Bob Proulx.
109600 2001-11-10  Jim Meyering  <meyering@lucent.com>
109602         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
109603         (jm_PREREQ): Use it.
109605 2001-11-09  Jim Meyering  <meyering@lucent.com>
109607         * m4/jm-macros.m4: Require autoconf-2.52f.
109608         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
109609         Use these AC_-prefixed names, not the AM_-prefixed ones.
109611         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
109613 2001-11-05  Jim Meyering  <meyering@lucent.com>
109615         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
109617 2001-11-04  Jim Meyering  <meyering@lucent.com>
109619         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
109620         $DEFS.
109622 2001-11-03  Jim Meyering  <meyering@lucent.com>
109624         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
109625         of AC_DEFUN.
109627         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
109628         know the name of the variable in the macro definition.
109630 2001-11-03  Jim Meyering  <meyering@lucent.com>
109632         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
109633         in argmatch_to_argument call.
109635         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
109636         argument.
109638         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
109639         e.g., a fault due to an attempt to free a NULL pointer.
109641 2001-11-01  Jim Meyering  <meyering@lucent.com>
109643         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
109644         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
109646 2001-11-01  Jim Meyering  <meyering@lucent.com>
109648         * lib/dirfd.c, lib/dirfd.h: New files.
109649         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
109651         * lib/hash.c (hash_print) [TESTING]: Clean up.
109653 2001-10-22  Paul Eggert  <eggert@twinsun.com>
109655         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
109656         to avoid a warning if -Wall.
109658 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
109660         * README: New file
109661         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
109662         (per RMS's instructions, this is now the canonical source)
109663         * lgpl/, gpl/: New directories.
109665 2001-10-21  Paul Eggert  <eggert@twinsun.com>
109667         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
109669 2001-10-21  Jim Meyering  <meyering@lucent.com>
109671         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
109672         this code would end up calling gettext even in packages built
109673         with --disable-nls.
109674         * lib/getopt.c (_): Likewise.
109675         * lib/regex.c (_): Likewise.
109677 2001-10-20  Paul Eggert  <eggert@twinsun.com>
109679         * m4/error.m4 (jm_PREREQ_ERROR):
109680         Do not invoke AC_CHECK_FUNCS with strerror_r, as
109681         AC_FUNC_STRERROR_R does that.
109682         Check for strerror declaration.
109684         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
109685         are supposed to have them these days.
109686         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
109687         Merge changes from latest Autoconf CVS.
109688         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
109689         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
109690         POSIX decided to standardize on the int flavor of strerror_r.
109692 2001-10-20  Paul Eggert  <eggert@twinsun.com>
109694         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
109695         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
109696         Use strerror_r that is only a macro, even if it is not a function.
109697         (strerror): Check for HAVE_DECL_STRERROR before declaring.
109698         (private_strerror): Use prototypes, not old-style function definition.
109699         (print_errno_message): New function.
109700         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
109701         char*-flavored one.
109702         (error_tail, error, error_at_line): Use it.
109704 2001-10-11  Jim Meyering  <meyering@lucent.com>
109706         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
109707         and quote_n (1, ... to avoid clobbering a buffer.
109709 2001-10-05  Jim Meyering  <meyering@lucent.com>
109711         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
109712         hash-pjw.h.
109713         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
109714         * lib/hash-pjw.h: New file.
109716 2001-09-30  Jim Meyering  <meyering@lucent.com>
109718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
109719         `struct fsstat' has the `f_fstypename' member.
109720         Use that to define FS_TYPE, which is now used to make
109721         the getfsstat link test tighter.
109723 2001-09-30  Jim Meyering  <meyering@lucent.com>
109725         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
109726         Include <sys/ucred.h>, for Apple Darwin.
109727         Include sys/mount.h and sys/fs_types.h only if available.
109728         (FS_TYPE): Define.
109729         (read_filesystem_list): Use FS_TYPE.
109731 2001-09-29  Paul Eggert  <eggert@twinsun.com>
109733         * lib/exclude.c (excluded_filename): 0 -> false, since it's
109734         a boolean context.
109736 2001-09-29  Jim Meyering  <meyering@lucent.com>
109738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
109739         [one-argument getmntent function]): Include stdio.h before mntent.h.
109740         SunOS 4.1.x needs it for the declaration of `FILE'.
109741         Patch by Volker Borchert.
109743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
109744         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
109745         sys/fs_types.h, and make the link-test for getfsstat guard #include
109746         directives with appropriate #if HAVE_*_H tests so that we can
109747         detect getfsstat on Apple Darwin1.3.7 systems.
109748         Reported by Nelson Beebe.
109749         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
109751 2001-09-28  Paul Eggert  <eggert@twinsun.com>
109753         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
109754         #defines strtoimax.  Also treat the other strto* functions
109755         like strtoimax.
109757         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
109758         Check for strtoul and strtoumax,
109759         as those declarations are made even in the signed case.
109760         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
109761         Likewise, for strtol and strtoimax.
109763 2001-09-28  Paul Eggert  <eggert@twinsun.com>
109765         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
109766         #defines strtoimax.  Also treat the other strto* functions
109767         like strtoimax.
109769         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
109770         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
109771         (strtoimax, strtoumax): Do not declare if already defined as a macro.
109773 2001-09-26  Jim Meyering  <meyering@lucent.com>
109775         Most macros in unlocked-io.h had the wrong number of arguments.
109776         * lib/gen-uio: New script.
109777         (USE_UNLOCKED_IO): Define to 1 if not already defined.
109778         * lib/unlocked-io.hin: Remove file.
109779         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
109780         rather than trying to embed it here.
109781         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
109782         Reported by Padraig Brady.
109784 2001-09-25  Volker Borchert  <bt@teknon.de>
109786         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
109787         `result'.
109789 2001-09-24  Jim Meyering  <meyering@lucent.com>
109791         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
109793 2001-09-23  Jim Meyering  <meyering@lucent.com>
109795         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
109796         instead of the mere test for existence of mntent.h.  The latter
109797         would get a false-positive on AIX 3.4 systems.
109798         In the outer getmntent if-block, don't die if neither of the getmntent
109799         tests succeeds.  Instead, just fall through and continue with the
109800         remaining tests.
109802 2001-09-23  Jim Meyering  <meyering@lucent.com>
109804         * lib/mountlist.c: Remove useless parentheses in #if directives.
109805         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
109806         the deprecated MOUNTED symbol is no longer defined in mntent.h.
109808 2001-09-22  Jim Meyering  <meyering@lucent.com>
109810         * m4/gettext.m4: New file.  From gettext.
109811         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
109812         * m4/progtest.m4: Likewise
109813         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
109814         * m4/glibc21.m4: Likewise.
109816         * m4/libintl.m4: Remove.  No longer used.
109818 2001-09-22  Jim Meyering  <meyering@lucent.com>
109820         * lib/localcharset.c: Update from latest gettext.
109821         * lib/config.charset: Likewise.
109823 2001-09-20  Jim Meyering  <meyering@lucent.com>
109825         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
109826         strtoimax.
109827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
109828         strtoumax.
109830 2001-09-20  Jim Meyering  <meyering@lucent.com>
109832         * lib/xstrtol.c (strtoimax): Guard declaration with
109833         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
109834         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
109835         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
109836         (strtoumax): Likewise, for completeness (it wasn't necessary).
109838 2001-09-17  Paul Eggert  <eggert@twinsun.com>
109840         * lib/strtoimax.c (HAVE_LONG_LONG):
109841         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
109842         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
109843         to work around bug in IBM C compiler.
109845 2001-09-17  Jim Meyering  <meyering@lucent.com>
109847         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
109848         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
109849         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
109850         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
109851         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
109852         whenever the right hand side need not be expanded by the shell.
109854 2001-09-16  Paul Eggert  <eggert@twinsun.com>
109856         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
109857         library.  It's not correct, as some older glibcs are buggy.
109858         fnmatch wasn't fixed until glibc 2.2.
109860         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
109861         special shell magic here.
109863 2001-09-16  Jim Meyering  <meyering@lucent.com>
109865         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
109866         * m4/jm-macros.m4: Require it.
109868 2001-09-16  Jim Meyering  <meyering@lucent.com>
109870         * lib/mkdir.c: New file.
109872 2001-09-15  Jim Meyering  <meyering@lucent.com>
109874         * m4/jm-macros.m4: Check for help2man.
109876 2001-09-11  Jim Meyering  <meyering@lucent.com>
109878         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
109879         The body, by Paul Eggert, was moved here from configure.in.
109880         * m4/jm-macros.m4: Require UTILS_HOST_OS.
109882 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109884         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
109885         (jm_PREREQ): Use it.
109887 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109889         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
109890         Use ssize_t, not int, to store result of readlink.
109891         Check for ssize_t overflow as well as size_t overflow,
109892         as POSIX says the result of readlink is implementation-defined
109893         when ssize_t overflows.
109894         Remove unnecessary cast to char*.
109895         Use free+malloc instead of realloc, as the storage doesn't need
109896         to be preserved and it's clearer and can be more efficient that way.
109897         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
109898         * lib/xreadlink.h (xreadlink): Update prototype.
109900 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109902         * lib/xgetcwd.c: Revert some of the previous change; intead,
109903         fix the HAVE_GETCWD_NULL code to behave more like the
109904         !HAVE_GETCWD_NULL code used to.
109906         Include "xalloc.h".
109907         (xgetcwd): Do not return NULL when memory is exhausted; instead,
109908         invoke xalloc_die.
109910 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109912         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
109913         sys/param.h, as pathmax.h includes them.
109915 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109917         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
109918         (jm_PREREQ_XGETCWD): New macro.
109920         * m4/getcwd.m4: New file.
109922 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109924         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
109925         like the HAVE_GETCWD_NULL code.
109926         Include pathmax.h if not HAVE_GETCWD.
109927         Do not include xalloc.h.
109928         (INITIAL_BUFFER_SIZE): New symbol.
109929         Do not use xmalloc / xrealloc, since the caller is responsible for
109930         handling errors.  Preserve errno around `free' during failure.
109931         Do not overrun buffer when using getwd.
109933 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109935         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
109936         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
109937         getcwd (NULL, 0).
109939 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109941         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
109942         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
109943         spotted by Jim Meyering.
109945 2001-09-03  Jim Meyering  <meyering@lucent.com>
109947         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
109948         failure.
109950 2001-09-02  Jim Meyering  <meyering@lucent.com>
109952         * lib/error.c: Update from GNU libc.
109954 2001-09-01  Jim Meyering  <meyering@lucent.com>
109956         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
109957         Used by df.
109959 2001-09-01  Jim Meyering  <meyering@lucent.com>
109961         * lib/xreadlink.c: New file.
109962         * lib/xreadlink.h: New file.
109963         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
109964         xreadlink.h.
109966         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
109967         doesn't conflict with sparc Solaris 7's definition in
109968         /usr/include/sys/int_types.h.
109970         * lib/exclude.c: Use `""', not `<>' to #include non-system header
109971         files.
109972         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
109973         and strncasecmp as r-values.  Unixware didn't have declarations.
109975 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109977         * lib/xstrtol.h: Add copyright notice.
109978         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
109979         LONGINT_INVALID_SUFFIX_CHAR.
109981 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109983         * lib/xstrtol.c (strtoimax): New decl.
109985 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109987         * lib/xgetcwd.c: Don't include pathmax.h.
109988         Include stdlib.h and unistd.h if available.
109989         Include xalloc.h.
109990         (xmalloc, xstrdup, free): Remove decls.
109991         (xgetcwd): Don't assume sizes fit in unsigned.
109992         Check for overflow when computing sizes.
109993         Simplify reallocation code.
109995 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109997         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
109998         a directory's st_size can have an arbitrary value, so the old
109999         usage could waste an arbitrary amount of memory.  All uses
110000         changed.
110001         * lib/savedir.h: Update prototype.
110003 2001-08-31  Paul Eggert  <eggert@twinsun.com>
110005         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
110007         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
110008         old strtoimax.c.
110010         Also, make the following further changes to make this file's
110011         configuration more similar to that of strtol.c:
110012         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
110013         (strtoumax, uintmax_t, strtoull, strtol): Remove.
110014         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
110015         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
110016         changed to signed values.
110018         And make the following changes as well:
110019         Fix copyright notice, as 1999 was missing.
110020         (verify): New macro.
110021         (strtoimax): Check sizes at compile-time, not run-time.
110022         Prefer strtol to strtoll if both work.
110023         (main): Remove; it was not that useful and was a pain to maintain.
110025         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
110027 2001-08-31  Jim Meyering  <meyering@lucent.com>
110029         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
110030         Use an initial, malloc'd, buffer of length 128 rather than
110031         a statically allocated one of length 1024.
110033 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110035         Simplify code, partly by assuming autoconf 2.52 semantics.
110037         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
110039         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
110040         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
110041         All uses removed.
110042         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
110043         Move AC_REQUIRE to next-to-top level, to avoid confusion.
110044         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
110045         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
110046         jm_AC_HEADER_INTTYPES_H.
110047         * m4/jm-macros.m4 (jm_MACROS): Likewise.
110049         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
110051         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
110052         Quote first arg of AC_DEFUN.
110053         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
110054         since they are needed to parse the include file even if we need
110055         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
110056         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
110057         but with opposite signedness.
110059 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110061         Merge 'exclude' changes from tar 1.13.22.
110062         This fixes one or two unlikely storage allocation overflow bugs,
110063         but doesn't change user-visible behavior otherwise.
110065 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110067         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
110068         (jm_PREREQ_EXCLUDE): New macro.
110070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110072         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
110073         tm to be declared.
110075 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110077         * lib/hash.c: Remove '2001' from copyright notice.
110079 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110081         * lib/full-write.h: New file.
110082         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
110083         * lib/full-write.c: Correct credits, as cccp.c no longer
110084         exists and anyway it was so heavily changed from the old cccp
110085         code as to be unrecognizable.  Include full-write.h.
110086         (full_write): Return size_t, with short writes meaning failure.
110087         All callers changed.  This fixes a bug with large buffers
110088         on 64-bit hosts.
110089         * lib/utime.c: Include full-write.h.
110091 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110093         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
110094         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
110095         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
110096         Include if available.
110097         (<xalloc.h>): Include
110098         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
110099         (verify): New macro.  Use it to verify that EXCLUDE macros do not
110100         collide with FNM macros.
110101         (struct patopts): New struct.
110102         (struct exclude): Use it, as exclude patterns now come with options.
110103         (new_exclude): Support above changes.
110104         (new_exclude, add_exclude_file):
110105         Initial size must now be a power of two to simplify overflow checking.
110106         (free_exclude, fnmatch_no_wildcards): New function.
110107         (excluded_filename): No longer requires options arg, as the options
110108         are determined by add_exclude.  Now returns bool, not int.
110109         (excluded_filename, add_exclude):
110110         Add support for the fancy new exclusion options.
110111         (add_exclude, add_exclude_file): Now takes int options arg.
110112         Check for arithmetic overflow when computing sizes.
110113         (add_exclude_file): xrealloc might modify errno, so don't
110114         realloc until after errno might be used.
110116         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
110117         New macros.
110118         (free_exclude): New decl.
110119         (add_exclude, add_exclude_file): Now takes int options arg.
110120         (excluded_filename): No longer requires options arg, as the options
110121         are determined by add_exclude.  Now returns bool, not int.
110123 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110125         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
110127 2001-08-27  Jim Meyering  <meyering@lucent.com>
110129         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
110131         * lib/version-etc.c (N_): Remove definition.
110132         Revert most of last change.
110133         Instead, simply don't mark the `Copyright...' string for translation.
110134         Based on advice from Paul Eggert.
110136         * lib/strtoxmax.c: Tweak comment.
110138 2001-08-26  Jim Meyering  <meyering@lucent.com>
110140         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
110142         * m4/xstrtoimax.m4: New file.
110143         * m4/xstrtoumax.m4: Add comments explaining why we
110144         AC_REPLACE_FUNCS(strtol).
110146 2001-08-26  Jim Meyering  <meyering@lucent.com>
110148         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
110149         of copyright with `%s' so translators don't get an untranslated
110150         message in 2002.
110151         (COPYRIGHT_YEAR): Define.
110152         (version_etc): Use fprintf rather than fputs.
110153         Suggestion from Ulrich Drepper.
110155         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
110157         * lib/strtoll.c: New file, from GNU libc.
110158         * lib/xstrtoimax.c: New file.
110160         * lib/xstrtol.h: Add xstrtoimax.
110161         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
110162         * lib/strtoimax.c: New file.  Likewise, but first define
110163         STRTOUXMAX_SIGNED.
110165         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
110166         ...
110167         * lib/strtoxmax.c: ... then renamed to this.
110169 2001-08-18  Paul Eggert  <eggert@twinsun.com>
110171         * m4/inttypes.m4: Add AC_PREREQ(2.13).
110172         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
110173         (jm_AC_TYPE_INTMAX_T): New macro.
110174         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
110176         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
110178         * m4/longlong.m4: Renamed from ulonglong.m4.
110179         * m4/inttypes.m4: Renamed from inttypes_h.m4.
110180         * m4/uintmax_t.m4: Removed.
110182 2001-08-13  Paul Eggert  <eggert@twinsun.com>
110184         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
110185         Port to Solaris 8, where 'sed' requires a space after the 'r'
110186         command, and where sh dislikes "$/".  Clean up the spacing a bit.
110187         Redirect output to $tmp just once.
110189 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
110191         * lib/addext.c (<errno.h>): Include.
110192         (errno): Declare if not defined.
110193         (addext): Work correctly when pathconf returns -1 and leaves
110194         errno alone because there is no limit.  Also, work even if
110195         pathconf returns a value greater than SIZE_MAX.
110197 2001-08-12  Jim Meyering  <meyering@lucent.com>
110199         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
110200         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
110201         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
110202         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
110203         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
110204         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
110205         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
110206         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
110207         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
110208         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
110209         utime.m4, utimes.m4, xstrtoumax.m4:
110210         Quote the first argument in each use of AC_DEFUN.
110212 2001-08-12  Jim Meyering  <meyering@lucent.com>
110214         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
110215         Simply `return getcwd (NULL, 0);'.
110216         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
110217         Use 1300 as initial value for length, not PATH_MAX.
110219         * lib/pathmax.h: Clean up cpp syntax.
110221 2001-08-12  Jim Meyering  <meyering@lucent.com>
110223         * lib/gettimeofday.c: New file.
110224         * lib/gtod.h: New file.
110225         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
110227 2001-08-05  Jim Meyering  <meyering@lucent.com>
110229         * m4/jm-macros.m4: Require autoconf-2.52.
110231 2001-08-04  Jim Meyering  <meyering@lucent.com>
110233         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
110234         stmt, to get in sync with glibc.
110236 2001-08-03  Paul Eggert  <eggert@twinsun.com>
110238         The following changes are from gettext 0.10.39 as maintained by
110239         Bruno Haible.
110241         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
110242         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
110243         with inverted sense.  All uses changed.
110245         * lib/mbswidth.c: Don't include <limits.h>.
110246         Include <stdlib.h> and <string.h> unconditionally.
110247         (iswcntrl, mbsinit, ISCNTRL): New macros.
110248         (mbsnwidth): Use K&R style function declarations.
110249         Don't bother checking for MB_LEN_MAX == 1, since the compiler
110250         can optimize it when MB_CUR_MAX == 1.
110251         The width of control characters is zero, not 1.
110253 2001-08-03  Paul Eggert  <eggert@twinsun.com>
110255         The following changes are from gettext 0.10.39 as maintained by
110256         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
110258         * m4/codeset.m4: Upgrade to serial AM1.
110259         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
110260         all uses changed.  Quote first arg of AC_DEFUN.
110261         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
110263         * m4/iconv.m4: Upgrade to serial AM2.
110264         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
110265         Add --with-libconv-prefix.
110266         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
110267         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
110268         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
110269         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
110270         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
110272         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
110273         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
110274         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
110275         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
110276         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
110277         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
110278         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
110279         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
110280         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
110282         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
110283         string.h any more.
110285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
110286         not the default value.
110288         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
110289         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
110290         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
110291         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
110292         Also check for iswcntrl, used for wcwidth fallback.
110293         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
110294         to Autoconf 2.13.
110296 2001-08-03  Jim Meyering  <meyering@lucent.com>
110298         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
110299         as it was in the original.  Reported by Paul Eggert.
110301 2001-07-16  Jim Meyering  <meyering@lucent.com>
110303         * m4/gettimeofday.m4: New file.
110304         Prompted by a report from Bernhard Baehr.
110306 2001-07-15  Jim Meyering  <meyering@lucent.com>
110308         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
110309         stuff. Now it's in ../Makefile.cfg.
110311 2001-07-15  Jim Meyering  <meyering@lucent.com>
110313         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
110314         (BUILT_SOURCES): Add unlocked-io.h.
110315         (io_functions): Define.
110316         (unlocked-io.h): New rule.
110317         (DISTCLEANFILES): Add unlocked-io.h.
110318         (all-local): Depend on unlocked-io.h, to ensure it is created.
110320         * lib/unlocked-io.hin: New file
110322         * lib/regex.c: Update from glibc.
110324 2001-07-05  Jim Meyering  <meyering@lucent.com>
110326         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
110327         recommendation.
110328         (libfetish_a_SOURCES): Put all .h files here instead.
110329         Remove a thus-exposed (better checks in automake) duplicate and
110330         two unnecessary .h files.
110332 2001-07-04  Jim Meyering  <meyering@lucent.com>
110334         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
110335         that generates jm-glibc-io.m4 so that it doesn't trigger any make
110336         distcheck failure.
110338 2001-07-02  Jim Meyering  <meyering@lucent.com>
110340         The following changes were prompted by suggestions from Bruno Haible.
110342         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
110343         is now generated.
110344         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
110345         definition of EXTRA_DIST.
110346         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
110347         ensure that the generated file is created/updated whenever the list
110348         of $(unlocked_functions) is changed.
110349         (jm-glibc-io.m4): New rule.
110350         (unlocked-io.h): New rule -- currently unused.
110352 2001-06-24  Jim Meyering  <meyering@lucent.com>
110354         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
110355         unmatched right bracket, rather than kludging it with an extra,
110356         falsely-matching quote in a comment.  Patch by Akim Demaille.
110358 2001-06-11  Jim Meyering  <meyering@lucent.com>
110360         * lib/regex.c: Update from GNU libc.
110362 2001-05-27  Jim Meyering  <meyering@lucent.com>
110364         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
110365         Check for ut_type in struct utmp.
110367 2001-05-27  Jim Meyering  <meyering@lucent.com>
110369         * lib/readutmp.h (UT_TYPE): Define.
110371 2001-05-24  Jim Meyering  <meyering@lucent.com>
110373         * lib/argmatch.c: Include "quote.h".
110374         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
110375         quote function.  Reported by Göran Uddeborg.
110377 2001-05-22  Jim Meyering  <meyering@lucent.com>
110379         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
110380         now that we use the package-supplied version unconditionally.
110381         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
110383 2001-05-21  Jim Meyering  <meyering@lucent.com>
110385         * m4/regex.m4: Change a couple backticks to single quotes to avoid
110386         shell syntax errors.
110388 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
110390         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
110392 2001-05-20  Paul Eggert  <eggert@twinsun.com>
110394         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
110395         Don't bother to check library strftime, since
110396         we'll be using our own my_strftime function anyway.
110397         Define my_strftime instead of strftime.
110399 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
110401         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
110402         which is not yet declared.
110404 2001-05-15  Jim Meyering  <meyering@lucent.com>
110406         * m4/regex.m4: Use proper quoting so brackets appear in the test
110407         program.
110408         Reported by, and with help from, Bruno Haible.
110410 2001-05-13  Jim Meyering  <meyering@lucent.com>
110412         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
110413         undefined.
110415 2001-05-11  Paul Eggert  <eggert@twinsun.com>
110417         dirname code cleanup.  base_name now behaves more compatibly
110418         with POSIX basename when given file names that have trailing
110419         slashes, and similarly for dir_name.  Add new primitives
110420         base_len and dir_len.  Put the directory-name-related decls
110421         into dirname.h.
110423         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
110424         * lib/backupfile.c (base_name): Likewise.
110425         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
110426         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
110427         * lib/makepath.c (strip_trailing_slashes): Likewise.
110428         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
110429         ISSLASH): Likewise.
110430         * lib/rename.c (strip_trailing_slashes): Likewise.
110431         * lib/same.c (base_name): Likewise.
110432         * lib/stripslash.c (ISSLASH): Likewise.
110434         * lib/addext.c: Include <dirname.h> after size_t is defined.
110435         * lib/backupfile.c: Likewise.
110437         * lib/addext.c (addext): Use base_len to trim redundant
110438         trailing slashes instead of doing it ourselves.
110439         But do not trim the last slash if it is not redundant.
110441         * lib/backupfile.c (find_backup_file_name,
110442         max_backup_version): Use base_len instead of rolling it ourselves.
110443         Handle the case of "" and (on DOS) "C:" correctly.
110445         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
110446         needed. Include <string.h>, <dirname.h>.
110447         (base_name): Allow file names ending in slashes, other than names
110448         that are all slashes.  In this case, return the basename followed
110449         by the slashes.  This is more general, and can be used in places
110450         where the original base_name purposely had an assertion failure.
110451         (base_len): New function.
110453         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
110454         Do not include <assert.h>; no longer needed.
110455         Include xalloc.h.
110456         (memrchr): Remove decl.
110457         (dir_name_r): Remove.
110458         (dir_len): Renamed from dirlen.  All callers changed.
110459         Rewrite in terms of base_name, for simplicity and consistency.
110460         (dir_name): Never return NULL.  All callers changed.
110461         Do not include <stdlib.h> in test program; no longer needed.
110462         return 0; is fine for test program.
110464         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
110465         New macros.
110466         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
110468         * lib/path-concat.c (path_concat): Use base_len to compute
110469         base length, not strlen; this means we cannot rely on memcpy
110470         to null-terminate.
110472         * lib/same.c (STREQ): Remove.
110473         (same_name): Handle the case where the basename ends in trailing '/'.
110475         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
110476         a slash was stripped.  Do not strip the last slash after a
110477         file system prefix.
110479 2001-05-11  Paul Eggert  <eggert@twinsun.com>
110481         * lib/Makefile.am (libfetish_a_SOURCES):
110482         Add strftime.c, since we now compile it on all hosts.
110484         * lib/strftime.c (my_strftime):
110485         Define to nstrftime if emacs, but only if my_strftime is not defined.
110486         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
110487         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
110488         Add one more extra argument: a nanoseconds value.
110489         All uses changed.
110490         (ns): New macro.
110491         (my_strftime function): Add %N format.
110492         (emacs_strftimeu): Renamed from emacs_strftime,
110493         with extra ut argument.
110495 2001-05-09  Paul Eggert  <eggert@twinsun.com>
110497         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
110499 2001-04-21  Jim Meyering  <meyering@lucent.com>
110501         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
110502         doesn't interfere.
110504 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
110506         * m4/ftruncate.m4: Check for chsize.
110507         Link with ftruncate.o unconditionally if ftruncate is missing.
110508         This was required when cross-compiling to i586-mingw32msvc.
110510 2001-04-08  Jim Meyering  <meyering@lucent.com>
110512         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
110513         recomputed; that's necessary when the offset spans a DST transition.
110514         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
110516 2001-04-02  Jim Meyering  <meyering@lucent.com>
110518         * lib/regex.h, regex.c: Update from GNU libc.
110520 2001-03-24  Jim Meyering  <meyering@lucent.com>
110522         * m4/jm-macros.m4: Require autoconf-2.49d.
110524 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
110526         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
110528 2001-03-19  Paul Eggert  <eggert@twinsun.com>
110530         * lib/version-etc.c (version_etc_copyright): Update to 2001.
110532 2001-03-17  Jim Meyering  <meyering@lucent.com>
110534         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
110535         now that the version in autoconf is equivalent.
110536         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
110538         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
110539         Suggestion from Akim Demaille.
110541         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
110542         (jm_PREREQ_TEMPNAME): New function.
110544 2001-03-16  Paul Eggert  <eggert@twinsun.com>
110546         * lib/tempname.c (uint64_t): Define to uintmax_t if
110547         not defined, and if UINT64_MAX is not defined.
110548         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
110549         Reported by John David Anglin.
110551 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
110553         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
110554         resolve alias if codeset is empty.
110555         * lib/config.charset (BeOS): Use wildcard syntax.
110557 2001-03-13  Jim Meyering  <meyering@lucent.com>
110559         * lib/path-concat.c (path_concat)
110560         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
110561         concatenating e.g., `C:' and `foo'.
110562         From Bruno Haible.
110564 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
110566         * lib/localcharset.c (locale_charset): Don't use
110567         setlocale(LC_CTYPE,NULL). Don't return NULL.
110568         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
110570 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
110572         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
110573         support for DOS/DJGPP.
110575 2001-03-01  Paul Eggert  <eggert@twinsun.com>
110577         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
110578         lacks mkstemp.  Compile our own tempname.c if we compile our own
110579         mkstemp.c, as mkstemp relies on tempname.
110581 2001-03-01  Jim Meyering  <meyering@lucent.com>
110583         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
110584         AH_VERBATIM really does output its argument verbatim.
110586 2001-02-28  Paul Eggert  <eggert@twinsun.com>
110588         * lib/Makefile.am (libfetish_a_SOURCES):
110589         Add dup-safer.c, fopen-safer.c.
110590         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
110592         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
110593         * lib/unistd-safer.h: New files.
110595 2001-02-25  Paul Eggert  <eggert@twinsun.com>
110597         The mkstemp replacement is taken from glibc 2.2.2, with some
110598         portability fixes for use outside glibc, as follows:
110600         * lib/tempname.c (struct_stat64): New macro.
110601         (direxists, __gen_tempname): Use it.
110602         This avoids a portability problem with Solaris 8.
110604         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
110605         (<stddef.h>, <stdint.h>, <string.h>):
110606         Include only if STDC_HEADERS || _LIBC.
110607         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
110608         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
110609         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
110610         (__set_errno): Define this macro if <errno.h> doesn't.
110611         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
110612         Define these macros if <stdio.h> doesn't.
110613         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
110614         Define these macros if <sys/stat.h>
110615         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
110616         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
110617         __xstat64): Define if not _LIBC.
110618         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
110619         (__gen_tempname): Invoke gettimeofday only if
110620         HAVE_GETTIMEOFDAY || _LIBC;
110621         otherwise, fall back on plain "time".
110622         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
110624         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
110626         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
110628 2001-02-18  Paul Eggert  <eggert@twinsun.com>
110630         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
110632 2001-02-17  Paul Eggert  <eggert@twinsun.com>
110634         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
110635         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
110636         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
110637         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
110639 2001-02-17  Paul Eggert  <eggert@twinsun.com>
110641         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
110642         Remove workaround macros for hosts that have mbrtowc but not
110643         mbstate_t, as we now insist on proper declarations for both
110644         before using mbrtowc.
110646 2001-02-17  Jim Meyering  <meyering@lucent.com>
110648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
110649         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
110650         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
110651         UnixWare 7.1.1.
110653         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
110654         rather than AC_CACHE_VAL.
110656 2001-02-17  Jim Meyering  <meyering@lucent.com>
110658         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
110659         around included file name.
110661         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
110663         * lib/strftime.c: Update from GNU libc (the only changes were to
110664         comments).
110666 2001-02-17  Jim Meyering  <meyering@lucent.com>
110668         * lib/regex.c: Update from libc.
110670 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
110672         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
110673         clash.
110675 2001-02-16  Paul Eggert  <eggert@twinsun.com>
110677         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
110678         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
110679         Reported by Mark Hounschell via Paul Eggert.
110681 2001-02-07  Jim Meyering  <meyering@lucent.com>
110683         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
110685 2001-02-05  Jim Meyering  <meyering@lucent.com>
110687         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
110688         it includes the patch required for `large file' support with at least
110689         HP-UX's 10.20 /bin/cc.
110691 2001-02-03  Jim Meyering  <meyering@lucent.com>
110693         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
110694         AS_IF, now that it works once again (mysteriously).
110695         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
110697 2001-01-30  Jim Meyering  <meyering@lucent.com>
110699         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
110700         * m4/chown.m4: Rename conftestchown to conftest.chown.
110701         * m4/rename.m4: s/conftestdir/conftest.d1/ and
110702         s/conftestdir2/conftest.d2/.
110703         * m4/utimes.m4: s/conftestdata/conftest.data/
110704         Inspired by Pavel Roskin's change in autoconf.
110706 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
110708         * lib/config.charset: Update for FreeBSD 4.2.
110710 2001-01-27  Jim Meyering  <meyering@lucent.com>
110712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
110713         a use of AS_IF.
110714         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
110716 2001-01-26  Jim Meyering  <meyering@lucent.com>
110718         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
110719         quotearg.c includes it.
110721 2001-01-26  Jim Meyering  <meyering@lucent.com>
110723         * lib/quotearg.c: Include stddef.h.
110724         * lib/quote.c: Include stddef.h.
110725         Reported by Axel Kittenberger.
110727         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
110728         line in double quotes so that it evokes a better diagnostic.
110729         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
110730         Reported by Axel Kittenberger.
110732 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
110734         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
110735         as if it was a `charset'.
110737 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
110739         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
110740         has const.
110742 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
110744         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
110745         to avoid a warning.  Add back 'const' to inptr.
110747 2001-01-20  Jim Meyering  <meyering@lucent.com>
110749         Be sure that headers are checked before used in code compiled
110750         for the type checks.
110751         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
110752         In place of that, invoke jm_CHECK_ALL_TYPES.
110753         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
110754         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
110755         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
110756         The check for ssize_t was mistakenly run before the test for unistd.h.
110758         The configure-time check for stdbool.h was missing.
110759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
110760         (jm_PREREQ_HASH): New function.
110762 2001-01-17  Jim Meyering  <meyering@lucent.com>
110764         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
110765         for autoconf-2.49c.
110766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
110768 2001-01-16  Jim Meyering  <meyering@lucent.com>
110770         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
110771         From Bruno Haible.
110773 2001-01-14  Jim Meyering  <meyering@lucent.com>
110775         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
110776         foo and bar.  Create conftestdir/ in the script, not in the C code.
110777         Remove directories in the script, not in the C code.
110778         Remove conftestdir{,2} before trying to create the directory.
110779         Make the entire configure script fail if the mkdir fails.
110781 2001-01-14  Jim Meyering  <meyering@lucent.com>
110783         * lib/rename.c: New file.  From Volker Borchert.
110784         Include stdlib.h, string.h or strings.h, and xalloc.h.
110785         Use strip_trailing_slashes rather than open-coding it.
110787 2001-01-03  Paul Eggert  <eggert@twinsun.com>
110789         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
110791 2001-01-03  Jim Meyering  <meyering@lucent.com>
110793         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
110794         of local `inptr' to avoid warning with some system declarations of
110795         iconv.
110797 2001-01-02  Volker Borchert  <bt@teknon.de>
110799         * m4/rename.m4: New file.
110800         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
110802 2001-01-01  Jim Meyering  <meyering@lucent.com>
110804         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
110805         even on systems with utmpx.h.  It's necessary for the declaration of
110806         utmp's ut_user member.  Reported by Andreas Jaeger.
110808         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
110809         available. They are required for the declarations of getgrgid and
110810         getpwuid resp.
110811         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
110812         Reported by Andreas Jaeger.
110814 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
110816         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
110817         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
110818         so `make install' also works in VPATH builds.
110820 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
110822         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
110823         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
110824         can be used in subdirectories.
110826 2000-12-29  Paul Eggert  <eggert@twinsun.com>
110828         * lib/modechange.c: Do not assume that mode_t uses the
110829         traditional octal encoding.  E.g. "chmod 1 FOO" should set
110830         the other-execute bit of FOO even if S_IXOTH != 1.
110832         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
110833         WOTH, XOTH, ALLM): New macros.
110834         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
110835          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
110836         Use them.
110837         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
110838         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
110839         (mode_compile):
110840         No need to use uintmax_t; unsigned long is long enough.
110841         Don't bother to get suffix since we don't use it.
110843 2000-12-26  Jim Meyering  <meyering@lucent.com>
110845         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
110846         better with autoheader.
110848 2000-12-24  Jim Meyering  <meyering@lucent.com>
110850         * lib/hash.c (is_prime): Return explicit boolean values.
110851         (hash_get_first): Return NULL to appease Irix5.6's 89.
110852         Reported by Nelson Beebe.
110854 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
110856         * lib/localcharset.c (locale_charset): Add support for Win32.
110858 2000-12-18  Paul Eggert  <eggert@twinsun.com>
110860         * lib/physmem.h, lib/physmem.c: New files.
110862         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
110863         (noinst_HEADERS): Add physmem.h.
110865         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
110866         't' for compatibility with Solaris 8 sort.
110868 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
110870         * lib/config.charset: Add support for BeOS.
110872 2000-12-17  Jim Meyering  <meyering@lucent.com>
110874         * m4/dos.m4 (jm_AC_DOS): New file and macro.
110875         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
110877 2000-12-16  Jim Meyering  <meyering@lucent.com>
110879         This bug had a serious impact on chown: `chown N:M FILE' (for integer
110880         N and M) would have treated it like `chown N:N FILE'.
110882         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
110884 2000-12-16  Jim Meyering  <meyering@lucent.com>
110886         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
110887         SHELLS_FILE to a file name that's useful on djgpp systems.
110888         Include stdlib.h.
110889         (ADDITIONAL_DEFAULT_SHELLS): Define.
110890         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
110891         Based mostly on a patch from Prashant TR.
110893 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
110895         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
110896         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
110897         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
110899 2000-12-08  Andreas Schwab  <schwab@suse.de>
110901         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
110902         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
110904 2000-12-07  Jim Meyering  <meyering@lucent.com>
110906         * lib/stripslash.c (ISSLASH): Define.
110907         (strip_trailing_slashes): Use ISSLASH rather than comparing against
110908         `/'.
110909         From Prashant TR.
110911         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
110912         (dir_name_r): Declare this function as static.
110913         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
110914         manifest itself on a name containing a mix of slashes and
110915         backslashes.
110916         Make this function work with names starting with a DOS-style
110917         drive letter and colon prefix.
110918         (dir_name): Append `.' if necessary.
110919         Based mostly on patches from Prashant TR and Eli Zaretskii.
110921         * lib/dirname.h (dir_name_r): Remove prototype.
110923 2000-12-06  Paul Eggert  <eggert@twinsun.com>
110925         * m4/off_t-format.m4: Remove this file.
110926         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
110928 2000-12-06  Jim Meyering  <meyering@lucent.com>
110930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
110931         replacement strtoull, we may well need the replacement strtoul, too.
110932         Check for declarations of strtoul and strtoull.
110933         Check for strtol.  Mainly as a cue to cause automake to include
110934         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
110935         Check for limits.h -- strtol.c needs it.
110937 2000-12-05  Jim Meyering  <meyering@lucent.com>
110939         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
110941 2000-12-04  Jim Meyering  <meyering@lucent.com>
110943         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
110944         Also include memory.h, stdlib.h, unistd.h if appropriate.
110945         Reported by Andreas Jaeger (conflicting declaration of malloc).
110947 2000-12-02  Jim Meyering  <meyering@lucent.com>
110949         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
110950         * m4/jm-macros.m4 (jm_MACROS): require it.
110952 2000-12-02  Jim Meyering  <meyering@lucent.com>
110954         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
110956 2000-12-01  Paul Eggert  <eggert@twinsun.com>
110958         * lib/memrchr.c: Include <config.h> before any system include file.
110960 2000-11-30  Jim Meyering  <meyering@lucent.com>
110962         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
110964 2000-11-30  Jim Meyering  <meyering@lucent.com>
110966         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
110968 2000-11-29  Paul Eggert  <eggert@twinsun.com>
110970         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
110972 2000-11-26  Jim Meyering  <meyering@lucent.com>
110974         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
110976 2000-11-22  Paul Eggert  <eggert@twinsun.com>
110978         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
110979         size of (size_t) -1; it's not portable.
110981 2000-11-17  Jim Meyering  <meyering@lucent.com>
110983         * lib/strstr.c: Update from GNU libc.
110985 2000-11-17  Akim Demaille  <akim@epita.fr>
110987         * lib/obstack.h: Formatting changes.
110988         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
110989         prevent type checking.
110990         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
110991         cast the value to (void *): assigning a `foo *' to a `void *'
110992         variable is valid.
110993         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
110995 2000-11-16  Jim Meyering  <meyering@lucent.com>
110997         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
110999 2000-11-11  Jim Meyering  <meyering@lucent.com>
111001         * lib/error.c: Add a couple #includes, merging from GNU libc version.
111003 2000-11-10  Jim Meyering  <meyering@lucent.com>
111005         * lib/obstack.h: Update from GNU libc.
111006         * lib/obstack.c: Likewise.
111008 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
111010         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
111012 2000-11-06  Paul Eggert  <eggert@twinsun.com>
111014         * lib/getusershell.c (setusershell): Use rewind rather than
111015         fseek/fseeko, to avoid configuration hassles with fseeko.
111016         Don't bother opening SHELLS_FILE if shellstream is NULL;
111017         it's not necessary.
111019 2000-11-05  Jim Meyering  <meyering@lucent.com>
111021         * lib/makepath.h (make_dir): Declare.
111022         * lib/makepath.c (make_dir): Remove `static' attribute.
111023         Tweak a comment.
111025 2000-11-04  Jim Meyering  <meyering@lucent.com>
111027         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
111029 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
111031         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
111032         last one in a bucket, advance to the next bucket.
111034 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
111036         * lib/fnmatch.c: Do not comment out all the code if we are using
111037         the GNU C library, because in some cases we are replacing buggy
111038         code in the GNU C library itself.
111040 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
111042         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
111043         (regex_compile): Catch bogus \(\1\).
111045 2000-10-30  Paul Eggert  <eggert@twinsun.com>
111047         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
111048         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
111049         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
111051 2000-10-30  Paul Eggert  <eggert@twinsun.com>
111053         * lib/error.h, getline.h, modechange.h:
111054         Remove "2000" from Copyright line, as the file hasn't been
111055         changed this year other than in the copyright notice.
111057         * lib/xalloc.h: Add "2000" to Copyright line, as this file
111058         was changed this year.
111060 2000-10-29  Jim Meyering  <meyering@lucent.com>
111062         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
111063         renaming.
111064         * m4/ls-mntd-fs.m4: Likewise
111066 2000-10-29  Jim Meyering  <meyering@lucent.com>
111068         * lib/xstat.in: Fix grammar in comment.
111070 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
111072         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
111073         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
111074         doesn't define __restrict_arr.
111076 2000-10-28  Jim Meyering  <meyering@lucent.com>
111078         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
111079         (jm_PREREQ_MEMCHR): New function.
111081 2000-10-28  Jim Meyering  <meyering@lucent.com>
111083         * lib/memchr.c: Update from libc.
111084         Adjust for portability:
111085         [HAVE_STDLIB_H]: Include stdlib.h.
111086         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
111087         Undef __memchr, too.
111088         [!weak_alias]: Define __memchr to memchr.
111090         * lib/regex.c: Update from libc.
111091         * lib/regex.h: Likewise.
111092         * lib/getopt1.c: Likewise.
111093         * lib/memcmp.c: Likewise.
111095         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
111096         Avoid using fseek, when possible -- it's broken by design.
111097         Patch by Ulrich Drepper.
111099 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
111101         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
111102         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
111103         Giving in to popular pressure to shut up the compiler with casts.
111105 2000-10-26  Jim Meyering  <meyering@lucent.com>
111107         * lib/strftime.c: Update from libc.
111109 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
111111         * regex.c: More `unsigned char' -> `re_char' changes.
111112         Also change several `int' into `re_wchar_t'.
111113         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
111114         (PUSH_FAILURE_POINTER): Don't cast any more.
111115         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
111116         We want GCC to complain, since this piece of code makes
111117         re_match non-reentrant, which *should* be fixed.
111118         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
111119         (EXTEND_BUFFER): Use RETALLOC.
111120         (SET_LIST_BIT): Don't cast.
111121         (re_wchar_t): New type.
111122         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
111123         that those two functions will always properly return.
111124         (IMMEDIATE_QUIT_CHECK): Cast to void.
111125         (analyse_first): Use recursion rather than an explicit stack.
111126         (re_compile_fastmap): Can't fail anymore.
111127         (re_search_2): Don't check re_compile_fastmap for failure.
111128         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
111129         Now also sets the new value (passed in a new argument).
111130         (re_match_2_internal): Use it.
111131         Also, use a new var `reg' of type size_t when looping through regs
111132         rather than reuse the inappropriate `mcnt'.
111134 2000-10-25  Jim Meyering  <meyering@lucent.com>
111136         * lib/obstack.c: Update from libc.
111138 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
111140         * regex.c (regex_compile): Change the way of handling a range from
111141         a char less than 256 to a char not less than 256.
111143 2000-10-24  Andrew Innes  <andrewi@gnu.org>
111145         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
111146         NT-Emacs only.
111147         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
111148         so that re_search functions only quit when callers expect them to.
111150 2000-10-23  Jim Meyering  <meyering@lucent.com>
111152         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
111153         wrong.  That set_locale call must not have any side effects.
111154         From Paul Eggert.
111156 2000-10-22  Jim Meyering  <meyering@lucent.com>
111158         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
111159         [CYCLIC]: Remove now-unused definition.
111161         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
111162         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
111163         Suggestion from Ulrich Drepper.
111165 2000-10-21  Jim Meyering  <meyering@lucent.com>
111167         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
111168         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
111169         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
111171 2000-10-21  Jim Meyering  <meyering@lucent.com>
111173         * lib/dirname.c (memrchr): Declare if necessary.
111174         (dir_name): Remove the restriction that there be no
111175         trailing slashes.  Now, this code skips past them, effectively
111176         ignoring them.
111177         [TEST_DIRNAME] (main): New unit tests.
111179         * lib/memrchr.c: New file from GNU libc.
111180         Undef __memrchr, too.
111181         [!weak_alias]: Define __memrchr to memrchr.
111182         Guard weak_alias use with `#ifdef weak_alias'.
111184 2000-10-21  Jim Meyering  <meyering@lucent.com>
111186         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
111187         (dir_name): Use dir_name_r.
111188         * lib/dirname.h (dir_name_r): Declare it.
111190 2000-10-17  Jim Meyering  <meyering@lucent.com>
111192         * lib/quote.h (PARAMS): Define and use.
111193         Reported by Akim Demaille.
111195         * lib/getopt.c: Update from libc.
111197 2000-10-16  Jim Meyering  <meyering@lucent.com>
111199         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
111200         setlocale.
111201         From Jan Fedak.
111203 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
111205         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
111207 2000-09-25  Jim Meyering  <meyering@lucent.com>
111209         * lib/md5.h (rol): Define (from GnuPG).
111211         * lib/sha.c: Give credit (GnuPG) where due.
111212         (M): Use rol rather than open-coding it.
111213         Add a FIXME comment.
111215 2000-09-21  Jim Meyering  <meyering@lucent.com>
111217         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
111218         Reported by Michael Stone.
111220 2000-09-20  Jim Meyering  <meyering@lucent.com>
111222         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
111223         (noinst_HEADERS): Add sha.h.
111224         Based on code from Scott G. Miller and from GnuPG.
111226 2000-09-18  Jim Meyering  <meyering@lucent.com>
111228         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
111229         LIBS. Otherwise, everyone ends up linking with -lelf for some
111230         configurations.
111231         Reported by Mike Stone.
111233 2000-09-15  Jim Meyering  <meyering@lucent.com>
111235         * lib/regex.c: Update from libc.
111237 2000-09-10  Jim Meyering  <meyering@lucent.com>
111239         * lib/getopt.c (_getopt_internal): Update from glibc.
111241 2000-09-09  Jim Meyering  <meyering@lucent.com>
111243         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
111244         think it should be used as a general replacement for isascii.
111245         * lib/fnmatch.c: Likewise.
111246         * lib/mbswidth.c: Likewise
111247         * lib/regex.c: Likewise.
111249         Don't use atoi.
111250         * lib/userspec.c: Include sys/param.h and limits.h.
111251         Include xstrtol.h.
111252         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111253         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
111254         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
111255         UID, GID.  Check range.
111257 2000-09-06  Jim Meyering  <meyering@lucent.com>
111259         * lib/getopt.c (_getopt_internal): Update from glibc.
111261 2000-08-30  Jim Meyering  <meyering@lucent.com>
111263         * lib/strftime.c: Merge in changes from GNU libc.
111265 2000-08-26  Jim Meyering  <meyering@lucent.com>
111267         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
111268         * m4/fpending.m4: New file.
111270 2000-08-26  Jim Meyering  <meyering@lucent.com>
111272         * lib/closeout.c: Include "__fpending.h".
111273         (close_stdout_status): Return right away if there's nothing to flush.
111275         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
111276         * lib/__fpending.c: New file.
111277         * lib/__fpending.h: New file.
111279 2000-08-20  Jim Meyering  <meyering@lucent.com>
111281         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
111282         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
111283         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
111285 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
111287         Improve fileutils installation on systems where running
111288         programs (like install) can't be unlinked.
111289         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
111290         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
111292 2000-08-07  Paul Eggert  <eggert@twinsun.com>
111294         Standardize on "memory exhausted" instead of "Memory exhausted"
111295         or "virtual memory exhausted".
111296         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
111297         "virtual memory exhausted".
111298         * lib/same.c (same_name): Invoke xalloc_die instead of printing
111299         our own message.
111300         * lib/userspec.c (parse_user_spec): Likewise.
111301         * lib/bumpalloc.h: comment fix
111302         * lib/same.c, userspec.c: Include xalloc.h.
111304         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
111305         not char *const and pointing to a constant array.
111306         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
111307         (xrealloc): Comment fix.
111309         * lib/userspec.c (parse_user_spec):
111310         Don't translate a message until just before returning,
111311         to avoid unnecessary translation.
111313 2000-08-07  Jim Meyering  <meyering@lucent.com>
111315         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
111316         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
111317         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
111318         getgroups.c, gethostname.c, getopt.h, group-member.c,
111319         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
111320         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
111321         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
111322         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
111323         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
111324         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
111325         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
111326         yesno.c: Back out Copyright date changes for each file with no change
111327         this year.  This eases coordination with other programs using the same
111328         source code modules.  From Paul Eggert.
111330 2000-08-06  Paul Eggert  <eggert@twinsun.com>
111332         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
111333         not char, for compatibility with glibc 2.1.3 strftime.c.
111335 2000-08-03  Greg McGary  <greg@mcgary.org>
111337         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
111338         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
111339         (EXTEND_BUFFER): Use them.
111341 2000-08-01  Jim Meyering  <meyering@lucent.com>
111343         * lib/dirname.c (ISSLASH): Define.
111344         (BACKSLASH_IS_PATH_SEPARATOR): Define.
111345         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
111346         both `\' and `/' may be use as path separators.
111347         Based on a patch from Prashant TR.
111349 2000-07-31  Paul Eggert  <eggert@twinsun.com>
111351         * lib/quotearg.c (quotearg_n_options): Don't make the initial
111352         slot vector a constant, since it might get modified.
111354 2000-07-31  Jim Meyering  <meyering@lucent.com>
111356         * lib/xmalloc.c: Use `virtual memory exhausted', not
111357         `Memory exhausted'.
111358         * lib/obstack.c (print_and_abort): Likewise.
111360 2000-07-30  Paul Eggert  <eggert@twinsun.com>
111362         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
111363         buffer, so that the caller can always quote one small
111364         component of a "memory exhausted" message in slot 0.
111365         From a suggestion by Jim Meyering.
111367 2000-07-30  Jim Meyering  <meyering@lucent.com>
111369         * lib/makepath.c (make_path): Quote the other instance, too.
111371         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
111372         (STATIC_BUF_SIZE): Define.
111373         (quotearg_n_options): Use only statically allocated storage when
111374         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
111375         than STATIC_BUF_SIZE.
111377 2000-07-29  Jim Meyering  <meyering@lucent.com>
111379         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
111380         * lib/dirname.c (dir_name): Likewise.
111382         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
111383         `/'.
111385         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
111386         (dir_name): Assert that there are no trailing slashes.
111388 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
111390         * lib/mbswidth.h (mbswidth): Add a flags argument.
111391         (mbswidth): New declaration.
111392         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
111393         * lib/mbswidth.c (mbswidth): Add a flags argument.
111394         (mbsnwidth): New function.
111396 2000-07-24  Jim Meyering  <meyering@lucent.com>
111398         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
111400 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111402         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
111404 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111406         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
111407         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
111408         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
111409         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
111410         invoke multibyte primitives.
111412 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111414         * lib/quotearg.c:
111415         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
111416         so that mbstate_t is always defined.
111418         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
111419         be 1 in at least one GCC installation, and this configuration
111420         error is likely to be common.  Ignoring MB_LEN_MAX hurts
111421         performance on hosts that have mbrtowc but have only unibyte
111422         locales, but I assume these hosts are rare.
111424 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111426         * lib/mbswidth.c (_XOPEN_SOURCE):
111427         Don't define; this causes problems on Solaris 7.
111428         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
111430 2000-07-23  Jim Meyering  <meyering@lucent.com>
111432         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
111433         too: getgrgid, getpwuid, getuid.
111435 2000-07-23  Jim Meyering  <meyering@lucent.com>
111437         * lib/basename.c (base_name): Add an assertion.
111439 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
111441         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
111442         shadow its mbsinit function.
111444 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
111446         * lib/mbswidth.h: New file.
111447         * lib/mbswidth.c: New file.
111448         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
111449         (noinst_HEADERS): Add mbswidth.h.
111451 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
111453         * lib/config.charset: Add support for FreeBSD. Improve support for
111454         HP-UX and IRIX 6.
111456 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
111458         * m4/mbswidth.m4: New file.
111459         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
111461 2000-07-15  Jim Meyering  <meyering@lucent.com>
111463         * lib/makepath.c: Include quote.h.
111464         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
111465         corresponding argument in a `quote (...)' call.
111466         Give better diagnostics.
111468         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
111469         (noinst_HEADERS): Add quote.h.
111471         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
111472         from tar's src/misc.c.
111473         * lib/quote.h: New file.  Prototypes for same.
111475 2000-07-14  Paul Eggert  <eggert@twinsun.com>
111477         From a suggestion by Bruno Haible.
111478         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
111479         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
111480         to decide whether to define the BeOS workaround macro;
111481         this adjusts to the change to AC_MBSTATE_T.
111483 2000-07-14  Jim Meyering  <meyering@lucent.com>
111485         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
111486         jm_AC_TYPE_UINTMAX_T.
111488 2000-07-13  Paul Eggert  <eggert@twinsun.com>
111490         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
111492         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
111493         quotearg_buffer_restyled): Add support for
111494         clocale_quoting_style.  Undo previous change to
111495         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
111496         and "{RIGHT QUOTATION MARK}" msgids.
111498 2000-07-10  Paul Eggert  <eggert@twinsun.com>
111500         From a suggestion by Bruno Haible.
111501         * m4/mbstate_t.m4 (AC_MBSTATE_T):
111502         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
111503         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
111504         and mbstate_t, to a single-part test that simply defines mbstate_t.
111505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
111506         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
111508 2000-07-10  Jim Meyering  <meyering@lucent.com>
111510         * m4/strerror_r.m4: Mirror the correction made in autoconf.
111512         * m4/gnu-source.m4: Output to confdefs.h directly.
111513         Suggestion from Akim Demaille.
111515 2000-07-09  Paul Eggert  <eggert@twinsun.com>
111517         The old behavior of quoting `like this' doesn't look good with
111518         newer, ISO-style fonts.  See:
111519         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
111521         Instead, quote "like this" by default.  Let the translator
111522         tailor the locale-specific quoting behavior by providing
111523         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
111525         * lib/quotearg.c (N_): New macro.
111526         (gettext_default): New function.
111527         (quotearg_buffer_restyled): Use
111528         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
111529         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
111531 2000-07-09  Jim Meyering  <meyering@lucent.com>
111533         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
111534         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
111536         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
111537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
111539 2000-07-09  Jim Meyering  <meyering@lucent.com>
111541         * lib/Most files: Update copyright dates to include 2000.
111543 2000-07-08  Jim Meyering  <meyering@lucent.com>
111545         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
111546         if not defined.
111547         (xgethostname): Remove now-unnecessary #ifdef.
111548         Move declaration of `err' into loop where it's used.
111550 2000-07-05  Paul Eggert  <eggert@twinsun.com>
111551         and Bruno Haible  <haible@clisp.cons.org>
111553         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
111554         only if the test for an object-type mbstate_t fails.  This
111555         prevents us from mistakenly reporting that mbstate_t is a
111556         system object type after we "#define mbstate_t int" to work
111557         around its lack.
111559 2000-07-05  Paul Eggert  <eggert@twinsun.com>
111560         and Bruno Haible  <haible@clisp.cons.org>
111562         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
111564 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111566         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
111567         to strerror_r.
111568         Include <ctype.h> for use of isalpha.
111570 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111572         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
111573         by allocating a larger buffer. Test the gethostname return value for
111574         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
111575         returns an error and ENAMETOOLONG isn't defined.
111577 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111579         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
111580         dimension.
111582 2000-07-04  Jim Meyering  <meyering@lucent.com>
111584         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
111585         of the deprecated AC_CHECKING.
111587 2000-07-04  Jim Meyering  <meyering@lucent.com>
111589         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
111590         Reported by Bruno Haible.
111592 2000-07-04  Jim Meyering  <meyering@lucent.com>
111594         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
111595         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
111596         lacks mbrtowc.
111598 2000-07-03  Paul Eggert  <eggert@twinsun.com>
111600         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
111601         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
111603 2000-07-03  Paul Eggert  <eggert@twinsun.com>
111604         and Bruno Haible  <haible@clisp.cons.org>
111606         * lib/quotearg.c (mbrtowc):
111607         Assign to *pwc, and return 1 only if result is nonzero.
111608         (iswprint): Use ISPRINT when substituting our own mbrtowc.
111610 2000-07-03  Jim Meyering  <meyering@lucent.com>
111612         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
111614 2000-07-03  Jim Meyering  <meyering@lucent.com>
111616         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
111617         This is necessary to get a definition of e.g., UTMP_FILE on
111618         HP-UX 10.20.
111619         From Bob Proulx.
111621 2000-07-02  Jim Meyering  <meyering@lucent.com>
111623         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
111625         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
111626         AC_LIBOBJ(function_name).
111627         * m4/chown.m4: Likewise.
111628         * m4/fnmatch.m4: Likewise.
111629         * m4/ftruncate.m4: Likewise.
111630         * m4/getgroups.m4: Likewise.
111631         * m4/getline.m4: Likewise.
111632         * m4/group-member.m4: Likewise.
111633         * m4/jm-macros.m4: Likewise.
111634         * m4/lstat.m4: Likewise.
111635         * m4/malloc.m4: Likewise.
111636         * m4/memcmp.m4: Likewise.
111637         * m4/nanosleep.m4: Likewise.
111638         * m4/putenv.m4: Likewise.
111639         * m4/realloc.m4: Likewise.
111640         * m4/regex.m4: Likewise.
111641         * m4/stat.m4: Likewise.
111642         * m4/strftime.m4: Likewise.
111644 2000-07-02  Jim Meyering  <meyering@lucent.com>
111646         * lib/quotearg.c (mbstate_t): Don't define here.
111648 2000-07-02  Jim Meyering  <meyering@lucent.com>
111650         * lib/nanosleep.c (SIGCONT): Define if not already defined.
111652 2000-07-01  Jim Meyering  <meyering@lucent.com>
111654         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
111656 2000-07-01  Jim Meyering  <meyering@lucent.com>
111658         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
111659         problem.
111661 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
111663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
111664         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
111666 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
111668         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
111669         per change in ../m4/ls-mntd-fs.m4.
111670         (read_filesystem_list): Ignore symbolic links.
111672 2000-06-29  Jim Meyering  <meyering@lucent.com>
111674         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
111675         for declaration of strcmp.
111677         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
111679         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
111680         Avoid warning by casting result to `char *' to remove `const'.
111682 2000-06-28  Jim Meyering  <meyering@lucent.com>
111684         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
111685         included by quotearg.c, for which we perform this test.  From
111686         Bruno Haible.
111688 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
111690         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
111691         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
111692         <utmpx.h> exists, put readutmp.o into LIBOBJS.
111694 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
111696         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
111698 2000-06-26  Paul Eggert  <eggert@twinsun.com>
111700         savedir now sets errno on failure and invokes xmalloc to get memory.
111701         Fix a couple of other minor bugs while we're at it.
111703         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
111704         (NAMLEN): Remove macro.
111705         (malloc, realloc): Remove decls.
111706         (stpcpy): Likewise.
111707         ("xalloc.h"): Include.
111708         (NAME_SIZE_DEFAULT): New macro.
111709         (savedir): Use xmalloc / xrealloc to allocate memory.
111710         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
111711         Skip "" directory entries.
111712         Use strlen to calculate directory entry length, since the old method
111713         is rarely used these days and isn't worth supporting.
111714         Don't use a pointer after freeing it.
111715         Check for integer overflow when calculating allocation size.
111716         Use memcpy to copy entries, instead of stpcpy.
111717         Set errno properly when returning NULL.
111718         Check for readdir error.
111720 2000-06-26  Jim Meyering  <meyering@lucent.com>
111722         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
111724 2000-06-25  Jim Meyering  <meyering@lucent.com>
111726         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
111727         Linux header bug when _XOPEN_SOURCE is defined to 500.
111729 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
111731         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
111732         deficiency.
111734 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
111736         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
111737         Include xalloc.h.
111738         Don't include <stdlib.h>.  Don't declare malloc, realloc.
111740 2000-06-24  Jim Meyering  <meyering@lucent.com>
111742         * m4/strerror_r.m4: Revive this file -- to try out an experimental
111743         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
111744         for which strerror does return char*, but which lacks a conveniently
111745         accessible declaration of the function.  If the compile-test says
111746         strerror_r doesn't work, then resort to a `run'-test that works on
111747         BeOS and segfaults on DEC Unix.
111749 2000-06-24  Jim Meyering  <meyering@lucent.com>
111751         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
111753 2000-06-23  Paul Eggert  <eggert@twinsun.com>
111755         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
111756         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
111758 2000-06-23  Paul Eggert  <eggert@twinsun.com>
111760         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
111761         (mbrtowc, mbstate_t): Define substitutes if
111762         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
111763         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
111764         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
111766 2000-06-23  Jim Meyering  <meyering@lucent.com>
111768         * m4/afs.m4: Add missing AC_MSG_RESULT.
111769         Reported by Bruno Haible.
111771         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
111772         Suggestion from Bruno Haible.
111774 2000-06-23  Jim Meyering  <meyering@lucent.com>
111776         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
111778 2000-06-21  Jim Meyering  <meyering@lucent.com>
111780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
111782 2000-06-21  Jim Meyering  <meyering@lucent.com>
111784         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
111785         (noinst_HEADERS): Add getstr.h.
111787         * lib/getline.c (getstr): Move into a separate file.
111788         * lib/getstr.c (getstr): New file, extracted from getline.c, with
111789         the following changes: new parameter, delim2; both delim[12]
111790         parameters have type `int', not `char'.  The latter would lose
111791         with 8-bit delimiters.
111792         * lib/getstr.h: New file.
111794 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111796         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
111797         than 1024, return a memory chunk of least possible size, instead
111798         of size PATH_MAX + 2. In the loop, increment the size proportionally.
111799         Use free/xmalloc instead of xrealloc to avoid copying for very long
111800         paths.
111802 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111804         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
111805         the empty string.
111807 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111809         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
111810         address, not strdup.  Include <stdlib.h> and don't declare free().
111812 2000-06-19  Jim Meyering  <meyering@lucent.com>
111814         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
111816 2000-06-18  Jim Meyering  <meyering@lucent.com>
111818         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
111820         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
111821         `checking whether...' message to be consistent with that of the
111822         lstat test.
111824 2000-06-18  Jim Meyering  <meyering@lucent.com>
111826         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
111827         Besides, these days every porting target provides a mkdir function.
111829         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
111830         needed. (this snippet comes from src/system.h).
111832 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
111834         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
111836 2000-06-15  Paul Eggert  <eggert@twinsun.com>
111838         * lib/human.c (adjust_value): New function.
111839         (human_readable_inexact): Apply rounding style even when
111840         printing approximate values.
111842 2000-06-14  Paul Eggert  <eggert@twinsun.com>
111844         * lib/human.c (human_readable_inexact): Allow an input block
111845         size that is not a multiple of the output block size, and vice versa.
111846         Reported by Piergiorgio Sartor.
111848 2000-06-14  Paul Eggert  <eggert@twinsun.com>
111850         * lib/getdate.y (get_date): Apply relative times after time
111851         zone indicator, not before.  Reported by Todd A. Jacobs.
111853 2000-06-13  Jim Meyering  <meyering@lucent.com>
111855         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
111857         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
111859 2000-06-12  Paul Eggert  <eggert@twinsun.com>
111861         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
111863 2000-06-12  Jim Meyering  <meyering@lucent.com>
111865         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
111866         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
111867         optional argument.
111868         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
111869         the optional argument, `lib'.
111871 2000-06-08  Jim Meyering  <meyering@lucent.com>
111873         * m4/largefile.m4: Remove file (now that it's part of autoconf).
111875 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111877         Rewrite largefile configuration so that we don't need to run
111878         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
111879         AC_CANONICAL_HOST in configure.in -- jmm]
111881         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
111882         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
111883         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
111884         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
111885         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
111886         All uses changed.
111887         Instead of inspecting the output of getconf, try to compile the
111888         test program without and with the macro definition.
111889         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
111890         for getconf.  Instead, check for the needed flags by compiling
111891         test programs.
111893 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111895         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
111897 2000-06-04  Jim Meyering  <meyering@lucent.com>
111899         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
111900         SunOS 4.1.4 for which gid_t is an unsigned type.
111902 2000-06-03  Jim Meyering  <meyering@lucent.com>
111904         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
111905         now that autoconf requires that.
111907         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
111908         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
111909         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
111911 2000-06-03  Jim Meyering  <meyering@lucent.com>
111913         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
111915 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111917         * m4/glibc21.m4: New file.
111918         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
111920 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111922         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
111923         newer, don't install charset.alias.
111924         * lib/config.charset: Change the Linux/glibc rules so they become empty
111925         on glibc-2.1 or newer.
111927 2000-06-02  Jim Meyering  <meyering@lucent.com>
111929         * lib/mountlist.c: Back out last change.  Instead, do this...
111930         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
111931         me_dummy member using the same `ignore'-testing code.
111932         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
111933         fs_type strings.
111934         From Mark D. Roth.
111936 2000-05-29  Jim Meyering  <meyering@lucent.com>
111938         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
111939         mounts with the `ignore' attribute.  Based on a patch from
111940         Mark D. Roth.
111942 2000-05-28  Jim Meyering  <meyering@lucent.com>
111944         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
111945         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111946         * m4/stat.m4: Likewise.
111947         * m4/lstat.m4: Likewise.
111948         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
111950         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
111951         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
111953 2000-05-26  Jim Meyering  <meyering@lucent.com>
111955         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
111957 2000-05-24  Jim Meyering  <meyering@lucent.com>
111959         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
111960         autoconf requires that.
111961         * m4/lib-check.m4: Likewise.
111962         * m4/jm-macros.m4: Likewise.
111963         * m4/strftime.m4: Likewise.
111965         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
111966         AC_CHECK_DECLS, now that autoconf requires that.
111968 2000-05-22  Jim Meyering  <meyering@lucent.com>
111970         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111971         * m4/lstat.m4: Likewise.
111973 2000-05-22  Jim Meyering  <meyering@lucent.com>
111975         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
111977 2000-05-20  Jim Meyering  <meyering@lucent.com>
111979         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
111980         (jm_PREREQ): Use it.
111982 2000-05-18  Jim Meyering  <meyering@lucent.com>
111984         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
111985         back, too, since it may have been modified by allocate_entry.
111986         (hash_delete): Rewrite to use neither the assignment operator
111987         nor the comma operator in an if-expression.
111989 2000-05-15  Paul Eggert  <eggert@twinsun.com>
111991         * lib/closeout.c:
111992         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
111993         Remove; no longer needed.
111994         "quotearg.h": Add include.
111995         (file_name): Do not bother to explicitly initialize to NULL; it's less
111996         efficient on some hosts.
111997         (close_stdout_status): Remove test as to whether stdout was already
111998         closed; it breaks for the case "echo x | sort >&-".
111999         Quote file name colons.
112000         Do not assume that _("write error") lacks format strings.
112002 2000-05-15  Jim Meyering  <meyering@lucent.com>
112004         * lib/version-etc.c (version_etc_copyright): Update the copyright
112005         string used in all --version output.
112007 2000-05-14  Jim Meyering  <meyering@lucent.com>
112009         * lib/closeout.c (close_stdout_set_file_name): New function.
112010         (close_stdout_status): Use new file-scoped global.
112011         Return right away if fstat says the stdout file descriptor is invalid.
112012         * lib/closeout.h (close_stdout_set_file_name): Declare.
112014 2000-05-10  Jim Meyering  <meyering@lucent.com>
112016         * lib/closeout.c [default_exit_status]: New file-scoped variable.
112017         (close_stdout_set_status): New function.
112018         * lib/closeout.h (close_stdout_set_status): Declare.
112020 2000-05-09  Jim Meyering  <meyering@lucent.com>
112022         * m4/gettext.m4: Rename this...
112023         * m4/libintl.m4: ...to this.
112025 2000-05-08  Jim Meyering  <meyering@lucent.com>
112027         * lib/long-options.c: Don't include closeout.h.
112028         (parse_long_options): Don't call close_stdout for --version.
112030 2000-05-06  Paul Eggert  <eggert@twinsun.com>
112032         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
112033         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
112034         2.1.3 bug.  This avoids a clash when files like regex.c define
112035         _GNU_SOURCE.
112037 2000-05-06  Jim Meyering  <meyering@lucent.com>
112039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
112040         (AC_REPLACE_FUNCS): Add strnlen.
112042         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
112043         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
112045         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
112046         AC_SEARCH_LIBS call for nanosleep.
112047         (LIB_NANOSLEEP): Set and AC_SUBST.
112049 2000-05-06  Jim Meyering  <meyering@lucent.com>
112051         * lib/strnlen.c: Undefine __strnlen and strnlen.
112052         [!weak_alias]: Define __strnlen to strnlen.
112054         * lib/atexit.c: New file, from libiberty.
112056 2000-05-06  Jim Meyering  <meyering@lucent.com>
112058         * lib/closeout.c (close_stdout_status): Also check for errors on the
112059         stderr stream.
112061 2000-05-05  Jim Meyering  <meyering@lucent.com>
112063         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
112064         AC_SEARCH_LIBS call for clock_gettime.
112065         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
112067         * m4/search-libs.m4: Update from autoconf.
112069         su doesn't work on Solaris 2.6.
112070         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
112071         <shadow.h>.  Reported by Dragos Harabor.
112073 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
112075         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
112076         memcpy instead of xmalloc, xrealloc, path_concat.
112077         (locale_charset): Treat empty environment variables as absent.
112078         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
112080 2000-05-04  Jim Meyering  <meyering@lucent.com>
112082         * lib/getopt.c: Update from glibc.
112083         * lib/obstack.c: Likewise.
112084         * lib/obstack.h: Likewise.
112085         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
112086         file
112088         * lib/regex.h: Likewise.
112089         * lib/strndup.c: Likewise.
112090         * lib/strnlen.c: New file, from glibc.
112092 2000-05-03  Jim Meyering  <meyering@lucent.com>
112094         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
112096 2000-05-02  Paul Eggert  <eggert@twinsun.com>
112098         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
112099         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
112100         compile-time test, rather than inspecting host and OS, to
112101         decide whether to define _LARGEFILE_SOURCE.
112103 2000-05-01  Jim Meyering  <meyering@lucent.com>
112105         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
112107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
112108         Based on a patch from Bruno Haible.
112110 2000-05-01  Jim Meyering  <meyering@lucent.com>
112112         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
112114 2000-04-29  Jim Meyering  <meyering@lucent.com>
112116         * lib/path-concat.c: Declare strdup only if it's not defined.
112117         * lib/canon-host.c: Likewise.
112119 2000-04-28  Jim Meyering  <meyering@lucent.com>
112121         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
112122         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
112123         is included first, then limits.h is included by locale.h by libintl.h.
112124         From John David Anglin.
112126 2000-04-25  Jim Meyering  <meyering@lucent.com>
112128         * lib/makepath.c (S_IRWXUGO): Define.
112129         (make_path): Always perform explicit chmod if MODE specifies any
112130         of the `special' permission bits.  Prompted by a bug report against
112131         install from Mate Wierdl and Joost van Baal.
112133 2000-04-18  Jim Meyering  <meyering@lucent.com>
112135         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
112136         (jm_PREREQ): Use it.
112138 2000-04-18  Jim Meyering  <meyering@lucent.com>
112140         * lib/README: New file.
112142         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
112143         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
112145 2000-04-17  Jim Meyering  <meyering@lucent.com>
112147         Get it right :-)
112148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
112149         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
112150         Suggestion from Akim Demaille.
112152 2000-04-17  Jim Meyering  <meyering@lucent.com>
112154         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
112155         the definition of it to rpl_strftime also defined-away the system's
112156         declaration.
112158 2000-04-15  Jim Meyering  <meyering@lucent.com>
112160         Use `C' to denote so-called `contiguous' files, the same way
112161         that tar does.
112162         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
112163         (ftypelet): Use S_ISCTG.
112164         From Michael Deutschmann.
112166 2000-04-14  Jim Meyering  <meyering@lucent.com>
112168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
112169         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
112170         clobbered.
112172 2000-04-14  Jim Meyering  <meyering@lucent.com>
112174         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
112176 2000-04-13  Jim Meyering  <meyering@lucent.com>
112178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
112179         AH_VERBATIM to insert required #ifndef into config.h.in.
112180         Suggestion from Akim Demaille.
112182 2000-04-12  Jim Meyering  <meyering@lucent.com>
112184         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
112185         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
112186         Christian Krackowizer.
112188         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
112189         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
112190         (AC_SYS_LARGEFILE): Require.
112191         (AM_C_PROTOTYPES): Require.
112193 2000-04-08  Jim Meyering  <meyering@lucent.com>
112195         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
112196         names don't conflict.  Reported by Eli Zaretskii.
112198 2000-04-07  Jim Meyering  <meyering@lucent.com>
112200         * lib/putenv.c: Move inclusion of errno.h so it follows that of
112201         sys/types.h, to work around system header problems on AIX 3.2.5.
112202         From Bruno Haible.
112204 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
112206         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
112207         bug.  Deal with the different error behavior of Irix iconv.
112209 2000-04-05  Paul Eggert  <eggert@twinsun.com>
112211         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
112212         IRIX if the installer said otherwise.
112214 2000-04-05  Jim Meyering  <meyering@lucent.com>
112216         Portability tweaks required for ultrix4.3.
112217         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
112218         (jm_CHECK_DECLS): Add getutent to the list of functions.
112219         (_jm_DECL_HEADERS): Add utmpx.h.
112220         From John David Anglin.
112222         * m4/strftime.m4: Back out the 2000-04-02 change.
112223         Instead of that change, simply undefine putenv in the test program.
112225 2000-04-05  Jim Meyering  <meyering@lucent.com>
112227         Portability tweaks required for ultrix4.3.
112228         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
112229         getutent.
112230         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
112231         * lib/canon-host.c: Declare strdup.
112232         * lib/path-concat.c: Likewise.
112233         From John David Anglin.
112235 2000-04-04  Jim Meyering  <meyering@lucent.com>
112237         Be more DOS 8.3-friendly.
112238         * lib/ref-add.sin: Renamed from ref-add.sed.in.
112239         * lib/ref-del.sin: Renamed from ref-del.sed.in.
112240         * lib/Makefile.am: Reflect renaming.
112241         Reported by Eli Zaretskii.
112243         Use a temporary file name that won't clash with `charset.alias'
112244         in the DOS 8.3 name space.
112245         * lib/Makefile.am (charset_tmp): Define.
112246         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
112247         (uninstall-local): Likewise.
112248         Reported by Eli Zaretskii.
112250 2000-04-03  Jim Meyering  <meyering@lucent.com>
112252         * m4/gettext.m4: Fix typo in comment.
112254         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
112255         textutils/configure.in).  Suggestion from Paul Eggert.
112256         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
112258 2000-04-02  Paul Eggert  <eggert@twinsun.com>
112260         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
112261         variable in the shell rather than using putenv, which isn't
112262         portable.  This avoids the configure-time inter-test dependency
112263         on the potentially-renamed putenv function.
112265 2000-03-30  Paul Eggert  <eggert@twinsun.com>
112267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
112268         before checking struct stat.st_blksize, so that
112269         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
112271 2000-03-29  Paul Eggert  <eggert@twinsun.com>
112273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
112274         since strftime.c uses HAVE_STRFTIME to decide whether to use
112275         the underlying strftime.
112277 2000-03-29  Paul Eggert  <eggert@twinsun.com>
112279         * lib/time/strftime.c (my_strftime): Make sure we call the system
112280         strftime, not ourselves, when invoking the underlying strftime.
112282 2000-03-24  Jim Meyering  <meyering@lucent.com>
112284         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
112285         (charset_alias): Define.
112286         (install-exec-local): Factor out common code.
112287         (uninstall-local): Split lines longer than 80.
112288         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
112289         (SUFFIXES): Define.
112290         (.sed.in.sed): New rule.  Don't redirect directly to $@.
112291         (CLEANFILES): Add ref-add.sed and ref-del.sed.
112293 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
112295         * lib/config.charset: Output a line containing "Packages using this
112296         file".
112297         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
112298         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
112299         ref-del.sed): New rules.
112301 2000-03-17  Jim Meyering  <meyering@lucent.com>
112303         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
112304         Otherwise, include <strings.h>
112306 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
112308         * lib/unicodeio.c (utf8_wctomb): New function.
112309         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
112310         format instead of in UCS-4 with platform dependent endianness.
112312 2000-03-10  Jim Meyering  <meyering@lucent.com>
112314         * m4/lib-check.m4: Look for getspnam in -lgen, too.
112315         From Marco Franzen.
112317 2000-03-07  Paul Eggert  <eggert@twinsun.com>
112319         * lib/savedir.c (savedir): Work even if directory size is
112320         negative; this can happen with some screwy NFS configurations.
112322 2000-03-06  Jim Meyering  <meyering@lucent.com>
112324         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
112325         if it's NULL (because we ran out of memory).  From Bruno Haible.
112327 2000-03-05  Jim Meyering  <meyering@lucent.com>
112329         * lib/localcharset.c ("path-concat.h"): Include.
112330         (get_charset_aliases): Use path_concat instead of ANSI string
112331         concatenation.
112333         * lib/unicodeio.h (PARAMS): Define.
112334         Use it to guard prototype.
112336 2000-03-04  Jim Meyering  <meyering@lucent.com>
112338         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
112339         for lib/localcharset.c.
112341 2000-03-04  Jim Meyering  <meyering@lucent.com>
112343         * lib/Makefile.am (install-exec-local): Create $(libdir) before
112344         installing into it.
112345         (uninstall-local): Uncomment this rule so `make distcheck' works
112346         once again.
112348         * lib/unicodeio.c (<errno.h>): Include it.
112349         (errno): Declare if not defined.
112351         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
112353         * lib/config.charset: New version, incorporating remarks from a linux
112354         i18n mailing list.  From Bruno Haible.
112356 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
112358         * m4/codeset.m4: New file.
112359         * m4/iconv.m4: New file.
112360         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
112362 2000-03-03  Jim Meyering  <meyering@lucent.com>
112364         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
112366 2000-03-02  Jim Meyering  <meyering@lucent.com>
112368         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
112369         the messages come out on separate lines.
112371         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
112372         rather than jm_CHECK_DECLARATIONS.
112373         * m4/decl.m4: Remove now-unused file.
112375         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
112376         geteuid.
112378 2000-03-02  Jim Meyering  <meyering@lucent.com>
112380         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
112382 2000-03-01  Jim Meyering  <meyering@lucent.com>
112384         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
112385         * lib/unicodeio.c: Likewise.
112387 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
112389         * lib/config.charset: New file.
112390         * lib/localcharset.c: New file.
112391         * lib/unicodeio.h, lib/unicodeio.c: New files.
112392         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
112393         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
112394         (noinst_HEADERS): Add unicodeio.h.
112395         (all-local, install-exec-local, charset.alias): New targets.
112397 2000-02-28  Paul Eggert  <eggert@twinsun.com>
112399         * lib/quotearg.c (ALERT_CHAR): New macro.
112400         (quotearg_buffer_restyled): Use it.
112402 2000-02-27  Jim Meyering  <meyering@lucent.com>
112404         * m4/check-decl.m4: Add getenv to the list.
112406 2000-02-27  Jim Meyering  <meyering@lucent.com>
112408         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
112409         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
112411         * lib/backupfile.c: Guard inclusion of stdlib.h with
112412         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
112413         Declare malloc if needed.
112415         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
112416         `#ifndef HAVE_DECL..'
112417         now that autoconf always defines the HAVE_DECL_ symbols.
112418         * lib/human.c: Likewise.
112419         * lib/same.c: Likewise.
112420         * lib/strtoumax.c: Likewise.
112422         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
112423         declaration check was not run.
112424         * lib/hash.c: Likewise.
112425         * lib/human.c: Likewise.
112426         * lib/same.c: Likewise.
112427         * lib/strtoumax.c: Likewise.
112429         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
112430         `.', then first look up the entire `.'-containing string as a login
112431         name.
112433 2000-02-23  Jim Meyering  <meyering@lucent.com>
112435         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
112436         in place of my hack.
112438 2000-02-18  Paul Eggert  <eggert@twinsun.com>
112440         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
112441         (textint): New typedef.
112442         (parser_control): Member year changed from int to textint.
112443         All uses changed.
112444         (YYSTYPE): Removed; replaced by %union with int and textint members.
112445         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
112446         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
112447         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
112448         (tSNUMBER, tUNUMBER): Now of type <textintval>.
112449         (date, number, to_year): Use width of number in digits, not its value,
112450         to determine whether it's a 2-digit year, or a 2-digit time.
112451         (yylex): Store number of digits of numeric tokens.
112452         Reported by John Kendall.
112454         (parser_control): Changed from struct parser_control to typedef (for
112455         consistency).  All uses changed.
112457         (tID): Removed; not used.
112458         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
112460 2000-02-14  Paul Eggert  <eggert@twinsun.com>
112462         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
112463         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
112465 2000-02-12  Jim Meyering  <meyering@lucent.com>
112467         * lib/userspec.c (ISDIGIT): Define it.
112468         (isdigit): Remove definition.
112469         (is_number): Use ISDIGIT, not isdigit.
112470         <libintl.h>: Include.
112471         (_ and N_): Define.
112472         (parse_user_spec): Mark translatable strings.
112474 2000-02-10  Jim Meyering  <meyering@lucent.com>
112476         With these changes, nanosleep.[ch] are finally enough like the other
112477         lib/* replacement files to compile on a few more losing systems.
112479         * lib/nanosleep.h: Don't include config.h.
112480         Remove prototype from declaration of nanosleep.
112481         (PARAMS): Remove now-unneeded definition.
112482         * lib/nanosleep.c: #undef nanosleep.
112483         (rpl_nanosleep): Rename from nanosleep.
112485 2000-02-10  Jim Meyering  <meyering@lucent.com>
112487         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
112488         gnu_nanosleep to rpl_nanosleep.
112490 2000-02-09  Jim Meyering  <meyering@lucent.com>
112492         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
112493         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
112495 2000-02-08  Akim Demaille  <akim@epita.fr>
112497         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
112498         `[' and `]' and remove uses of `changequote'.
112499         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
112500         (AC_SYS_LARGEFILE): Likewise.
112501         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
112502         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
112503         of changequote.
112504         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
112505         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
112506         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
112507         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
112509 2000-02-05  Jim Meyering  <meyering@lucent.com>
112511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
112512         Remove explicit use of AC_HEADER_TIME.  It is required by
112513         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
112514         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
112515         in autoconf whereby the expansion of the latter ended up preceding
112516         the expansion of its prerequisite, AC_HEADER_TIME.
112517         Reported by Volker Borchert.
112519 2000-02-03  Jim Meyering  <meyering@lucent.com>
112521         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
112523 2000-02-03  Jim Meyering  <meyering@lucent.com>
112525         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
112526         rather than with `#if HAVE_UTMPNAME'.
112528 2000-02-02  Jim Meyering  <meyering@lucent.com>
112530         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
112531         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
112532         Reported by Eli Zaretskii.
112534 2000-02-01  Jim Meyering  <meyering@lucent.com>
112536         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
112538 2000-01-31  Jim Meyering  <meyering@lucent.com>
112540         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
112541         functions.  Add the time.h and sys/time.h headers along with the
112542         AC_REQUIRE'ment of AC_HEADER_TIME.
112544 2000-01-31  Jim Meyering  <meyering@lucent.com>
112546         * lib/nanosleep.h (nanosleep): Guard declaration with
112547         `#if ! HAVE_DECL_NANOSLEEP'.
112548         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
112549         the declaration in that vendor's sys/timers.h.
112550         Reported by Christian Krackowizer.
112552         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
112553         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
112554         (ISPRINT): Likewise.
112555         Reported by Tom Tromey.
112557 2000-01-30  Jim Meyering  <meyering@lucent.com>
112559         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
112561         * m4/prereq.m4 (utmp_includes): Define.
112562         Check for ut_user and ut_name members in both struct utmpx
112563         and struct utmp.
112565 2000-01-30  Jim Meyering  <meyering@lucent.com>
112567         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
112568         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
112569         header files where only utmpx.ut_user is declared.
112571         * lib/readutmp.h (UT_USER): Define.
112573 2000-01-29  Jim Meyering  <meyering@lucent.com>
112575         * m4/lib-check.m4: New file containing library-related checks from
112576         fileutils and sh-utils (textutils had none).
112578 2000-01-28  Jim Meyering  <meyering@lucent.com>
112580         * m4/perl.m4: Change format of warning message to look more like that
112581         from the missing script.  Suggestion from François Pinard.
112583 2000-01-25  Jim Meyering  <meyering@lucent.com>
112585         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
112586         well as time.h in the compile check.
112587         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
112588         Fix typo in cross-compiling case: s/yes/no/.
112590 2000-01-23  Jim Meyering  <meyering@lucent.com>
112592         * m4/jm-macros.m4: Move df-related tests here from
112593         fileutils/configure.in
112595         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
112596         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
112598         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
112599         s/space/ac_fsusage_space/.
112600         (jm_FILE_SYSTEM_USAGE): Take two parameters.
112602         * m4/ftruncate.m4: New file (derived from part of
112603         fileutils/configure.in).
112604         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
112605         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
112607         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
112608         AC_SUBST these here, rather than just in sh-util/configure.in, so
112609         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
112610         all the same.
112611         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
112612         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
112613         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
112614         (AC_SUBST(POW_LIBM)): Likewise.
112615         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
112617 2000-01-23  Jim Meyering  <meyering@lucent.com>
112619         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
112620         obstack.c.
112622 2000-01-22  Jim Meyering  <meyering@lucent.com>
112624         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
112626         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
112628         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
112629         configure.in
112630         (AC_CHECK_HEADERS): Likewise for sh-utils.
112631         (AC_CHECK_HEADERS): Likewise for textutils.
112632         Merge the three lists of headers.
112634         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
112635         from fileutils' configure.in.
112637         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
112638         code. Moved tests into their own function (_jm_DECL_HEADERS) in
112639         check-decl.m4.
112641         * m4/check-decl.m4: Use #if rather than #ifdef.
112642         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
112643         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
112644         (_jm_DECL_HEADERS): Define new function.
112645         (jm_CHECK_DECLARATIONS): Require it.
112647 2000-01-22  Jim Meyering  <meyering@lucent.com>
112649         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
112650         [! HAVE_DECL_STRTOULL]: Declare strtoull.
112651         Required for some AIX systems.  Reported by Christian Krackowizer.
112652         [TESTING] (main): New function.
112654         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
112655         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
112656         letters.
112658         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
112659         iswprint.
112661         * lib/strverscmp.c (ISDIGIT): Define.
112662         (strverscmp): Use ISDIGIT, not isdigit.
112664 2000-01-19  Jim Meyering  <meyering@lucent.com>
112666         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
112667         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
112668         defines `struct timespec' in <sys/time.h>
112670         * m4/c-bs-a.m4: Remove uses of changequote altogether.
112671         Thanks to Akim for explaining.
112673 2000-01-17  Paul Eggert  <eggert@twinsun.com>
112675         * lib/nanosleep.c (nanosleep):
112676         Don't use SA_INTERRUPT to decide whether to call sigaction, as
112677         POSIX.1 doesn't require SA_INTERRUPT and some systems
112678         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
112679         it's been part of POSIX.1 since day 1 (in 1988).
112681 2000-01-17  Jim Meyering  <meyering@lucent.com>
112683         * lib/interlock: Remove unused file.  Reported by François Pinard.
112685 2000-01-16  Paul Eggert  <eggert@twinsun.com>
112687         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
112688         alert, backslash, formfeed, and vertical tab unnecessarily in
112689         shell quoting style.
112691 2000-01-16  Jim Meyering  <meyering@lucent.com>
112693         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
112694         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
112695         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
112696         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
112698 2000-01-16  Jim Meyering  <meyering@lucent.com>
112700         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
112701         because the latter didn't work.
112703 2000-01-15  Jim Meyering  <meyering@lucent.com>
112705         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
112706         (AC_REPLACE_FUNCS): Add memcpy and memset.
112707         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
112708         Add strpbrk.
112709         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
112711 2000-01-12  Jim Meyering  <meyering@lucent.com>
112713         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
112714         (jm_PREREQ): Use it.
112715         (jm_PREREQ_READUTMP): New macro.
112716         (jm_PREREQ): Use it.
112718 2000-01-11  Paul Eggert  <eggert@twinsun.com>
112720         Quote multibyte characters correctly.
112721         * m4/c-bs-a.m4: New file.
112722         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
112723         (jm_PREREQ): Use it.
112725 2000-01-11  Paul Eggert  <eggert@twinsun.com>
112727         * m4/uintmax_t.m4: Port to autoconf 2.13.
112729 2000-01-08  Jim Meyering  <meyering@ascend.com>
112731         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
112732         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
112734 2000-01-04  Jim Meyering  <meyering@ascend.com>
112736         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
112737         jm_STRUCT_DIRENT_D_TYPE.
112738         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
112739         jm_STRUCT_DIRENT_D_INO.
112740         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
112741         jm_STRUCT_UTIMBUF.
112742         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
112743         renamings.
112744         * m4/utime.m4: Likewise.
112746         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
112747         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
112749 2000-01-03  Paul Eggert  <eggert@twinsun.com>
112751         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
112752         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
112754 2000-01-02  Jim Meyering  <meyering@ascend.com>
112756         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
112757         remember if this is necessary.
112759 1999-12-26  Jim Meyering  <meyering@ascend.com>
112761         * m4/jm-macros.m4: Use it here.
112762         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
112764 1999-12-23  Jim Meyering  <meyering@ascend.com>
112766         * m4/jm-macros.m4: Check for clock_gettime (moved from
112767         fileutils/configure.in)
112768         Check for gettimeofday.
112770 1999-12-20  Jim Meyering  <meyering@ascend.com>
112772         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
112773         autoconf-2.14a-1999-12-20.
112775 1999-12-19  Jim Meyering  <meyering@ascend.com>
112777         * m4/lstat-slash.m4: New file.
112778         * m4/jm-macros.m4: Use the new macro:
112779         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
112781 1999-12-07  Jim Meyering  <meyering@ascend.com>
112783         * m4/perl.m4: Require that File::Compare be available, too.
112784         Too many systems seem to lack it.
112786         * m4/strftime.m4: Add checks for most of the cpp macros tested in
112787         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
112789 1999-11-18  Paul Eggert  <eggert@twinsun.com>
112791         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
112792         problem with the QNX 4.25 shell, which doesn't propagate exit
112793         status of failed commands inside shell assignments.
112795 1999-11-17  Jim Meyering  <meyering@ascend.com>
112797         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
112799 1999-11-07  Jim Meyering  <meyering@ascend.com>
112801         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
112803 1999-11-06  Jim Meyering  <meyering@ascend.com>
112805         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
112806         * m4/jm-macros.m4 (jm_MACROS): Use it here.
112808 1999-11-05  Jim Meyering  <meyering@ascend.com>
112810         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
112811         configure.in of textutils, fileutils, and sh-utils into this one
112812         (shared between those packages) file.
112813         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
112814         AC_STRUCT_ST_BLKSIZE.
112816 1999-11-03  Jim Meyering  <meyering@ascend.com>
112818         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
112819         of AC_CHECK_TYPE checks includes unistd.h.
112820         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
112821         Suggestion from Akim Demaille.
112823 1999-10-30  Jim Meyering  <meyering@ascend.com>
112825         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
112826         m4-quoted string.
112827         * m4/ls-mntd-fs.m4: Likewise.
112828         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
112829         * m4/jm-winsz1.m4: Likewise.
112831         * m4/const.m4: Remove file, since the fix made it into the experimental
112832         version of autoconf.
112833         * m4/mktime.m4: Likewise.
112835         * m4/check-type.m4: Remove file, now that the latest version of
112836         AC_CHECK_TYPE takes a third arg to specify additional #includes.
112838         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
112839         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
112840         AC_CHECK_TYPE.
112842 1999-10-04  Jim Meyering  <meyering@ascend.com>
112844         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
112846 1999-09-22  Paul Eggert  <eggert@twinsun.com>
112848         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
112849         2.95.1 bug with HP-UX 10.20.
112851 1999-09-17  Jim Meyering  <meyering@ascend.com>
112853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
112854         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
112855         due to missing strdup (against sh-utils-2.0).
112857 1999-08-29  Jim Meyering  <meyering@ascend.com>
112859         * m4/jm-macros.m4: Require jm_BISON.
112860         * m4/bison.m4: New file.
112862 1999-08-17  Paul Eggert  <eggert@twinsun.com>
112864         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
112865         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
112867 1999-08-05  Jim Meyering  <meyering@ascend.com>
112869         * m4/getline.m4: Rename test file from conftestdata to conftest.data
112870         to avoid conflicts with `conftest' on 8+3 filesystems.
112871         Suggestion from Eli Zaretskii.
112873 1999-08-04  Jim Meyering  <meyering@ascend.com>
112875         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
112876         fileutils and sh-utils (textutils's getline test was inadequate).
112877         (AM_FUNC_GETLINE): Run this test.
112878         (AC_CHECK_FUNCS): Check for getdelim.
112879         Reported by Bob Proulx.
112881 1999-08-02  Jim Meyering  <meyering@ascend.com>
112883         * m4/jm-macros.m4: Add a comment.
112885 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112887         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
112888         <inttypes.h> defines strtoumax as a macro (and not as a
112889         function).
112891 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112893         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
112894         that we can shift, multiply and divide unsigned long long
112895         values; Ultrix cc can't do it.
112897 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112899         * m4/mktime.m4: New file, which is a preview of what should appear
112900         in the next public autoconf release.
112902 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112904         * m4/lfs.m4: Remove this file.
112905         * m4/largefile.m4: New file.  It contains the old contents of
112906         lfs.m4, except that all names with prefix AC_LFS have been
112907         changed to use the prefix AC_SYS_LARGEFILE instead, to be
112908         compatible with future autoconf versions.  Also, some minor m4
112909         quoting problems have been fixed.
112911 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112913         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
112914         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
112915         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
112916         and simplify the shell code.
112918 1999-08-01  Jim Meyering  <meyering@ascend.com>
112920         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
112921         m4.
112923 1999-07-20  Jim Meyering  <meyering@ascend.com>
112925         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
112927 1999-07-15  Jim Meyering  <meyering@ascend.com>
112929         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
112931 1999-05-22  Jim Meyering  <meyering@ascend.com>
112933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
112935 1999-05-20  Jim Meyering  <meyering@ascend.com>
112937         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
112938         Add a colon after each `then' in case $4 is empty.
112940 1999-05-16  Jim Meyering  <meyering@ascend.com>
112942         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
112944 1999-05-10  Jim Meyering  <meyering@ascend.com>
112946         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
112948         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
112949         AC_FUNC_MKTIME.
112951 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
112953         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
112955 1999-05-04  Paul Eggert  <eggert@twinsun.com>
112957         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
112958         not CPPFLAGS, so that linking works correctly in IRIX.
112960 1999-04-30  Paul Eggert  <eggert@twinsun.com>
112962         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
112964 1999-04-20  Paul Eggert  <eggert@twinsun.com>
112966         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
112967         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
112968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
112969         jm_AC_TYPE_UNSIGNED_LONG_LONG.
112970         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
112972         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
112974 1999-04-20  Jim Meyering  <meyering@ascend.com>
112976         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
112977         AC_REPLACE xstroull if necessary.  From Paul Eggert.
112978         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
112980 1999-04-18  Jim Meyering  <meyering@ascend.com>
112982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
112983         * m4/jm-macros.m4: Use it.
112985 1999-04-06  Jim Meyering  <meyering@ascend.com>
112987         * m4/strftime.m4: Remove test for %f.
112989 1999-03-29  Jim Meyering  <meyering@ascend.com>
112991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
112992         superset of the AC_TYPE_* checks in the textutils, fileutils,
112993         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
112994         AC_TYPE_PID_T.
112996 1999-03-28  Jim Meyering  <meyering@ascend.com>
112998         * m4/jm-macros.m4: Define GNU_PACKAGE here.
112999         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
113000         replaced e.g., in the *.sh files of the sh-utils.
113002 1999-03-20  Jim Meyering  <meyering@ascend.com>
113004         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
113005         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
113006         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
113008 1999-03-19  Jim Meyering  <meyering@ascend.com>
113010         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
113012 1999-03-12  Jim Meyering  <meyering@ascend.com>
113014         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
113016 1999-03-07  Jim Meyering  <meyering@ascend.com>
113018         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
113019         declared.
113021 1999-02-17  Jim Meyering  <meyering@ascend.com>
113023         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
113024         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
113026 1999-02-07  Jim Meyering  <meyering@ascend.com>
113028         * m4/group-member.m4: New file -- extracted from sh-utils'
113029         configure.in.
113031         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
113032         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
113034 1999-02-06  Jim Meyering  <meyering@ascend.com>
113036         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
113037         * m4/fnmatch.m4: Likewise.
113038         * m4/getgroups.m4: Likewise.
113039         * m4/lstat.m4: Likewise.
113040         * m4/malloc.m4: Likewise.
113041         * m4/putenv.m4: Likewise.
113042         * m4/realloc.m4: Likewise.
113043         * m4/regex.m4: Likewise.
113044         * m4/stat.m4: Likewise.
113045         * m4/strftime.m4: Likewise.
113046         Suggestion from Alain Magloire.
113048         * m4/chown.m4: Use `.$ac_objext', not `.o'.
113049         * m4/fnmatch.m4: Likewise.
113050         * m4/getgroups.m4: Likewise.
113051         * m4/getline.m4: Likewise.
113052         * m4/lstat.m4: Likewise.
113053         * m4/malloc.m4: Likewise.
113054         * m4/memcmp.m4: Likewise.
113055         * m4/putenv.m4: Likewise.
113056         * m4/realloc.m4: Likewise.
113057         * m4/regex.m4: Likewise.
113058         * m4/stat.m4: Likewise.
113059         * m4/strftime.m4: Likewise.
113060         Suggestion from Alain Magloire.
113062         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
113063         an argument.
113065         * m4/regex.m4: Add a run-time Test for proper operation of
113066         re_compile_pattern.
113068 1999-01-31  Jim Meyering  <meyering@ascend.com>
113070         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
113072 1999-01-30  Jim Meyering  <meyering@ascend.com>
113074         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
113076         * m4/jm-mktime.m4: Make this a wrapper around the official
113077         AM_FUNC_MKTIME rather than my private copy, now that the official one
113078         is up to date.
113079         * m4/mktime.m4: Remove file.
113081         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
113082         * m4/uptime.m4: Likewise.
113083         * m4/uintmax_t.m4: Likewise.
113085 1999-01-28  Jim Meyering  <meyering@ascend.com>
113087         * m4/jm-macros.m4: Use jm_AFS.
113088         * m4/afs.m4: New file (from fileutils' configure.in).
113090         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
113091         * m4/chown.m4: Likewise.
113092         * m4/d-ino.m4: Likewise.
113093         * m4/d-type.m4: Likewise.
113094         * m4/fnmatch.m4: Likewise.
113095         * m4/getgroups.m4: Likewise.
113096         * m4/gettext.m4: Likewise.
113097         * m4/jm-mktime.m4: Likewise.
113098         * m4/jm-winsz2.m4: Likewise.
113099         * m4/lcmessage.m4: Likewise.
113100         * m4/ls-mntd-fs.m4: Likewise.
113101         * m4/malloc.m4: Likewise.
113102         * m4/memcmp.m4: Likewise.
113103         * m4/putenv.m4: Likewise.
113104         * m4/realloc.m4: Likewise.
113105         * m4/st_mtim.m4: Likewise.
113106         * m4/strftime.m4: Likewise.
113108 1999-01-16  Jim Meyering  <meyering@ascend.com>
113110         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
113111         (ARGMATCH_DIE_DECL): Define.
113113 1999-01-12  Jim Meyering  <meyering@ascend.com>
113115         * m4/Makefile.am.in: Rewrite to avoid using fmt.
113116         Reported by Lars Hecking.
113118 1999-01-10  Jim Meyering  <meyering@ascend.com>
113120         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
113121         gross kludge.
113122         * m4/inttypes_h.m4: Likewise.
113123         * m4/lstat.m4: Likewise.
113124         * m4/malloc.m4: Likewise.
113125         * m4/readdir.m4: Likewise.
113126         * m4/realloc.m4: Likewise.
113127         * m4/st_dm_mode.m4: Likewise.
113128         * m4/stat.m4: Likewise.
113129         * m4/utimbuf.m4: Likewise.
113130         * m4/utimes.m4: Likewise.
113132         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
113133         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
113134         comments in config.h.in are meaningful.
113136         * m4/jm-macros.m4: Require autoconf-2.13 here.
113138         * m4/regex.m4: By default, don't use the included regex.c on systems
113139         with glibc 2.  Suggestion from Uli Drepper.
113141 1999-01-02  Jim Meyering  <meyering@ascend.com>
113143         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
113145 1998-12-18  Jim Meyering  <meyering@ascend.com>
113147         * m4/Makefile.am.in (Makefile.am): Simplify rule.
113148         Based on a suggestion from Lars Hecking.
113150 1998-11-16  Paul Eggert  <eggert@twinsun.com>
113152         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
113154 1998-11-16  Jim Meyering  <meyering@ascend.com>
113156         * m4/lfs.m4: Double-quote the `uname...` expression.
113158 1998-11-14  Jim Meyering  <meyering@ascend.com>
113160         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
113161         * m4/stat.m4: Likewise.
113163 1998-11-03  Jim Meyering  <meyering@ascend.com>
113165         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
113166         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
113168 1998-10-18  Jim Meyering  <meyering@ascend.com>
113170         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
113172 1998-10-17  Jim Meyering  <meyering@ascend.com>
113174         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
113175         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
113176         calls for those previously hard-coded headers.  Instead, take a new
113177         parameter.
113178         (jm_CHECK_DECLARATIONS): Reflect interface change.
113179         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
113180         (jm_CHECK_DECL_LOCALTIME_R): New macro.
113182         * m4/mktime.m4: Test for spring-forward gap before long-running test.
113184 1998-10-14  Jim Meyering  <meyering@ascend.com>
113186         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
113187         instead of "TZ=America/Vancouver".  From Paul Eggert.
113189 1998-10-11  Jim Meyering  <meyering@ascend.com>
113191         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
113192         This adds a test for a recently added compatibility fix for mktime.c.
113193         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
113195 1998-09-27  Jim Meyering  <meyering@ascend.com>
113197         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
113199         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
113200         ../configure.in, including a change from Gordon Matzigkeit to allow
113201         cross-compiling for the Hurd.
113203         * m4/glibc.m4: New file/macro to test for the GNU C Library
113204         versions 1 and 2.  From Gordon Matzigkeit.
113205         Indent.
113207 1998-09-21  Jim Meyering  <meyering@ascend.com>
113209         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
113211 1998-08-18  Paul Eggert  <eggert@twinsun.com>
113213         Port nanosecond-resolution times to UnixWare 2.1.2 and
113214         pedantic Solaris 2.6.
113216         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
113217         AC_STRUCT_ST_MTIM.
113218         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
113219         Generate name of ns member, instead of just 1 or undef.
113220         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
113222 1998-08-15  Jim Meyering  <meyering@ascend.com>
113224         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
113225         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
113226         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
113227         instead of jm_TYPE_SSIZE_T.
113229 1998-08-12  Jim Meyering  <meyering@ascend.com>
113231         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
113233 1998-08-02  Jim Meyering  <meyering@ascend.com>
113235         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
113236         in acconfig.h manually.
113238 1998-07-31  Paul Eggert  <eggert@twinsun.com>
113240         * m4/st_mtim.m4: New file.
113242 1998-07-28  Jim Meyering  <meyering@ascend.com>
113244         * m4/utimes.m4: Undef stat.
113246 1998-07-25  Jim Meyering  <meyering@ascend.com>
113248         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
113249         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
113251 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
113253         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
113254         uid and gid actually remain unchanged.
113256 1998-07-07  Jim Meyering  <meyering@ascend.com>
113258         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
113260 1998-07-04  Jim Meyering  <meyering@ascend.com>
113262         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
113263         to prove that this macro can be used in packages without regex.c.
113265 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
113267         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
113268         is to be used.
113270 1998-07-03  Jim Meyering  <meyering@ascend.com>
113272         * m4/gettext.m4: Add -lintl if it's found to be necessary.
113274         * m4/gettext.m4: New file -- from gettext-0.10.35.
113275         * m4/lcmessage.m4: Likewise.
113276         * m4/progtest.m4: Likewise.
113278         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
113279         * m4/jm-macros.m4: Require the new macro.
113281 1998-06-29  Jim Meyering  <meyering@ascend.com>
113283         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
113284         for the definition of NGROUPS (used in a system header included
113285         by sys/mount.h).
113287 1998-06-28  Jim Meyering  <meyering@ascend.com>
113289         * m4/ls-mntd-fs.m4: New file.
113290         * m4/fstypename.m4: New file.
113292         * m4/jm-macros.m4: Require the new macro.
113293         * m4/jm-glibc-io.m4: New file.
113295 1998-05-19  Jim Meyering  <meyering@ascend.com>
113297         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
113298         * m4/lchown.m4: New file.
113300         * m4/Makefile.am.in: New file.
113301         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
113303 1998-05-14  Jim Meyering  <meyering@ascend.com>
113305         * m4/Makefile.am (EXTRA_DIST): Add them.
113306         * m4/jm-macros.m4: New file.
113307         * m4/utimbuf.m4: New file.
113309 1998-05-12  Jim Meyering  <meyering@ascend.com>
113311         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
113313 1998-05-11  Jim Meyering  <meyering@ascend.com>
113315         * m4/isc-posix.m4: New file.
113317 1998-05-10  Jim Meyering  <meyering@ascend.com>
113319         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
113321 1998-05-09  Jim Meyering  <meyering@ascend.com>
113323         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
113324         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
113325         with automake.
113327         * m4/ssize_t.m4: New file.
113328         * m4/mktime.m4: Remove file -- the new automake has this now.
113330 1998-04-26  Jim Meyering  <meyering@ascend.com>
113332         * m4/assert.m4: New file.
113333         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
113335 1998-04-05  Jim Meyering  <meyering@ascend.com>
113337         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
113338         (jm_PREREQ): Use it here.
113340 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
113342         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
113343         in acconfig.h.
113345 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
113347         * m4/prereq.m4: New file.
113348         * m4/error.m4: New file.
113349         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
113351 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
113353         * m4/getline.m4: Don't set am_cv_func_working_getline before the
113354         cache-check for the same variable -- that defeated the purpose of
113355         the test; the test program was never run.  This was a problem only
113356         on systems with losing getline functions -- HP-UX 10.20 is one.
113357         Reported by Bjorn Helgaas.
113359 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
113361         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
113363 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
113365         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
113367         * m4/const.m4: New file.  Use an initializer in this declaration
113368         typedef int charset[2]; const charset x;
113369         Reported by Bob Glickstein.
113371 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
113373         * m4/chown.m4: Fix reversed types on -1 args to chown.
113374         From Kaveh Ghazi.
113376 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
113378         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
113379         Add lseek and memchr.
113381         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
113382         T.E.Dickey <dickey@clark.net> said that some older preprocessors
113383         have a 20-character limit on names.
113385 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
113387         * m4/inttypes_h.m4: New file.
113388         * m4/uintmax_t.m4: New file.
113389         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
113392         -----
113394         Local Variables:
113395         coding: utf-8
113396         End:
113398         Copyright (C) 1997-2017 Free Software Foundation, Inc.
113400         Copying and distribution of this file, with or without
113401         modification, are permitted provided the copyright notice
113402         and this notice are preserved.